@lokalise/harmony 2.1.0-exp-testingContracts.5 → 2.1.0-exp-testingContracts.6
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/harmony103.cjs +1 -1
- package/dist/harmony103.mjs +1 -1
- package/dist/harmony104.cjs +7 -7
- package/dist/harmony104.mjs +7 -7
- package/dist/harmony107.cjs +1 -1
- package/dist/harmony107.mjs +1 -1
- package/dist/harmony108.cjs +1 -1
- package/dist/harmony108.mjs +1 -1
- package/dist/harmony109.cjs +11 -14
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +11 -14
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +22 -4
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +21 -3
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +13 -17
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +13 -17
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +3 -76
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +3 -76
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +17 -11
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +17 -11
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +76 -34
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +76 -34
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +12 -9
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +12 -9
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +34 -47
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +34 -47
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +10 -10
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +9 -9
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +45 -9
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +47 -11
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +8 -20
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +8 -20
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony122.cjs +84 -96
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +84 -79
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +30 -20
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +30 -20
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +20 -7
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +20 -7
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +6 -16
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +7 -17
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +16 -7
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +16 -7
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +3 -3
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +3 -3
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +7 -14
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +7 -14
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +14 -86
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +14 -86
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +98 -29
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +81 -29
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +9 -5
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +9 -5
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +13 -6
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +12 -5
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +15 -9
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +14 -8
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +13 -6
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +15 -8
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +7 -12
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +9 -14
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony136.cjs +20 -13
- package/dist/harmony136.cjs.map +1 -1
- package/dist/harmony136.mjs +22 -15
- package/dist/harmony136.mjs.map +1 -1
- package/dist/harmony137.cjs +9 -7
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +11 -9
- package/dist/harmony137.mjs.map +1 -1
- package/dist/harmony138.cjs +30 -18
- package/dist/harmony138.cjs.map +1 -1
- package/dist/harmony138.mjs +32 -20
- package/dist/harmony138.mjs.map +1 -1
- package/dist/harmony139.cjs +6 -6
- package/dist/harmony139.cjs.map +1 -1
- package/dist/harmony139.mjs +6 -6
- package/dist/harmony139.mjs.map +1 -1
- package/dist/harmony140.cjs +13 -29
- package/dist/harmony140.cjs.map +1 -1
- package/dist/harmony140.mjs +14 -30
- package/dist/harmony140.mjs.map +1 -1
- package/dist/harmony141.cjs +31 -7
- package/dist/harmony141.cjs.map +1 -1
- package/dist/harmony141.mjs +32 -8
- package/dist/harmony141.mjs.map +1 -1
- package/dist/harmony142.cjs +21 -22
- package/dist/harmony142.cjs.map +1 -1
- package/dist/harmony142.mjs +20 -21
- package/dist/harmony142.mjs.map +1 -1
- package/dist/harmony143.cjs +15 -30
- package/dist/harmony143.cjs.map +1 -1
- package/dist/harmony143.mjs +17 -32
- package/dist/harmony143.mjs.map +1 -1
- package/dist/harmony144.cjs +3 -18
- package/dist/harmony144.cjs.map +1 -1
- package/dist/harmony144.mjs +3 -18
- package/dist/harmony144.mjs.map +1 -1
- package/dist/harmony145.cjs +15 -21
- package/dist/harmony145.cjs.map +1 -1
- package/dist/harmony145.mjs +14 -20
- package/dist/harmony145.mjs.map +1 -1
- package/dist/harmony146.cjs +10 -6
- package/dist/harmony146.cjs.map +1 -1
- package/dist/harmony146.mjs +9 -5
- package/dist/harmony146.mjs.map +1 -1
- package/dist/harmony147.cjs +5 -15
- package/dist/harmony147.cjs.map +1 -1
- package/dist/harmony147.mjs +5 -15
- package/dist/harmony147.mjs.map +1 -1
- package/dist/harmony148.cjs +6 -11
- package/dist/harmony148.cjs.map +1 -1
- package/dist/harmony148.mjs +5 -10
- package/dist/harmony148.mjs.map +1 -1
- package/dist/harmony149.cjs +1 -1
- package/dist/harmony149.mjs +1 -1
- package/dist/harmony150.cjs +1 -1
- package/dist/harmony150.mjs +1 -1
- package/dist/harmony151.cjs +1 -1
- package/dist/harmony151.mjs +1 -1
- package/dist/harmony152.cjs +3 -3
- package/dist/harmony152.mjs +3 -3
- package/dist/harmony153.cjs +3 -3
- package/dist/harmony153.mjs +3 -3
- package/dist/harmony154.cjs +1 -1
- package/dist/harmony154.mjs +1 -1
- package/dist/harmony157.cjs +1 -1
- package/dist/harmony157.mjs +1 -1
- package/dist/harmony158.cjs +2 -2
- package/dist/harmony158.mjs +2 -2
- package/dist/harmony167.cjs +32 -13
- package/dist/harmony167.cjs.map +1 -1
- package/dist/harmony167.mjs +32 -13
- package/dist/harmony167.mjs.map +1 -1
- package/dist/harmony168.cjs +12 -14
- package/dist/harmony168.cjs.map +1 -1
- package/dist/harmony168.mjs +12 -14
- package/dist/harmony168.mjs.map +1 -1
- package/dist/harmony169.cjs +13 -14
- package/dist/harmony169.cjs.map +1 -1
- package/dist/harmony169.mjs +13 -14
- package/dist/harmony169.mjs.map +1 -1
- package/dist/harmony17.cjs +1 -1
- package/dist/harmony17.mjs +1 -1
- package/dist/harmony170.cjs +15 -31
- package/dist/harmony170.cjs.map +1 -1
- package/dist/harmony170.mjs +15 -31
- package/dist/harmony170.mjs.map +1 -1
- package/dist/harmony171.cjs +1 -1
- package/dist/harmony171.mjs +1 -1
- package/dist/harmony173.cjs +3 -3
- package/dist/harmony173.mjs +3 -3
- package/dist/harmony175.cjs +4 -6
- package/dist/harmony175.cjs.map +1 -1
- package/dist/harmony175.mjs +4 -6
- package/dist/harmony175.mjs.map +1 -1
- package/dist/harmony176.cjs +5 -11
- package/dist/harmony176.cjs.map +1 -1
- package/dist/harmony176.mjs +5 -11
- package/dist/harmony176.mjs.map +1 -1
- package/dist/harmony177.cjs +11 -31
- package/dist/harmony177.cjs.map +1 -1
- package/dist/harmony177.mjs +11 -31
- package/dist/harmony177.mjs.map +1 -1
- package/dist/harmony178.cjs +28 -10
- package/dist/harmony178.cjs.map +1 -1
- package/dist/harmony178.mjs +28 -10
- package/dist/harmony178.mjs.map +1 -1
- package/dist/harmony179.cjs +14 -4
- package/dist/harmony179.cjs.map +1 -1
- package/dist/harmony179.mjs +14 -4
- package/dist/harmony179.mjs.map +1 -1
- package/dist/harmony20.cjs +1 -1
- package/dist/harmony20.mjs +1 -1
- package/dist/harmony28.cjs +1 -1
- package/dist/harmony28.mjs +1 -1
- package/dist/harmony29.cjs +1 -1
- package/dist/harmony29.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/harmony53.cjs +3 -3
- package/dist/harmony53.cjs.map +1 -1
- package/dist/harmony53.mjs +1 -1
- package/dist/harmony53.mjs.map +1 -1
- package/dist/harmony78.cjs +74 -74
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +1 -1
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +52 -52
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +1 -1
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +4 -4
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +1 -1
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +18 -18
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +1 -1
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +15 -15
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +1 -1
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +96 -96
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +1 -1
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +24 -24
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +1 -1
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +14 -14
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +1 -1
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +2 -2
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +1 -1
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +40 -40
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +1 -1
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +27 -27
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +1 -1
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +10 -10
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +1 -1
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony95.cjs +1 -1
- package/dist/harmony95.mjs +1 -1
- package/dist/harmony97.cjs +2 -2
- package/dist/harmony97.mjs +2 -2
- package/dist/types/src/features/auth/core/types/jwtTokenPayload.d.ts +35 -8
- package/dist/types/src/features/auth/core/types/jwtTokenPayload.fixture.d.ts +1 -1
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedProjectContributor.d.ts +3 -3
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedUser.d.ts +2 -2
- package/dist/types/src/features/auth/frontend/services/generateTokenFromClassicSession.d.ts +4 -1
- package/dist/types/src/features/auth/frontend/services/refreshExpiredToken.d.ts +4 -1
- package/dist/types/src/features/navigation/hooks/useNavigationQueries.d.ts +48 -48
- package/dist/types/src/features/publicApi/TESTING_CONTRACTS.d.ts +238 -1
- package/dist/types/src/features/publicApi/contributors.d.ts +1072 -5
- package/dist/types/src/features/publicApi/hooks/useAddContributorsMutation.d.ts +7 -7
- package/dist/types/src/features/publicApi/hooks/useAddLanguagesToProjectMutation.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useCreateProjectMutation.d.ts +14 -14
- package/dist/types/src/features/publicApi/hooks/useCreateScoreMutation.d.ts +3 -3
- package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useRetrieveUserPermissions.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useUpdateContributorMutation.d.ts +5 -5
- package/dist/types/src/features/publicApi/hooks/useUpdateProjectMutation.d.ts +13 -13
- package/dist/types/src/features/publicApi/languages.d.ts +368 -3
- package/dist/types/src/features/publicApi/permissionTemplates.d.ts +117 -1
- package/dist/types/src/features/publicApi/projects.d.ts +1965 -6
- package/dist/types/src/features/publicApi/score.d.ts +290 -3
- package/dist/types/src/features/publicApi/team.d.ts +374 -2
- package/dist/types/src/features/publicApi/teamUsers.d.ts +318 -3
- package/dist/types/src/features/publicApi/types/contributorTypes.d.ts +834 -84
- package/dist/types/src/features/publicApi/types/languageTypes.d.ts +212 -22
- package/dist/types/src/features/publicApi/types/paginationTypes.d.ts +8 -2
- package/dist/types/src/features/publicApi/types/permissionTemplateTypes.d.ts +76 -71
- package/dist/types/src/features/publicApi/types/permissionTypes.d.ts +24 -48
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +1097 -211
- package/dist/types/src/features/publicApi/types/scoreTypes.d.ts +96 -32
- package/dist/types/src/features/publicApi/types/sharedTypes.d.ts +126 -30
- package/dist/types/src/features/publicApi/types/teamRoleTypes.d.ts +2 -7
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +328 -65
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +208 -91
- package/dist/types/src/features/publicApi/types/userTokenTypes.d.ts +39 -9
- package/dist/types/src/features/publicApi/userToken.d.ts +53 -1
- package/package.json +1 -1
package/dist/harmony148.mjs
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const hasAnyAdminRight = (adminRights, rights) => {
|
|
6
|
-
if (!Array.isArray(adminRights)) return false;
|
|
7
|
-
return rights.some((right) => adminRights.includes(right));
|
|
8
|
-
};
|
|
1
|
+
import { getDefaultExportFromCjs } from "./harmony176.mjs";
|
|
2
|
+
import { __require as requireThrottle } from "./harmony159.mjs";
|
|
3
|
+
var throttleExports = requireThrottle();
|
|
4
|
+
const throttle = /* @__PURE__ */ getDefaultExportFromCjs(throttleExports);
|
|
9
5
|
export {
|
|
10
|
-
|
|
11
|
-
hasAnyAdminRight
|
|
6
|
+
throttle as default
|
|
12
7
|
};
|
|
13
8
|
//# sourceMappingURL=harmony148.mjs.map
|
package/dist/harmony148.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony148.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"harmony148.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony149.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const has = require("./
|
|
3
|
+
const has = require("./harmony128.cjs");
|
|
4
4
|
const accessMarketingProjects = ({ enabledFeatureFlags }) => has.has(enabledFeatureFlags, "homeMarketingBeta");
|
|
5
5
|
exports.accessMarketingProjects = accessMarketingProjects;
|
|
6
6
|
//# sourceMappingURL=harmony149.cjs.map
|
package/dist/harmony149.mjs
CHANGED
package/dist/harmony150.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const has = require("./
|
|
3
|
+
const has = require("./harmony128.cjs");
|
|
4
4
|
const deleteProjects = ({ projectPermissions }) => has.has(projectPermissions, "settings");
|
|
5
5
|
exports.deleteProjects = deleteProjects;
|
|
6
6
|
//# sourceMappingURL=harmony150.cjs.map
|
package/dist/harmony150.mjs
CHANGED
package/dist/harmony151.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const has = require("./
|
|
3
|
+
const has = require("./harmony128.cjs");
|
|
4
4
|
const manageContributors = ({ projectPermissions }) => has.has(projectPermissions, "contributors");
|
|
5
5
|
exports.manageContributors = manageContributors;
|
|
6
6
|
//# sourceMappingURL=harmony151.cjs.map
|
package/dist/harmony151.mjs
CHANGED
package/dist/harmony152.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const canPerformActionByProjectType = require("./
|
|
4
|
-
const hasAny = require("./
|
|
5
|
-
const has = require("./
|
|
3
|
+
const canPerformActionByProjectType = require("./harmony167.cjs");
|
|
4
|
+
const hasAny = require("./harmony127.cjs");
|
|
5
|
+
const has = require("./harmony128.cjs");
|
|
6
6
|
const canDownloadFiles = ({ projectType, projectPermissions }) => canPerformActionByProjectType.canPerformActionByProjectType(projectType, {
|
|
7
7
|
classic: () => has.has(projectPermissions, "download"),
|
|
8
8
|
// This is a temporary workaround for the marketing project type - upload and download permissions are not yet supported
|
package/dist/harmony152.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { canPerformActionByProjectType } from "./
|
|
2
|
-
import { hasAny } from "./
|
|
3
|
-
import { has } from "./
|
|
1
|
+
import { canPerformActionByProjectType } from "./harmony167.mjs";
|
|
2
|
+
import { hasAny } from "./harmony127.mjs";
|
|
3
|
+
import { has } from "./harmony128.mjs";
|
|
4
4
|
const canDownloadFiles = ({ projectType, projectPermissions }) => canPerformActionByProjectType(projectType, {
|
|
5
5
|
classic: () => has(projectPermissions, "download"),
|
|
6
6
|
// This is a temporary workaround for the marketing project type - upload and download permissions are not yet supported
|
package/dist/harmony153.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const canPerformActionByProjectType = require("./
|
|
4
|
-
const hasAny = require("./
|
|
5
|
-
const has = require("./
|
|
3
|
+
const canPerformActionByProjectType = require("./harmony167.cjs");
|
|
4
|
+
const hasAny = require("./harmony127.cjs");
|
|
5
|
+
const has = require("./harmony128.cjs");
|
|
6
6
|
const canUploadFiles = ({ projectPermissions, projectType }) => canPerformActionByProjectType.canPerformActionByProjectType(projectType, {
|
|
7
7
|
classic: () => has.has(projectPermissions, "upload"),
|
|
8
8
|
// This is a temporary workaround for the marketing project type - upload and download permissions are not yet supported
|
package/dist/harmony153.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { canPerformActionByProjectType } from "./
|
|
2
|
-
import { hasAny } from "./
|
|
3
|
-
import { has } from "./
|
|
1
|
+
import { canPerformActionByProjectType } from "./harmony167.mjs";
|
|
2
|
+
import { hasAny } from "./harmony127.mjs";
|
|
3
|
+
import { has } from "./harmony128.mjs";
|
|
4
4
|
const canUploadFiles = ({ projectPermissions, projectType }) => canPerformActionByProjectType(projectType, {
|
|
5
5
|
classic: () => has(projectPermissions, "upload"),
|
|
6
6
|
// This is a temporary workaround for the marketing project type - upload and download permissions are not yet supported
|
package/dist/harmony154.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const hasAny = require("./
|
|
3
|
+
const hasAny = require("./harmony127.cjs");
|
|
4
4
|
const createProjects = ({ teamRole }) => hasAny.hasAny(teamRole, "owner", "biller", "admin");
|
|
5
5
|
exports.createProjects = createProjects;
|
|
6
6
|
//# sourceMappingURL=harmony154.cjs.map
|
package/dist/harmony154.mjs
CHANGED
package/dist/harmony157.cjs
CHANGED
package/dist/harmony157.mjs
CHANGED
package/dist/harmony158.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const _baseTrim = require("./
|
|
3
|
+
const _baseTrim = require("./harmony169.cjs");
|
|
4
4
|
const isObject = require("./harmony156.cjs");
|
|
5
|
-
const isSymbol = require("./
|
|
5
|
+
const isSymbol = require("./harmony170.cjs");
|
|
6
6
|
var toNumber_1;
|
|
7
7
|
var hasRequiredToNumber;
|
|
8
8
|
function requireToNumber() {
|
package/dist/harmony158.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __require as require_baseTrim } from "./
|
|
1
|
+
import { __require as require_baseTrim } from "./harmony169.mjs";
|
|
2
2
|
import { __require as requireIsObject } from "./harmony156.mjs";
|
|
3
|
-
import { __require as requireIsSymbol } from "./
|
|
3
|
+
import { __require as requireIsSymbol } from "./harmony170.mjs";
|
|
4
4
|
var toNumber_1;
|
|
5
5
|
var hasRequiredToNumber;
|
|
6
6
|
function requireToNumber() {
|
package/dist/harmony167.cjs
CHANGED
|
@@ -1,16 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
const assertIsNever = require("./harmony175.cjs");
|
|
4
|
+
const isCategoryProjectTypeMatch = (matcher) => "marketing" in matcher && typeof matcher.marketing === "function" && "classic" in matcher && typeof matcher.classic === "function";
|
|
5
|
+
const isPartialProjectTypeMatch = (matcher) => "otherwise" in matcher && typeof matcher.otherwise === "function";
|
|
6
|
+
const isFullProjectTypeMatch = (matcher) => !isCategoryProjectTypeMatch(matcher) && !isPartialProjectTypeMatch(matcher);
|
|
7
|
+
const callMatchFunction = (matcher, category, projectType) => {
|
|
8
|
+
if (isFullProjectTypeMatch(matcher)) {
|
|
9
|
+
return matcher[projectType]();
|
|
10
|
+
}
|
|
11
|
+
if (isPartialProjectTypeMatch(matcher)) {
|
|
12
|
+
return (matcher[projectType] || matcher.otherwise)();
|
|
13
|
+
}
|
|
14
|
+
if (isCategoryProjectTypeMatch(matcher)) {
|
|
15
|
+
return matcher[category]();
|
|
16
|
+
}
|
|
17
|
+
return false;
|
|
18
|
+
};
|
|
19
|
+
const canPerformActionByProjectType = (projectType, match) => {
|
|
20
|
+
switch (projectType) {
|
|
21
|
+
case void 0:
|
|
22
|
+
return false;
|
|
23
|
+
case "localization_files":
|
|
24
|
+
case "paged_documents":
|
|
25
|
+
case "content_integration":
|
|
26
|
+
return callMatchFunction(match, "classic", projectType);
|
|
27
|
+
case "marketing":
|
|
28
|
+
case "marketing_integrations":
|
|
29
|
+
return callMatchFunction(match, "marketing", projectType);
|
|
30
|
+
default:
|
|
31
|
+
return assertIsNever.assertIsNever(projectType);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.canPerformActionByProjectType = canPerformActionByProjectType;
|
|
16
35
|
//# sourceMappingURL=harmony167.cjs.map
|
package/dist/harmony167.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony167.cjs","sources":["../
|
|
1
|
+
{"version":3,"file":"harmony167.cjs","sources":["../src/features/permissions/utils/canPerformActionByProjectType.ts"],"sourcesContent":["import { assertIsNever } from '@utils/types/assertIsNever'\nimport type { ProjectType } from '../types'\n\ntype FullProjectTypeMatch = { [K in ProjectType]: () => boolean }\ntype PartialProjectTypeMatch = { [K in ProjectType]?: () => boolean } & { otherwise: () => boolean }\ntype CategoryProjectTypeMatch = { classic: () => boolean; marketing: () => boolean }\n\ntype ProjectTypeMatch = FullProjectTypeMatch | PartialProjectTypeMatch | CategoryProjectTypeMatch\n\nconst isCategoryProjectTypeMatch = (\n\tmatcher: ProjectTypeMatch,\n): matcher is CategoryProjectTypeMatch =>\n\t'marketing' in matcher &&\n\ttypeof matcher.marketing === 'function' &&\n\t'classic' in matcher &&\n\ttypeof matcher.classic === 'function'\n\nconst isPartialProjectTypeMatch = (matcher: ProjectTypeMatch): matcher is PartialProjectTypeMatch =>\n\t'otherwise' in matcher && typeof matcher.otherwise === 'function'\n\nconst isFullProjectTypeMatch = (matcher: ProjectTypeMatch): matcher is FullProjectTypeMatch =>\n\t!isCategoryProjectTypeMatch(matcher) && !isPartialProjectTypeMatch(matcher)\n\nconst callMatchFunction = (\n\tmatcher: ProjectTypeMatch,\n\tcategory: 'classic' | 'marketing',\n\tprojectType: ProjectType,\n): boolean => {\n\tif (isFullProjectTypeMatch(matcher)) {\n\t\treturn matcher[projectType]()\n\t}\n\n\tif (isPartialProjectTypeMatch(matcher)) {\n\t\treturn (matcher[projectType] || matcher.otherwise)()\n\t}\n\n\tif (isCategoryProjectTypeMatch(matcher)) {\n\t\treturn matcher[category]()\n\t}\n\n\treturn false\n}\n\nexport const canPerformActionByProjectType = (\n\tprojectType: ProjectType | undefined,\n\tmatch: ProjectTypeMatch,\n) => {\n\tswitch (projectType) {\n\t\tcase undefined:\n\t\t\treturn false\n\n\t\tcase 'localization_files':\n\t\tcase 'paged_documents':\n\t\tcase 'content_integration':\n\t\t\treturn callMatchFunction(match, 'classic', projectType)\n\n\t\tcase 'marketing':\n\t\tcase 'marketing_integrations':\n\t\t\treturn callMatchFunction(match, 'marketing', projectType)\n\n\t\tdefault:\n\t\t\treturn assertIsNever(projectType)\n\t}\n}\n"],"names":["assertIsNever"],"mappings":";;;AASA,MAAM,6BAA6B,CAClC,YAEA,eAAe,WACf,OAAO,QAAQ,cAAc,cAC7B,aAAa,WACb,OAAO,QAAQ,YAAY;AAE5B,MAAM,4BAA4B,CAAC,YAClC,eAAe,WAAW,OAAO,QAAQ,cAAc;AAExD,MAAM,yBAAyB,CAAC,YAC/B,CAAC,2BAA2B,OAAO,KAAK,CAAC,0BAA0B,OAAO;AAE3E,MAAM,oBAAoB,CACzB,SACA,UACA,gBACa;AACT,MAAA,uBAAuB,OAAO,GAAG;AAC7B,WAAA,QAAQ,WAAW,EAAE;AAAA,EAAA;AAGzB,MAAA,0BAA0B,OAAO,GAAG;AACvC,YAAQ,QAAQ,WAAW,KAAK,QAAQ,WAAW;AAAA,EAAA;AAGhD,MAAA,2BAA2B,OAAO,GAAG;AACjC,WAAA,QAAQ,QAAQ,EAAE;AAAA,EAAA;AAGnB,SAAA;AACR;AAEa,MAAA,gCAAgC,CAC5C,aACA,UACI;AACJ,UAAQ,aAAa;AAAA,IACpB,KAAK;AACG,aAAA;AAAA,IAER,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACG,aAAA,kBAAkB,OAAO,WAAW,WAAW;AAAA,IAEvD,KAAK;AAAA,IACL,KAAK;AACG,aAAA,kBAAkB,OAAO,aAAa,WAAW;AAAA,IAEzD;AACC,aAAOA,cAAAA,cAAc,WAAW;AAAA,EAAA;AAEnC;;"}
|
package/dist/harmony167.mjs
CHANGED
|
@@ -1,16 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { assertIsNever } from "./harmony175.mjs";
|
|
2
|
+
const isCategoryProjectTypeMatch = (matcher) => "marketing" in matcher && typeof matcher.marketing === "function" && "classic" in matcher && typeof matcher.classic === "function";
|
|
3
|
+
const isPartialProjectTypeMatch = (matcher) => "otherwise" in matcher && typeof matcher.otherwise === "function";
|
|
4
|
+
const isFullProjectTypeMatch = (matcher) => !isCategoryProjectTypeMatch(matcher) && !isPartialProjectTypeMatch(matcher);
|
|
5
|
+
const callMatchFunction = (matcher, category, projectType) => {
|
|
6
|
+
if (isFullProjectTypeMatch(matcher)) {
|
|
7
|
+
return matcher[projectType]();
|
|
8
|
+
}
|
|
9
|
+
if (isPartialProjectTypeMatch(matcher)) {
|
|
10
|
+
return (matcher[projectType] || matcher.otherwise)();
|
|
11
|
+
}
|
|
12
|
+
if (isCategoryProjectTypeMatch(matcher)) {
|
|
13
|
+
return matcher[category]();
|
|
14
|
+
}
|
|
15
|
+
return false;
|
|
16
|
+
};
|
|
17
|
+
const canPerformActionByProjectType = (projectType, match) => {
|
|
18
|
+
switch (projectType) {
|
|
19
|
+
case void 0:
|
|
20
|
+
return false;
|
|
21
|
+
case "localization_files":
|
|
22
|
+
case "paged_documents":
|
|
23
|
+
case "content_integration":
|
|
24
|
+
return callMatchFunction(match, "classic", projectType);
|
|
25
|
+
case "marketing":
|
|
26
|
+
case "marketing_integrations":
|
|
27
|
+
return callMatchFunction(match, "marketing", projectType);
|
|
28
|
+
default:
|
|
29
|
+
return assertIsNever(projectType);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
13
32
|
export {
|
|
14
|
-
|
|
33
|
+
canPerformActionByProjectType
|
|
15
34
|
};
|
|
16
35
|
//# sourceMappingURL=harmony167.mjs.map
|
package/dist/harmony167.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony167.mjs","sources":["../
|
|
1
|
+
{"version":3,"file":"harmony167.mjs","sources":["../src/features/permissions/utils/canPerformActionByProjectType.ts"],"sourcesContent":["import { assertIsNever } from '@utils/types/assertIsNever'\nimport type { ProjectType } from '../types'\n\ntype FullProjectTypeMatch = { [K in ProjectType]: () => boolean }\ntype PartialProjectTypeMatch = { [K in ProjectType]?: () => boolean } & { otherwise: () => boolean }\ntype CategoryProjectTypeMatch = { classic: () => boolean; marketing: () => boolean }\n\ntype ProjectTypeMatch = FullProjectTypeMatch | PartialProjectTypeMatch | CategoryProjectTypeMatch\n\nconst isCategoryProjectTypeMatch = (\n\tmatcher: ProjectTypeMatch,\n): matcher is CategoryProjectTypeMatch =>\n\t'marketing' in matcher &&\n\ttypeof matcher.marketing === 'function' &&\n\t'classic' in matcher &&\n\ttypeof matcher.classic === 'function'\n\nconst isPartialProjectTypeMatch = (matcher: ProjectTypeMatch): matcher is PartialProjectTypeMatch =>\n\t'otherwise' in matcher && typeof matcher.otherwise === 'function'\n\nconst isFullProjectTypeMatch = (matcher: ProjectTypeMatch): matcher is FullProjectTypeMatch =>\n\t!isCategoryProjectTypeMatch(matcher) && !isPartialProjectTypeMatch(matcher)\n\nconst callMatchFunction = (\n\tmatcher: ProjectTypeMatch,\n\tcategory: 'classic' | 'marketing',\n\tprojectType: ProjectType,\n): boolean => {\n\tif (isFullProjectTypeMatch(matcher)) {\n\t\treturn matcher[projectType]()\n\t}\n\n\tif (isPartialProjectTypeMatch(matcher)) {\n\t\treturn (matcher[projectType] || matcher.otherwise)()\n\t}\n\n\tif (isCategoryProjectTypeMatch(matcher)) {\n\t\treturn matcher[category]()\n\t}\n\n\treturn false\n}\n\nexport const canPerformActionByProjectType = (\n\tprojectType: ProjectType | undefined,\n\tmatch: ProjectTypeMatch,\n) => {\n\tswitch (projectType) {\n\t\tcase undefined:\n\t\t\treturn false\n\n\t\tcase 'localization_files':\n\t\tcase 'paged_documents':\n\t\tcase 'content_integration':\n\t\t\treturn callMatchFunction(match, 'classic', projectType)\n\n\t\tcase 'marketing':\n\t\tcase 'marketing_integrations':\n\t\t\treturn callMatchFunction(match, 'marketing', projectType)\n\n\t\tdefault:\n\t\t\treturn assertIsNever(projectType)\n\t}\n}\n"],"names":[],"mappings":";AASA,MAAM,6BAA6B,CAClC,YAEA,eAAe,WACf,OAAO,QAAQ,cAAc,cAC7B,aAAa,WACb,OAAO,QAAQ,YAAY;AAE5B,MAAM,4BAA4B,CAAC,YAClC,eAAe,WAAW,OAAO,QAAQ,cAAc;AAExD,MAAM,yBAAyB,CAAC,YAC/B,CAAC,2BAA2B,OAAO,KAAK,CAAC,0BAA0B,OAAO;AAE3E,MAAM,oBAAoB,CACzB,SACA,UACA,gBACa;AACT,MAAA,uBAAuB,OAAO,GAAG;AAC7B,WAAA,QAAQ,WAAW,EAAE;AAAA,EAAA;AAGzB,MAAA,0BAA0B,OAAO,GAAG;AACvC,YAAQ,QAAQ,WAAW,KAAK,QAAQ,WAAW;AAAA,EAAA;AAGhD,MAAA,2BAA2B,OAAO,GAAG;AACjC,WAAA,QAAQ,QAAQ,EAAE;AAAA,EAAA;AAGnB,SAAA;AACR;AAEa,MAAA,gCAAgC,CAC5C,aACA,UACI;AACJ,UAAQ,aAAa;AAAA,IACpB,KAAK;AACG,aAAA;AAAA,IAER,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACG,aAAA,kBAAkB,OAAO,WAAW,WAAW;AAAA,IAEvD,KAAK;AAAA,IACL,KAAK;AACG,aAAA,kBAAkB,OAAO,aAAa,WAAW;AAAA,IAEzD;AACC,aAAO,cAAc,WAAW;AAAA,EAAA;AAEnC;"}
|
package/dist/harmony168.cjs
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
function
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
_baseTrim = baseTrim;
|
|
15
|
-
return _baseTrim;
|
|
3
|
+
const _freeGlobal = require("./harmony171.cjs");
|
|
4
|
+
var _root;
|
|
5
|
+
var hasRequired_root;
|
|
6
|
+
function require_root() {
|
|
7
|
+
if (hasRequired_root) return _root;
|
|
8
|
+
hasRequired_root = 1;
|
|
9
|
+
var freeGlobal = _freeGlobal.__require();
|
|
10
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
11
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
|
12
|
+
_root = root;
|
|
13
|
+
return _root;
|
|
16
14
|
}
|
|
17
|
-
exports.__require =
|
|
15
|
+
exports.__require = require_root;
|
|
18
16
|
//# sourceMappingURL=harmony168.cjs.map
|
package/dist/harmony168.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony168.cjs","sources":["../node_modules/lodash/
|
|
1
|
+
{"version":3,"file":"harmony168.cjs","sources":["../node_modules/lodash/_root.js"],"sourcesContent":["var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,MAAI,aAAaA,YAAAA,UAAwB;AAGzC,MAAI,WAAW,OAAO,QAAQ,YAAY,QAAQ,KAAK,WAAW,UAAU;AAG5E,MAAI,OAAO,cAAc,YAAY,SAAS,aAAa,EAAG;AAE9D,UAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony168.mjs
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { __require as
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
function
|
|
5
|
-
if (
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
_baseTrim = baseTrim;
|
|
13
|
-
return _baseTrim;
|
|
1
|
+
import { __require as require_freeGlobal } from "./harmony171.mjs";
|
|
2
|
+
var _root;
|
|
3
|
+
var hasRequired_root;
|
|
4
|
+
function require_root() {
|
|
5
|
+
if (hasRequired_root) return _root;
|
|
6
|
+
hasRequired_root = 1;
|
|
7
|
+
var freeGlobal = require_freeGlobal();
|
|
8
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
9
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
|
10
|
+
_root = root;
|
|
11
|
+
return _root;
|
|
14
12
|
}
|
|
15
13
|
export {
|
|
16
|
-
|
|
14
|
+
require_root as __require
|
|
17
15
|
};
|
|
18
16
|
//# sourceMappingURL=harmony168.mjs.map
|
package/dist/harmony168.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony168.mjs","sources":["../node_modules/lodash/
|
|
1
|
+
{"version":3,"file":"harmony168.mjs","sources":["../node_modules/lodash/_root.js"],"sourcesContent":["var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,aAAaA,mBAAwB;AAGzC,MAAI,WAAW,OAAO,QAAQ,YAAY,QAAQ,KAAK,WAAW,UAAU;AAG5E,MAAI,OAAO,cAAc,YAAY,SAAS,aAAa,EAAG;AAE9D,UAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony169.cjs
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return typeof value == "symbol" || isObjectLike$1(value) && baseGetTag(value) == symbolTag;
|
|
3
|
+
const _trimmedEndIndex = require("./harmony172.cjs");
|
|
4
|
+
var _baseTrim;
|
|
5
|
+
var hasRequired_baseTrim;
|
|
6
|
+
function require_baseTrim() {
|
|
7
|
+
if (hasRequired_baseTrim) return _baseTrim;
|
|
8
|
+
hasRequired_baseTrim = 1;
|
|
9
|
+
var trimmedEndIndex = _trimmedEndIndex.__require();
|
|
10
|
+
var reTrimStart = /^\s+/;
|
|
11
|
+
function baseTrim(string) {
|
|
12
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
14
13
|
}
|
|
15
|
-
|
|
16
|
-
return
|
|
14
|
+
_baseTrim = baseTrim;
|
|
15
|
+
return _baseTrim;
|
|
17
16
|
}
|
|
18
|
-
exports.__require =
|
|
17
|
+
exports.__require = require_baseTrim;
|
|
19
18
|
//# sourceMappingURL=harmony169.cjs.map
|
package/dist/harmony169.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony169.cjs","sources":["../node_modules/lodash/
|
|
1
|
+
{"version":3,"file":"harmony169.cjs","sources":["../node_modules/lodash/_baseTrim.js"],"sourcesContent":["var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,MAAI,kBAAkBA,iBAAAA,UAA6B;AAGnD,MAAI,cAAc;AASlB,WAAS,SAAS,QAAQ;AACxB,WAAO,SACH,OAAO,MAAM,GAAG,gBAAgB,MAAM,IAAI,CAAC,EAAE,QAAQ,aAAa,EAAE,IACpE;AAAA,EACN;AAEA,cAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony169.mjs
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { __require as
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
|
1
|
+
import { __require as require_trimmedEndIndex } from "./harmony172.mjs";
|
|
2
|
+
var _baseTrim;
|
|
3
|
+
var hasRequired_baseTrim;
|
|
4
|
+
function require_baseTrim() {
|
|
5
|
+
if (hasRequired_baseTrim) return _baseTrim;
|
|
6
|
+
hasRequired_baseTrim = 1;
|
|
7
|
+
var trimmedEndIndex = require_trimmedEndIndex();
|
|
8
|
+
var reTrimStart = /^\s+/;
|
|
9
|
+
function baseTrim(string) {
|
|
10
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
12
11
|
}
|
|
13
|
-
|
|
14
|
-
return
|
|
12
|
+
_baseTrim = baseTrim;
|
|
13
|
+
return _baseTrim;
|
|
15
14
|
}
|
|
16
15
|
export {
|
|
17
|
-
|
|
16
|
+
require_baseTrim as __require
|
|
18
17
|
};
|
|
19
18
|
//# sourceMappingURL=harmony169.mjs.map
|
package/dist/harmony169.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony169.mjs","sources":["../node_modules/lodash/
|
|
1
|
+
{"version":3,"file":"harmony169.mjs","sources":["../node_modules/lodash/_baseTrim.js"],"sourcesContent":["var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,kBAAkBA,wBAA6B;AAGnD,MAAI,cAAc;AASlB,WAAS,SAAS,QAAQ;AACxB,WAAO,SACH,OAAO,MAAM,GAAG,gBAAgB,MAAM,IAAI,CAAC,EAAE,QAAQ,aAAa,EAAE,IACpE;AAAA,EACN;AAEA,cAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony17.cjs
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const createHeaderBuilderMiddleware = require("./harmony22.cjs");
|
|
4
4
|
const jwtTokenPayload = require("./harmony20.cjs");
|
|
5
5
|
const UnauthorizedError = require("./harmony19.cjs");
|
|
6
|
-
const NewJwtIssuedEvent = require("./
|
|
6
|
+
const NewJwtIssuedEvent = require("./harmony111.cjs");
|
|
7
7
|
function JwtAuthHeaderBuilderMiddleware(props) {
|
|
8
8
|
return createHeaderBuilderMiddleware.createHeaderBuilderMiddleware(async (builder) => {
|
|
9
9
|
var _a, _b;
|
package/dist/harmony17.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createHeaderBuilderMiddleware } from "./harmony22.mjs";
|
|
2
2
|
import { parseJwtTokenPayload } from "./harmony20.mjs";
|
|
3
3
|
import { UnauthorizedError } from "./harmony19.mjs";
|
|
4
|
-
import { NewJwtIssuedEvent } from "./
|
|
4
|
+
import { NewJwtIssuedEvent } from "./harmony111.mjs";
|
|
5
5
|
function JwtAuthHeaderBuilderMiddleware(props) {
|
|
6
6
|
return createHeaderBuilderMiddleware(async (builder) => {
|
|
7
7
|
var _a, _b;
|
package/dist/harmony170.cjs
CHANGED
|
@@ -1,35 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
|
|
3
|
+
const _baseGetTag = require("./harmony173.cjs");
|
|
4
|
+
const isObjectLike = require("./harmony174.cjs");
|
|
5
|
+
var isSymbol_1;
|
|
6
|
+
var hasRequiredIsSymbol;
|
|
7
|
+
function requireIsSymbol() {
|
|
8
|
+
if (hasRequiredIsSymbol) return isSymbol_1;
|
|
9
|
+
hasRequiredIsSymbol = 1;
|
|
10
|
+
var baseGetTag = _baseGetTag.__require(), isObjectLike$1 = isObjectLike.__require();
|
|
11
|
+
var symbolTag = "[object Symbol]";
|
|
12
|
+
function isSymbol(value) {
|
|
13
|
+
return typeof value == "symbol" || isObjectLike$1(value) && baseGetTag(value) == symbolTag;
|
|
10
14
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return matcher[category]();
|
|
16
|
-
}
|
|
17
|
-
return false;
|
|
18
|
-
};
|
|
19
|
-
const canPerformActionByProjectType = (projectType, match) => {
|
|
20
|
-
switch (projectType) {
|
|
21
|
-
case void 0:
|
|
22
|
-
return false;
|
|
23
|
-
case "localization_files":
|
|
24
|
-
case "paged_documents":
|
|
25
|
-
case "content_integration":
|
|
26
|
-
return callMatchFunction(match, "classic", projectType);
|
|
27
|
-
case "marketing":
|
|
28
|
-
case "marketing_integrations":
|
|
29
|
-
return callMatchFunction(match, "marketing", projectType);
|
|
30
|
-
default:
|
|
31
|
-
return assertIsNever.assertIsNever(projectType);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
exports.canPerformActionByProjectType = canPerformActionByProjectType;
|
|
15
|
+
isSymbol_1 = isSymbol;
|
|
16
|
+
return isSymbol_1;
|
|
17
|
+
}
|
|
18
|
+
exports.__require = requireIsSymbol;
|
|
35
19
|
//# sourceMappingURL=harmony170.cjs.map
|
package/dist/harmony170.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony170.cjs","sources":["../
|
|
1
|
+
{"version":3,"file":"harmony170.cjs","sources":["../node_modules/lodash/isSymbol.js"],"sourcesContent":["var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n"],"names":["require$$0","isObjectLike","require$$1"],"mappings":";;;;;;;;;AAAA,MAAI,aAAaA,YAAAA,UAAwB,GACrCC,iBAAeC,aAAAA,UAAyB;AAG5C,MAAI,YAAY;AAmBhB,WAAS,SAAS,OAAO;AACvB,WAAO,OAAO,SAAS,YACpBD,eAAa,KAAK,KAAK,WAAW,KAAK,KAAK;AAAA,EACjD;AAEA,eAAiB;;;;","x_google_ignoreList":[0]}
|