@overmap-ai/core 1.0.38-projects-licensing.1 → 1.0.38
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/overmap-core.js +190 -466
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +190 -466
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +1 -2
- package/dist/sdk/services/MainService.d.ts +1 -2
- package/dist/sdk/services/ProjectService.d.ts +3 -2
- package/dist/sdk/services/index.d.ts +0 -1
- package/dist/store/slices/categorySlice.d.ts +0 -1
- package/dist/store/slices/index.d.ts +0 -1
- package/dist/store/slices/issueSlice.d.ts +4 -2
- package/dist/store/slices/organizationSlice.d.ts +1 -5
- package/dist/store/slices/projectFileSlice.d.ts +0 -1
- package/dist/store/slices/projectSlice.d.ts +1 -7
- package/dist/store/slices/settingsSlice.d.ts +1 -7
- package/dist/store/slices/workspaceSlice.d.ts +0 -1
- package/dist/store/store.d.ts +1 -4
- package/dist/typings/models/base.d.ts +0 -4
- package/dist/typings/models/index.d.ts +0 -1
- package/dist/typings/models/organizations.d.ts +0 -2
- package/dist/typings/models/projects.d.ts +0 -2
- package/package.json +2 -2
- package/dist/sdk/services/LicenseService.d.ts +0 -10
- package/dist/store/slices/licenseSlice.d.ts +0 -25
- package/dist/typings/models/license.d.ts +0 -24
|
@@ -622,15 +622,15 @@ var __publicField = (obj, key, value) => {
|
|
|
622
622
|
};
|
|
623
623
|
const migrations = [initialVersioning, signOut, signOut, createOutboxState];
|
|
624
624
|
const manifest = Object.fromEntries(migrations.map((migration2, i) => [i, wrapMigration(migration2)]));
|
|
625
|
-
const initialState$
|
|
625
|
+
const initialState$l = {
|
|
626
626
|
accessToken: "",
|
|
627
627
|
refreshToken: "",
|
|
628
628
|
isLoggedIn: false
|
|
629
629
|
};
|
|
630
630
|
const authSlice = toolkit.createSlice({
|
|
631
631
|
name: "auth",
|
|
632
|
-
initialState: initialState$
|
|
633
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
632
|
+
initialState: initialState$l,
|
|
633
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$l)),
|
|
634
634
|
reducers: {
|
|
635
635
|
setTokens: (state, action) => {
|
|
636
636
|
state.accessToken = action.payload.accessToken;
|
|
@@ -1334,7 +1334,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1334
1334
|
return getLocalDateString(date);
|
|
1335
1335
|
return relative.format(days, "days");
|
|
1336
1336
|
});
|
|
1337
|
-
const initialState$
|
|
1337
|
+
const initialState$k = {
|
|
1338
1338
|
categories: {},
|
|
1339
1339
|
usedCategoryColors: [],
|
|
1340
1340
|
categoryVisibility: {
|
|
@@ -1344,8 +1344,8 @@ var __publicField = (obj, key, value) => {
|
|
|
1344
1344
|
};
|
|
1345
1345
|
const categorySlice = toolkit.createSlice({
|
|
1346
1346
|
name: "categories",
|
|
1347
|
-
initialState: initialState$
|
|
1348
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
1347
|
+
initialState: initialState$k,
|
|
1348
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$k)),
|
|
1349
1349
|
reducers: {
|
|
1350
1350
|
setCategories: (state, action) => {
|
|
1351
1351
|
if (!Array.isArray(action.payload))
|
|
@@ -1478,13 +1478,13 @@ var __publicField = (obj, key, value) => {
|
|
|
1478
1478
|
return hiddenCategoryCount;
|
|
1479
1479
|
};
|
|
1480
1480
|
const categoryReducer = categorySlice.reducer;
|
|
1481
|
-
const initialState$
|
|
1481
|
+
const initialState$j = {
|
|
1482
1482
|
components: {}
|
|
1483
1483
|
};
|
|
1484
1484
|
const componentSlice = toolkit.createSlice({
|
|
1485
1485
|
name: "components",
|
|
1486
|
-
initialState: initialState$
|
|
1487
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
1486
|
+
initialState: initialState$j,
|
|
1487
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$j)),
|
|
1488
1488
|
reducers: {
|
|
1489
1489
|
addComponent: (state, action) => {
|
|
1490
1490
|
state.components[action.payload.offline_id] = action.payload;
|
|
@@ -1596,13 +1596,13 @@ var __publicField = (obj, key, value) => {
|
|
|
1596
1596
|
removeAllComponentsOfType
|
|
1597
1597
|
} = componentSlice.actions;
|
|
1598
1598
|
const componentReducer = componentSlice.reducer;
|
|
1599
|
-
const initialState$
|
|
1599
|
+
const initialState$i = {
|
|
1600
1600
|
completionsByComponentId: {}
|
|
1601
1601
|
};
|
|
1602
1602
|
const componentStageCompletionSlice = toolkit.createSlice({
|
|
1603
1603
|
name: "componentStageCompletions",
|
|
1604
|
-
initialState: initialState$
|
|
1605
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
1604
|
+
initialState: initialState$i,
|
|
1605
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$i)),
|
|
1606
1606
|
reducers: {
|
|
1607
1607
|
addStageCompletion: (state, action) => {
|
|
1608
1608
|
let stageToCompletionDateMapping = state.completionsByComponentId[action.payload.component];
|
|
@@ -1653,13 +1653,13 @@ var __publicField = (obj, key, value) => {
|
|
|
1653
1653
|
return Object.keys(state.componentStageCompletionReducer.completionsByComponentId[component.offline_id] ?? {});
|
|
1654
1654
|
};
|
|
1655
1655
|
const componentStageCompletionReducer = componentStageCompletionSlice.reducer;
|
|
1656
|
-
const initialState$
|
|
1656
|
+
const initialState$h = {
|
|
1657
1657
|
stages: {}
|
|
1658
1658
|
};
|
|
1659
1659
|
const componentStageSlice = toolkit.createSlice({
|
|
1660
1660
|
name: "componentStages",
|
|
1661
|
-
initialState: initialState$
|
|
1662
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
1661
|
+
initialState: initialState$h,
|
|
1662
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$h)),
|
|
1663
1663
|
reducers: {
|
|
1664
1664
|
addStages: (state, action) => {
|
|
1665
1665
|
Object.assign(state.stages, toOfflineIdRecord(action.payload));
|
|
@@ -1719,14 +1719,14 @@ var __publicField = (obj, key, value) => {
|
|
|
1719
1719
|
);
|
|
1720
1720
|
const { addStages, updateStages, removeStages } = componentStageSlice.actions;
|
|
1721
1721
|
const componentStageReducer = componentStageSlice.reducer;
|
|
1722
|
-
const initialState$
|
|
1722
|
+
const initialState$g = {
|
|
1723
1723
|
componentTypes: {},
|
|
1724
1724
|
hiddenComponentTypeIds: {}
|
|
1725
1725
|
};
|
|
1726
1726
|
const componentTypeSlice = toolkit.createSlice({
|
|
1727
1727
|
name: "componentTypes",
|
|
1728
|
-
initialState: initialState$
|
|
1729
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
1728
|
+
initialState: initialState$g,
|
|
1729
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$g)),
|
|
1730
1730
|
reducers: {
|
|
1731
1731
|
addComponentType: (state, action) => {
|
|
1732
1732
|
state.componentTypes[action.payload.offline_id] = action.payload;
|
|
@@ -1785,13 +1785,13 @@ var __publicField = (obj, key, value) => {
|
|
|
1785
1785
|
const selectHiddenComponentTypeIds = (state) => state.componentTypeReducer.hiddenComponentTypeIds;
|
|
1786
1786
|
const { addComponentType, setComponentTypes, toggleComponentTypeVisibility, deleteComponentType } = componentTypeSlice.actions;
|
|
1787
1787
|
const componentTypeReducer = componentTypeSlice.reducer;
|
|
1788
|
-
const initialState$
|
|
1788
|
+
const initialState$f = {
|
|
1789
1789
|
workspaces: {},
|
|
1790
1790
|
activeWorkspaceId: null
|
|
1791
1791
|
};
|
|
1792
1792
|
const workspaceSlice = toolkit.createSlice({
|
|
1793
1793
|
name: "workspace",
|
|
1794
|
-
initialState: initialState$
|
|
1794
|
+
initialState: initialState$f,
|
|
1795
1795
|
// The `reducers` field lets us define reducers and generate associated actions
|
|
1796
1796
|
reducers: {
|
|
1797
1797
|
setWorkspaces: (state, action) => {
|
|
@@ -1848,20 +1848,21 @@ var __publicField = (obj, key, value) => {
|
|
|
1848
1848
|
);
|
|
1849
1849
|
const workspaceReducer = workspaceSlice.reducer;
|
|
1850
1850
|
const maxRecentIssues = 10;
|
|
1851
|
-
const initialState$
|
|
1851
|
+
const initialState$e = {
|
|
1852
1852
|
issues: {},
|
|
1853
1853
|
attachments: {},
|
|
1854
1854
|
comments: {},
|
|
1855
1855
|
visibleStatuses: [IssueStatus.BACKLOG, IssueStatus.SELECTED],
|
|
1856
|
+
isFetchingInitialData: false,
|
|
1856
1857
|
visibleUserIds: null,
|
|
1857
1858
|
recentIssueIds: [],
|
|
1858
1859
|
activeIssueId: null
|
|
1859
1860
|
};
|
|
1860
1861
|
const issueSlice = toolkit.createSlice({
|
|
1861
1862
|
name: "issues",
|
|
1862
|
-
initialState: initialState$
|
|
1863
|
+
initialState: initialState$e,
|
|
1863
1864
|
extraReducers: (builder) => builder.addCase("RESET", (state) => {
|
|
1864
|
-
Object.assign(state, initialState$
|
|
1865
|
+
Object.assign(state, initialState$e);
|
|
1865
1866
|
}),
|
|
1866
1867
|
reducers: {
|
|
1867
1868
|
setIssues: (state, action) => {
|
|
@@ -1940,6 +1941,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1940
1941
|
setVisibleStatuses: (state, action) => {
|
|
1941
1942
|
state.visibleStatuses = action.payload;
|
|
1942
1943
|
},
|
|
1944
|
+
setIsFetchingInitialData: (state, action) => {
|
|
1945
|
+
state.isFetchingInitialData = action.payload;
|
|
1946
|
+
},
|
|
1943
1947
|
setVisibleUserIds: (state, action) => {
|
|
1944
1948
|
state.visibleUserIds = [...new Set(action.payload)];
|
|
1945
1949
|
},
|
|
@@ -1998,6 +2002,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1998
2002
|
resetRecentIssues,
|
|
1999
2003
|
setActiveIssueId,
|
|
2000
2004
|
setAttachments,
|
|
2005
|
+
setIsFetchingInitialData,
|
|
2001
2006
|
setIssueComments,
|
|
2002
2007
|
setIssues,
|
|
2003
2008
|
setVisibleStatuses,
|
|
@@ -2096,6 +2101,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2096
2101
|
return mapping[id];
|
|
2097
2102
|
})
|
|
2098
2103
|
);
|
|
2104
|
+
const selectIsFetchingInitialData = (state) => state.issueReducer.isFetchingInitialData;
|
|
2099
2105
|
const selectAllAttachments = toolkit.createSelector([selectIssueAttachmentMapping], (mapping) => Object.values(mapping));
|
|
2100
2106
|
const searchIssues = restructureCreateSelectorWithArgs(
|
|
2101
2107
|
toolkit.createSelector(
|
|
@@ -2187,15 +2193,15 @@ var __publicField = (obj, key, value) => {
|
|
|
2187
2193
|
}
|
|
2188
2194
|
);
|
|
2189
2195
|
const issueReducer = issueSlice.reducer;
|
|
2190
|
-
const initialState$
|
|
2196
|
+
const initialState$d = {
|
|
2191
2197
|
s3Urls: {}
|
|
2192
2198
|
};
|
|
2193
2199
|
const msPerHour = 1e3 * 60 * 60;
|
|
2194
2200
|
const msPerWeek = msPerHour * 24 * 7;
|
|
2195
2201
|
const fileSlice = toolkit.createSlice({
|
|
2196
2202
|
name: "file",
|
|
2197
|
-
initialState: initialState$
|
|
2198
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
2203
|
+
initialState: initialState$d,
|
|
2204
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$d)),
|
|
2199
2205
|
reducers: {
|
|
2200
2206
|
setUploadUrl: (state, action) => {
|
|
2201
2207
|
const { url, fields, sha1 } = action.payload;
|
|
@@ -2222,7 +2228,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2222
2228
|
return url;
|
|
2223
2229
|
};
|
|
2224
2230
|
const fileReducer = fileSlice.reducer;
|
|
2225
|
-
const initialState$
|
|
2231
|
+
const initialState$c = {
|
|
2226
2232
|
// TODO: Change first MapStyle.SATELLITE to MaptStyle.None when project creation map is fixed
|
|
2227
2233
|
mapStyle: MapStyle.SATELLITE,
|
|
2228
2234
|
showTooltips: false,
|
|
@@ -2230,8 +2236,8 @@ var __publicField = (obj, key, value) => {
|
|
|
2230
2236
|
};
|
|
2231
2237
|
const mapSlice = toolkit.createSlice({
|
|
2232
2238
|
name: "map",
|
|
2233
|
-
initialState: initialState$
|
|
2234
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
2239
|
+
initialState: initialState$c,
|
|
2240
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$c)),
|
|
2235
2241
|
reducers: {
|
|
2236
2242
|
setMapStyle: (state, action) => {
|
|
2237
2243
|
state.mapStyle = action.payload;
|
|
@@ -2273,23 +2279,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2273
2279
|
VerificationCodeType2[VerificationCodeType2["RESET_PASSWORD"] = 10] = "RESET_PASSWORD";
|
|
2274
2280
|
return VerificationCodeType2;
|
|
2275
2281
|
})(VerificationCodeType || {});
|
|
2276
|
-
|
|
2277
|
-
PaddleCheckoutEvent2["COMPLETED"] = "checkout.completed";
|
|
2278
|
-
PaddleCheckoutEvent2["CLOSED"] = "checkout.closed";
|
|
2279
|
-
return PaddleCheckoutEvent2;
|
|
2280
|
-
})(PaddleCheckoutEvent || {});
|
|
2281
|
-
var LicenseLevel = /* @__PURE__ */ ((LicenseLevel2) => {
|
|
2282
|
-
LicenseLevel2[LicenseLevel2["PRO"] = 0] = "PRO";
|
|
2283
|
-
return LicenseLevel2;
|
|
2284
|
-
})(LicenseLevel || {});
|
|
2285
|
-
var LicenseStatus = /* @__PURE__ */ ((LicenseStatus2) => {
|
|
2286
|
-
LicenseStatus2[LicenseStatus2["ACTIVE"] = 0] = "ACTIVE";
|
|
2287
|
-
LicenseStatus2[LicenseStatus2["PAUSED"] = 2] = "PAUSED";
|
|
2288
|
-
LicenseStatus2[LicenseStatus2["CANCELLED"] = 4] = "CANCELLED";
|
|
2289
|
-
LicenseStatus2[LicenseStatus2["INACTIVE"] = 6] = "INACTIVE";
|
|
2290
|
-
return LicenseStatus2;
|
|
2291
|
-
})(LicenseStatus || {});
|
|
2292
|
-
const initialState$c = {
|
|
2282
|
+
const initialState$b = {
|
|
2293
2283
|
users: {},
|
|
2294
2284
|
currentUser: {
|
|
2295
2285
|
id: 0,
|
|
@@ -2300,8 +2290,8 @@ var __publicField = (obj, key, value) => {
|
|
|
2300
2290
|
};
|
|
2301
2291
|
const userSlice = toolkit.createSlice({
|
|
2302
2292
|
name: "users",
|
|
2303
|
-
initialState: initialState$
|
|
2304
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
2293
|
+
initialState: initialState$b,
|
|
2294
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$b)),
|
|
2305
2295
|
reducers: {
|
|
2306
2296
|
setUsers: (state, action) => {
|
|
2307
2297
|
const usersMapping = {};
|
|
@@ -2363,13 +2353,13 @@ var __publicField = (obj, key, value) => {
|
|
|
2363
2353
|
const selectUsersAsMapping = (state) => state.userReducer.users;
|
|
2364
2354
|
const selectFavouriteProjects = (state) => state.userReducer.currentUser.profile.favourite_project_ids;
|
|
2365
2355
|
const userReducer = userSlice.reducer;
|
|
2366
|
-
const initialState$
|
|
2356
|
+
const initialState$a = {
|
|
2367
2357
|
organizationAccesses: {}
|
|
2368
2358
|
};
|
|
2369
2359
|
const organizationAccessSlice = toolkit.createSlice({
|
|
2370
2360
|
name: "organizationAccess",
|
|
2371
|
-
initialState: initialState$
|
|
2372
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
2361
|
+
initialState: initialState$a,
|
|
2362
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$a)),
|
|
2373
2363
|
reducers: {
|
|
2374
2364
|
setOrganizationAccesses: (state, action) => {
|
|
2375
2365
|
if (!Array.isArray(action.payload))
|
|
@@ -2432,13 +2422,151 @@ var __publicField = (obj, key, value) => {
|
|
|
2432
2422
|
return organizationAccesses;
|
|
2433
2423
|
};
|
|
2434
2424
|
const organizationAccessReducer = organizationAccessSlice.reducer;
|
|
2435
|
-
const initialState$
|
|
2425
|
+
const initialState$9 = {
|
|
2426
|
+
organizations: {},
|
|
2427
|
+
activeOrganizationId: null
|
|
2428
|
+
};
|
|
2429
|
+
const organizationSlice = toolkit.createSlice({
|
|
2430
|
+
name: "organizations",
|
|
2431
|
+
initialState: initialState$9,
|
|
2432
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$9)),
|
|
2433
|
+
reducers: {
|
|
2434
|
+
setOrganizations: (state, action) => {
|
|
2435
|
+
for (const org of action.payload) {
|
|
2436
|
+
state.organizations[org.id] = org;
|
|
2437
|
+
}
|
|
2438
|
+
},
|
|
2439
|
+
updateActiveOrganization: (state, action) => {
|
|
2440
|
+
if (!state.activeOrganizationId) {
|
|
2441
|
+
throw new Error("Cannot update name of active organization. Active organization ID does not exist");
|
|
2442
|
+
}
|
|
2443
|
+
if (state.activeOrganizationId !== action.payload.id) {
|
|
2444
|
+
throw new Error("Tried updating active organization with different organization");
|
|
2445
|
+
}
|
|
2446
|
+
state.organizations[state.activeOrganizationId] = action.payload;
|
|
2447
|
+
},
|
|
2448
|
+
setActiveOrganizationId: (state, action) => {
|
|
2449
|
+
state.activeOrganizationId = action.payload;
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2452
|
+
});
|
|
2453
|
+
const { setOrganizations, setActiveOrganizationId, updateActiveOrganization } = organizationSlice.actions;
|
|
2454
|
+
const selectActiveOrganizationId = (state) => {
|
|
2455
|
+
return state.organizationReducer.activeOrganizationId;
|
|
2456
|
+
};
|
|
2457
|
+
const selectOrganizations = (state) => {
|
|
2458
|
+
return Object.values(state.organizationReducer.organizations);
|
|
2459
|
+
};
|
|
2460
|
+
const selectOrganizationsWithAccess = toolkit.createSelector(
|
|
2461
|
+
[selectOrganizations],
|
|
2462
|
+
(organizations) => Object.values(organizations).filter((organization) => organization.has_access)
|
|
2463
|
+
);
|
|
2464
|
+
const selectActiveOrganization = (state) => {
|
|
2465
|
+
const id = selectActiveOrganizationId(state);
|
|
2466
|
+
if (!id) {
|
|
2467
|
+
return null;
|
|
2468
|
+
}
|
|
2469
|
+
const organization = state.organizationReducer.organizations[id];
|
|
2470
|
+
if (!organization) {
|
|
2471
|
+
return null;
|
|
2472
|
+
}
|
|
2473
|
+
return organization;
|
|
2474
|
+
};
|
|
2475
|
+
const selectOrganizationUsersIds = toolkit.createSelector(
|
|
2476
|
+
[selectOrganizationAccesses],
|
|
2477
|
+
(organizationAccesses) => Object.values(organizationAccesses).map((organizationAccess) => organizationAccess.user)
|
|
2478
|
+
);
|
|
2479
|
+
const selectOrganizationUsersAsMapping = toolkit.createSelector(
|
|
2480
|
+
[selectOrganizationUsersIds, selectUsersAsMapping],
|
|
2481
|
+
(organizationUserIds, users) => organizationUserIds.reduce((accum, userId) => ({ ...accum, [userId]: users[userId] }), {})
|
|
2482
|
+
);
|
|
2483
|
+
const selectSortedOrganizationUsers = toolkit.createSelector(
|
|
2484
|
+
[selectCurrentUser, selectOrganizationUsersAsMapping, selectOrganizationAccessUserMapping],
|
|
2485
|
+
(currentUser, userMapping, organizationAccessMapping) => {
|
|
2486
|
+
return Object.values(userMapping).sort((userA, userB) => {
|
|
2487
|
+
if (userA.id === currentUser.id) {
|
|
2488
|
+
return -1;
|
|
2489
|
+
} else if (userB.id === currentUser.id) {
|
|
2490
|
+
return 1;
|
|
2491
|
+
}
|
|
2492
|
+
const organizationAccessesA = organizationAccessMapping[userA.id];
|
|
2493
|
+
const organizationAccessesB = organizationAccessMapping[userB.id];
|
|
2494
|
+
if ((organizationAccessesA == null ? void 0 : organizationAccessesA.access_level) === (organizationAccessesB == null ? void 0 : organizationAccessesB.access_level)) {
|
|
2495
|
+
return userA.username.localeCompare(userB.username);
|
|
2496
|
+
}
|
|
2497
|
+
if ((organizationAccessesA == null ? void 0 : organizationAccessesA.access_level) === OrganizationAccessLevel.ADMIN) {
|
|
2498
|
+
return -1;
|
|
2499
|
+
}
|
|
2500
|
+
return 1;
|
|
2501
|
+
});
|
|
2502
|
+
}
|
|
2503
|
+
);
|
|
2504
|
+
const selectOrganization = (id) => (state) => {
|
|
2505
|
+
return state.organizationReducer.organizations[id];
|
|
2506
|
+
};
|
|
2507
|
+
const organizationReducer = organizationSlice.reducer;
|
|
2508
|
+
const createOfflineAction = (request2, baseUrl) => {
|
|
2509
|
+
const requestWithUuid = request2.uuid ? request2 : { ...request2, uuid: uuid.v4() };
|
|
2510
|
+
return {
|
|
2511
|
+
payload: requestWithUuid,
|
|
2512
|
+
type: "",
|
|
2513
|
+
meta: {
|
|
2514
|
+
offline: {
|
|
2515
|
+
effect: {
|
|
2516
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2517
|
+
request: requestWithUuid,
|
|
2518
|
+
BASE_URL: baseUrl
|
|
2519
|
+
}
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
};
|
|
2523
|
+
};
|
|
2524
|
+
const initialState$8 = {
|
|
2525
|
+
deletedRequests: [],
|
|
2526
|
+
latestRetryTime: 0
|
|
2527
|
+
};
|
|
2528
|
+
const outboxSlice = toolkit.createSlice({
|
|
2529
|
+
name: "outbox",
|
|
2530
|
+
initialState: initialState$8,
|
|
2531
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$8)),
|
|
2532
|
+
reducers: {
|
|
2533
|
+
// enqueueActions is a reducer that does nothing but enqueue API request to the Redux Offline outbox
|
|
2534
|
+
// Whenever an issue is being created, a reducer addIssue() is responsible for adding it to the offline store
|
|
2535
|
+
// Then this reducer enqueueRequest() is responsible for adding the actual request data to the outbox
|
|
2536
|
+
enqueueRequest: {
|
|
2537
|
+
reducer: (state, _action) => {
|
|
2538
|
+
return state;
|
|
2539
|
+
},
|
|
2540
|
+
prepare: (payload) => {
|
|
2541
|
+
console.debug("Preparing to enqueue request", payload);
|
|
2542
|
+
const { BASE_URL, ...rest } = payload;
|
|
2543
|
+
return createOfflineAction(rest, BASE_URL);
|
|
2544
|
+
}
|
|
2545
|
+
},
|
|
2546
|
+
markForDeletion(state, action) {
|
|
2547
|
+
state.deletedRequests.push(action.payload);
|
|
2548
|
+
},
|
|
2549
|
+
markAsDeleted(state, action) {
|
|
2550
|
+
const index2 = state.deletedRequests.indexOf(action.payload);
|
|
2551
|
+
if (index2 !== -1)
|
|
2552
|
+
state.deletedRequests.splice(index2, 1);
|
|
2553
|
+
},
|
|
2554
|
+
_setLatestRetryTime: (state, action) => {
|
|
2555
|
+
state.latestRetryTime = action.payload;
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2558
|
+
});
|
|
2559
|
+
const selectDeletedRequests = (state) => state.outboxReducer.deletedRequests;
|
|
2560
|
+
const selectLatestRetryTime = (state) => state.outboxReducer.latestRetryTime;
|
|
2561
|
+
const { enqueueRequest, markForDeletion, markAsDeleted, _setLatestRetryTime } = outboxSlice.actions;
|
|
2562
|
+
const outboxReducer = outboxSlice.reducer;
|
|
2563
|
+
const initialState$7 = {
|
|
2436
2564
|
projectAccesses: {}
|
|
2437
2565
|
};
|
|
2438
2566
|
const projectAccessSlice = toolkit.createSlice({
|
|
2439
2567
|
name: "projectAccess",
|
|
2440
|
-
initialState: initialState$
|
|
2441
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
2568
|
+
initialState: initialState$7,
|
|
2569
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$7)),
|
|
2442
2570
|
reducers: {
|
|
2443
2571
|
setProjectAccesses: (state, action) => {
|
|
2444
2572
|
if (!Array.isArray(action.payload))
|
|
@@ -2506,7 +2634,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2506
2634
|
return projectAccesses;
|
|
2507
2635
|
};
|
|
2508
2636
|
const projectAccessReducer = projectAccessSlice.reducer;
|
|
2509
|
-
const initialState$
|
|
2637
|
+
const initialState$6 = {
|
|
2510
2638
|
projects: {},
|
|
2511
2639
|
activeProjectId: null,
|
|
2512
2640
|
recentProjectIds: [],
|
|
@@ -2515,7 +2643,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2515
2643
|
};
|
|
2516
2644
|
const projectSlice = toolkit.createSlice({
|
|
2517
2645
|
name: "projects",
|
|
2518
|
-
initialState: initialState$
|
|
2646
|
+
initialState: initialState$6,
|
|
2519
2647
|
reducers: {
|
|
2520
2648
|
setProjects: (state, action) => {
|
|
2521
2649
|
const projectsMap = {};
|
|
@@ -2561,28 +2689,6 @@ var __publicField = (obj, key, value) => {
|
|
|
2561
2689
|
} else {
|
|
2562
2690
|
throw new Error("Accept project invite: user is not in this project");
|
|
2563
2691
|
}
|
|
2564
|
-
},
|
|
2565
|
-
updateActiveProjectIssuesCount: (state, action) => {
|
|
2566
|
-
if (state.activeProjectId && state.activeProjectId in state.projects) {
|
|
2567
|
-
if (!state.projects[state.activeProjectId].issues_count) {
|
|
2568
|
-
state.projects[state.activeProjectId].issues_count = action.payload;
|
|
2569
|
-
} else {
|
|
2570
|
-
state.projects[state.activeProjectId].issues_count += action.payload;
|
|
2571
|
-
}
|
|
2572
|
-
} else {
|
|
2573
|
-
throw new Error("Update issues count: no active project");
|
|
2574
|
-
}
|
|
2575
|
-
},
|
|
2576
|
-
updateActiveProjectFormSubmissionsCount: (state, action) => {
|
|
2577
|
-
if (state.activeProjectId && state.activeProjectId in state.projects) {
|
|
2578
|
-
if (!state.projects[state.activeProjectId].form_submissions_count) {
|
|
2579
|
-
state.projects[state.activeProjectId].form_submissions_count = action.payload;
|
|
2580
|
-
} else {
|
|
2581
|
-
state.projects[state.activeProjectId].form_submissions_count += action.payload;
|
|
2582
|
-
}
|
|
2583
|
-
} else {
|
|
2584
|
-
throw new Error("Update form submissions count: no active project");
|
|
2585
|
-
}
|
|
2586
2692
|
}
|
|
2587
2693
|
}
|
|
2588
2694
|
});
|
|
@@ -2593,9 +2699,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2593
2699
|
setActiveProjectId,
|
|
2594
2700
|
setCreateProjectType,
|
|
2595
2701
|
deleteProject,
|
|
2596
|
-
acceptProjectInvite
|
|
2597
|
-
updateActiveProjectIssuesCount,
|
|
2598
|
-
updateActiveProjectFormSubmissionsCount
|
|
2702
|
+
acceptProjectInvite
|
|
2599
2703
|
} = projectSlice.actions;
|
|
2600
2704
|
const selectProjects = (state) => state.projectReducer.projects;
|
|
2601
2705
|
const selectActiveProjectId = (state) => state.projectReducer.activeProjectId;
|
|
@@ -2659,231 +2763,6 @@ var __publicField = (obj, key, value) => {
|
|
|
2659
2763
|
});
|
|
2660
2764
|
}
|
|
2661
2765
|
);
|
|
2662
|
-
const initialState$8 = {
|
|
2663
|
-
licenses: {}
|
|
2664
|
-
};
|
|
2665
|
-
const licenseSlice = toolkit.createSlice({
|
|
2666
|
-
name: "license",
|
|
2667
|
-
initialState: initialState$8,
|
|
2668
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$8)),
|
|
2669
|
-
reducers: {
|
|
2670
|
-
setLicenses: (state, action) => {
|
|
2671
|
-
if (!Array.isArray(action.payload))
|
|
2672
|
-
throw new Error("Expected an array of Licenses");
|
|
2673
|
-
if (action.payload.filter(onlyUniqueOfflineIds).length !== action.payload.length) {
|
|
2674
|
-
throw new Error("Tried to use setLicenses reducer with duplicate ID's");
|
|
2675
|
-
}
|
|
2676
|
-
const licenses = {};
|
|
2677
|
-
for (const license of action.payload) {
|
|
2678
|
-
licenses[license.offline_id] = license;
|
|
2679
|
-
}
|
|
2680
|
-
state.licenses = licenses;
|
|
2681
|
-
},
|
|
2682
|
-
addLicenses: (state, action) => {
|
|
2683
|
-
for (const license of action.payload) {
|
|
2684
|
-
state.licenses[license.offline_id] = license;
|
|
2685
|
-
}
|
|
2686
|
-
},
|
|
2687
|
-
updateLicense: (state, action) => {
|
|
2688
|
-
if (!(action.payload.offline_id in state.licenses)) {
|
|
2689
|
-
throw new Error("Tried to update license that does not exist.");
|
|
2690
|
-
}
|
|
2691
|
-
state.licenses[action.payload.offline_id] = action.payload;
|
|
2692
|
-
}
|
|
2693
|
-
}
|
|
2694
|
-
});
|
|
2695
|
-
const { setLicenses, addLicenses, updateLicense } = licenseSlice.actions;
|
|
2696
|
-
const selectLicenses = (state) => {
|
|
2697
|
-
return state.licenseReducer.licenses;
|
|
2698
|
-
};
|
|
2699
|
-
const selectLicense = (licenseId) => (state) => state.licenseReducer.licenses[licenseId];
|
|
2700
|
-
const selectActiveLicense = toolkit.createSelector(
|
|
2701
|
-
[selectLicenses, selectActiveProjectId],
|
|
2702
|
-
(licenses, activeProjectId) => {
|
|
2703
|
-
const activeLicense = Object.values(licenses).find((license) => license.project === activeProjectId);
|
|
2704
|
-
return activeLicense ?? null;
|
|
2705
|
-
}
|
|
2706
|
-
);
|
|
2707
|
-
const selectLicenseForProject = restructureCreateSelectorWithArgs(
|
|
2708
|
-
toolkit.createSelector(
|
|
2709
|
-
[selectLicenses, (_state, projectId) => projectId],
|
|
2710
|
-
(licenses, projectId) => Object.values(licenses).find((license) => license.project === projectId) ?? null
|
|
2711
|
-
)
|
|
2712
|
-
);
|
|
2713
|
-
const selectActiveStatusLicenses = toolkit.createSelector(
|
|
2714
|
-
[selectLicenses],
|
|
2715
|
-
(licenses) => Object.values(licenses).filter((license) => license.is_active)
|
|
2716
|
-
);
|
|
2717
|
-
const selectLicencesMapping = toolkit.createSelector(
|
|
2718
|
-
[selectLicenses],
|
|
2719
|
-
(licenses) => Object.values(licenses).filter((license) => license.project).reduce((accum, license) => ({ ...accum, [license.project]: license }), {})
|
|
2720
|
-
);
|
|
2721
|
-
const licenseReducer = licenseSlice.reducer;
|
|
2722
|
-
const initialState$7 = {
|
|
2723
|
-
organizations: {},
|
|
2724
|
-
activeOrganizationId: null
|
|
2725
|
-
};
|
|
2726
|
-
const organizationSlice = toolkit.createSlice({
|
|
2727
|
-
name: "organizations",
|
|
2728
|
-
initialState: initialState$7,
|
|
2729
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$7)),
|
|
2730
|
-
reducers: {
|
|
2731
|
-
setOrganizations: (state, action) => {
|
|
2732
|
-
for (const org of action.payload) {
|
|
2733
|
-
state.organizations[org.id] = org;
|
|
2734
|
-
}
|
|
2735
|
-
},
|
|
2736
|
-
updateActiveOrganization: (state, action) => {
|
|
2737
|
-
if (!state.activeOrganizationId) {
|
|
2738
|
-
throw new Error("Cannot update name of active organization. Active organization ID does not exist");
|
|
2739
|
-
}
|
|
2740
|
-
if (state.activeOrganizationId !== action.payload.id) {
|
|
2741
|
-
throw new Error("Tried updating active organization with different organization");
|
|
2742
|
-
}
|
|
2743
|
-
state.organizations[state.activeOrganizationId] = action.payload;
|
|
2744
|
-
},
|
|
2745
|
-
setActiveOrganizationId: (state, action) => {
|
|
2746
|
-
state.activeOrganizationId = action.payload;
|
|
2747
|
-
}
|
|
2748
|
-
}
|
|
2749
|
-
});
|
|
2750
|
-
const { setOrganizations, setActiveOrganizationId, updateActiveOrganization } = organizationSlice.actions;
|
|
2751
|
-
const selectActiveOrganizationId = (state) => {
|
|
2752
|
-
return state.organizationReducer.activeOrganizationId;
|
|
2753
|
-
};
|
|
2754
|
-
const selectOrganizations = (state) => {
|
|
2755
|
-
return Object.values(state.organizationReducer.organizations);
|
|
2756
|
-
};
|
|
2757
|
-
const selectOrganizationsMapping = (state) => {
|
|
2758
|
-
return state.organizationReducer.organizations;
|
|
2759
|
-
};
|
|
2760
|
-
const selectOrganizationsWithAccess = toolkit.createSelector(
|
|
2761
|
-
[selectOrganizations],
|
|
2762
|
-
(organizations) => Object.values(organizations).filter((organization) => organization.has_access)
|
|
2763
|
-
);
|
|
2764
|
-
const selectActiveOrganization = (state) => {
|
|
2765
|
-
const id = selectActiveOrganizationId(state);
|
|
2766
|
-
if (!id) {
|
|
2767
|
-
return null;
|
|
2768
|
-
}
|
|
2769
|
-
const organization = state.organizationReducer.organizations[id];
|
|
2770
|
-
if (!organization) {
|
|
2771
|
-
return null;
|
|
2772
|
-
}
|
|
2773
|
-
return organization;
|
|
2774
|
-
};
|
|
2775
|
-
const selectOrganizationUsersIds = toolkit.createSelector(
|
|
2776
|
-
[selectOrganizationAccesses],
|
|
2777
|
-
(organizationAccesses) => Object.values(organizationAccesses).map((organizationAccess) => organizationAccess.user)
|
|
2778
|
-
);
|
|
2779
|
-
const selectActiveOrganizationProjects = toolkit.createSelector(
|
|
2780
|
-
[selectProjects, selectActiveOrganizationId],
|
|
2781
|
-
(projects, activeOrganizationId) => activeOrganizationId ? Object.values(projects).filter((project) => project.owner_organization === activeOrganizationId) : []
|
|
2782
|
-
);
|
|
2783
|
-
const selectActiveOrganizationLicenses = toolkit.createSelector(
|
|
2784
|
-
[selectActiveOrganizationId, selectLicenses],
|
|
2785
|
-
(activeOrganizationId, licenses) => !activeOrganizationId ? [] : Object.values(licenses).filter((license) => license.organization_owner === activeOrganizationId)
|
|
2786
|
-
);
|
|
2787
|
-
const selectSortedOrganizationLicenses = toolkit.createSelector(
|
|
2788
|
-
[selectActiveOrganizationLicenses, selectProjects],
|
|
2789
|
-
(licences, projects) => licences.sort((licenseA, licenseB) => {
|
|
2790
|
-
if (!licenseA.project) {
|
|
2791
|
-
return 1;
|
|
2792
|
-
}
|
|
2793
|
-
if (!licenseB.project) {
|
|
2794
|
-
return -1;
|
|
2795
|
-
}
|
|
2796
|
-
return projects[licenseA.project].name.toLowerCase().localeCompare(
|
|
2797
|
-
projects[licenseB.project].name.toLowerCase(),
|
|
2798
|
-
void 0,
|
|
2799
|
-
{ numeric: true }
|
|
2800
|
-
);
|
|
2801
|
-
})
|
|
2802
|
-
);
|
|
2803
|
-
const selectOrganizationUsersAsMapping = toolkit.createSelector(
|
|
2804
|
-
[selectOrganizationUsersIds, selectUsersAsMapping],
|
|
2805
|
-
(organizationUserIds, users) => organizationUserIds.reduce((accum, userId) => ({ ...accum, [userId]: users[userId] }), {})
|
|
2806
|
-
);
|
|
2807
|
-
const selectSortedOrganizationUsers = toolkit.createSelector(
|
|
2808
|
-
[selectCurrentUser, selectOrganizationUsersAsMapping, selectOrganizationAccessUserMapping],
|
|
2809
|
-
(currentUser, userMapping, organizationAccessMapping) => {
|
|
2810
|
-
return Object.values(userMapping).sort((userA, userB) => {
|
|
2811
|
-
if (userA.id === currentUser.id) {
|
|
2812
|
-
return -1;
|
|
2813
|
-
} else if (userB.id === currentUser.id) {
|
|
2814
|
-
return 1;
|
|
2815
|
-
}
|
|
2816
|
-
const organizationAccessesA = organizationAccessMapping[userA.id];
|
|
2817
|
-
const organizationAccessesB = organizationAccessMapping[userB.id];
|
|
2818
|
-
if ((organizationAccessesA == null ? void 0 : organizationAccessesA.access_level) === (organizationAccessesB == null ? void 0 : organizationAccessesB.access_level)) {
|
|
2819
|
-
return userA.username.localeCompare(userB.username);
|
|
2820
|
-
}
|
|
2821
|
-
if ((organizationAccessesA == null ? void 0 : organizationAccessesA.access_level) === OrganizationAccessLevel.ADMIN) {
|
|
2822
|
-
return -1;
|
|
2823
|
-
}
|
|
2824
|
-
return 1;
|
|
2825
|
-
});
|
|
2826
|
-
}
|
|
2827
|
-
);
|
|
2828
|
-
const selectOrganization = (id) => (state) => {
|
|
2829
|
-
return state.organizationReducer.organizations[id];
|
|
2830
|
-
};
|
|
2831
|
-
const organizationReducer = organizationSlice.reducer;
|
|
2832
|
-
const createOfflineAction = (request2, baseUrl) => {
|
|
2833
|
-
const requestWithUuid = request2.uuid ? request2 : { ...request2, uuid: uuid.v4() };
|
|
2834
|
-
return {
|
|
2835
|
-
payload: requestWithUuid,
|
|
2836
|
-
type: "",
|
|
2837
|
-
meta: {
|
|
2838
|
-
offline: {
|
|
2839
|
-
effect: {
|
|
2840
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2841
|
-
request: requestWithUuid,
|
|
2842
|
-
BASE_URL: baseUrl
|
|
2843
|
-
}
|
|
2844
|
-
}
|
|
2845
|
-
}
|
|
2846
|
-
};
|
|
2847
|
-
};
|
|
2848
|
-
const initialState$6 = {
|
|
2849
|
-
deletedRequests: [],
|
|
2850
|
-
latestRetryTime: 0
|
|
2851
|
-
};
|
|
2852
|
-
const outboxSlice = toolkit.createSlice({
|
|
2853
|
-
name: "outbox",
|
|
2854
|
-
initialState: initialState$6,
|
|
2855
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$6)),
|
|
2856
|
-
reducers: {
|
|
2857
|
-
// enqueueActions is a reducer that does nothing but enqueue API request to the Redux Offline outbox
|
|
2858
|
-
// Whenever an issue is being created, a reducer addIssue() is responsible for adding it to the offline store
|
|
2859
|
-
// Then this reducer enqueueRequest() is responsible for adding the actual request data to the outbox
|
|
2860
|
-
enqueueRequest: {
|
|
2861
|
-
reducer: (state, _action) => {
|
|
2862
|
-
return state;
|
|
2863
|
-
},
|
|
2864
|
-
prepare: (payload) => {
|
|
2865
|
-
console.debug("Preparing to enqueue request", payload);
|
|
2866
|
-
const { BASE_URL, ...rest } = payload;
|
|
2867
|
-
return createOfflineAction(rest, BASE_URL);
|
|
2868
|
-
}
|
|
2869
|
-
},
|
|
2870
|
-
markForDeletion(state, action) {
|
|
2871
|
-
state.deletedRequests.push(action.payload);
|
|
2872
|
-
},
|
|
2873
|
-
markAsDeleted(state, action) {
|
|
2874
|
-
const index2 = state.deletedRequests.indexOf(action.payload);
|
|
2875
|
-
if (index2 !== -1)
|
|
2876
|
-
state.deletedRequests.splice(index2, 1);
|
|
2877
|
-
},
|
|
2878
|
-
_setLatestRetryTime: (state, action) => {
|
|
2879
|
-
state.latestRetryTime = action.payload;
|
|
2880
|
-
}
|
|
2881
|
-
}
|
|
2882
|
-
});
|
|
2883
|
-
const selectDeletedRequests = (state) => state.outboxReducer.deletedRequests;
|
|
2884
|
-
const selectLatestRetryTime = (state) => state.outboxReducer.latestRetryTime;
|
|
2885
|
-
const { enqueueRequest, markForDeletion, markAsDeleted, _setLatestRetryTime } = outboxSlice.actions;
|
|
2886
|
-
const outboxReducer = outboxSlice.reducer;
|
|
2887
2766
|
const initialState$5 = {
|
|
2888
2767
|
projectFiles: {},
|
|
2889
2768
|
activeProjectFileId: null,
|
|
@@ -3020,9 +2899,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3020
2899
|
Components: false,
|
|
3021
2900
|
Experimental: false
|
|
3022
2901
|
},
|
|
3023
|
-
appearance: "dark"
|
|
3024
|
-
isFetchingInitialData: false,
|
|
3025
|
-
isLoading: false
|
|
2902
|
+
appearance: "dark"
|
|
3026
2903
|
};
|
|
3027
2904
|
const settingSlice = toolkit.createSlice({
|
|
3028
2905
|
name: "settings",
|
|
@@ -3046,12 +2923,6 @@ var __publicField = (obj, key, value) => {
|
|
|
3046
2923
|
},
|
|
3047
2924
|
setAppearance: (state, action) => {
|
|
3048
2925
|
state.appearance = action.payload;
|
|
3049
|
-
},
|
|
3050
|
-
setIsFetchingInitialData: (state, action) => {
|
|
3051
|
-
state.isFetchingInitialData = action.payload;
|
|
3052
|
-
},
|
|
3053
|
-
setIsLoading: (state, action) => {
|
|
3054
|
-
state.isLoading = action.payload;
|
|
3055
2926
|
}
|
|
3056
2927
|
}
|
|
3057
2928
|
});
|
|
@@ -3060,9 +2931,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3060
2931
|
setEnablePlacementMode,
|
|
3061
2932
|
setSectionExpanded,
|
|
3062
2933
|
setEnableClustering,
|
|
3063
|
-
setAppearance
|
|
3064
|
-
setIsFetchingInitialData,
|
|
3065
|
-
setIsLoading
|
|
2934
|
+
setAppearance
|
|
3066
2935
|
} = settingSlice.actions;
|
|
3067
2936
|
const selectEnablePlacementMode = (state) => state.settingReducer.placementMode;
|
|
3068
2937
|
const selectEnableDuplicateIssues = (state) => state.settingReducer.useIssueTemplate;
|
|
@@ -3071,8 +2940,6 @@ var __publicField = (obj, key, value) => {
|
|
|
3071
2940
|
const selectEnableClustering = (state) => state.settingReducer.enableClustering;
|
|
3072
2941
|
const selectAppearance = (state) => state.settingReducer.appearance;
|
|
3073
2942
|
const settingReducer = settingSlice.reducer;
|
|
3074
|
-
const selectIsFetchingInitialData = (state) => state.settingReducer.isFetchingInitialData;
|
|
3075
|
-
const selectIsLoading = (state) => state.settingReducer.isLoading;
|
|
3076
2943
|
const LATEST_REVISION_CACHE = {};
|
|
3077
2944
|
function considerCachingRevision(revision, formId2, preferPending = false) {
|
|
3078
2945
|
var _a2;
|
|
@@ -3474,8 +3341,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3474
3341
|
userFormReducer,
|
|
3475
3342
|
userReducer,
|
|
3476
3343
|
workspaceReducer,
|
|
3477
|
-
emailDomainsReducer
|
|
3478
|
-
licenseReducer
|
|
3344
|
+
emailDomainsReducer
|
|
3479
3345
|
};
|
|
3480
3346
|
const overmapReducer = toolkit.combineReducers(overmapReducers);
|
|
3481
3347
|
const resetStore = "RESET";
|
|
@@ -4929,7 +4795,6 @@ var __publicField = (obj, key, value) => {
|
|
|
4929
4795
|
});
|
|
4930
4796
|
store.dispatch(addIssue(issuePayload));
|
|
4931
4797
|
store.dispatch(addToRecentIssues(issuePayload.offline_id));
|
|
4932
|
-
store.dispatch(updateActiveProjectIssuesCount(1));
|
|
4933
4798
|
const promise = this.enqueueRequest({
|
|
4934
4799
|
description: "Create issue",
|
|
4935
4800
|
method: HttpMethod.POST,
|
|
@@ -4956,7 +4821,6 @@ var __publicField = (obj, key, value) => {
|
|
|
4956
4821
|
});
|
|
4957
4822
|
}
|
|
4958
4823
|
store.dispatch(removeIssue(issuePayload.offline_id));
|
|
4959
|
-
store.dispatch(updateActiveProjectIssuesCount(-1));
|
|
4960
4824
|
throw error2;
|
|
4961
4825
|
});
|
|
4962
4826
|
return [issuePayload, promise];
|
|
@@ -4995,8 +4859,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4995
4859
|
return [fullIssue, promise];
|
|
4996
4860
|
}
|
|
4997
4861
|
async remove(id) {
|
|
4998
|
-
const
|
|
4999
|
-
const state = store.getState();
|
|
4862
|
+
const state = this.client.store.getState();
|
|
5000
4863
|
const backup = state.issueReducer.issues[id];
|
|
5001
4864
|
if (!backup) {
|
|
5002
4865
|
throw new Error(`No issue with id ${id} found in the store`);
|
|
@@ -5004,7 +4867,6 @@ var __publicField = (obj, key, value) => {
|
|
|
5004
4867
|
const attachments = Object.values(state.issueReducer.attachments).filter((a) => a.issue_id === id);
|
|
5005
4868
|
const attachmentsOfIssue = selectPhotoAttachmentsOfIssue(id)(state);
|
|
5006
4869
|
this.client.store.dispatch(removeIssue(id));
|
|
5007
|
-
store.dispatch(updateActiveProjectIssuesCount(-1));
|
|
5008
4870
|
if (attachmentsOfIssue) {
|
|
5009
4871
|
this.client.store.dispatch(removeAttachmentsOfIssue(id));
|
|
5010
4872
|
}
|
|
@@ -5019,7 +4881,6 @@ var __publicField = (obj, key, value) => {
|
|
|
5019
4881
|
} catch (e) {
|
|
5020
4882
|
this.client.store.dispatch(addIssue(backup));
|
|
5021
4883
|
this.client.store.dispatch(addAttachments(attachments));
|
|
5022
|
-
store.dispatch(updateActiveProjectIssuesCount(1));
|
|
5023
4884
|
throw e;
|
|
5024
4885
|
}
|
|
5025
4886
|
}
|
|
@@ -5095,9 +4956,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5095
4956
|
owner_organization: projectData.organization_owner,
|
|
5096
4957
|
owner_user: projectData.user_owner,
|
|
5097
4958
|
bounds: projectData.bounds,
|
|
5098
|
-
invited: projectData.invited || false
|
|
5099
|
-
issues_count: projectData.issues_count,
|
|
5100
|
-
form_submissions_count: projectData.form_submissions_count
|
|
4959
|
+
invited: projectData.invited || false
|
|
5101
4960
|
});
|
|
5102
4961
|
if (currentProjectId === projectData.id && !projectData.invited) {
|
|
5103
4962
|
isProjectIdValid = true;
|
|
@@ -5115,7 +4974,6 @@ var __publicField = (obj, key, value) => {
|
|
|
5115
4974
|
}
|
|
5116
4975
|
store.dispatch(setCurrentUser(data.user));
|
|
5117
4976
|
store.dispatch(addUsers(data.project_owners));
|
|
5118
|
-
store.dispatch(setLicenses(data.licenses));
|
|
5119
4977
|
const organizationsData = data.organizations;
|
|
5120
4978
|
store.dispatch(setOrganizations(organizationsData));
|
|
5121
4979
|
const validProjects = projects.filter((project) => !project.invited);
|
|
@@ -5428,7 +5286,6 @@ var __publicField = (obj, key, value) => {
|
|
|
5428
5286
|
if (!project) {
|
|
5429
5287
|
throw new Error("Expected project to exist");
|
|
5430
5288
|
}
|
|
5431
|
-
const license = selectLicenseForProject(project.id);
|
|
5432
5289
|
const activeProjectId = state.projectReducer.activeProjectId;
|
|
5433
5290
|
if (activeProjectId === projectId) {
|
|
5434
5291
|
store.dispatch({ type: "project/setActiveProjectId", payload: null });
|
|
@@ -5439,9 +5296,6 @@ var __publicField = (obj, key, value) => {
|
|
|
5439
5296
|
store.dispatch(removeProjectAccessesOfProject(project.id));
|
|
5440
5297
|
store.dispatch({ type: "rehydrated/setRehydrated", payload: false });
|
|
5441
5298
|
store.dispatch(deleteProject(project));
|
|
5442
|
-
if (license) {
|
|
5443
|
-
store.dispatch(updateLicense({ ...license, project: null }));
|
|
5444
|
-
}
|
|
5445
5299
|
try {
|
|
5446
5300
|
await this.enqueueRequest({
|
|
5447
5301
|
description: "Delete project",
|
|
@@ -5457,9 +5311,6 @@ var __publicField = (obj, key, value) => {
|
|
|
5457
5311
|
store.dispatch(addOrReplaceProjectFiles(filesToDelete));
|
|
5458
5312
|
store.dispatch(setActiveProjectId(activeProjectId));
|
|
5459
5313
|
store.dispatch({ type: "rehydrated/setRehydrated", payload: true });
|
|
5460
|
-
if (license) {
|
|
5461
|
-
store.dispatch(updateLicense({ ...license, project: project.id }));
|
|
5462
|
-
}
|
|
5463
5314
|
throw e;
|
|
5464
5315
|
}
|
|
5465
5316
|
}
|
|
@@ -5836,11 +5687,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5836
5687
|
store.dispatch(addUserFormSubmission(offlineResultWithoutFiles));
|
|
5837
5688
|
void promise.then((result) => {
|
|
5838
5689
|
store.dispatch(addUserFormSubmission(result));
|
|
5839
|
-
store.dispatch(updateActiveProjectFormSubmissionsCount(1));
|
|
5840
5690
|
return result;
|
|
5841
5691
|
}).catch(() => {
|
|
5842
5692
|
store.dispatch(deleteUserFormSubmission(payload.offline_id));
|
|
5843
|
-
store.dispatch(updateActiveProjectFormSubmissionsCount(-1));
|
|
5844
5693
|
});
|
|
5845
5694
|
const settledPromise = Promise.all([promise, ...attachFilesPromises]).then(() => promise);
|
|
5846
5695
|
return [fullOfflineResult, settledPromise];
|
|
@@ -5850,7 +5699,6 @@ var __publicField = (obj, key, value) => {
|
|
|
5850
5699
|
const state = store.getState();
|
|
5851
5700
|
const submission = state.userFormReducer.submissions[submissionId];
|
|
5852
5701
|
store.dispatch(deleteUserFormSubmission(submissionId));
|
|
5853
|
-
store.dispatch(updateActiveProjectFormSubmissionsCount(-1));
|
|
5854
5702
|
try {
|
|
5855
5703
|
return await this.enqueueRequest({
|
|
5856
5704
|
description: "Delete user form submissions",
|
|
@@ -5862,7 +5710,6 @@ var __publicField = (obj, key, value) => {
|
|
|
5862
5710
|
} catch (e) {
|
|
5863
5711
|
if (submission) {
|
|
5864
5712
|
store.dispatch(addUserFormSubmission(submission));
|
|
5865
|
-
store.dispatch(updateActiveProjectFormSubmissionsCount(1));
|
|
5866
5713
|
}
|
|
5867
5714
|
throw e;
|
|
5868
5715
|
}
|
|
@@ -6275,12 +6122,10 @@ var __publicField = (obj, key, value) => {
|
|
|
6275
6122
|
const organizationAccesses = data.organization_accesses;
|
|
6276
6123
|
const emailDomains = data.email_domains;
|
|
6277
6124
|
const users = data.users;
|
|
6278
|
-
const licenses = data.licenses;
|
|
6279
6125
|
store.dispatch(addUsers(users));
|
|
6280
6126
|
store.dispatch(setActiveOrganizationId(activeOrganization.id));
|
|
6281
6127
|
store.dispatch(setOrganizationAccesses(organizationAccesses));
|
|
6282
6128
|
store.dispatch(setEmailDomains(emailDomains));
|
|
6283
|
-
store.dispatch(addLicenses(licenses));
|
|
6284
6129
|
if (showLoading) {
|
|
6285
6130
|
store.dispatch(setIsFetchingInitialData(false));
|
|
6286
6131
|
}
|
|
@@ -6321,103 +6166,6 @@ var __publicField = (obj, key, value) => {
|
|
|
6321
6166
|
});
|
|
6322
6167
|
}
|
|
6323
6168
|
}
|
|
6324
|
-
class LicenseService extends BaseApiService {
|
|
6325
|
-
async getLicensesForOrganization(organizationId, showLoading = false) {
|
|
6326
|
-
if (showLoading) {
|
|
6327
|
-
this.client.store.dispatch(setIsFetchingInitialData(true));
|
|
6328
|
-
}
|
|
6329
|
-
return this.enqueueRequest({
|
|
6330
|
-
description: "Get licenses",
|
|
6331
|
-
method: HttpMethod.GET,
|
|
6332
|
-
url: `/organizations/${organizationId}/licenses/`,
|
|
6333
|
-
isAuthNeeded: true,
|
|
6334
|
-
blockers: [organizationId.toString()],
|
|
6335
|
-
blocks: []
|
|
6336
|
-
}).then((result) => {
|
|
6337
|
-
if (showLoading) {
|
|
6338
|
-
this.client.store.dispatch(setIsFetchingInitialData(false));
|
|
6339
|
-
}
|
|
6340
|
-
return result;
|
|
6341
|
-
});
|
|
6342
|
-
}
|
|
6343
|
-
async pauseLicense(license) {
|
|
6344
|
-
return this.enqueueRequest({
|
|
6345
|
-
description: "Pause license",
|
|
6346
|
-
method: HttpMethod.DELETE,
|
|
6347
|
-
url: `/billing/${license.offline_id}/suspend/`,
|
|
6348
|
-
isAuthNeeded: true,
|
|
6349
|
-
blockers: [
|
|
6350
|
-
license.organization_owner ? license.organization_owner.toString() : license.user_owner ? license.user_owner.toString() : ""
|
|
6351
|
-
],
|
|
6352
|
-
blocks: []
|
|
6353
|
-
}).then((result) => {
|
|
6354
|
-
this.client.store.dispatch(updateLicense(result));
|
|
6355
|
-
return result;
|
|
6356
|
-
});
|
|
6357
|
-
}
|
|
6358
|
-
async resumeLicense(license) {
|
|
6359
|
-
return this.enqueueRequest({
|
|
6360
|
-
description: "Resume license",
|
|
6361
|
-
method: HttpMethod.PATCH,
|
|
6362
|
-
url: `/billing/${license.offline_id}/suspend/`,
|
|
6363
|
-
isAuthNeeded: true,
|
|
6364
|
-
blockers: [
|
|
6365
|
-
license.organization_owner ? license.organization_owner.toString() : license.user_owner ? license.user_owner.toString() : ""
|
|
6366
|
-
],
|
|
6367
|
-
blocks: []
|
|
6368
|
-
}).then((result) => {
|
|
6369
|
-
this.client.store.dispatch(updateLicense(result));
|
|
6370
|
-
return result;
|
|
6371
|
-
});
|
|
6372
|
-
}
|
|
6373
|
-
async cancelLicense(license) {
|
|
6374
|
-
return this.enqueueRequest({
|
|
6375
|
-
description: "Cancel license",
|
|
6376
|
-
method: HttpMethod.DELETE,
|
|
6377
|
-
url: `/billing/${license.offline_id}/`,
|
|
6378
|
-
isAuthNeeded: true,
|
|
6379
|
-
blockers: [
|
|
6380
|
-
license.organization_owner ? license.organization_owner.toString() : license.user_owner ? license.user_owner.toString() : ""
|
|
6381
|
-
],
|
|
6382
|
-
blocks: []
|
|
6383
|
-
}).then((result) => {
|
|
6384
|
-
this.client.store.dispatch(updateLicense(result));
|
|
6385
|
-
return result;
|
|
6386
|
-
});
|
|
6387
|
-
}
|
|
6388
|
-
async attachLicenseToProject(license, project) {
|
|
6389
|
-
return this.enqueueRequest({
|
|
6390
|
-
description: "Attach license",
|
|
6391
|
-
method: HttpMethod.PATCH,
|
|
6392
|
-
url: `/billing/${license.offline_id}/project/`,
|
|
6393
|
-
isAuthNeeded: true,
|
|
6394
|
-
payload: { project: project.id },
|
|
6395
|
-
blockers: [
|
|
6396
|
-
license.organization_owner ? license.organization_owner.toString() : license.user_owner ? license.user_owner.toString() : "",
|
|
6397
|
-
project.id ? project.id.toString() : ""
|
|
6398
|
-
],
|
|
6399
|
-
blocks: []
|
|
6400
|
-
}).then((result) => {
|
|
6401
|
-
this.client.store.dispatch(updateLicense(result));
|
|
6402
|
-
return result;
|
|
6403
|
-
});
|
|
6404
|
-
}
|
|
6405
|
-
async detachLicenseFromProject(license) {
|
|
6406
|
-
return this.enqueueRequest({
|
|
6407
|
-
description: "Detach license",
|
|
6408
|
-
method: HttpMethod.DELETE,
|
|
6409
|
-
url: `/billing/${license.offline_id}/project/`,
|
|
6410
|
-
isAuthNeeded: true,
|
|
6411
|
-
blockers: [
|
|
6412
|
-
license.organization_owner ? license.organization_owner.toString() : license.user_owner ? license.user_owner.toString() : ""
|
|
6413
|
-
],
|
|
6414
|
-
blocks: []
|
|
6415
|
-
}).then((result) => {
|
|
6416
|
-
this.client.store.dispatch(updateLicense(result));
|
|
6417
|
-
return result;
|
|
6418
|
-
});
|
|
6419
|
-
}
|
|
6420
|
-
}
|
|
6421
6169
|
class OvermapSDK {
|
|
6422
6170
|
constructor(apiUrl, store) {
|
|
6423
6171
|
__publicField(this, "API_URL");
|
|
@@ -6443,7 +6191,6 @@ var __publicField = (obj, key, value) => {
|
|
|
6443
6191
|
__publicField(this, "projectFiles", new ProjectFileService(this));
|
|
6444
6192
|
__publicField(this, "emailVerification", new EmailVerificationService(this));
|
|
6445
6193
|
__publicField(this, "emailDomains", new EmailDomainsService(this));
|
|
6446
|
-
__publicField(this, "licenses", new LicenseService(this));
|
|
6447
6194
|
this.API_URL = apiUrl;
|
|
6448
6195
|
this.store = store;
|
|
6449
6196
|
}
|
|
@@ -12008,9 +11755,6 @@ var __publicField = (obj, key, value) => {
|
|
|
12008
11755
|
exports2.IssuePriority = IssuePriority;
|
|
12009
11756
|
exports2.IssueService = IssueService;
|
|
12010
11757
|
exports2.IssueStatus = IssueStatus;
|
|
12011
|
-
exports2.LicenseLevel = LicenseLevel;
|
|
12012
|
-
exports2.LicenseService = LicenseService;
|
|
12013
|
-
exports2.LicenseStatus = LicenseStatus;
|
|
12014
11758
|
exports2.MainService = MainService;
|
|
12015
11759
|
exports2.MapStyle = MapStyle;
|
|
12016
11760
|
exports2.MultiSelectField = MultiSelectField;
|
|
@@ -12027,7 +11771,6 @@ var __publicField = (obj, key, value) => {
|
|
|
12027
11771
|
exports2.OvermapContext = OvermapContext;
|
|
12028
11772
|
exports2.OvermapProvider = OvermapProvider;
|
|
12029
11773
|
exports2.OvermapSDK = OvermapSDK;
|
|
12030
|
-
exports2.PaddleCheckoutEvent = PaddleCheckoutEvent;
|
|
12031
11774
|
exports2.PatchField = PatchField;
|
|
12032
11775
|
exports2.PatchFormProvider = PatchFormProvider;
|
|
12033
11776
|
exports2.ProjectAccessLevel = ProjectAccessLevel;
|
|
@@ -12059,7 +11802,6 @@ var __publicField = (obj, key, value) => {
|
|
|
12059
11802
|
exports2.addEmailDomain = addEmailDomain;
|
|
12060
11803
|
exports2.addFavouriteProjectId = addFavouriteProjectId;
|
|
12061
11804
|
exports2.addIssue = addIssue;
|
|
12062
|
-
exports2.addLicenses = addLicenses;
|
|
12063
11805
|
exports2.addOrReplaceCategories = addOrReplaceCategories;
|
|
12064
11806
|
exports2.addOrReplaceIssueComment = addOrReplaceIssueComment;
|
|
12065
11807
|
exports2.addOrReplaceProjectFile = addOrReplaceProjectFile;
|
|
@@ -12159,8 +11901,6 @@ var __publicField = (obj, key, value) => {
|
|
|
12159
11901
|
exports2.issueReducer = issueReducer;
|
|
12160
11902
|
exports2.issueSlice = issueSlice;
|
|
12161
11903
|
exports2.issueToSearchResult = issueToSearchResult;
|
|
12162
|
-
exports2.licenseReducer = licenseReducer;
|
|
12163
|
-
exports2.licenseSlice = licenseSlice;
|
|
12164
11904
|
exports2.literalToCoordinates = literalToCoordinates;
|
|
12165
11905
|
exports2.logOnlyOnce = logOnlyOnce;
|
|
12166
11906
|
exports2.makeClient = makeClient;
|
|
@@ -12227,17 +11967,13 @@ var __publicField = (obj, key, value) => {
|
|
|
12227
11967
|
exports2.searchIssues = searchIssues;
|
|
12228
11968
|
exports2.selectAccessToken = selectAccessToken;
|
|
12229
11969
|
exports2.selectActiveIssueId = selectActiveIssueId;
|
|
12230
|
-
exports2.selectActiveLicense = selectActiveLicense;
|
|
12231
11970
|
exports2.selectActiveOrganization = selectActiveOrganization;
|
|
12232
11971
|
exports2.selectActiveOrganizationAccess = selectActiveOrganizationAccess;
|
|
12233
11972
|
exports2.selectActiveOrganizationId = selectActiveOrganizationId;
|
|
12234
|
-
exports2.selectActiveOrganizationLicenses = selectActiveOrganizationLicenses;
|
|
12235
|
-
exports2.selectActiveOrganizationProjects = selectActiveOrganizationProjects;
|
|
12236
11973
|
exports2.selectActiveProject = selectActiveProject;
|
|
12237
11974
|
exports2.selectActiveProjectAccess = selectActiveProjectAccess;
|
|
12238
11975
|
exports2.selectActiveProjectFileId = selectActiveProjectFileId;
|
|
12239
11976
|
exports2.selectActiveProjectId = selectActiveProjectId;
|
|
12240
|
-
exports2.selectActiveStatusLicenses = selectActiveStatusLicenses;
|
|
12241
11977
|
exports2.selectActiveWorkspace = selectActiveWorkspace;
|
|
12242
11978
|
exports2.selectActiveWorkspaceId = selectActiveWorkspaceId;
|
|
12243
11979
|
exports2.selectAllAttachments = selectAllAttachments;
|
|
@@ -12283,7 +12019,6 @@ var __publicField = (obj, key, value) => {
|
|
|
12283
12019
|
exports2.selectHiddenComponentTypeIds = selectHiddenComponentTypeIds;
|
|
12284
12020
|
exports2.selectIsFetchingInitialData = selectIsFetchingInitialData;
|
|
12285
12021
|
exports2.selectIsImportingProjectFile = selectIsImportingProjectFile;
|
|
12286
|
-
exports2.selectIsLoading = selectIsLoading;
|
|
12287
12022
|
exports2.selectIsLoggedIn = selectIsLoggedIn;
|
|
12288
12023
|
exports2.selectIssue = selectIssue;
|
|
12289
12024
|
exports2.selectIssueAttachmentMapping = selectIssueAttachmentMapping;
|
|
@@ -12293,10 +12028,6 @@ var __publicField = (obj, key, value) => {
|
|
|
12293
12028
|
exports2.selectLatestFormRevision = selectLatestFormRevision;
|
|
12294
12029
|
exports2.selectLatestRetryTime = selectLatestRetryTime;
|
|
12295
12030
|
exports2.selectLatestRevisionByFormId = selectLatestRevisionByFormId;
|
|
12296
|
-
exports2.selectLicencesMapping = selectLicencesMapping;
|
|
12297
|
-
exports2.selectLicense = selectLicense;
|
|
12298
|
-
exports2.selectLicenseForProject = selectLicenseForProject;
|
|
12299
|
-
exports2.selectLicenses = selectLicenses;
|
|
12300
12031
|
exports2.selectMainWorkspace = selectMainWorkspace;
|
|
12301
12032
|
exports2.selectMapStyle = selectMapStyle;
|
|
12302
12033
|
exports2.selectNumberOfComponentTypesMatchingCaseInsensitiveName = selectNumberOfComponentTypesMatchingCaseInsensitiveName;
|
|
@@ -12310,7 +12041,6 @@ var __publicField = (obj, key, value) => {
|
|
|
12310
12041
|
exports2.selectOrganizationUsersAsMapping = selectOrganizationUsersAsMapping;
|
|
12311
12042
|
exports2.selectOrganizationUsersIds = selectOrganizationUsersIds;
|
|
12312
12043
|
exports2.selectOrganizations = selectOrganizations;
|
|
12313
|
-
exports2.selectOrganizationsMapping = selectOrganizationsMapping;
|
|
12314
12044
|
exports2.selectOrganizationsWithAccess = selectOrganizationsWithAccess;
|
|
12315
12045
|
exports2.selectPermittedWorkspaceIds = selectPermittedWorkspaceIds;
|
|
12316
12046
|
exports2.selectPhotoAttachmentsOfIssue = selectPhotoAttachmentsOfIssue;
|
|
@@ -12332,7 +12062,6 @@ var __publicField = (obj, key, value) => {
|
|
|
12332
12062
|
exports2.selectRevisionsForForm = selectRevisionsForForm;
|
|
12333
12063
|
exports2.selectShowTooltips = selectShowTooltips;
|
|
12334
12064
|
exports2.selectSortedEmailDomains = selectSortedEmailDomains;
|
|
12335
|
-
exports2.selectSortedOrganizationLicenses = selectSortedOrganizationLicenses;
|
|
12336
12065
|
exports2.selectSortedOrganizationUsers = selectSortedOrganizationUsers;
|
|
12337
12066
|
exports2.selectSortedProjectUsers = selectSortedProjectUsers;
|
|
12338
12067
|
exports2.selectSortedProjects = selectSortedProjects;
|
|
@@ -12375,10 +12104,8 @@ var __publicField = (obj, key, value) => {
|
|
|
12375
12104
|
exports2.setEnablePlacementMode = setEnablePlacementMode;
|
|
12376
12105
|
exports2.setIsFetchingInitialData = setIsFetchingInitialData;
|
|
12377
12106
|
exports2.setIsImportingProjectFile = setIsImportingProjectFile;
|
|
12378
|
-
exports2.setIsLoading = setIsLoading;
|
|
12379
12107
|
exports2.setIssueComments = setIssueComments;
|
|
12380
12108
|
exports2.setIssues = setIssues;
|
|
12381
|
-
exports2.setLicenses = setLicenses;
|
|
12382
12109
|
exports2.setLoggedIn = setLoggedIn;
|
|
12383
12110
|
exports2.setMapStyle = setMapStyle;
|
|
12384
12111
|
exports2.setOrganizationAccesses = setOrganizationAccesses;
|
|
@@ -12414,12 +12141,9 @@ var __publicField = (obj, key, value) => {
|
|
|
12414
12141
|
exports2.unhideAllCategories = unhideAllCategories;
|
|
12415
12142
|
exports2.unhideCategory = unhideCategory;
|
|
12416
12143
|
exports2.updateActiveOrganization = updateActiveOrganization;
|
|
12417
|
-
exports2.updateActiveProjectFormSubmissionsCount = updateActiveProjectFormSubmissionsCount;
|
|
12418
|
-
exports2.updateActiveProjectIssuesCount = updateActiveProjectIssuesCount;
|
|
12419
12144
|
exports2.updateAttachment = updateAttachment;
|
|
12420
12145
|
exports2.updateComponent = updateComponent;
|
|
12421
12146
|
exports2.updateIssue = updateIssue;
|
|
12422
|
-
exports2.updateLicense = updateLicense;
|
|
12423
12147
|
exports2.updateOrCreateProject = updateOrCreateProject;
|
|
12424
12148
|
exports2.updateOrganizationAccess = updateOrganizationAccess;
|
|
12425
12149
|
exports2.updateProjectAccess = updateProjectAccess;
|