jmapcloud-types 0.0.1 → 2.0.23-qa.9
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/das.d.ts +42 -0
- package/generated/das-generated.ts +3666 -0
- package/generated/es-generated.ts +1174 -0
- package/generated/fus-generated.ts +1033 -0
- package/generated/lms-generated.ts +232 -0
- package/generated/mcs-generated.ts +18120 -0
- package/generated/mcs-graphql-generated.ts +458 -0
- package/generated/mis-generated.ts +557 -0
- package/generated/ps-generated.ts +1099 -0
- package/generated/ss-generated.ts +4891 -0
- package/generated/vtcs-generated.ts +382 -0
- package/graphql/operations/mcs.graphql +153 -0
- package/index.d.ts +2 -0
- package/index.js +5 -0
- package/language.d.ts +2 -1
- package/mcs.d.ts +390 -150
- package/package.json +43 -5
- package/server.d.ts +40 -0
- package/ss.d.ts +28 -0
- package/theme.ts +8 -7
package/package.json
CHANGED
|
@@ -1,10 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jmapcloud-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.23-qa.9",
|
|
4
4
|
"description": "TypeScript definitions for Jmap Cloud",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"main": "",
|
|
6
|
+
"main": "index.js",
|
|
7
7
|
"types": "index.d.ts",
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./index.d.ts",
|
|
11
|
+
"default": "./index.js"
|
|
12
|
+
},
|
|
13
|
+
"./das": "./das.d.ts",
|
|
14
|
+
"./geography": "./geography.d.ts",
|
|
15
|
+
"./language": "./language.d.ts",
|
|
16
|
+
"./mcs": "./mcs.d.ts",
|
|
17
|
+
"./server": "./server.d.ts",
|
|
18
|
+
"./ss": "./ss.d.ts",
|
|
19
|
+
"./theme": "./theme.ts",
|
|
20
|
+
"./*.d.ts": "./*.d.ts",
|
|
21
|
+
"./index.js": "./index.js",
|
|
22
|
+
"./theme.ts": "./theme.ts",
|
|
23
|
+
"./generated/*.ts": "./generated/*.ts",
|
|
24
|
+
"./generated/*": "./generated/*.ts",
|
|
25
|
+
"./graphql/operations/*": "./graphql/operations/*"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"*.d.ts",
|
|
29
|
+
"index.js",
|
|
30
|
+
"theme.ts",
|
|
31
|
+
"generated/*-generated.ts",
|
|
32
|
+
"graphql/operations/*.graphql"
|
|
33
|
+
],
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/k2geospatial/jmapcloud-frontend.git",
|
|
37
|
+
"directory": "packages/jmapcloud-types"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@emotion/react": "^11.11.3",
|
|
41
|
+
"@emotion/styled": "^11.11.0",
|
|
42
|
+
"@jsonforms/core": "3.8.0",
|
|
43
|
+
"@mui/material": "^9.3.1"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"lint": "node ../../scripts/lint.mjs packages/jmapcloud-types"
|
|
47
|
+
}
|
|
48
|
+
}
|
package/server.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export type ServiceStatus = "UP" | "DOWN" | "DEGRADED"
|
|
2
|
+
|
|
3
|
+
export type ServiceId = "ss" | "ps" | "mcs" | "das" | "vtcs" | "dis" | "fus" | "mis" | "es" | "lms" | "rs"
|
|
4
|
+
|
|
5
|
+
export type ServiceName =
|
|
6
|
+
| "security"
|
|
7
|
+
| "process"
|
|
8
|
+
| "map-configuration"
|
|
9
|
+
| "data-access"
|
|
10
|
+
| "vector-tile-cache"
|
|
11
|
+
| "data-integration"
|
|
12
|
+
| "file-upload"
|
|
13
|
+
| "map-image"
|
|
14
|
+
| "extension"
|
|
15
|
+
| "log-management"
|
|
16
|
+
| "report"
|
|
17
|
+
|
|
18
|
+
export interface ServiceStatusResponse {
|
|
19
|
+
status: ServiceStatus
|
|
20
|
+
services: ServiceInfo[]
|
|
21
|
+
identityProviders: IdentityProviderDTO[]
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface ServiceInfo {
|
|
25
|
+
id: ServiceId
|
|
26
|
+
status: ServiceStatus
|
|
27
|
+
ready: number
|
|
28
|
+
desired: number
|
|
29
|
+
name: ServiceName
|
|
30
|
+
url: string
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface IdentityProviderDTO {
|
|
34
|
+
type: string
|
|
35
|
+
name: string
|
|
36
|
+
audience?: string
|
|
37
|
+
clientId?: string
|
|
38
|
+
domain?: string
|
|
39
|
+
logoutRedirectUrl?: string
|
|
40
|
+
}
|
package/ss.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { components as ssComponents } from "./generated/ss-generated"
|
|
2
|
+
import { LOCALES } from "./language"
|
|
3
|
+
|
|
4
|
+
// Backend always populates `defaultLanguage` on read (OrganizationSettingsRepositoryService
|
|
5
|
+
// defaults null/blank to "fr"), so we narrow the optional OpenAPI type to a required LOCALES.
|
|
6
|
+
export type OrganizationSettings = Omit<ssComponents["schemas"]["OrganizationSettingsDTO"], "defaultLanguage"> & {
|
|
7
|
+
defaultLanguage: LOCALES
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface Organization {
|
|
11
|
+
id: string
|
|
12
|
+
auth0Id: string
|
|
13
|
+
name: string
|
|
14
|
+
active: boolean
|
|
15
|
+
createdBy: string
|
|
16
|
+
creationDate: Date
|
|
17
|
+
lastModifiedBy: string
|
|
18
|
+
lastModificationDate: Date
|
|
19
|
+
defaultLanguage?: LOCALES
|
|
20
|
+
externalApiKeys?: ExternalApiKey[]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface ExternalApiKey {
|
|
24
|
+
id: string
|
|
25
|
+
title: string
|
|
26
|
+
apiKey: string
|
|
27
|
+
type: string
|
|
28
|
+
}
|
package/theme.ts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import type { PaletteMode, Theme } from "@mui/material/styles"
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import type { LOCALES } from "./language"
|
|
3
4
|
|
|
4
5
|
export type ThemeSubscriber = (theme: Theme) => void
|
|
5
|
-
export type JPaletteMode =
|
|
6
|
-
export type JThemeType = "
|
|
6
|
+
export type JPaletteMode = "default" | PaletteMode
|
|
7
|
+
export type JThemeType = "ng" | "portal"
|
|
7
8
|
|
|
8
|
-
export
|
|
9
|
+
export interface JSetThemeParams {
|
|
9
10
|
locale: LOCALES
|
|
10
11
|
mode: JPaletteMode
|
|
11
12
|
type: JThemeType
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export interface JThemeService {
|
|
15
|
-
|
|
16
|
-
setCurrentTheme(params: JSetThemeParams): void
|
|
16
|
+
getCurrentTheme(): Theme
|
|
17
17
|
getThemeImplementation(params: JSetThemeParams): Theme
|
|
18
18
|
isCurrentThemeDark(): boolean
|
|
19
|
-
|
|
19
|
+
setCurrentTheme(params: JSetThemeParams): void
|
|
20
|
+
setCurrentThemeDarkActive(isDarkThemeActive: boolean, locale: LOCALES): void
|
|
20
21
|
subscribeToThemeChange(callback: ThemeSubscriber): () => void
|
|
21
22
|
}
|