@backstage-community/plugin-servicenow 1.10.0 → 1.12.0
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/CHANGELOG.md +28 -0
- package/dist/alpha/plugin.esm.js.map +1 -1
- package/dist/alpha.d.ts +4 -4
- package/dist/alpha.esm.js +1 -1
- package/dist/api/ServiceNowBackendClient.esm.js.map +1 -1
- package/dist/components/Router.esm.js.map +1 -1
- package/dist/components/Servicenow/ClosedIcon.esm.js.map +1 -1
- package/dist/components/Servicenow/CustomSvgIcon.esm.js.map +1 -1
- package/dist/components/Servicenow/EntityServicenowContent.esm.js +1 -1
- package/dist/components/Servicenow/EntityServicenowContent.esm.js.map +1 -1
- package/dist/components/Servicenow/InProgressIcon.esm.js.map +1 -1
- package/dist/components/Servicenow/IncidentsFilter.esm.js.map +1 -1
- package/dist/components/Servicenow/IncidentsListColumns.esm.js.map +1 -1
- package/dist/components/Servicenow/IncidentsTableBody.esm.js.map +1 -1
- package/dist/components/Servicenow/IncidentsTableHeader.esm.js.map +1 -1
- package/dist/components/Servicenow/IncidentsTableRow.esm.js.map +1 -1
- package/dist/components/Servicenow/ModerateIcon.esm.js.map +1 -1
- package/dist/components/Servicenow/index.esm.js +5 -1
- package/dist/components/Servicenow/index.esm.js.map +1 -1
- package/dist/components/shared-components/IncidentEnumFilter.esm.js.map +1 -1
- package/dist/hooks/useDebouncedValue.esm.js.map +1 -1
- package/dist/hooks/useQueryArrayFilter.esm.js.map +1 -1
- package/dist/hooks/useQueryArrayState.esm.js.map +1 -1
- package/dist/hooks/useQueryHelpers.esm.js.map +1 -1
- package/dist/hooks/useQueryState.esm.js.map +1 -1
- package/dist/hooks/useTranslation.esm.js.map +1 -1
- package/dist/hooks/useUserEmail.esm.js.map +1 -1
- package/dist/plugin.esm.js.map +1 -1
- package/dist/routes.esm.js.map +1 -1
- package/dist/translations/de.esm.js +13 -13
- package/dist/translations/de.esm.js.map +1 -1
- package/dist/translations/es.esm.js +9 -9
- package/dist/translations/es.esm.js.map +1 -1
- package/dist/translations/fr.esm.js +13 -13
- package/dist/translations/fr.esm.js.map +1 -1
- package/dist/translations/index.esm.js.map +1 -1
- package/dist/translations/it.esm.js +15 -15
- package/dist/translations/it.esm.js.map +1 -1
- package/dist/translations/ja.esm.js +18 -18
- package/dist/translations/ja.esm.js.map +1 -1
- package/dist/translations/ref.esm.js.map +1 -1
- package/dist/types.esm.js.map +1 -1
- package/dist/utils/incidentUtils.esm.js.map +1 -1
- package/dist/utils/queryParamsUtils.esm.js.map +1 -1
- package/dist/utils/stringUtils.esm.js.map +1 -1
- package/package.json +14 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUserEmail.esm.js","sources":["../../src/hooks/useUserEmail.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { identityApiRef, useApi } from '@backstage/core-plugin-api';\nimport { catalogApiRef } from '@backstage/plugin-catalog-react';\nimport { UserEntity } from '@backstage/catalog-model';\nimport { useAsync } from 'react-use';\n\nexport function useUserEmail(kind: string): string | undefined {\n const identityApi = useApi(identityApiRef);\n const catalogApi = useApi(catalogApiRef);\n\n const state = useAsync(async () => {\n if (kind !== 'user') return undefined;\n\n const profile = await identityApi.getProfileInfo();\n if (profile?.email) return profile.email;\n\n const identity = await identityApi.getBackstageIdentity();\n const userEntity = (await catalogApi.getEntityByRef(\n identity.userEntityRef,\n )) as UserEntity | undefined;\n return userEntity?.spec?.profile?.email;\n }, [identityApi, catalogApi, kind]);\n\n return state.value;\n}\n\nexport default useUserEmail;\n"],"names":[],"mappings":";;;;AAqBO,SAAS,aAAa,
|
|
1
|
+
{"version":3,"file":"useUserEmail.esm.js","sources":["../../src/hooks/useUserEmail.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { identityApiRef, useApi } from '@backstage/core-plugin-api';\nimport { catalogApiRef } from '@backstage/plugin-catalog-react';\nimport { UserEntity } from '@backstage/catalog-model';\nimport { useAsync } from 'react-use';\n\nexport function useUserEmail(kind: string): string | undefined {\n const identityApi = useApi(identityApiRef);\n const catalogApi = useApi(catalogApiRef);\n\n const state = useAsync(async () => {\n if (kind !== 'user') return undefined;\n\n const profile = await identityApi.getProfileInfo();\n if (profile?.email) return profile.email;\n\n const identity = await identityApi.getBackstageIdentity();\n const userEntity = (await catalogApi.getEntityByRef(\n identity.userEntityRef,\n )) as UserEntity | undefined;\n return userEntity?.spec?.profile?.email;\n }, [identityApi, catalogApi, kind]);\n\n return state.value;\n}\n\nexport default useUserEmail;\n"],"names":[],"mappings":";;;;AAqBO,SAAS,aAAa,IAAA,EAAkC;AAC7D,EAAA,MAAM,WAAA,GAAc,OAAO,cAAc,CAAA;AACzC,EAAA,MAAM,UAAA,GAAa,OAAO,aAAa,CAAA;AAEvC,EAAA,MAAM,KAAA,GAAQ,SAAS,YAAY;AACjC,IAAA,IAAI,IAAA,KAAS,QAAQ,OAAO,MAAA;AAE5B,IAAA,MAAM,OAAA,GAAU,MAAM,WAAA,CAAY,cAAA,EAAe;AACjD,IAAA,IAAI,OAAA,EAAS,KAAA,EAAO,OAAO,OAAA,CAAQ,KAAA;AAEnC,IAAA,MAAM,QAAA,GAAW,MAAM,WAAA,CAAY,oBAAA,EAAqB;AACxD,IAAA,MAAM,UAAA,GAAc,MAAM,UAAA,CAAW,cAAA;AAAA,MACnC,QAAA,CAAS;AAAA,KACX;AACA,IAAA,OAAO,UAAA,EAAY,MAAM,OAAA,EAAS,KAAA;AAAA,EACpC,CAAA,EAAG,CAAC,WAAA,EAAa,UAAA,EAAY,IAAI,CAAC,CAAA;AAElC,EAAA,OAAO,KAAA,CAAM,KAAA;AACf;;;;"}
|
package/dist/plugin.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n createApiFactory,\n createComponentExtension,\n createPlugin,\n discoveryApiRef,\n fetchApiRef,\n identityApiRef,\n} from '@backstage/core-plugin-api';\nimport {\n Entity,\n parseEntityRef,\n stringifyEntityRef,\n} from '@backstage/catalog-model';\n\nimport { rootRouteRef } from './routes';\nimport {\n serviceNowApiRef,\n ServiceNowBackendClient,\n} from './api/ServiceNowBackendClient';\n\n/**\n * Servicenow Plugin\n * @public\n */\nexport const servicenowPlugin = createPlugin({\n id: 'servicenow',\n apis: [\n createApiFactory({\n api: serviceNowApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n identityApi: identityApiRef,\n },\n factory: ({ discoveryApi, fetchApi, identityApi }) =>\n new ServiceNowBackendClient(discoveryApi, fetchApi, identityApi),\n }),\n ],\n routes: {\n root: rootRouteRef,\n },\n});\n\n/**\n * Servicenow entity content that shows an incident table with a\n * filter similar to the catalog table\n * @public\n */\nexport const EntityServicenowContent = servicenowPlugin.provide(\n createComponentExtension({\n name: 'EntityServicenowContent',\n component: {\n lazy: () =>\n import('./components/Servicenow').then(m => m.EntityServicenowContent),\n },\n }),\n);\n\n/**\n * A component that wraps the service-now content in a memory router\n * @public\n */\nexport const Router = servicenowPlugin.provide(\n createComponentExtension({\n name: 'Router',\n component: {\n lazy: () => import('./components/Router').then(m => m.Router),\n },\n }),\n);\n\n/**\n * @deprecated please use `EntityServicenowCard` instead, this page\n * might be removed in future releases or replaced with a page\n * that lists the incidents assigned to the current user.\n * @public\n */\nexport const ServicenowPage = EntityServicenowContent;\n\n/**\n * Check if the current entity is the logged-in user\n * @public\n */\nexport const isMyProfile = (entity: Entity): boolean => {\n const currentUserRef = localStorage.getItem('userEntityRef');\n if (!currentUserRef) return false;\n\n try {\n const a = parseEntityRef(currentUserRef);\n const b = parseEntityRef(stringifyEntityRef(entity));\n return (\n a.kind.toLowerCase() === b.kind.toLowerCase() &&\n a.namespace.toLowerCase() === b.namespace.toLowerCase() &&\n a.name.toLowerCase() === b.name.toLowerCase()\n );\n } catch {\n return false;\n }\n};\n"],"names":[],"mappings":";;;;;AAuCO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n createApiFactory,\n createComponentExtension,\n createPlugin,\n discoveryApiRef,\n fetchApiRef,\n identityApiRef,\n} from '@backstage/core-plugin-api';\nimport {\n Entity,\n parseEntityRef,\n stringifyEntityRef,\n} from '@backstage/catalog-model';\n\nimport { rootRouteRef } from './routes';\nimport {\n serviceNowApiRef,\n ServiceNowBackendClient,\n} from './api/ServiceNowBackendClient';\n\n/**\n * Servicenow Plugin\n * @public\n */\nexport const servicenowPlugin = createPlugin({\n id: 'servicenow',\n apis: [\n createApiFactory({\n api: serviceNowApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n identityApi: identityApiRef,\n },\n factory: ({ discoveryApi, fetchApi, identityApi }) =>\n new ServiceNowBackendClient(discoveryApi, fetchApi, identityApi),\n }),\n ],\n routes: {\n root: rootRouteRef,\n },\n});\n\n/**\n * Servicenow entity content that shows an incident table with a\n * filter similar to the catalog table\n * @public\n */\nexport const EntityServicenowContent = servicenowPlugin.provide(\n createComponentExtension({\n name: 'EntityServicenowContent',\n component: {\n lazy: () =>\n import('./components/Servicenow').then(m => m.EntityServicenowContent),\n },\n }),\n);\n\n/**\n * A component that wraps the service-now content in a memory router\n * @public\n */\nexport const Router = servicenowPlugin.provide(\n createComponentExtension({\n name: 'Router',\n component: {\n lazy: () => import('./components/Router').then(m => m.Router),\n },\n }),\n);\n\n/**\n * @deprecated please use `EntityServicenowCard` instead, this page\n * might be removed in future releases or replaced with a page\n * that lists the incidents assigned to the current user.\n * @public\n */\nexport const ServicenowPage = EntityServicenowContent;\n\n/**\n * Check if the current entity is the logged-in user\n * @public\n */\nexport const isMyProfile = (entity: Entity): boolean => {\n const currentUserRef = localStorage.getItem('userEntityRef');\n if (!currentUserRef) return false;\n\n try {\n const a = parseEntityRef(currentUserRef);\n const b = parseEntityRef(stringifyEntityRef(entity));\n return (\n a.kind.toLowerCase() === b.kind.toLowerCase() &&\n a.namespace.toLowerCase() === b.namespace.toLowerCase() &&\n a.name.toLowerCase() === b.name.toLowerCase()\n );\n } catch {\n return false;\n }\n};\n"],"names":[],"mappings":";;;;;AAuCO,MAAM,mBAAmB,YAAA,CAAa;AAAA,EAC3C,EAAA,EAAI,YAAA;AAAA,EACJ,IAAA,EAAM;AAAA,IACJ,gBAAA,CAAiB;AAAA,MACf,GAAA,EAAK,gBAAA;AAAA,MACL,IAAA,EAAM;AAAA,QACJ,YAAA,EAAc,eAAA;AAAA,QACd,QAAA,EAAU,WAAA;AAAA,QACV,WAAA,EAAa;AAAA,OACf;AAAA,MACA,OAAA,EAAS,CAAC,EAAE,YAAA,EAAc,QAAA,EAAU,WAAA,EAAY,KAC9C,IAAI,uBAAA,CAAwB,YAAA,EAAc,QAAA,EAAU,WAAW;AAAA,KAClE;AAAA,GACH;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA;AAEV,CAAC;AAOM,MAAM,0BAA0B,gBAAA,CAAiB,OAAA;AAAA,EACtD,wBAAA,CAAyB;AAAA,IACvB,IAAA,EAAM,yBAAA;AAAA,IACN,SAAA,EAAW;AAAA,MACT,IAAA,EAAM,MACJ,OAAO,sCAAyB,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,uBAAuB;AAAA;AACzE,GACD;AACH;AAMO,MAAM,SAAS,gBAAA,CAAiB,OAAA;AAAA,EACrC,wBAAA,CAAyB;AAAA,IACvB,IAAA,EAAM,QAAA;AAAA,IACN,SAAA,EAAW;AAAA,MACT,IAAA,EAAM,MAAM,OAAO,4BAAqB,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,MAAM;AAAA;AAC9D,GACD;AACH;AAQO,MAAM,cAAA,GAAiB;AAMvB,MAAM,WAAA,GAAc,CAAC,MAAA,KAA4B;AACtD,EAAA,MAAM,cAAA,GAAiB,YAAA,CAAa,OAAA,CAAQ,eAAe,CAAA;AAC3D,EAAA,IAAI,CAAC,gBAAgB,OAAO,KAAA;AAE5B,EAAA,IAAI;AACF,IAAA,MAAM,CAAA,GAAI,eAAe,cAAc,CAAA;AACvC,IAAA,MAAM,CAAA,GAAI,cAAA,CAAe,kBAAA,CAAmB,MAAM,CAAC,CAAA;AACnD,IAAA,OACE,CAAA,CAAE,KAAK,WAAA,EAAY,KAAM,EAAE,IAAA,CAAK,WAAA,EAAY,IAC5C,CAAA,CAAE,SAAA,CAAU,WAAA,OAAkB,CAAA,CAAE,SAAA,CAAU,aAAY,IACtD,CAAA,CAAE,KAAK,WAAA,EAAY,KAAM,CAAA,CAAE,IAAA,CAAK,WAAA,EAAY;AAAA,EAEhD,CAAA,CAAA,MAAQ;AACN,IAAA,OAAO,KAAA;AAAA,EACT;AACF;;;;"}
|
package/dist/routes.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.esm.js","sources":["../src/routes.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createRouteRef } from '@backstage/core-plugin-api';\n\nexport const rootRouteRef = createRouteRef({\n id: 'servicenow',\n});\n"],"names":[],"mappings":";;AAiBO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"routes.esm.js","sources":["../src/routes.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createRouteRef } from '@backstage/core-plugin-api';\n\nexport const rootRouteRef = createRouteRef({\n id: 'servicenow',\n});\n"],"names":[],"mappings":";;AAiBO,MAAM,eAAe,cAAA,CAAe;AAAA,EACzC,EAAA,EAAI;AACN,CAAC;;;;"}
|
|
@@ -6,29 +6,29 @@ const servicenowTranslationDe = createTranslationMessages({
|
|
|
6
6
|
messages: {
|
|
7
7
|
"page.title": "ServiceNow-Tickets",
|
|
8
8
|
"page.titleWithCount": "ServiceNow-Tickets ({{count}})",
|
|
9
|
-
"table.searchPlaceholder": "Suchen",
|
|
10
|
-
"table.labelRowsSelect": "{{count}} Zeilen",
|
|
11
|
-
"table.columns.incidentNumber": "Vorfallnummer",
|
|
12
|
-
"table.columns.description": "Beschreibung",
|
|
13
|
-
"table.columns.created": "Erstellt",
|
|
14
|
-
"table.columns.priority": "Priorit\xE4t",
|
|
15
|
-
"table.columns.state": "Status",
|
|
16
|
-
"table.columns.actions": "Aktionen",
|
|
17
|
-
"table.emptyContent": "Keine Datens\xE4tze gefunden",
|
|
18
9
|
"filter.state": "Status",
|
|
19
10
|
"filter.priority": "Priorit\xE4t",
|
|
20
11
|
"priority.critical": "Kritisch",
|
|
21
12
|
"priority.high": "Hoch",
|
|
22
|
-
"priority.moderate": "
|
|
13
|
+
"priority.moderate": "Mittel",
|
|
23
14
|
"priority.low": "Niedrig",
|
|
24
15
|
"priority.planning": "Planung",
|
|
25
16
|
"incidentState.new": "Neu",
|
|
26
|
-
"incidentState.inProgress": "
|
|
27
|
-
"incidentState.onHold": "
|
|
17
|
+
"incidentState.inProgress": "In Bearbeitung",
|
|
18
|
+
"incidentState.onHold": "Zur\xFCckgestellt",
|
|
28
19
|
"incidentState.resolved": "Gel\xF6st",
|
|
29
20
|
"incidentState.closed": "Geschlossen",
|
|
30
|
-
"incidentState.cancelled": "
|
|
21
|
+
"incidentState.cancelled": "Storniert",
|
|
31
22
|
"errors.loadingIncidents": "Fehler beim Laden der Vorf\xE4lle: {{error}}",
|
|
23
|
+
"table.searchPlaceholder": "Suchen",
|
|
24
|
+
"table.labelRowsSelect": "{{count}} Zeilen",
|
|
25
|
+
"table.columns.incidentNumber": "Vorfallnummer",
|
|
26
|
+
"table.columns.description": "Beschreibung",
|
|
27
|
+
"table.columns.created": "Erstellt",
|
|
28
|
+
"table.columns.priority": "Priorit\xE4t",
|
|
29
|
+
"table.columns.state": "Status",
|
|
30
|
+
"table.columns.actions": "Aktionen",
|
|
31
|
+
"table.emptyContent": "Keine Datens\xE4tze gefunden",
|
|
32
32
|
"actions.openInServicenow": "In ServiceNow \xF6ffnen"
|
|
33
33
|
}
|
|
34
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.esm.js","sources":["../../src/translations/de.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createTranslationMessages } from '@backstage/core-plugin-api/alpha';\nimport { servicenowTranslationRef } from './ref';\n\n/**\n * de translation for plugin.servicenow.\n * @public\n */\nconst servicenowTranslationDe = createTranslationMessages({\n ref: servicenowTranslationRef,\n messages: {\n 'page.title': 'ServiceNow-Tickets',\n 'page.titleWithCount': 'ServiceNow-Tickets ({{count}})',\n '
|
|
1
|
+
{"version":3,"file":"de.esm.js","sources":["../../src/translations/de.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createTranslationMessages } from '@backstage/core-plugin-api/alpha';\nimport { servicenowTranslationRef } from './ref';\n\n/**\n * de translation for plugin.servicenow.\n * @public\n */\nconst servicenowTranslationDe = createTranslationMessages({\n ref: servicenowTranslationRef,\n messages: {\n 'page.title': 'ServiceNow-Tickets',\n 'page.titleWithCount': 'ServiceNow-Tickets ({{count}})',\n 'filter.state': 'Status',\n 'filter.priority': 'Priorität',\n 'priority.critical': 'Kritisch',\n 'priority.high': 'Hoch',\n 'priority.moderate': 'Mittel',\n 'priority.low': 'Niedrig',\n 'priority.planning': 'Planung',\n 'incidentState.new': 'Neu',\n 'incidentState.inProgress': 'In Bearbeitung',\n 'incidentState.onHold': 'Zurückgestellt',\n 'incidentState.resolved': 'Gelöst',\n 'incidentState.closed': 'Geschlossen',\n 'incidentState.cancelled': 'Storniert',\n 'errors.loadingIncidents': 'Fehler beim Laden der Vorfälle: {{error}}',\n 'table.searchPlaceholder': 'Suchen',\n 'table.labelRowsSelect': '{{count}} Zeilen',\n 'table.columns.incidentNumber': 'Vorfallnummer',\n 'table.columns.description': 'Beschreibung',\n 'table.columns.created': 'Erstellt',\n 'table.columns.priority': 'Priorität',\n 'table.columns.state': 'Status',\n 'table.columns.actions': 'Aktionen',\n 'table.emptyContent': 'Keine Datensätze gefunden',\n 'actions.openInServicenow': 'In ServiceNow öffnen',\n },\n});\n\nexport default servicenowTranslationDe;\n"],"names":[],"mappings":";;;AAuBA,MAAM,0BAA0B,yBAAA,CAA0B;AAAA,EACxD,GAAA,EAAK,wBAAA;AAAA,EACL,QAAA,EAAU;AAAA,IACR,YAAA,EAAc,oBAAA;AAAA,IACd,qBAAA,EAAuB,gCAAA;AAAA,IACvB,cAAA,EAAgB,QAAA;AAAA,IAChB,iBAAA,EAAmB,cAAA;AAAA,IACnB,mBAAA,EAAqB,UAAA;AAAA,IACrB,eAAA,EAAiB,MAAA;AAAA,IACjB,mBAAA,EAAqB,QAAA;AAAA,IACrB,cAAA,EAAgB,SAAA;AAAA,IAChB,mBAAA,EAAqB,SAAA;AAAA,IACrB,mBAAA,EAAqB,KAAA;AAAA,IACrB,0BAAA,EAA4B,gBAAA;AAAA,IAC5B,sBAAA,EAAwB,mBAAA;AAAA,IACxB,wBAAA,EAA0B,WAAA;AAAA,IAC1B,sBAAA,EAAwB,aAAA;AAAA,IACxB,yBAAA,EAA2B,WAAA;AAAA,IAC3B,yBAAA,EAA2B,8CAAA;AAAA,IAC3B,yBAAA,EAA2B,QAAA;AAAA,IAC3B,uBAAA,EAAyB,kBAAA;AAAA,IACzB,8BAAA,EAAgC,eAAA;AAAA,IAChC,2BAAA,EAA6B,cAAA;AAAA,IAC7B,uBAAA,EAAyB,UAAA;AAAA,IACzB,wBAAA,EAA0B,cAAA;AAAA,IAC1B,qBAAA,EAAuB,QAAA;AAAA,IACvB,uBAAA,EAAyB,UAAA;AAAA,IACzB,oBAAA,EAAsB,8BAAA;AAAA,IACtB,0BAAA,EAA4B;AAAA;AAEhC,CAAC;;;;"}
|
|
@@ -6,15 +6,6 @@ const servicenowTranslationEs = createTranslationMessages({
|
|
|
6
6
|
messages: {
|
|
7
7
|
"page.title": "Tickets de ServiceNow",
|
|
8
8
|
"page.titleWithCount": "Tickets de ServiceNow ({{count}})",
|
|
9
|
-
"table.searchPlaceholder": "Buscar",
|
|
10
|
-
"table.labelRowsSelect": "{{count}}\xA0filas",
|
|
11
|
-
"table.columns.incidentNumber": "N\xFAmero de incidente",
|
|
12
|
-
"table.columns.description": "Descripci\xF3n",
|
|
13
|
-
"table.columns.created": "Creado",
|
|
14
|
-
"table.columns.priority": "Prioridad",
|
|
15
|
-
"table.columns.state": "Estado",
|
|
16
|
-
"table.columns.actions": "Acciones",
|
|
17
|
-
"table.emptyContent": "No se encontraron registros",
|
|
18
9
|
"filter.state": "Estado",
|
|
19
10
|
"filter.priority": "Prioridad",
|
|
20
11
|
"priority.critical": "Cr\xEDtica",
|
|
@@ -29,6 +20,15 @@ const servicenowTranslationEs = createTranslationMessages({
|
|
|
29
20
|
"incidentState.closed": "Cerrado",
|
|
30
21
|
"incidentState.cancelled": "Cancelado",
|
|
31
22
|
"errors.loadingIncidents": "Error al cargar incidentes: {{error}}",
|
|
23
|
+
"table.searchPlaceholder": "Buscar",
|
|
24
|
+
"table.labelRowsSelect": "{{count}}\xA0filas",
|
|
25
|
+
"table.columns.incidentNumber": "N\xFAmero de incidente",
|
|
26
|
+
"table.columns.description": "Descripci\xF3n",
|
|
27
|
+
"table.columns.created": "Creado",
|
|
28
|
+
"table.columns.priority": "Prioridad",
|
|
29
|
+
"table.columns.state": "Estado",
|
|
30
|
+
"table.columns.actions": "Acciones",
|
|
31
|
+
"table.emptyContent": "No se encontraron registros",
|
|
32
32
|
"actions.openInServicenow": "Abrir en ServiceNow"
|
|
33
33
|
}
|
|
34
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.esm.js","sources":["../../src/translations/es.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createTranslationMessages } from '@backstage/core-plugin-api/alpha';\nimport { servicenowTranslationRef } from './ref';\n\n/**\n * es translation for plugin.servicenow.\n * @public\n */\nconst servicenowTranslationEs = createTranslationMessages({\n ref: servicenowTranslationRef,\n messages: {\n 'page.title': 'Tickets de ServiceNow',\n 'page.titleWithCount': 'Tickets de ServiceNow ({{count}})',\n '
|
|
1
|
+
{"version":3,"file":"es.esm.js","sources":["../../src/translations/es.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createTranslationMessages } from '@backstage/core-plugin-api/alpha';\nimport { servicenowTranslationRef } from './ref';\n\n/**\n * es translation for plugin.servicenow.\n * @public\n */\nconst servicenowTranslationEs = createTranslationMessages({\n ref: servicenowTranslationRef,\n messages: {\n 'page.title': 'Tickets de ServiceNow',\n 'page.titleWithCount': 'Tickets de ServiceNow ({{count}})',\n 'filter.state': 'Estado',\n 'filter.priority': 'Prioridad',\n 'priority.critical': 'Crítica',\n 'priority.high': 'Alta',\n 'priority.moderate': 'Moderada',\n 'priority.low': 'Baja',\n 'priority.planning': 'Planificación',\n 'incidentState.new': 'Nuevo',\n 'incidentState.inProgress': 'En curso',\n 'incidentState.onHold': 'En espera',\n 'incidentState.resolved': 'Resuelto',\n 'incidentState.closed': 'Cerrado',\n 'incidentState.cancelled': 'Cancelado',\n 'errors.loadingIncidents': 'Error al cargar incidentes: {{error}}',\n 'table.searchPlaceholder': 'Buscar',\n 'table.labelRowsSelect': '{{count}} filas',\n 'table.columns.incidentNumber': 'Número de incidente',\n 'table.columns.description': 'Descripción',\n 'table.columns.created': 'Creado',\n 'table.columns.priority': 'Prioridad',\n 'table.columns.state': 'Estado',\n 'table.columns.actions': 'Acciones',\n 'table.emptyContent': 'No se encontraron registros',\n 'actions.openInServicenow': 'Abrir en ServiceNow',\n },\n});\n\nexport default servicenowTranslationEs;\n"],"names":[],"mappings":";;;AAuBA,MAAM,0BAA0B,yBAAA,CAA0B;AAAA,EACxD,GAAA,EAAK,wBAAA;AAAA,EACL,QAAA,EAAU;AAAA,IACR,YAAA,EAAc,uBAAA;AAAA,IACd,qBAAA,EAAuB,mCAAA;AAAA,IACvB,cAAA,EAAgB,QAAA;AAAA,IAChB,iBAAA,EAAmB,WAAA;AAAA,IACnB,mBAAA,EAAqB,YAAA;AAAA,IACrB,eAAA,EAAiB,MAAA;AAAA,IACjB,mBAAA,EAAqB,UAAA;AAAA,IACrB,cAAA,EAAgB,MAAA;AAAA,IAChB,mBAAA,EAAqB,kBAAA;AAAA,IACrB,mBAAA,EAAqB,OAAA;AAAA,IACrB,0BAAA,EAA4B,UAAA;AAAA,IAC5B,sBAAA,EAAwB,WAAA;AAAA,IACxB,wBAAA,EAA0B,UAAA;AAAA,IAC1B,sBAAA,EAAwB,SAAA;AAAA,IACxB,yBAAA,EAA2B,WAAA;AAAA,IAC3B,yBAAA,EAA2B,uCAAA;AAAA,IAC3B,yBAAA,EAA2B,QAAA;AAAA,IAC3B,uBAAA,EAAyB,oBAAA;AAAA,IACzB,8BAAA,EAAgC,wBAAA;AAAA,IAChC,2BAAA,EAA6B,gBAAA;AAAA,IAC7B,uBAAA,EAAyB,QAAA;AAAA,IACzB,wBAAA,EAA0B,WAAA;AAAA,IAC1B,qBAAA,EAAuB,QAAA;AAAA,IACvB,uBAAA,EAAyB,UAAA;AAAA,IACzB,oBAAA,EAAsB,6BAAA;AAAA,IACtB,0BAAA,EAA4B;AAAA;AAEhC,CAAC;;;;"}
|
|
@@ -6,21 +6,12 @@ const servicenowTranslationFr = createTranslationMessages({
|
|
|
6
6
|
messages: {
|
|
7
7
|
"page.title": "Tickets ServiceNow",
|
|
8
8
|
"page.titleWithCount": "Tickets ServiceNow ({{count}})",
|
|
9
|
-
"table.searchPlaceholder": "Rechercher",
|
|
10
|
-
"table.labelRowsSelect": "{{count}} lignes",
|
|
11
|
-
"table.columns.incidentNumber": "Num\xE9ro d'incident",
|
|
12
|
-
"table.columns.description": "Description",
|
|
13
|
-
"table.columns.created": "Cr\xE9\xE9",
|
|
14
|
-
"table.columns.priority": "Priorit\xE9",
|
|
15
|
-
"table.columns.state": "\xC9tat",
|
|
16
|
-
"table.columns.actions": "Actions",
|
|
17
|
-
"table.emptyContent": "Aucun enregistrement trouv\xE9",
|
|
18
9
|
"filter.state": "\xC9tat",
|
|
19
10
|
"filter.priority": "Priorit\xE9",
|
|
20
11
|
"priority.critical": "Critique",
|
|
21
|
-
"priority.high": "\xC9lev\
|
|
22
|
-
"priority.moderate": "Mod\xE9r\
|
|
23
|
-
"priority.low": "
|
|
12
|
+
"priority.high": "\xC9lev\xE9",
|
|
13
|
+
"priority.moderate": "Mod\xE9r\xE9",
|
|
14
|
+
"priority.low": "Faible",
|
|
24
15
|
"priority.planning": "Planification",
|
|
25
16
|
"incidentState.new": "Nouveau",
|
|
26
17
|
"incidentState.inProgress": "En cours",
|
|
@@ -28,7 +19,16 @@ const servicenowTranslationFr = createTranslationMessages({
|
|
|
28
19
|
"incidentState.resolved": "R\xE9solu",
|
|
29
20
|
"incidentState.closed": "Ferm\xE9",
|
|
30
21
|
"incidentState.cancelled": "Annul\xE9",
|
|
31
|
-
"errors.loadingIncidents": "Erreur lors du chargement des incidents: {{error}}",
|
|
22
|
+
"errors.loadingIncidents": "Erreur lors du chargement des incidents\xA0: {{error}}",
|
|
23
|
+
"table.searchPlaceholder": "Recherche",
|
|
24
|
+
"table.labelRowsSelect": "{{count}} lignes",
|
|
25
|
+
"table.columns.incidentNumber": "Num\xE9ro d'incident",
|
|
26
|
+
"table.columns.description": "Description",
|
|
27
|
+
"table.columns.created": "Cr\xE9\xE9",
|
|
28
|
+
"table.columns.priority": "Priorit\xE9",
|
|
29
|
+
"table.columns.state": "\xC9tat",
|
|
30
|
+
"table.columns.actions": "Actions",
|
|
31
|
+
"table.emptyContent": "Aucun enregistrement trouv\xE9",
|
|
32
32
|
"actions.openInServicenow": "Ouvrir dans ServiceNow"
|
|
33
33
|
}
|
|
34
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.esm.js","sources":["../../src/translations/fr.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createTranslationMessages } from '@backstage/core-plugin-api/alpha';\nimport { servicenowTranslationRef } from './ref';\n\nconst servicenowTranslationFr = createTranslationMessages({\n ref: servicenowTranslationRef,\n messages: {\n 'page.title': 'Tickets ServiceNow',\n 'page.titleWithCount': 'Tickets ServiceNow ({{count}})',\n '
|
|
1
|
+
{"version":3,"file":"fr.esm.js","sources":["../../src/translations/fr.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createTranslationMessages } from '@backstage/core-plugin-api/alpha';\nimport { servicenowTranslationRef } from './ref';\n\n/**\n * fr translation for plugin.servicenow.\n * @public\n */\nconst servicenowTranslationFr = createTranslationMessages({\n ref: servicenowTranslationRef,\n messages: {\n 'page.title': 'Tickets ServiceNow',\n 'page.titleWithCount': 'Tickets ServiceNow ({{count}})',\n 'filter.state': 'État',\n 'filter.priority': 'Priorité',\n 'priority.critical': 'Critique',\n 'priority.high': 'Élevé',\n 'priority.moderate': 'Modéré',\n 'priority.low': 'Faible',\n 'priority.planning': 'Planification',\n 'incidentState.new': 'Nouveau',\n 'incidentState.inProgress': 'En cours',\n 'incidentState.onHold': 'En attente',\n 'incidentState.resolved': 'Résolu',\n 'incidentState.closed': 'Fermé',\n 'incidentState.cancelled': 'Annulé',\n 'errors.loadingIncidents':\n 'Erreur lors du chargement des incidents : {{error}}',\n 'table.searchPlaceholder': 'Recherche',\n 'table.labelRowsSelect': '{{count}} lignes',\n 'table.columns.incidentNumber': \"Numéro d'incident\",\n 'table.columns.description': 'Description',\n 'table.columns.created': 'Créé',\n 'table.columns.priority': 'Priorité',\n 'table.columns.state': 'État',\n 'table.columns.actions': 'Actions',\n 'table.emptyContent': 'Aucun enregistrement trouvé',\n 'actions.openInServicenow': 'Ouvrir dans ServiceNow',\n },\n});\n\nexport default servicenowTranslationFr;\n"],"names":[],"mappings":";;;AAuBA,MAAM,0BAA0B,yBAAA,CAA0B;AAAA,EACxD,GAAA,EAAK,wBAAA;AAAA,EACL,QAAA,EAAU;AAAA,IACR,YAAA,EAAc,oBAAA;AAAA,IACd,qBAAA,EAAuB,gCAAA;AAAA,IACvB,cAAA,EAAgB,SAAA;AAAA,IAChB,iBAAA,EAAmB,aAAA;AAAA,IACnB,mBAAA,EAAqB,UAAA;AAAA,IACrB,eAAA,EAAiB,aAAA;AAAA,IACjB,mBAAA,EAAqB,cAAA;AAAA,IACrB,cAAA,EAAgB,QAAA;AAAA,IAChB,mBAAA,EAAqB,eAAA;AAAA,IACrB,mBAAA,EAAqB,SAAA;AAAA,IACrB,0BAAA,EAA4B,UAAA;AAAA,IAC5B,sBAAA,EAAwB,YAAA;AAAA,IACxB,wBAAA,EAA0B,WAAA;AAAA,IAC1B,sBAAA,EAAwB,UAAA;AAAA,IACxB,yBAAA,EAA2B,WAAA;AAAA,IAC3B,yBAAA,EACE,wDAAA;AAAA,IACF,yBAAA,EAA2B,WAAA;AAAA,IAC3B,uBAAA,EAAyB,kBAAA;AAAA,IACzB,8BAAA,EAAgC,sBAAA;AAAA,IAChC,2BAAA,EAA6B,aAAA;AAAA,IAC7B,uBAAA,EAAyB,YAAA;AAAA,IACzB,wBAAA,EAA0B,aAAA;AAAA,IAC1B,qBAAA,EAAuB,SAAA;AAAA,IACvB,uBAAA,EAAyB,SAAA;AAAA,IACzB,oBAAA,EAAsB,gCAAA;AAAA,IACtB,0BAAA,EAA4B;AAAA;AAEhC,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../src/translations/index.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createTranslationResource } from '@backstage/core-plugin-api/alpha';\nimport { servicenowTranslationRef } from './ref';\n\n/**\n * Translation resources for the ServiceNow plugin.\n * @alpha\n */\nexport const servicenowTranslations = createTranslationResource({\n ref: servicenowTranslationRef,\n translations: {\n de: () => import('./de'),\n fr: () => import('./fr'),\n it: () => import('./it'),\n es: () => import('./es'),\n ja: () => import('./ja'),\n },\n});\n\nexport { servicenowTranslationRef };\n"],"names":[],"mappings":";;;AAsBO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../src/translations/index.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createTranslationResource } from '@backstage/core-plugin-api/alpha';\nimport { servicenowTranslationRef } from './ref';\n\n/**\n * Translation resources for the ServiceNow plugin.\n * @alpha\n */\nexport const servicenowTranslations = createTranslationResource({\n ref: servicenowTranslationRef,\n translations: {\n de: () => import('./de'),\n fr: () => import('./fr'),\n it: () => import('./it'),\n es: () => import('./es'),\n ja: () => import('./ja'),\n },\n});\n\nexport { servicenowTranslationRef };\n"],"names":[],"mappings":";;;AAsBO,MAAM,yBAAyB,yBAAA,CAA0B;AAAA,EAC9D,GAAA,EAAK,wBAAA;AAAA,EACL,YAAA,EAAc;AAAA,IACZ,EAAA,EAAI,MAAM,OAAO,aAAM,CAAA;AAAA,IACvB,EAAA,EAAI,MAAM,OAAO,aAAM,CAAA;AAAA,IACvB,EAAA,EAAI,MAAM,OAAO,aAAM,CAAA;AAAA,IACvB,EAAA,EAAI,MAAM,OAAO,aAAM,CAAA;AAAA,IACvB,EAAA,EAAI,MAAM,OAAO,aAAM;AAAA;AAE3B,CAAC;;;;"}
|
|
@@ -4,22 +4,13 @@ import { servicenowTranslationRef } from './ref.esm.js';
|
|
|
4
4
|
const servicenowTranslationIt = createTranslationMessages({
|
|
5
5
|
ref: servicenowTranslationRef,
|
|
6
6
|
messages: {
|
|
7
|
-
"page.title": "Ticket ServiceNow",
|
|
8
|
-
"page.titleWithCount": "Ticket ServiceNow ({{count}})",
|
|
9
|
-
"table.searchPlaceholder": "Cerca",
|
|
10
|
-
"table.labelRowsSelect": "{{count}} righe",
|
|
11
|
-
"table.columns.incidentNumber": "Numero incidente",
|
|
12
|
-
"table.columns.description": "Descrizione",
|
|
13
|
-
"table.columns.created": "Creato",
|
|
14
|
-
"table.columns.priority": "Priorit\xE0",
|
|
15
|
-
"table.columns.state": "Stato",
|
|
16
|
-
"table.columns.actions": "Azioni",
|
|
17
|
-
"table.emptyContent": "Nessun record trovato",
|
|
7
|
+
"page.title": "Ticket di ServiceNow",
|
|
8
|
+
"page.titleWithCount": "Ticket di ServiceNow ({{count}})",
|
|
18
9
|
"filter.state": "Stato",
|
|
19
10
|
"filter.priority": "Priorit\xE0",
|
|
20
|
-
"priority.critical": "
|
|
21
|
-
"priority.high": "
|
|
22
|
-
"priority.moderate": "
|
|
11
|
+
"priority.critical": "Critico",
|
|
12
|
+
"priority.high": "Elevata",
|
|
13
|
+
"priority.moderate": "Moderato",
|
|
23
14
|
"priority.low": "Bassa",
|
|
24
15
|
"priority.planning": "Pianificazione",
|
|
25
16
|
"incidentState.new": "Nuovo",
|
|
@@ -28,7 +19,16 @@ const servicenowTranslationIt = createTranslationMessages({
|
|
|
28
19
|
"incidentState.resolved": "Risolto",
|
|
29
20
|
"incidentState.closed": "Chiuso",
|
|
30
21
|
"incidentState.cancelled": "Annullato",
|
|
31
|
-
"errors.loadingIncidents": "Errore durante il caricamento
|
|
22
|
+
"errors.loadingIncidents": "Errore durante il caricamento incidenti: {{error}}",
|
|
23
|
+
"table.searchPlaceholder": "Ricerca",
|
|
24
|
+
"table.labelRowsSelect": "{{count}} righe",
|
|
25
|
+
"table.columns.incidentNumber": "Numero incidente",
|
|
26
|
+
"table.columns.description": "Descrizione",
|
|
27
|
+
"table.columns.created": "Creato",
|
|
28
|
+
"table.columns.priority": "Priorit\xE0",
|
|
29
|
+
"table.columns.state": "Stato",
|
|
30
|
+
"table.columns.actions": "Azioni",
|
|
31
|
+
"table.emptyContent": "Nessun risultato trovato",
|
|
32
32
|
"actions.openInServicenow": "Apri in ServiceNow"
|
|
33
33
|
}
|
|
34
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it.esm.js","sources":["../../src/translations/it.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createTranslationMessages } from '@backstage/core-plugin-api/alpha';\nimport { servicenowTranslationRef } from './ref';\n\nconst servicenowTranslationIt = createTranslationMessages({\n ref: servicenowTranslationRef,\n messages: {\n 'page.title': 'Ticket ServiceNow',\n 'page.titleWithCount': 'Ticket ServiceNow ({{count}})',\n '
|
|
1
|
+
{"version":3,"file":"it.esm.js","sources":["../../src/translations/it.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createTranslationMessages } from '@backstage/core-plugin-api/alpha';\nimport { servicenowTranslationRef } from './ref';\n\n/**\n * Italian translation for plugin.servicenow.\n * @public\n */\nconst servicenowTranslationIt = createTranslationMessages({\n ref: servicenowTranslationRef,\n messages: {\n 'page.title': 'Ticket di ServiceNow',\n 'page.titleWithCount': 'Ticket di ServiceNow ({{count}})',\n 'filter.state': 'Stato',\n 'filter.priority': 'Priorità',\n 'priority.critical': 'Critico',\n 'priority.high': 'Elevata',\n 'priority.moderate': 'Moderato',\n 'priority.low': 'Bassa',\n 'priority.planning': 'Pianificazione',\n 'incidentState.new': 'Nuovo',\n 'incidentState.inProgress': 'In corso',\n 'incidentState.onHold': 'In attesa',\n 'incidentState.resolved': 'Risolto',\n 'incidentState.closed': 'Chiuso',\n 'incidentState.cancelled': 'Annullato',\n 'errors.loadingIncidents':\n 'Errore durante il caricamento incidenti: {{error}}',\n 'table.searchPlaceholder': 'Ricerca',\n 'table.labelRowsSelect': '{{count}} righe',\n 'table.columns.incidentNumber': 'Numero incidente',\n 'table.columns.description': 'Descrizione',\n 'table.columns.created': 'Creato',\n 'table.columns.priority': 'Priorità',\n 'table.columns.state': 'Stato',\n 'table.columns.actions': 'Azioni',\n 'table.emptyContent': 'Nessun risultato trovato',\n 'actions.openInServicenow': 'Apri in ServiceNow',\n },\n});\n\nexport default servicenowTranslationIt;\n"],"names":[],"mappings":";;;AAuBA,MAAM,0BAA0B,yBAAA,CAA0B;AAAA,EACxD,GAAA,EAAK,wBAAA;AAAA,EACL,QAAA,EAAU;AAAA,IACR,YAAA,EAAc,sBAAA;AAAA,IACd,qBAAA,EAAuB,kCAAA;AAAA,IACvB,cAAA,EAAgB,OAAA;AAAA,IAChB,iBAAA,EAAmB,aAAA;AAAA,IACnB,mBAAA,EAAqB,SAAA;AAAA,IACrB,eAAA,EAAiB,SAAA;AAAA,IACjB,mBAAA,EAAqB,UAAA;AAAA,IACrB,cAAA,EAAgB,OAAA;AAAA,IAChB,mBAAA,EAAqB,gBAAA;AAAA,IACrB,mBAAA,EAAqB,OAAA;AAAA,IACrB,0BAAA,EAA4B,UAAA;AAAA,IAC5B,sBAAA,EAAwB,WAAA;AAAA,IACxB,wBAAA,EAA0B,SAAA;AAAA,IAC1B,sBAAA,EAAwB,QAAA;AAAA,IACxB,yBAAA,EAA2B,WAAA;AAAA,IAC3B,yBAAA,EACE,oDAAA;AAAA,IACF,yBAAA,EAA2B,SAAA;AAAA,IAC3B,uBAAA,EAAyB,iBAAA;AAAA,IACzB,8BAAA,EAAgC,kBAAA;AAAA,IAChC,2BAAA,EAA6B,aAAA;AAAA,IAC7B,uBAAA,EAAyB,QAAA;AAAA,IACzB,wBAAA,EAA0B,aAAA;AAAA,IAC1B,qBAAA,EAAuB,OAAA;AAAA,IACvB,uBAAA,EAAyB,QAAA;AAAA,IACzB,oBAAA,EAAsB,0BAAA;AAAA,IACtB,0BAAA,EAA4B;AAAA;AAEhC,CAAC;;;;"}
|
|
@@ -4,32 +4,32 @@ import { servicenowTranslationRef } from './ref.esm.js';
|
|
|
4
4
|
const servicenowTranslationJa = createTranslationMessages({
|
|
5
5
|
ref: servicenowTranslationRef,
|
|
6
6
|
messages: {
|
|
7
|
-
"page.title": "ServiceNow\u30C1\u30B1\u30C3\u30C8",
|
|
8
|
-
"page.titleWithCount": "ServiceNow\u30C1\u30B1\u30C3\u30C8 ({{count}})",
|
|
9
|
-
"table.searchPlaceholder": "\u691C\u7D22",
|
|
10
|
-
"table.labelRowsSelect": "{{count}} \u884C",
|
|
11
|
-
"table.columns.incidentNumber": "\u30A4\u30F3\u30B7\u30C7\u30F3\u30C8\u756A\u53F7",
|
|
12
|
-
"table.columns.description": "\u8AAC\u660E",
|
|
13
|
-
"table.columns.created": "\u4F5C\u6210\u65E5\u6642",
|
|
14
|
-
"table.columns.priority": "\u512A\u5148\u5EA6",
|
|
15
|
-
"table.columns.state": "\u72B6\u614B",
|
|
16
|
-
"table.columns.actions": "\u30A2\u30AF\u30B7\u30E7\u30F3",
|
|
17
|
-
"table.emptyContent": "\u30EC\u30B3\u30FC\u30C9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093",
|
|
7
|
+
"page.title": "ServiceNow \u30C1\u30B1\u30C3\u30C8",
|
|
8
|
+
"page.titleWithCount": "ServiceNow \u30C1\u30B1\u30C3\u30C8 ({{count}})",
|
|
18
9
|
"filter.state": "\u72B6\u614B",
|
|
19
10
|
"filter.priority": "\u512A\u5148\u5EA6",
|
|
20
|
-
"priority.critical": "\
|
|
11
|
+
"priority.critical": "\u91CD\u5927",
|
|
21
12
|
"priority.high": "\u9AD8",
|
|
22
|
-
"priority.moderate": "\u4E2D",
|
|
13
|
+
"priority.moderate": "\u4E2D\u7A0B\u5EA6",
|
|
23
14
|
"priority.low": "\u4F4E",
|
|
24
15
|
"priority.planning": "\u8A08\u753B\u4E2D",
|
|
25
16
|
"incidentState.new": "\u65B0\u898F",
|
|
26
|
-
"incidentState.inProgress": "\
|
|
17
|
+
"incidentState.inProgress": "\u9032\u884C\u4E2D",
|
|
27
18
|
"incidentState.onHold": "\u4FDD\u7559\u4E2D",
|
|
28
19
|
"incidentState.resolved": "\u89E3\u6C7A\u6E08\u307F",
|
|
29
|
-
"incidentState.closed": "\u30AF\u30ED\u30FC\u30BA",
|
|
30
|
-
"incidentState.cancelled": "\u30AD\u30E3\u30F3\u30BB\u30EB",
|
|
31
|
-
"errors.loadingIncidents": "\u30A4\u30F3\u30B7\u30C7\u30F3\u30C8\u306E\u8AAD\u307F\u8FBC\u307F\u30A8\u30E9\u30FC: {{error}}",
|
|
32
|
-
"
|
|
20
|
+
"incidentState.closed": "\u30AF\u30ED\u30FC\u30BA\u6E08\u307F",
|
|
21
|
+
"incidentState.cancelled": "\u30AD\u30E3\u30F3\u30BB\u30EB\u6E08\u307F",
|
|
22
|
+
"errors.loadingIncidents": "\u30A4\u30F3\u30B7\u30C7\u30F3\u30C8\u306E\u8AAD\u307F\u8FBC\u307F\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F: {{error}}",
|
|
23
|
+
"table.searchPlaceholder": "\u691C\u7D22",
|
|
24
|
+
"table.labelRowsSelect": "{{count}} \u884C",
|
|
25
|
+
"table.columns.incidentNumber": "\u30A4\u30F3\u30B7\u30C7\u30F3\u30C8\u756A\u53F7",
|
|
26
|
+
"table.columns.description": "\u8AAC\u660E",
|
|
27
|
+
"table.columns.created": "\u4F5C\u6210\u6E08\u307F",
|
|
28
|
+
"table.columns.priority": "\u512A\u5148\u5EA6",
|
|
29
|
+
"table.columns.state": "\u72B6\u614B",
|
|
30
|
+
"table.columns.actions": "\u30A2\u30AF\u30B7\u30E7\u30F3",
|
|
31
|
+
"table.emptyContent": "\u30EC\u30B3\u30FC\u30C9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093",
|
|
32
|
+
"actions.openInServicenow": "ServiceNow \u3067\u958B\u304F"
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ja.esm.js","sources":["../../src/translations/ja.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createTranslationMessages } from '@backstage/core-plugin-api/alpha';\nimport { servicenowTranslationRef } from './ref';\n\nconst servicenowTranslationJa = createTranslationMessages({\n ref: servicenowTranslationRef,\n messages: {\n 'page.title': 'ServiceNowチケット',\n 'page.titleWithCount': 'ServiceNowチケット ({{count}})',\n '
|
|
1
|
+
{"version":3,"file":"ja.esm.js","sources":["../../src/translations/ja.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createTranslationMessages } from '@backstage/core-plugin-api/alpha';\nimport { servicenowTranslationRef } from './ref';\n\n/**\n * Japanese translation for plugin.servicenow.\n * @public\n */\nconst servicenowTranslationJa = createTranslationMessages({\n ref: servicenowTranslationRef,\n messages: {\n 'page.title': 'ServiceNow チケット',\n 'page.titleWithCount': 'ServiceNow チケット ({{count}})',\n 'filter.state': '状態',\n 'filter.priority': '優先度',\n 'priority.critical': '重大',\n 'priority.high': '高',\n 'priority.moderate': '中程度',\n 'priority.low': '低',\n 'priority.planning': '計画中',\n 'incidentState.new': '新規',\n 'incidentState.inProgress': '進行中',\n 'incidentState.onHold': '保留中',\n 'incidentState.resolved': '解決済み',\n 'incidentState.closed': 'クローズ済み',\n 'incidentState.cancelled': 'キャンセル済み',\n 'errors.loadingIncidents':\n 'インシデントの読み込み中にエラーが発生: {{error}}',\n 'table.searchPlaceholder': '検索',\n 'table.labelRowsSelect': '{{count}} 行',\n 'table.columns.incidentNumber': 'インシデント番号',\n 'table.columns.description': '説明',\n 'table.columns.created': '作成済み',\n 'table.columns.priority': '優先度',\n 'table.columns.state': '状態',\n 'table.columns.actions': 'アクション',\n 'table.emptyContent': 'レコードが見つかりません',\n 'actions.openInServicenow': 'ServiceNow で開く',\n },\n});\n\nexport default servicenowTranslationJa;\n"],"names":[],"mappings":";;;AAuBA,MAAM,0BAA0B,yBAAA,CAA0B;AAAA,EACxD,GAAA,EAAK,wBAAA;AAAA,EACL,QAAA,EAAU;AAAA,IACR,YAAA,EAAc,qCAAA;AAAA,IACd,qBAAA,EAAuB,iDAAA;AAAA,IACvB,cAAA,EAAgB,cAAA;AAAA,IAChB,iBAAA,EAAmB,oBAAA;AAAA,IACnB,mBAAA,EAAqB,cAAA;AAAA,IACrB,eAAA,EAAiB,QAAA;AAAA,IACjB,mBAAA,EAAqB,oBAAA;AAAA,IACrB,cAAA,EAAgB,QAAA;AAAA,IAChB,mBAAA,EAAqB,oBAAA;AAAA,IACrB,mBAAA,EAAqB,cAAA;AAAA,IACrB,0BAAA,EAA4B,oBAAA;AAAA,IAC5B,sBAAA,EAAwB,oBAAA;AAAA,IACxB,wBAAA,EAA0B,0BAAA;AAAA,IAC1B,sBAAA,EAAwB,sCAAA;AAAA,IACxB,yBAAA,EAA2B,4CAAA;AAAA,IAC3B,yBAAA,EACE,+HAAA;AAAA,IACF,yBAAA,EAA2B,cAAA;AAAA,IAC3B,uBAAA,EAAyB,kBAAA;AAAA,IACzB,8BAAA,EAAgC,kDAAA;AAAA,IAChC,2BAAA,EAA6B,cAAA;AAAA,IAC7B,uBAAA,EAAyB,0BAAA;AAAA,IACzB,wBAAA,EAA0B,oBAAA;AAAA,IAC1B,qBAAA,EAAuB,cAAA;AAAA,IACvB,uBAAA,EAAyB,gCAAA;AAAA,IACzB,oBAAA,EAAsB,0EAAA;AAAA,IACtB,0BAAA,EAA4B;AAAA;AAEhC,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref.esm.js","sources":["../../src/translations/ref.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createTranslationRef } from '@backstage/core-plugin-api/alpha';\n\nexport const servicenowMessages = {\n page: {\n title: 'ServiceNow tickets',\n titleWithCount: 'ServiceNow tickets ({{count}})',\n },\n table: {\n searchPlaceholder: 'Search',\n labelRowsSelect: '{{count}} rows',\n columns: {\n incidentNumber: 'Incident Number',\n description: 'Description',\n created: 'Created',\n priority: 'Priority',\n state: 'State',\n actions: 'Actions',\n },\n emptyContent: 'No records found',\n },\n filter: {\n state: 'State',\n priority: 'Priority',\n },\n priority: {\n critical: 'Critical',\n high: 'High',\n moderate: 'Moderate',\n low: 'Low',\n planning: 'Planning',\n },\n incidentState: {\n new: 'New',\n inProgress: 'In Progress',\n onHold: 'On Hold',\n resolved: 'Resolved',\n closed: 'Closed',\n cancelled: 'Cancelled',\n },\n errors: {\n loadingIncidents: 'Error loading incidents: {{error}}',\n },\n actions: {\n openInServicenow: 'Open in ServiceNow',\n },\n};\n\n/**\n * Translation reference for the ServiceNow plugin.\n * @alpha\n */\nexport const servicenowTranslationRef = createTranslationRef({\n id: 'plugin.servicenow',\n messages: servicenowMessages,\n});\n"],"names":[],"mappings":";;AAiBO,MAAM,
|
|
1
|
+
{"version":3,"file":"ref.esm.js","sources":["../../src/translations/ref.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createTranslationRef } from '@backstage/core-plugin-api/alpha';\n\nexport const servicenowMessages = {\n page: {\n title: 'ServiceNow tickets',\n titleWithCount: 'ServiceNow tickets ({{count}})',\n },\n table: {\n searchPlaceholder: 'Search',\n labelRowsSelect: '{{count}} rows',\n columns: {\n incidentNumber: 'Incident Number',\n description: 'Description',\n created: 'Created',\n priority: 'Priority',\n state: 'State',\n actions: 'Actions',\n },\n emptyContent: 'No records found',\n },\n filter: {\n state: 'State',\n priority: 'Priority',\n },\n priority: {\n critical: 'Critical',\n high: 'High',\n moderate: 'Moderate',\n low: 'Low',\n planning: 'Planning',\n },\n incidentState: {\n new: 'New',\n inProgress: 'In Progress',\n onHold: 'On Hold',\n resolved: 'Resolved',\n closed: 'Closed',\n cancelled: 'Cancelled',\n },\n errors: {\n loadingIncidents: 'Error loading incidents: {{error}}',\n },\n actions: {\n openInServicenow: 'Open in ServiceNow',\n },\n};\n\n/**\n * Translation reference for the ServiceNow plugin.\n * @alpha\n */\nexport const servicenowTranslationRef = createTranslationRef({\n id: 'plugin.servicenow',\n messages: servicenowMessages,\n});\n"],"names":[],"mappings":";;AAiBO,MAAM,kBAAA,GAAqB;AAAA,EAChC,IAAA,EAAM;AAAA,IACJ,KAAA,EAAO,oBAAA;AAAA,IACP,cAAA,EAAgB;AAAA,GAClB;AAAA,EACA,KAAA,EAAO;AAAA,IACL,iBAAA,EAAmB,QAAA;AAAA,IACnB,eAAA,EAAiB,gBAAA;AAAA,IACjB,OAAA,EAAS;AAAA,MACP,cAAA,EAAgB,iBAAA;AAAA,MAChB,WAAA,EAAa,aAAA;AAAA,MACb,OAAA,EAAS,SAAA;AAAA,MACT,QAAA,EAAU,UAAA;AAAA,MACV,KAAA,EAAO,OAAA;AAAA,MACP,OAAA,EAAS;AAAA,KACX;AAAA,IACA,YAAA,EAAc;AAAA,GAChB;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,KAAA,EAAO,OAAA;AAAA,IACP,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,QAAA,EAAU;AAAA,IACR,QAAA,EAAU,UAAA;AAAA,IACV,IAAA,EAAM,MAAA;AAAA,IACN,QAAA,EAAU,UAAA;AAAA,IACV,GAAA,EAAK,KAAA;AAAA,IACL,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,aAAA,EAAe;AAAA,IACb,GAAA,EAAK,KAAA;AAAA,IACL,UAAA,EAAY,aAAA;AAAA,IACZ,MAAA,EAAQ,SAAA;AAAA,IACR,QAAA,EAAU,UAAA;AAAA,IACV,MAAA,EAAQ,QAAA;AAAA,IACR,SAAA,EAAW;AAAA,GACb;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,gBAAA,EAAkB;AAAA,GACpB;AAAA,EACA,OAAA,EAAS;AAAA,IACP,gBAAA,EAAkB;AAAA;AAEtB;AAMO,MAAM,2BAA2B,oBAAA,CAAqB;AAAA,EAC3D,EAAA,EAAI,mBAAA;AAAA,EACJ,QAAA,EAAU;AACZ,CAAC;;;;"}
|
package/dist/types.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.esm.js","sources":["../src/types.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { IncidentFieldEnum } from '@backstage-community/plugin-servicenow-common';\n\nexport type IncidentsData = {\n sysId: string;\n number: string;\n shortDescription: string;\n description: string;\n sysCreatedOn: string;\n priority: number;\n incidentState: number;\n url: string;\n};\n\nexport type IncidentTableFieldEnumType = Omit<\n typeof IncidentFieldEnum,\n 'Description'\n>;\n\nexport const IncidentTableFieldEnum: IncidentTableFieldEnumType = {\n Created: IncidentFieldEnum.Created,\n IncidentState: IncidentFieldEnum.IncidentState,\n Number: IncidentFieldEnum.Number,\n Priority: IncidentFieldEnum.Priority,\n ShortDescription: IncidentFieldEnum.ShortDescription,\n Url: IncidentFieldEnum.Url,\n};\n\nexport type IncidentTableField =\n (typeof IncidentTableFieldEnum)[keyof typeof IncidentTableFieldEnum];\n\nexport type PaginatedIncidentsData = {\n incidents: IncidentsData[];\n totalCount: number;\n};\n"],"names":[],"mappings":";;AAkCO,MAAM,
|
|
1
|
+
{"version":3,"file":"types.esm.js","sources":["../src/types.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { IncidentFieldEnum } from '@backstage-community/plugin-servicenow-common';\n\nexport type IncidentsData = {\n sysId: string;\n number: string;\n shortDescription: string;\n description: string;\n sysCreatedOn: string;\n priority: number;\n incidentState: number;\n url: string;\n};\n\nexport type IncidentTableFieldEnumType = Omit<\n typeof IncidentFieldEnum,\n 'Description'\n>;\n\nexport const IncidentTableFieldEnum: IncidentTableFieldEnumType = {\n Created: IncidentFieldEnum.Created,\n IncidentState: IncidentFieldEnum.IncidentState,\n Number: IncidentFieldEnum.Number,\n Priority: IncidentFieldEnum.Priority,\n ShortDescription: IncidentFieldEnum.ShortDescription,\n Url: IncidentFieldEnum.Url,\n};\n\nexport type IncidentTableField =\n (typeof IncidentTableFieldEnum)[keyof typeof IncidentTableFieldEnum];\n\nexport type PaginatedIncidentsData = {\n incidents: IncidentsData[];\n totalCount: number;\n};\n"],"names":[],"mappings":";;AAkCO,MAAM,sBAAA,GAAqD;AAAA,EAChE,SAAS,iBAAA,CAAkB,OAAA;AAAA,EAC3B,eAAe,iBAAA,CAAkB,aAAA;AAAA,EACjC,QAAQ,iBAAA,CAAkB,MAAA;AAAA,EAC1B,UAAU,iBAAA,CAAkB,QAAA;AAAA,EAC5B,kBAAkB,iBAAA,CAAkB,gBAAA;AAAA,EACpC,KAAK,iBAAA,CAAkB;AACzB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incidentUtils.esm.js","sources":["../../src/utils/incidentUtils.tsx"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { ElementType, useMemo } from 'react';\nimport LabelImportantIcon from '@mui/icons-material/LabelImportant';\nimport KeyboardDoubleArrowDownIcon from '@mui/icons-material/KeyboardDoubleArrowDown';\nimport KeyboardDoubleArrowUpIcon from '@mui/icons-material/KeyboardDoubleArrowUp';\nimport FormatListNumberedIcon from '@mui/icons-material/FormatListNumbered';\nimport PendingOutlinedIcon from '@mui/icons-material/PendingOutlined';\nimport CheckCircleOutlineIcon from '@mui/icons-material/CheckCircleOutline';\nimport PauseCircleOutlineIcon from '@mui/icons-material/PauseCircleOutline';\nimport { ModerateIcon } from '../components/Servicenow/ModerateIcon';\nimport { InProgressIcon } from '../components/Servicenow/InProgressIcon';\nimport { ClosedIcon } from '../components/Servicenow/ClosedIcon';\n\nimport Typography from '@mui/material/Typography';\nimport { useTranslation } from '../hooks/useTranslation';\n\nexport interface StatusData {\n Icon: ElementType;\n color: string;\n label: string;\n transform?: string;\n}\n\nconst iconStyleBase = { marginRight: 8 };\nconst typographyStyleBase = { display: 'flex', alignItems: 'center' };\n\n/**\n * @deprecated Use usePriorityMap hook for translated labels\n */\nexport const PRIORITY_MAP: Record<number, StatusData> = {\n 1: {\n Icon: LabelImportantIcon,\n color: '#C9190B',\n label: 'Critical',\n transform: 'rotate(-90deg)',\n },\n 2: { Icon: KeyboardDoubleArrowUpIcon, color: '#EC7A08', label: 'High' },\n 3: { Icon: ModerateIcon, color: '#F0AB00', label: 'Moderate' },\n 4: { Icon: KeyboardDoubleArrowDownIcon, color: '#2B9AF3', label: 'Low' },\n 5: { Icon: FormatListNumberedIcon, color: '#6A6E73', label: 'Planning' },\n};\n\n/**\n * @deprecated Use useIncidentStateMap hook for translated labels\n */\nexport const INCIDENT_STATE_MAP: Record<number, StatusData> = {\n 1: { Icon: PendingOutlinedIcon, color: '#6A6E73', label: 'New' },\n 2: { Icon: InProgressIcon, color: '#6A6E73', label: 'In Progress' },\n 3: { Icon: PauseCircleOutlineIcon, color: '#6A6E73', label: 'On Hold' },\n 6: { Icon: CheckCircleOutlineIcon, color: '#3E8635', label: 'Resolved' },\n 7: { Icon: ClosedIcon, color: '#6A6E73', label: 'Closed' },\n 8: { Icon: ClosedIcon, color: '#6A6E73', label: 'Cancelled' },\n};\n\n/**\n * Hook to get translated priority map\n */\nexport const usePriorityMap = (): Record<number, StatusData> => {\n const { t } = useTranslation();\n\n return useMemo(\n () => ({\n 1: {\n Icon: LabelImportantIcon,\n color: '#C9190B',\n label: t('priority.critical'),\n transform: 'rotate(-90deg)',\n },\n 2: {\n Icon: KeyboardDoubleArrowUpIcon,\n color: '#EC7A08',\n label: t('priority.high'),\n },\n 3: {\n Icon: ModerateIcon,\n color: '#F0AB00',\n label: t('priority.moderate'),\n },\n 4: {\n Icon: KeyboardDoubleArrowDownIcon,\n color: '#2B9AF3',\n label: t('priority.low'),\n },\n 5: {\n Icon: FormatListNumberedIcon,\n color: '#6A6E73',\n label: t('priority.planning'),\n },\n }),\n [t],\n );\n};\n\n/**\n * Hook to get translated incident state map\n */\nexport const useIncidentStateMap = (): Record<number, StatusData> => {\n const { t } = useTranslation();\n\n return useMemo(\n () => ({\n 1: {\n Icon: PendingOutlinedIcon,\n color: '#6A6E73',\n label: t('incidentState.new'),\n },\n 2: {\n Icon: InProgressIcon,\n color: '#6A6E73',\n label: t('incidentState.inProgress'),\n },\n 3: {\n Icon: PauseCircleOutlineIcon,\n color: '#6A6E73',\n label: t('incidentState.onHold'),\n },\n 6: {\n Icon: CheckCircleOutlineIcon,\n color: '#3E8635',\n label: t('incidentState.resolved'),\n },\n 7: {\n Icon: ClosedIcon,\n color: '#6A6E73',\n label: t('incidentState.closed'),\n },\n 8: {\n Icon: ClosedIcon,\n color: '#6A6E73',\n label: t('incidentState.cancelled'),\n },\n }),\n [t],\n );\n};\n\nexport const renderStatusLabel = (data?: StatusData) => {\n if (!data) return '';\n\n const { Icon, color, label, transform } = data;\n return (\n <Typography variant=\"body2\" style={typographyStyleBase}>\n <Icon\n fontSize=\"small\"\n style={{\n color,\n marginRight: iconStyleBase.marginRight,\n ...(transform ? { transform } : {}),\n }}\n />\n {label}\n </Typography>\n );\n};\n\nexport const getPriorityValue = (priority: number) =>\n renderStatusLabel(PRIORITY_MAP[priority]);\nexport const getIncidentStateValue = (state: number) =>\n renderStatusLabel(INCIDENT_STATE_MAP[state]);\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAqCA,MAAM,aAAA,GAAgB,EAAE,WAAA,EAAa,
|
|
1
|
+
{"version":3,"file":"incidentUtils.esm.js","sources":["../../src/utils/incidentUtils.tsx"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { ElementType, useMemo } from 'react';\nimport LabelImportantIcon from '@mui/icons-material/LabelImportant';\nimport KeyboardDoubleArrowDownIcon from '@mui/icons-material/KeyboardDoubleArrowDown';\nimport KeyboardDoubleArrowUpIcon from '@mui/icons-material/KeyboardDoubleArrowUp';\nimport FormatListNumberedIcon from '@mui/icons-material/FormatListNumbered';\nimport PendingOutlinedIcon from '@mui/icons-material/PendingOutlined';\nimport CheckCircleOutlineIcon from '@mui/icons-material/CheckCircleOutline';\nimport PauseCircleOutlineIcon from '@mui/icons-material/PauseCircleOutline';\nimport { ModerateIcon } from '../components/Servicenow/ModerateIcon';\nimport { InProgressIcon } from '../components/Servicenow/InProgressIcon';\nimport { ClosedIcon } from '../components/Servicenow/ClosedIcon';\n\nimport Typography from '@mui/material/Typography';\nimport { useTranslation } from '../hooks/useTranslation';\n\nexport interface StatusData {\n Icon: ElementType;\n color: string;\n label: string;\n transform?: string;\n}\n\nconst iconStyleBase = { marginRight: 8 };\nconst typographyStyleBase = { display: 'flex', alignItems: 'center' };\n\n/**\n * @deprecated Use usePriorityMap hook for translated labels\n */\nexport const PRIORITY_MAP: Record<number, StatusData> = {\n 1: {\n Icon: LabelImportantIcon,\n color: '#C9190B',\n label: 'Critical',\n transform: 'rotate(-90deg)',\n },\n 2: { Icon: KeyboardDoubleArrowUpIcon, color: '#EC7A08', label: 'High' },\n 3: { Icon: ModerateIcon, color: '#F0AB00', label: 'Moderate' },\n 4: { Icon: KeyboardDoubleArrowDownIcon, color: '#2B9AF3', label: 'Low' },\n 5: { Icon: FormatListNumberedIcon, color: '#6A6E73', label: 'Planning' },\n};\n\n/**\n * @deprecated Use useIncidentStateMap hook for translated labels\n */\nexport const INCIDENT_STATE_MAP: Record<number, StatusData> = {\n 1: { Icon: PendingOutlinedIcon, color: '#6A6E73', label: 'New' },\n 2: { Icon: InProgressIcon, color: '#6A6E73', label: 'In Progress' },\n 3: { Icon: PauseCircleOutlineIcon, color: '#6A6E73', label: 'On Hold' },\n 6: { Icon: CheckCircleOutlineIcon, color: '#3E8635', label: 'Resolved' },\n 7: { Icon: ClosedIcon, color: '#6A6E73', label: 'Closed' },\n 8: { Icon: ClosedIcon, color: '#6A6E73', label: 'Cancelled' },\n};\n\n/**\n * Hook to get translated priority map\n */\nexport const usePriorityMap = (): Record<number, StatusData> => {\n const { t } = useTranslation();\n\n return useMemo(\n () => ({\n 1: {\n Icon: LabelImportantIcon,\n color: '#C9190B',\n label: t('priority.critical'),\n transform: 'rotate(-90deg)',\n },\n 2: {\n Icon: KeyboardDoubleArrowUpIcon,\n color: '#EC7A08',\n label: t('priority.high'),\n },\n 3: {\n Icon: ModerateIcon,\n color: '#F0AB00',\n label: t('priority.moderate'),\n },\n 4: {\n Icon: KeyboardDoubleArrowDownIcon,\n color: '#2B9AF3',\n label: t('priority.low'),\n },\n 5: {\n Icon: FormatListNumberedIcon,\n color: '#6A6E73',\n label: t('priority.planning'),\n },\n }),\n [t],\n );\n};\n\n/**\n * Hook to get translated incident state map\n */\nexport const useIncidentStateMap = (): Record<number, StatusData> => {\n const { t } = useTranslation();\n\n return useMemo(\n () => ({\n 1: {\n Icon: PendingOutlinedIcon,\n color: '#6A6E73',\n label: t('incidentState.new'),\n },\n 2: {\n Icon: InProgressIcon,\n color: '#6A6E73',\n label: t('incidentState.inProgress'),\n },\n 3: {\n Icon: PauseCircleOutlineIcon,\n color: '#6A6E73',\n label: t('incidentState.onHold'),\n },\n 6: {\n Icon: CheckCircleOutlineIcon,\n color: '#3E8635',\n label: t('incidentState.resolved'),\n },\n 7: {\n Icon: ClosedIcon,\n color: '#6A6E73',\n label: t('incidentState.closed'),\n },\n 8: {\n Icon: ClosedIcon,\n color: '#6A6E73',\n label: t('incidentState.cancelled'),\n },\n }),\n [t],\n );\n};\n\nexport const renderStatusLabel = (data?: StatusData) => {\n if (!data) return '';\n\n const { Icon, color, label, transform } = data;\n return (\n <Typography variant=\"body2\" style={typographyStyleBase}>\n <Icon\n fontSize=\"small\"\n style={{\n color,\n marginRight: iconStyleBase.marginRight,\n ...(transform ? { transform } : {}),\n }}\n />\n {label}\n </Typography>\n );\n};\n\nexport const getPriorityValue = (priority: number) =>\n renderStatusLabel(PRIORITY_MAP[priority]);\nexport const getIncidentStateValue = (state: number) =>\n renderStatusLabel(INCIDENT_STATE_MAP[state]);\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAqCA,MAAM,aAAA,GAAgB,EAAE,WAAA,EAAa,CAAA,EAAE;AACvC,MAAM,mBAAA,GAAsB,EAAE,OAAA,EAAS,MAAA,EAAQ,YAAY,QAAA,EAAS;AAK7D,MAAM,YAAA,GAA2C;AAAA,EACtD,CAAA,EAAG;AAAA,IACD,IAAA,EAAM,kBAAA;AAAA,IACN,KAAA,EAAO,SAAA;AAAA,IACP,KAAA,EAAO,UAAA;AAAA,IACP,SAAA,EAAW;AAAA,GACb;AAAA,EACA,GAAG,EAAE,IAAA,EAAM,2BAA2B,KAAA,EAAO,SAAA,EAAW,OAAO,MAAA,EAAO;AAAA,EACtE,GAAG,EAAE,IAAA,EAAM,cAAc,KAAA,EAAO,SAAA,EAAW,OAAO,UAAA,EAAW;AAAA,EAC7D,GAAG,EAAE,IAAA,EAAM,6BAA6B,KAAA,EAAO,SAAA,EAAW,OAAO,KAAA,EAAM;AAAA,EACvE,GAAG,EAAE,IAAA,EAAM,wBAAwB,KAAA,EAAO,SAAA,EAAW,OAAO,UAAA;AAC9D;AAKO,MAAM,kBAAA,GAAiD;AAAA,EAC5D,GAAG,EAAE,IAAA,EAAM,qBAAqB,KAAA,EAAO,SAAA,EAAW,OAAO,KAAA,EAAM;AAAA,EAC/D,GAAG,EAAE,IAAA,EAAM,gBAAgB,KAAA,EAAO,SAAA,EAAW,OAAO,aAAA,EAAc;AAAA,EAClE,GAAG,EAAE,IAAA,EAAM,wBAAwB,KAAA,EAAO,SAAA,EAAW,OAAO,SAAA,EAAU;AAAA,EACtE,GAAG,EAAE,IAAA,EAAM,wBAAwB,KAAA,EAAO,SAAA,EAAW,OAAO,UAAA,EAAW;AAAA,EACvE,GAAG,EAAE,IAAA,EAAM,YAAY,KAAA,EAAO,SAAA,EAAW,OAAO,QAAA,EAAS;AAAA,EACzD,GAAG,EAAE,IAAA,EAAM,YAAY,KAAA,EAAO,SAAA,EAAW,OAAO,WAAA;AAClD;AAKO,MAAM,iBAAiB,MAAkC;AAC9D,EAAA,MAAM,EAAE,CAAA,EAAE,GAAI,cAAA,EAAe;AAE7B,EAAA,OAAO,OAAA;AAAA,IACL,OAAO;AAAA,MACL,CAAA,EAAG;AAAA,QACD,IAAA,EAAM,kBAAA;AAAA,QACN,KAAA,EAAO,SAAA;AAAA,QACP,KAAA,EAAO,EAAE,mBAAmB,CAAA;AAAA,QAC5B,SAAA,EAAW;AAAA,OACb;AAAA,MACA,CAAA,EAAG;AAAA,QACD,IAAA,EAAM,yBAAA;AAAA,QACN,KAAA,EAAO,SAAA;AAAA,QACP,KAAA,EAAO,EAAE,eAAe;AAAA,OAC1B;AAAA,MACA,CAAA,EAAG;AAAA,QACD,IAAA,EAAM,YAAA;AAAA,QACN,KAAA,EAAO,SAAA;AAAA,QACP,KAAA,EAAO,EAAE,mBAAmB;AAAA,OAC9B;AAAA,MACA,CAAA,EAAG;AAAA,QACD,IAAA,EAAM,2BAAA;AAAA,QACN,KAAA,EAAO,SAAA;AAAA,QACP,KAAA,EAAO,EAAE,cAAc;AAAA,OACzB;AAAA,MACA,CAAA,EAAG;AAAA,QACD,IAAA,EAAM,sBAAA;AAAA,QACN,KAAA,EAAO,SAAA;AAAA,QACP,KAAA,EAAO,EAAE,mBAAmB;AAAA;AAC9B,KACF,CAAA;AAAA,IACA,CAAC,CAAC;AAAA,GACJ;AACF;AAKO,MAAM,sBAAsB,MAAkC;AACnE,EAAA,MAAM,EAAE,CAAA,EAAE,GAAI,cAAA,EAAe;AAE7B,EAAA,OAAO,OAAA;AAAA,IACL,OAAO;AAAA,MACL,CAAA,EAAG;AAAA,QACD,IAAA,EAAM,mBAAA;AAAA,QACN,KAAA,EAAO,SAAA;AAAA,QACP,KAAA,EAAO,EAAE,mBAAmB;AAAA,OAC9B;AAAA,MACA,CAAA,EAAG;AAAA,QACD,IAAA,EAAM,cAAA;AAAA,QACN,KAAA,EAAO,SAAA;AAAA,QACP,KAAA,EAAO,EAAE,0BAA0B;AAAA,OACrC;AAAA,MACA,CAAA,EAAG;AAAA,QACD,IAAA,EAAM,sBAAA;AAAA,QACN,KAAA,EAAO,SAAA;AAAA,QACP,KAAA,EAAO,EAAE,sBAAsB;AAAA,OACjC;AAAA,MACA,CAAA,EAAG;AAAA,QACD,IAAA,EAAM,sBAAA;AAAA,QACN,KAAA,EAAO,SAAA;AAAA,QACP,KAAA,EAAO,EAAE,wBAAwB;AAAA,OACnC;AAAA,MACA,CAAA,EAAG;AAAA,QACD,IAAA,EAAM,UAAA;AAAA,QACN,KAAA,EAAO,SAAA;AAAA,QACP,KAAA,EAAO,EAAE,sBAAsB;AAAA,OACjC;AAAA,MACA,CAAA,EAAG;AAAA,QACD,IAAA,EAAM,UAAA;AAAA,QACN,KAAA,EAAO,SAAA;AAAA,QACP,KAAA,EAAO,EAAE,yBAAyB;AAAA;AACpC,KACF,CAAA;AAAA,IACA,CAAC,CAAC;AAAA,GACJ;AACF;AAEO,MAAM,iBAAA,GAAoB,CAAC,IAAA,KAAsB;AACtD,EAAA,IAAI,CAAC,MAAM,OAAO,EAAA;AAElB,EAAA,MAAM,EAAE,IAAA,EAAM,KAAA,EAAO,KAAA,EAAO,WAAU,GAAI,IAAA;AAC1C,EAAA,uBACE,IAAA,CAAC,UAAA,EAAA,EAAW,OAAA,EAAQ,OAAA,EAAQ,OAAO,mBAAA,EACjC,QAAA,EAAA;AAAA,oBAAA,GAAA;AAAA,MAAC,IAAA;AAAA,MAAA;AAAA,QACC,QAAA,EAAS,OAAA;AAAA,QACT,KAAA,EAAO;AAAA,UACL,KAAA;AAAA,UACA,aAAa,aAAA,CAAc,WAAA;AAAA,UAC3B,GAAI,SAAA,GAAY,EAAE,SAAA,KAAc;AAAC;AACnC;AAAA,KACF;AAAA,IACC;AAAA,GAAA,EACH,CAAA;AAEJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryParamsUtils.esm.js","sources":["../../src/utils/queryParamsUtils.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { IncidentTableField } from '../types';\n\nexport function buildIncidentQueryParams({\n userEmail,\n limit,\n offset,\n order,\n orderBy,\n search,\n priority,\n state,\n ...annotations\n}: {\n limit: number;\n offset: number;\n order: 'asc' | 'desc';\n orderBy: IncidentTableField;\n search?: string;\n priority?: string[];\n state?: string[];\n userEmail?: string;\n [key: string]: any;\n}) {\n const params: Record<string, string> = {\n order,\n orderBy,\n limit: String(limit),\n offset: String(offset),\n };\n\n if (priority?.length) {\n params.priority = `IN${priority.join(',')}`;\n }\n\n if (state?.length) {\n params.state = `IN${state.join(',')}`;\n }\n\n if (search) {\n params.search = search;\n }\n\n if (userEmail) {\n params.userEmail = userEmail;\n }\n\n for (const key in annotations) {\n if (key in annotations) {\n params[key] = annotations[key];\n }\n }\n\n return new URLSearchParams(params);\n}\n"],"names":[],"mappings":"AAkBO,SAAS,
|
|
1
|
+
{"version":3,"file":"queryParamsUtils.esm.js","sources":["../../src/utils/queryParamsUtils.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { IncidentTableField } from '../types';\n\nexport function buildIncidentQueryParams({\n userEmail,\n limit,\n offset,\n order,\n orderBy,\n search,\n priority,\n state,\n ...annotations\n}: {\n limit: number;\n offset: number;\n order: 'asc' | 'desc';\n orderBy: IncidentTableField;\n search?: string;\n priority?: string[];\n state?: string[];\n userEmail?: string;\n [key: string]: any;\n}) {\n const params: Record<string, string> = {\n order,\n orderBy,\n limit: String(limit),\n offset: String(offset),\n };\n\n if (priority?.length) {\n params.priority = `IN${priority.join(',')}`;\n }\n\n if (state?.length) {\n params.state = `IN${state.join(',')}`;\n }\n\n if (search) {\n params.search = search;\n }\n\n if (userEmail) {\n params.userEmail = userEmail;\n }\n\n for (const key in annotations) {\n if (key in annotations) {\n params[key] = annotations[key];\n }\n }\n\n return new URLSearchParams(params);\n}\n"],"names":[],"mappings":"AAkBO,SAAS,wBAAA,CAAyB;AAAA,EACvC,SAAA;AAAA,EACA,KAAA;AAAA,EACA,MAAA;AAAA,EACA,KAAA;AAAA,EACA,OAAA;AAAA,EACA,MAAA;AAAA,EACA,QAAA;AAAA,EACA,KAAA;AAAA,EACA,GAAG;AACL,CAAA,EAUG;AACD,EAAA,MAAM,MAAA,GAAiC;AAAA,IACrC,KAAA;AAAA,IACA,OAAA;AAAA,IACA,KAAA,EAAO,OAAO,KAAK,CAAA;AAAA,IACnB,MAAA,EAAQ,OAAO,MAAM;AAAA,GACvB;AAEA,EAAA,IAAI,UAAU,MAAA,EAAQ;AACpB,IAAA,MAAA,CAAO,QAAA,GAAW,CAAA,EAAA,EAAK,QAAA,CAAS,IAAA,CAAK,GAAG,CAAC,CAAA,CAAA;AAAA,EAC3C;AAEA,EAAA,IAAI,OAAO,MAAA,EAAQ;AACjB,IAAA,MAAA,CAAO,KAAA,GAAQ,CAAA,EAAA,EAAK,KAAA,CAAM,IAAA,CAAK,GAAG,CAAC,CAAA,CAAA;AAAA,EACrC;AAEA,EAAA,IAAI,MAAA,EAAQ;AACV,IAAA,MAAA,CAAO,MAAA,GAAS,MAAA;AAAA,EAClB;AAEA,EAAA,IAAI,SAAA,EAAW;AACb,IAAA,MAAA,CAAO,SAAA,GAAY,SAAA;AAAA,EACrB;AAEA,EAAA,KAAA,MAAW,OAAO,WAAA,EAAa;AAC7B,IAAA,IAAI,OAAO,WAAA,EAAa;AACtB,MAAA,MAAA,CAAO,GAAG,CAAA,GAAI,WAAA,CAAY,GAAG,CAAA;AAAA,IAC/B;AAAA,EACF;AAEA,EAAA,OAAO,IAAI,gBAAgB,MAAM,CAAA;AACnC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stringUtils.esm.js","sources":["../../src/utils/stringUtils.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const convertDateFormat = (created: string) => {\n if (!created) return '';\n\n const date = new Date(created.replace(' ', 'T'));\n\n if (isNaN(date.getTime())) return '';\n\n return date.toLocaleDateString('en-US', {\n year: 'numeric',\n month: 'long',\n day: 'numeric',\n });\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stringUtils.esm.js","sources":["../../src/utils/stringUtils.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const convertDateFormat = (created: string) => {\n if (!created) return '';\n\n const date = new Date(created.replace(' ', 'T'));\n\n if (isNaN(date.getTime())) return '';\n\n return date.toLocaleDateString('en-US', {\n year: 'numeric',\n month: 'long',\n day: 'numeric',\n });\n};\n"],"names":[],"mappings":"AAgBO,MAAM,iBAAA,GAAoB,CAAC,OAAA,KAAoB;AACpD,EAAA,IAAI,CAAC,SAAS,OAAO,EAAA;AAErB,EAAA,MAAM,OAAO,IAAI,IAAA,CAAK,QAAQ,OAAA,CAAQ,GAAA,EAAK,GAAG,CAAC,CAAA;AAE/C,EAAA,IAAI,KAAA,CAAM,IAAA,CAAK,OAAA,EAAS,GAAG,OAAO,EAAA;AAElC,EAAA,OAAO,IAAA,CAAK,mBAAmB,OAAA,EAAS;AAAA,IACtC,IAAA,EAAM,SAAA;AAAA,IACN,KAAA,EAAO,MAAA;AAAA,IACP,GAAA,EAAK;AAAA,GACN,CAAA;AACH;;;;"}
|