@exabugs/dynamodb-client 1.18.0 → 1.20.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 +22 -0
- package/README.md +1 -1
- package/bin/dynamodb-system-change.js +6 -0
- package/dist/integrations/react-admin/components/Alerts/AlertsList.d.ts +18 -0
- package/dist/integrations/react-admin/components/Alerts/AlertsList.d.ts.map +1 -0
- package/dist/integrations/react-admin/components/Alerts/AlertsList.js +34 -0
- package/dist/integrations/react-admin/components/Alerts/AlertsList.js.map +1 -0
- package/dist/integrations/react-admin/components/Alerts/AlertsShow.d.ts +10 -0
- package/dist/integrations/react-admin/components/Alerts/AlertsShow.d.ts.map +1 -0
- package/dist/integrations/react-admin/components/Alerts/AlertsShow.js +24 -0
- package/dist/integrations/react-admin/components/Alerts/AlertsShow.js.map +1 -0
- package/dist/integrations/react-admin/components/Alerts/alertsResource.d.ts +18 -0
- package/dist/integrations/react-admin/components/Alerts/alertsResource.d.ts.map +1 -0
- package/dist/integrations/react-admin/components/Alerts/alertsResource.js +19 -0
- package/dist/integrations/react-admin/components/Alerts/alertsResource.js.map +1 -0
- package/dist/integrations/react-admin/components/Alerts/alertsView.d.ts +51 -0
- package/dist/integrations/react-admin/components/Alerts/alertsView.d.ts.map +1 -0
- package/dist/integrations/react-admin/components/Alerts/alertsView.js +35 -0
- package/dist/integrations/react-admin/components/Alerts/alertsView.js.map +1 -0
- package/dist/integrations/react-admin/components/Alerts/index.d.ts +8 -0
- package/dist/integrations/react-admin/components/Alerts/index.d.ts.map +1 -0
- package/dist/integrations/react-admin/components/Alerts/index.js +5 -0
- package/dist/integrations/react-admin/components/Alerts/index.js.map +1 -0
- package/dist/integrations/react-admin/components/CloudWatchLog/cloudWatchLogUrl.d.ts +16 -0
- package/dist/integrations/react-admin/components/CloudWatchLog/cloudWatchLogUrl.d.ts.map +1 -1
- package/dist/integrations/react-admin/components/CloudWatchLog/cloudWatchLogUrl.js +27 -3
- package/dist/integrations/react-admin/components/CloudWatchLog/cloudWatchLogUrl.js.map +1 -1
- package/dist/integrations/react-admin/components/CloudWatchLog/index.d.ts +2 -2
- package/dist/integrations/react-admin/components/CloudWatchLog/index.d.ts.map +1 -1
- package/dist/integrations/react-admin/components/CloudWatchLog/index.js +1 -1
- package/dist/integrations/react-admin/components/CloudWatchLog/index.js.map +1 -1
- package/dist/integrations/react-admin/components/SystemChanges/SystemChangesList.d.ts +29 -0
- package/dist/integrations/react-admin/components/SystemChanges/SystemChangesList.d.ts.map +1 -0
- package/dist/integrations/react-admin/components/SystemChanges/SystemChangesList.js +38 -0
- package/dist/integrations/react-admin/components/SystemChanges/SystemChangesList.js.map +1 -0
- package/dist/integrations/react-admin/components/SystemChanges/SystemChangesShow.d.ts +9 -0
- package/dist/integrations/react-admin/components/SystemChanges/SystemChangesShow.d.ts.map +1 -0
- package/dist/integrations/react-admin/components/SystemChanges/SystemChangesShow.js +50 -0
- package/dist/integrations/react-admin/components/SystemChanges/SystemChangesShow.js.map +1 -0
- package/dist/integrations/react-admin/components/SystemChanges/index.d.ts +8 -0
- package/dist/integrations/react-admin/components/SystemChanges/index.d.ts.map +1 -0
- package/dist/integrations/react-admin/components/SystemChanges/index.js +5 -0
- package/dist/integrations/react-admin/components/SystemChanges/index.js.map +1 -0
- package/dist/integrations/react-admin/components/SystemChanges/systemChangesResource.d.ts +19 -0
- package/dist/integrations/react-admin/components/SystemChanges/systemChangesResource.d.ts.map +1 -0
- package/dist/integrations/react-admin/components/SystemChanges/systemChangesResource.js +20 -0
- package/dist/integrations/react-admin/components/SystemChanges/systemChangesResource.js.map +1 -0
- package/dist/integrations/react-admin/components/SystemChanges/systemChangesView.d.ts +96 -0
- package/dist/integrations/react-admin/components/SystemChanges/systemChangesView.d.ts.map +1 -0
- package/dist/integrations/react-admin/components/SystemChanges/systemChangesView.js +99 -0
- package/dist/integrations/react-admin/components/SystemChanges/systemChangesView.js.map +1 -0
- package/dist/integrations/react-admin/components/index.d.ts +7 -3
- package/dist/integrations/react-admin/components/index.d.ts.map +1 -1
- package/dist/integrations/react-admin/components/index.js +5 -2
- package/dist/integrations/react-admin/components/index.js.map +1 -1
- package/dist/integrations/react-admin/components/shared/LabeledIf.d.ts +23 -0
- package/dist/integrations/react-admin/components/shared/LabeledIf.d.ts.map +1 -0
- package/dist/integrations/react-admin/components/shared/LabeledIf.js +13 -0
- package/dist/integrations/react-admin/components/shared/LabeledIf.js.map +1 -0
- package/dist/integrations/react-admin/components/shared/messages.d.ts +9 -0
- package/dist/integrations/react-admin/components/shared/messages.d.ts.map +1 -0
- package/dist/integrations/react-admin/components/shared/messages.js +9 -0
- package/dist/integrations/react-admin/components/shared/messages.js.map +1 -0
- package/dist/integrations/react-admin/index.d.ts +6 -2
- package/dist/integrations/react-admin/index.d.ts.map +1 -1
- package/dist/integrations/react-admin/index.js +5 -1
- package/dist/integrations/react-admin/index.js.map +1 -1
- package/dist/server/handler.cjs +3 -3
- package/dist/server/media-handler.cjs +2 -2
- package/dist/server/media-process-handler-dlq.cjs +2 -2
- package/dist/server/media-process-handler.cjs +2 -2
- package/dist/system-changes/index.d.ts +2 -0
- package/dist/system-changes/index.d.ts.map +1 -1
- package/dist/system-changes/index.js +1 -0
- package/dist/system-changes/index.js.map +1 -1
- package/dist/system-changes/labels.d.ts +23 -0
- package/dist/system-changes/labels.d.ts.map +1 -0
- package/dist/system-changes/labels.js +32 -0
- package/dist/system-changes/labels.js.map +1 -0
- package/dist/system-changes/record.d.ts +1 -1
- package/dist/system-changes/record.d.ts.map +1 -1
- package/dist/system-changes/record.js +1 -1
- package/dist/system-changes/record.js.map +1 -1
- package/dist/system-changes/slack.d.ts.map +1 -1
- package/dist/system-changes/slack.js +6 -27
- package/dist/system-changes/slack.js.map +1 -1
- package/dist/tools/dynamodb-system-change/cli.d.ts +35 -0
- package/dist/tools/dynamodb-system-change/cli.d.ts.map +1 -0
- package/dist/tools/dynamodb-system-change/cli.js +226 -0
- package/dist/tools/dynamodb-system-change/cli.js.map +1 -0
- package/dist/tools/dynamodb-system-change/details.d.ts +42 -0
- package/dist/tools/dynamodb-system-change/details.d.ts.map +1 -0
- package/dist/tools/dynamodb-system-change/details.js +59 -0
- package/dist/tools/dynamodb-system-change/details.js.map +1 -0
- package/dist/tools/dynamodb-system-change/index.d.ts +13 -0
- package/dist/tools/dynamodb-system-change/index.d.ts.map +1 -0
- package/dist/tools/dynamodb-system-change/index.js +9 -0
- package/dist/tools/dynamodb-system-change/index.js.map +1 -0
- package/dist/tools/dynamodb-system-change/releases.d.ts +34 -0
- package/dist/tools/dynamodb-system-change/releases.d.ts.map +1 -0
- package/dist/tools/dynamodb-system-change/releases.js +108 -0
- package/dist/tools/dynamodb-system-change/releases.js.map +1 -0
- package/dist/tools/dynamodb-system-change/run.d.ts +2 -0
- package/dist/tools/dynamodb-system-change/run.d.ts.map +1 -0
- package/dist/tools/dynamodb-system-change/run.js +6 -0
- package/dist/tools/dynamodb-system-change/run.js.map +1 -0
- package/dist/tools/dynamodb-system-change/send.d.ts +43 -0
- package/dist/tools/dynamodb-system-change/send.d.ts.map +1 -0
- package/dist/tools/dynamodb-system-change/send.js +97 -0
- package/dist/tools/dynamodb-system-change/send.js.map +1 -0
- package/docs/NOTIFY.md +1 -1
- package/docs/SYSTEM_CHANGES.md +69 -0
- package/package.json +15 -2
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Chip, Link, Table, TableBody, TableCell, TableHead, TableRow } from '@mui/material';
|
|
3
|
+
import { DateField, FunctionField, Labeled, Show, SimpleShowLayout, TextField, useRecordContext, } from 'react-admin';
|
|
4
|
+
import { LabeledIf } from '../shared/LabeledIf.js';
|
|
5
|
+
import { SYSTEM_CHANGE_RESULT_COLOR, SystemChangeResultChip, } from './SystemChangesList.js';
|
|
6
|
+
import { SYSTEM_CHANGES_DEFAULT_LAMBDA_REGION, isSystemChangeRun, lambdaChangeLabel, lambdaLogGroupUrl, lambdaReleasesOf, systemChangeDurationText, systemChangeKindLabel, systemChangeResultLabel, systemChangesMessagesOf, } from './systemChangesView.js';
|
|
7
|
+
const preWrap = {
|
|
8
|
+
whiteSpace: 'pre-wrap',
|
|
9
|
+
wordBreak: 'break-word',
|
|
10
|
+
fontFamily: 'monospace',
|
|
11
|
+
};
|
|
12
|
+
/** details の中身(整形した JSON) */
|
|
13
|
+
const DetailsBody = () => {
|
|
14
|
+
const record = useRecordContext();
|
|
15
|
+
return _jsx("pre", { style: { margin: 0, ...preWrap }, children: JSON.stringify(record?.details, null, 2) });
|
|
16
|
+
};
|
|
17
|
+
const hasDetails = (r) => Boolean(r?.details && Object.keys(r.details).length > 0);
|
|
18
|
+
const hasReleases = (r) => lambdaReleasesOf(r?.details).length > 0;
|
|
19
|
+
const DurationBody = () => (_jsx(_Fragment, { children: systemChangeDurationText(useRecordContext()) }));
|
|
20
|
+
/**
|
|
21
|
+
* 変更(run)の時刻(開始・終了・所要時間)。ある項目だけを出す(SimpleShowLayout の子にし、label={false}・source なし。
|
|
22
|
+
* 理由は LabeledIf と同じ)
|
|
23
|
+
*/
|
|
24
|
+
const RunTimesField = ({ m }) => {
|
|
25
|
+
const record = useRecordContext();
|
|
26
|
+
if (!isSystemChangeRun(record))
|
|
27
|
+
return null;
|
|
28
|
+
return (_jsxs(_Fragment, { children: [record?.startedAt && (_jsx(Labeled, { label: m.startedAt, children: _jsx(DateField, { source: "startedAt", showTime: true }) })), record?.finishedAt && (_jsx(Labeled, { label: m.finishedAt, children: _jsx(DateField, { source: "finishedAt", showTime: true }) })), systemChangeDurationText(record) && (_jsx(Labeled, { label: m.duration, children: _jsx(DurationBody, {}) }))] }));
|
|
29
|
+
};
|
|
30
|
+
/** リリースした Lambda の表(関数名・結果・変更の種類・ログ)と、記録の上限で省いた件数 */
|
|
31
|
+
const LambdaReleasesBody = ({ m, region, }) => {
|
|
32
|
+
const record = useRecordContext();
|
|
33
|
+
const rows = lambdaReleasesOf(record?.details);
|
|
34
|
+
const omitted = record?.details?.lambdaReleasesOmitted;
|
|
35
|
+
const releaseAt = Date.parse(record?.finishedAt ?? record?.occurredAt ?? '');
|
|
36
|
+
return (_jsxs(_Fragment, { children: [_jsxs(Table, { size: "small", "aria-label": m.lambdaReleases, children: [_jsx(TableHead, { children: _jsxs(TableRow, { children: [_jsx(TableCell, { children: m.functionName }), _jsx(TableCell, { children: m.result }), _jsx(TableCell, { children: m.changeKind }), _jsx(TableCell, { children: m.log })] }) }), _jsx(TableBody, { children: rows.map((r, i) => {
|
|
37
|
+
const url = lambdaLogGroupUrl(r.target, releaseAt, region);
|
|
38
|
+
return (_jsxs(TableRow, { children: [_jsx(TableCell, { sx: { fontFamily: 'monospace' }, children: r.target }), _jsx(TableCell, { children: _jsx(Chip, { size: "small", variant: "filled", color: SYSTEM_CHANGE_RESULT_COLOR[r.result], label: systemChangeResultLabel(r.result, m) }) }), _jsx(TableCell, { children: lambdaChangeLabel(r.change, m) }), _jsx(TableCell, { children: url ? (_jsx(Link, { href: url, target: "_blank", rel: "noopener noreferrer", children: m.openLog })) : (m.empty) })] }, `${r.target}-${i}`));
|
|
39
|
+
}) })] }), typeof omitted === 'number' && omitted > 0 && _jsx("span", { children: m.omitted(omitted) })] }));
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* システム変更履歴(systemChanges)の詳細(読み取り専用。編集・削除は無い)。全項目(コミットは全桁)。
|
|
43
|
+
* 変更(run)のレコードは開始・終了・所要時間を、infra の変更は「リリースした Lambda」の表(CloudWatch の
|
|
44
|
+
* ロググループへのリンク)を出す。details は整形した JSON。無い項目は、見出しも出さない
|
|
45
|
+
*/
|
|
46
|
+
export const SystemChangesShow = ({ messages: override, lambdaRegion = SYSTEM_CHANGES_DEFAULT_LAMBDA_REGION, } = {}) => {
|
|
47
|
+
const m = systemChangesMessagesOf(override);
|
|
48
|
+
return (_jsx(Show, { children: _jsxs(SimpleShowLayout, { children: [_jsx(DateField, { source: "occurredAt", label: m.occurredAt, showTime: true }), _jsx(FunctionField, { label: m.kind, render: (r) => systemChangeKindLabel(r.kind, m) }), _jsx(SystemChangeResultChip, { label: m.result, m: m }), _jsx(TextField, { source: "target", label: m.target }), _jsx(RunTimesField, { label: false, m: m }), _jsx(TextField, { source: "version", label: m.version, emptyText: m.empty }), _jsx(TextField, { source: "commit", label: m.commit, emptyText: m.empty }), _jsx(TextField, { source: "actor", label: m.actor, emptyText: m.empty }), _jsx(LabeledIf, { label: false, title: m.lambdaReleases, when: hasReleases, children: _jsx(LambdaReleasesBody, { m: m, region: lambdaRegion }) }), _jsx(LabeledIf, { label: false, title: m.details, when: hasDetails, children: _jsx(DetailsBody, {}) }), _jsx(TextField, { source: "id", label: m.id })] }) }));
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=SystemChangesShow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SystemChangesShow.js","sourceRoot":"","sources":["../../../../../src/integrations/react-admin/components/SystemChanges/SystemChangesShow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG7F,OAAO,EACL,SAAS,EACT,aAAa,EACb,OAAO,EACP,IAAI,EACJ,gBAAgB,EAChB,SAAS,EACT,gBAAgB,GACjB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,GAEvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,oCAAoC,EAEpC,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,OAAO,GAAG;IAC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angesScreenProps, SystemChangesShowProps } from './SystemChangesList.js';
|
|
3
|
+
export { SystemChangesShow } from './SystemChangesShow.js';
|
|
4
|
+
export { SYSTEM_CHANGE_COMMIT_SHORT, SYSTEM_CHANGES_DEFAULT_LAMBDA_REGION, SYSTEM_CHANGE_STALE_AFTER_MS, SYSTEM_CHANGES_MESSAGES_JA, systemChangeCommitShort, systemChangeDurationSeconds, systemChangeDurationText, isKnownSystemChangeResult, isSystemChangeRun, isSystemChangeStale, lambdaChangeLabel, lambdaLogGroupUrl, lambdaReleasesOf, systemChangeKindChoices, systemChangeKindLabel, systemChangeRepresentation, systemChangeResultChoices, systemChangeResultLabel, systemChangesMessagesOf, } from './systemChangesView.js';
|
|
5
|
+
export type { SystemChangesMessages, SystemChangesMessagesOverride } from './systemChangesView.js';
|
|
6
|
+
export { systemChangesResource } from './systemChangesResource.js';
|
|
7
|
+
export type { SystemChangesResourceOptions } from './systemChangesResource.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/react-admin/components/SystemChanges/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EACL,0BAA0B,EAC1B,oCAAoC,EACpC,4BAA4B,EAC5B,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,qBAAqB,EACrB,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AACnG,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,YAAY,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { SYSTEM_CHANGE_RESULT_COLOR, SystemChangeResultChip, SystemChangesList, } from './SystemChangesList.js';
|
|
2
|
+
export { SystemChangesShow } from './SystemChangesShow.js';
|
|
3
|
+
export { SYSTEM_CHANGE_COMMIT_SHORT, SYSTEM_CHANGES_DEFAULT_LAMBDA_REGION, SYSTEM_CHANGE_STALE_AFTER_MS, SYSTEM_CHANGES_MESSAGES_JA, systemChangeCommitShort, systemChangeDurationSeconds, systemChangeDurationText, isKnownSystemChangeResult, isSystemChangeRun, isSystemChangeStale, lambdaChangeLabel, lambdaLogGroupUrl, lambdaReleasesOf, systemChangeKindChoices, systemChangeKindLabel, systemChangeRepresentation, systemChangeResultChoices, systemChangeResultLabel, systemChangesMessagesOf, } from './systemChangesView.js';
|
|
4
|
+
export { systemChangesResource } from './systemChangesResource.js';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/integrations/react-admin/components/SystemChanges/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EACL,0BAA0B,EAC1B,oCAAoC,EACpC,4BAA4B,EAC5B,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,qBAAqB,EACrB,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { ResourceProps } from 'react-admin';
|
|
3
|
+
import { type SystemChangesMessagesOverride } from './systemChangesView.js';
|
|
4
|
+
export interface SystemChangesResourceOptions {
|
|
5
|
+
/** リソース名(Records のコレクション名)。既定 'systemChanges' */
|
|
6
|
+
name?: string;
|
|
7
|
+
/** メニューのアイコン(例: @mui/icons-material の History。本ライブラリは依存しない) */
|
|
8
|
+
icon?: ComponentType;
|
|
9
|
+
/** 文言の上書き(既定は日本語) */
|
|
10
|
+
messages?: SystemChangesMessagesOverride;
|
|
11
|
+
/** リリースした Lambda のログへのリンクのリージョン。既定 'ap-northeast-1' */
|
|
12
|
+
lambdaRegion?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* systemChanges の `<Resource>` の props(一覧・詳細だけ。作成・編集の画面は無い)。
|
|
16
|
+
* `<Resource {...systemChangesResource({ icon: History })} />` と使う
|
|
17
|
+
*/
|
|
18
|
+
export declare const systemChangesResource: (options?: SystemChangesResourceOptions) => ResourceProps;
|
|
19
|
+
//# sourceMappingURL=systemChangesResource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systemChangesResource.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/react-admin/components/SystemChanges/systemChangesResource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKjD,OAAO,EACL,KAAK,6BAA6B,EAGnC,MAAM,wBAAwB,CAAC;AAEhC,MAAM,WAAW,4BAA4B;IAC3C,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,6BAA6B,CAAC;IACzC,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAChC,UAAS,4BAAiC,KACzC,aAeF,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { SystemChangesList } from './SystemChangesList.js';
|
|
3
|
+
import { SystemChangesShow } from './SystemChangesShow.js';
|
|
4
|
+
import { systemChangeRepresentation, systemChangesMessagesOf, } from './systemChangesView.js';
|
|
5
|
+
/**
|
|
6
|
+
* systemChanges の `<Resource>` の props(一覧・詳細だけ。作成・編集の画面は無い)。
|
|
7
|
+
* `<Resource {...systemChangesResource({ icon: History })} />` と使う
|
|
8
|
+
*/
|
|
9
|
+
export const systemChangesResource = (options = {}) => {
|
|
10
|
+
const { name = 'systemChanges', icon, messages, lambdaRegion } = options;
|
|
11
|
+
const m = systemChangesMessagesOf(messages);
|
|
12
|
+
return {
|
|
13
|
+
name,
|
|
14
|
+
list: messages ? _jsx(SystemChangesList, { messages: messages }) : SystemChangesList,
|
|
15
|
+
show: messages || lambdaRegion ? (_jsx(SystemChangesShow, { messages: messages, lambdaRegion: lambdaRegion })) : (SystemChangesShow),
|
|
16
|
+
...(icon ? { icon } : {}),
|
|
17
|
+
recordRepresentation: (r) => systemChangeRepresentation(r, m),
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=systemChangesResource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systemChangesResource.js","sourceRoot":"","sources":["../../../../../src/integrations/react-admin/components/SystemChanges/systemChangesResource.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAEL,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAahC;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,UAAwC,EAAE,EAC3B,EAAE;IACjB,MAAM,EAAE,IAAI,GAAG,eAAe,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IACzE,MAAM,CAAC,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAC5C,OAAO;QACL,IAAI;QACJ,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAC,iBAAiB,IAAC,QAAQ,EAAE,QAAQ,GAAI,CAAC,CAAC,CAAC,iBAAiB;QAC9E,IAAI,EACF,QAAQ,IAAI,YAAY,CAAC,CAAC,CAAC,CACzB,KAAC,iBAAiB,IAAC,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,GAAI,CACtE,CAAC,CAAC,CAAC,CACF,iBAAiB,CAClB;QACH,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACzB,oBAAoB,EAAE,CAAC,CAAqB,EAAE,EAAE,CAAC,0BAA0B,CAAC,CAAC,EAAE,CAAC,CAAC;KAClF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* システム変更履歴(systemChanges)の画面の文言と表示の計算(純粋な関数だけ。SystemChangesList / SystemChangesShow が使う)。
|
|
3
|
+
*
|
|
4
|
+
* 種別・結果の日本語は system-changes の labels.ts(Slack の文言と同じ表)。不明な値(許可リストを後で増やしたときの
|
|
5
|
+
* 古い画面など)は、値をそのまま出す(prototype のキー〔constructor など〕も、ラベルとして扱わない)
|
|
6
|
+
*/
|
|
7
|
+
import { type LambdaRelease } from '../../../../system-changes/labels.js';
|
|
8
|
+
import type { StoredSystemChange, SystemChangeKind, SystemChangeResult } from '../../../../system-changes/record.js';
|
|
9
|
+
/** systemChanges の画面の文言(既定は日本語。props の messages で一部を上書きする) */
|
|
10
|
+
export interface SystemChangesMessages {
|
|
11
|
+
occurredAt: string;
|
|
12
|
+
kind: string;
|
|
13
|
+
result: string;
|
|
14
|
+
target: string;
|
|
15
|
+
/** 所要時間(秒)の見出し(一覧の列・詳細) */
|
|
16
|
+
duration: string;
|
|
17
|
+
version: string;
|
|
18
|
+
commit: string;
|
|
19
|
+
actor: string;
|
|
20
|
+
startedAt: string;
|
|
21
|
+
finishedAt: string;
|
|
22
|
+
/** 詳細の「リリースした Lambda」の見出しと、表の名前 */
|
|
23
|
+
lambdaReleases: string;
|
|
24
|
+
details: string;
|
|
25
|
+
id: string;
|
|
26
|
+
kinds: Record<SystemChangeKind, string>;
|
|
27
|
+
results: Record<SystemChangeResult, string>;
|
|
28
|
+
/** Lambda のコードの変更の種類(ラッパーの change) */
|
|
29
|
+
changes: Record<string, string>;
|
|
30
|
+
/** 開始のまま SYSTEM_CHANGE_STALE_AFTER_MS を過ぎたもの(チップ)と、その説明(title) */
|
|
31
|
+
stale: string;
|
|
32
|
+
staleTitle: string;
|
|
33
|
+
/** リリースした Lambda の表の見出し */
|
|
34
|
+
functionName: string;
|
|
35
|
+
changeKind: string;
|
|
36
|
+
log: string;
|
|
37
|
+
/** ログへのリンクの文字 */
|
|
38
|
+
openLog: string;
|
|
39
|
+
/** 記録の上限で省いた件数(details.lambdaReleasesOmitted) */
|
|
40
|
+
omitted: (count: number) => string;
|
|
41
|
+
/** 値の無い項目 */
|
|
42
|
+
empty: string;
|
|
43
|
+
}
|
|
44
|
+
export declare const SYSTEM_CHANGES_MESSAGES_JA: Readonly<SystemChangesMessages>;
|
|
45
|
+
/** 文言の上書き(kinds・results・changes は項目ごとに上書きできる) */
|
|
46
|
+
export type SystemChangesMessagesOverride = Partial<Omit<SystemChangesMessages, 'kinds' | 'results' | 'changes'>> & {
|
|
47
|
+
kinds?: Partial<SystemChangesMessages['kinds']>;
|
|
48
|
+
results?: Partial<SystemChangesMessages['results']>;
|
|
49
|
+
changes?: Partial<SystemChangesMessages['changes']>;
|
|
50
|
+
};
|
|
51
|
+
/** 既定の文言に、上書きを重ねる */
|
|
52
|
+
export declare const systemChangesMessagesOf: (override?: SystemChangesMessagesOverride) => SystemChangesMessages;
|
|
53
|
+
/** 種別の表示(不明な値は、値をそのまま。無ければ空) */
|
|
54
|
+
export declare const systemChangeKindLabel: (kind?: string, m?: SystemChangesMessages) => string;
|
|
55
|
+
/** 結果の表示(不明な値は、値をそのまま) */
|
|
56
|
+
export declare const systemChangeResultLabel: (result?: string, m?: SystemChangesMessages) => string;
|
|
57
|
+
/** 既知の結果か */
|
|
58
|
+
export declare const isKnownSystemChangeResult: (result?: string) => result is SystemChangeResult;
|
|
59
|
+
/** 変更の種類の表示(不明な値は、値をそのまま。無ければ empty) */
|
|
60
|
+
export declare const lambdaChangeLabel: (change?: string, m?: SystemChangesMessages) => string;
|
|
61
|
+
/** フィルタの選択肢(種別・結果。順は許可リストと同じ) */
|
|
62
|
+
export declare const systemChangeKindChoices: (m?: SystemChangesMessages) => {
|
|
63
|
+
id: "app-release" | "ota" | "infra" | "lambda-release";
|
|
64
|
+
name: string;
|
|
65
|
+
}[];
|
|
66
|
+
export declare const systemChangeResultChoices: (m?: SystemChangesMessages) => {
|
|
67
|
+
id: "started" | "succeeded" | "failed";
|
|
68
|
+
name: string;
|
|
69
|
+
}[];
|
|
70
|
+
/** 開始のまま、この時間を過ぎたら「中断の疑い」(ラッパーの apply は、長くても数十分) */
|
|
71
|
+
export declare const SYSTEM_CHANGE_STALE_AFTER_MS: number;
|
|
72
|
+
/** 開始のまま、occurredAt から SYSTEM_CHANGE_STALE_AFTER_MS を過ぎたか(途中で落ちて、終了が記録されなかった疑い。データは変えない) */
|
|
73
|
+
export declare const isSystemChangeStale: (r: Pick<StoredSystemChange, "result" | "occurredAt">, now?: number) => boolean;
|
|
74
|
+
/** 所要時間(ミリ秒)を、秒の整数(四捨五入)にする */
|
|
75
|
+
export declare const systemChangeDurationSeconds: (ms: number) => number;
|
|
76
|
+
/** 所要時間(秒)の表示(durationMs が無い・負なら空) */
|
|
77
|
+
export declare const systemChangeDurationText: (r?: Pick<StoredSystemChange, "durationMs">) => string;
|
|
78
|
+
/** 一覧のコミットは、先頭のこの文字数(詳細は全桁) */
|
|
79
|
+
export declare const SYSTEM_CHANGE_COMMIT_SHORT = 7;
|
|
80
|
+
/** 一覧のコミット(先頭 7 文字。無ければ empty) */
|
|
81
|
+
export declare const systemChangeCommitShort: (commit?: string, empty?: string) => string;
|
|
82
|
+
/** 変更(run)のレコードか(startedAt・finishedAt のどちらかがある)。changeId の無い既存の記録は、従来の表示のまま */
|
|
83
|
+
export declare const isSystemChangeRun: (r?: Pick<StoredSystemChange, "startedAt" | "finishedAt">) => boolean;
|
|
84
|
+
/** details.lambdaReleases から、形の合う要素だけを取り出す(無い・形が違えば空。空なら表を出さない) */
|
|
85
|
+
export declare function lambdaReleasesOf(details: unknown): LambdaRelease[];
|
|
86
|
+
/** Lambda のリージョンの既定(両アプリの infra は単一リージョン。terraform-wrapper.sh の AWS_REGION の既定と同じ) */
|
|
87
|
+
export declare const SYSTEM_CHANGES_DEFAULT_LAMBDA_REGION = "ap-northeast-1";
|
|
88
|
+
/**
|
|
89
|
+
* Lambda のロググループ(/aws/lambda/<関数名>。aws_cloudwatch_log_group の既定の名前)の CloudWatch の URL。
|
|
90
|
+
* at があれば、ストリームを指定せず、at の前 5 分〜後 1 時間のログイベントを開く(cloudWatchLogGroupUrl)。
|
|
91
|
+
* 関数名が空、または既知でないリージョンなら undefined(リンクを出さない)
|
|
92
|
+
*/
|
|
93
|
+
export declare const lambdaLogGroupUrl: (functionName: string, at?: number, region?: string) => string | undefined;
|
|
94
|
+
/** 参照の表示(ReferenceField などでの見え方。例: 「インフラの変更 terraform」) */
|
|
95
|
+
export declare const systemChangeRepresentation: (r: Pick<StoredSystemChange, "kind" | "target">, m?: SystemChangesMessages) => string;
|
|
96
|
+
//# sourceMappingURL=systemChangesView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systemChangesView.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/react-admin/components/SystemChanges/systemChangesView.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,KAAK,aAAa,EAInB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,sCAAsC,CAAC;AAI9C,8DAA8D;AAC9D,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC;IAC5C,sCAAsC;IACtC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,kEAAkE;IAClE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,2BAA2B;IAC3B,YAAY,EAAE,MAAM,CA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ChangesShow が使う)。
|
|
3
|
+
*
|
|
4
|
+
* 種別・結果の日本語は system-changes の labels.ts(Slack の文言と同じ表)。不明な値(許可リストを後で増やしたときの
|
|
5
|
+
* 古い画面など)は、値をそのまま出す(prototype のキー〔constructor など〕も、ラベルとして扱わない)
|
|
6
|
+
*/
|
|
7
|
+
import { SYSTEM_CHANGE_KIND_LABELS, SYSTEM_CHANGE_RESULT_LABELS, parseLambdaReleases, } from '../../../../system-changes/labels.js';
|
|
8
|
+
import { cloudWatchLogGroupUrl } from '../CloudWatchLog/cloudWatchLogUrl.js';
|
|
9
|
+
import { definedOnly } from '../shared/messages.js';
|
|
10
|
+
export const SYSTEM_CHANGES_MESSAGES_JA = Object.freeze({
|
|
11
|
+
occurredAt: '発生時刻',
|
|
12
|
+
kind: '種別',
|
|
13
|
+
result: '結果',
|
|
14
|
+
target: '対象',
|
|
15
|
+
duration: '所要時間(秒)',
|
|
16
|
+
version: '版',
|
|
17
|
+
commit: 'コミット',
|
|
18
|
+
actor: '実行者',
|
|
19
|
+
startedAt: '開始時刻',
|
|
20
|
+
finishedAt: '終了時刻',
|
|
21
|
+
lambdaReleases: 'リリースした Lambda',
|
|
22
|
+
details: '詳細',
|
|
23
|
+
id: 'ID',
|
|
24
|
+
kinds: Object.freeze({ ...SYSTEM_CHANGE_KIND_LABELS }),
|
|
25
|
+
results: Object.freeze({ ...SYSTEM_CHANGE_RESULT_LABELS }),
|
|
26
|
+
changes: Object.freeze({ create: '作成', replace: '置き換え', code: 'コードの更新' }),
|
|
27
|
+
stale: '中断の疑い',
|
|
28
|
+
staleTitle: '開始のまま 2 時間を過ぎました(途中で止まり、終了が記録されなかった可能性があります)',
|
|
29
|
+
functionName: '関数名',
|
|
30
|
+
changeKind: '変更の種類',
|
|
31
|
+
log: 'ログ',
|
|
32
|
+
openLog: 'CloudWatch',
|
|
33
|
+
omitted: (n) => `ほか ${n} 件(記録の上限で省略)`,
|
|
34
|
+
empty: '—',
|
|
35
|
+
});
|
|
36
|
+
/** 既定の文言に、上書きを重ねる */
|
|
37
|
+
export const systemChangesMessagesOf = (override) => {
|
|
38
|
+
const base = SYSTEM_CHANGES_MESSAGES_JA;
|
|
39
|
+
return {
|
|
40
|
+
...base,
|
|
41
|
+
...definedOnly(override),
|
|
42
|
+
kinds: { ...base.kinds, ...definedOnly(override?.kinds) },
|
|
43
|
+
results: { ...base.results, ...definedOnly(override?.results) },
|
|
44
|
+
changes: { ...base.changes, ...definedOnly(override?.changes) },
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
const own = (table, key) => typeof key === 'string' && key !== '' && Object.hasOwn(table, key);
|
|
48
|
+
/** 種別の表示(不明な値は、値をそのまま。無ければ空) */
|
|
49
|
+
export const systemChangeKindLabel = (kind, m = SYSTEM_CHANGES_MESSAGES_JA) => (own(m.kinds, kind) ? m.kinds[kind] : (kind ?? ''));
|
|
50
|
+
/** 結果の表示(不明な値は、値をそのまま) */
|
|
51
|
+
export const systemChangeResultLabel = (result, m = SYSTEM_CHANGES_MESSAGES_JA) => own(m.results, result) ? m.results[result] : String(result ?? '');
|
|
52
|
+
/** 既知の結果か */
|
|
53
|
+
export const isKnownSystemChangeResult = (result) => own(SYSTEM_CHANGE_RESULT_LABELS, result);
|
|
54
|
+
/** 変更の種類の表示(不明な値は、値をそのまま。無ければ empty) */
|
|
55
|
+
export const lambdaChangeLabel = (change, m = SYSTEM_CHANGES_MESSAGES_JA) => (own(m.changes, change) ? m.changes[change] : (change ?? m.empty));
|
|
56
|
+
/** フィルタの選択肢(種別・結果。順は許可リストと同じ) */
|
|
57
|
+
export const systemChangeKindChoices = (m = SYSTEM_CHANGES_MESSAGES_JA) => Object.keys(SYSTEM_CHANGE_KIND_LABELS).map((id) => ({
|
|
58
|
+
id,
|
|
59
|
+
name: m.kinds[id],
|
|
60
|
+
}));
|
|
61
|
+
export const systemChangeResultChoices = (m = SYSTEM_CHANGES_MESSAGES_JA) => Object.keys(SYSTEM_CHANGE_RESULT_LABELS).map((id) => ({
|
|
62
|
+
id,
|
|
63
|
+
name: m.results[id],
|
|
64
|
+
}));
|
|
65
|
+
/** 開始のまま、この時間を過ぎたら「中断の疑い」(ラッパーの apply は、長くても数十分) */
|
|
66
|
+
export const SYSTEM_CHANGE_STALE_AFTER_MS = 2 * 60 * 60 * 1000;
|
|
67
|
+
/** 開始のまま、occurredAt から SYSTEM_CHANGE_STALE_AFTER_MS を過ぎたか(途中で落ちて、終了が記録されなかった疑い。データは変えない) */
|
|
68
|
+
export const isSystemChangeStale = (r, now = Date.now()) => r.result === 'started' && now - Date.parse(r.occurredAt) > SYSTEM_CHANGE_STALE_AFTER_MS;
|
|
69
|
+
/** 所要時間(ミリ秒)を、秒の整数(四捨五入)にする */
|
|
70
|
+
export const systemChangeDurationSeconds = (ms) => Math.round(ms / 1000);
|
|
71
|
+
/** 所要時間(秒)の表示(durationMs が無い・負なら空) */
|
|
72
|
+
export const systemChangeDurationText = (r) => typeof r?.durationMs === 'number' && r.durationMs >= 0
|
|
73
|
+
? String(systemChangeDurationSeconds(r.durationMs))
|
|
74
|
+
: '';
|
|
75
|
+
/** 一覧のコミットは、先頭のこの文字数(詳細は全桁) */
|
|
76
|
+
export const SYSTEM_CHANGE_COMMIT_SHORT = 7;
|
|
77
|
+
/** 一覧のコミット(先頭 7 文字。無ければ empty) */
|
|
78
|
+
export const systemChangeCommitShort = (commit, empty = SYSTEM_CHANGES_MESSAGES_JA.empty) => (commit ? commit.slice(0, SYSTEM_CHANGE_COMMIT_SHORT) : empty);
|
|
79
|
+
/** 変更(run)のレコードか(startedAt・finishedAt のどちらかがある)。changeId の無い既存の記録は、従来の表示のまま */
|
|
80
|
+
export const isSystemChangeRun = (r) => Boolean(r?.startedAt || r?.finishedAt);
|
|
81
|
+
/** details.lambdaReleases から、形の合う要素だけを取り出す(無い・形が違えば空。空なら表を出さない) */
|
|
82
|
+
export function lambdaReleasesOf(details) {
|
|
83
|
+
if (typeof details !== 'object' || details === null)
|
|
84
|
+
return [];
|
|
85
|
+
return parseLambdaReleases(details.lambdaReleases);
|
|
86
|
+
}
|
|
87
|
+
/** Lambda のリージョンの既定(両アプリの infra は単一リージョン。terraform-wrapper.sh の AWS_REGION の既定と同じ) */
|
|
88
|
+
export const SYSTEM_CHANGES_DEFAULT_LAMBDA_REGION = 'ap-northeast-1';
|
|
89
|
+
/**
|
|
90
|
+
* Lambda のロググループ(/aws/lambda/<関数名>。aws_cloudwatch_log_group の既定の名前)の CloudWatch の URL。
|
|
91
|
+
* at があれば、ストリームを指定せず、at の前 5 分〜後 1 時間のログイベントを開く(cloudWatchLogGroupUrl)。
|
|
92
|
+
* 関数名が空、または既知でないリージョンなら undefined(リンクを出さない)
|
|
93
|
+
*/
|
|
94
|
+
export const lambdaLogGroupUrl = (functionName, at, region = SYSTEM_CHANGES_DEFAULT_LAMBDA_REGION) => functionName === ''
|
|
95
|
+
? undefined
|
|
96
|
+
: cloudWatchLogGroupUrl(`/aws/lambda/${functionName}`, region, { at });
|
|
97
|
+
/** 参照の表示(ReferenceField などでの見え方。例: 「インフラの変更 terraform」) */
|
|
98
|
+
export const systemChangeRepresentation = (r, m = SYSTEM_CHANGES_MESSAGES_JA) => `${systemChangeKindLabel(r.kind, m)} ${r.target}`;
|
|
99
|
+
//# sourceMappingURL=systemChangesView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systemChangesView.js","sourceRoot":"","sources":["../../../../../src/integrations/react-admin/components/SystemChanges/systemChangesView.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAEL,yBAAyB,EACzB,2BAA2B,EAC3B,mBAAmB,GACpB,MAAM,sCAAsC,CAAC;AAM9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAsCpD,MAAM,CAAC,MAAM,0BAA0B,GAAoC,MAAM,CAAC,MAAM,CAAC;IACvF,UAAU,EAAE,MAAM;IAClB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AC,MAAM,EAAE,CAAC"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React-Admin の共通部品(多対多関係、CloudWatch
|
|
2
|
+
* React-Admin の共通部品(多対多関係、CloudWatch のログを開くボタン、運用の画面〔alerts・systemChanges〕)
|
|
3
3
|
*/
|
|
4
4
|
export { ReferenceManyToManyField, ReferenceManyToManyInput } from './ReferenceManyToMany/index.js';
|
|
5
|
-
export { CloudWatchLogButton, cloudWatchLogUrl, consoleDomainOf } from './CloudWatchLog/index.js';
|
|
6
|
-
export type { CloudWatchLogButtonProps, CloudWatchLogRef, CloudWatchLogUrlOptions, } from './CloudWatchLog/index.js';
|
|
5
|
+
export { CloudWatchLogButton, cloudWatchLogGroupUrl, cloudWatchLogUrl, consoleDomainOf, } from './CloudWatchLog/index.js';
|
|
6
|
+
export type { CloudWatchLogButtonProps, CloudWatchLogGroupUrlOptions, CloudWatchLogRef, CloudWatchLogUrlOptions, } from './CloudWatchLog/index.js';
|
|
7
|
+
export { LabeledIf } from './shared/LabeledIf.js';
|
|
8
|
+
export type { LabeledIfProps } from './shared/LabeledIf.js';
|
|
9
|
+
export * from './Alerts/index.js';
|
|
10
|
+
export * from './SystemChanges/index.js';
|
|
7
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/react-admin/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AACpG,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/react-admin/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AACpG,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React-Admin の共通部品(多対多関係、CloudWatch
|
|
2
|
+
* React-Admin の共通部品(多対多関係、CloudWatch のログを開くボタン、運用の画面〔alerts・systemChanges〕)
|
|
3
3
|
*/
|
|
4
4
|
export { ReferenceManyToManyField, ReferenceManyToManyInput } from './ReferenceManyToMany/index.js';
|
|
5
|
-
export { CloudWatchLogButton, cloudWatchLogUrl, consoleDomainOf } from './CloudWatchLog/index.js';
|
|
5
|
+
export { CloudWatchLogButton, cloudWatchLogGroupUrl, cloudWatchLogUrl, consoleDomainOf, } from './CloudWatchLog/index.js';
|
|
6
|
+
export { LabeledIf } from './shared/LabeledIf.js';
|
|
7
|
+
export * from './Alerts/index.js';
|
|
8
|
+
export * from './SystemChanges/index.js';
|
|
6
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/integrations/react-admin/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AACpG,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/integrations/react-admin/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AACpG,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import { type RaRecord } from 'react-admin';
|
|
3
|
+
export interface LabeledIfProps<R extends RaRecord> {
|
|
4
|
+
/**
|
|
5
|
+
* 常に false を渡す(SimpleShowLayout の外側の見出しを止める)。SimpleShowLayout は子ごとに Labeled で包み、
|
|
6
|
+
* 子の `label`・`source` から見出しを先に描く(中身が無くても見出しが残り、source からは自動の「First log」などになる)
|
|
7
|
+
*/
|
|
8
|
+
label: false;
|
|
9
|
+
/** 見出し(中の Labeled が、when が真のときだけ描く) */
|
|
10
|
+
title: string;
|
|
11
|
+
/** 描くかどうか(レコードを受ける) */
|
|
12
|
+
when: (record: R | undefined) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 中身。コンポーネントの要素にする(Labeled は、子が `<div>` などの要素だと見出しを描かない)
|
|
15
|
+
*/
|
|
16
|
+
children: ReactElement;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* レコードに値があるときだけ、見出しつきで描く項目(Show の SimpleShowLayout の子にする)。
|
|
20
|
+
* 無いときは、見出しも空の行も残さない(ログ参照・details・リリースした Lambda)
|
|
21
|
+
*/
|
|
22
|
+
export declare const LabeledIf: <R extends RaRecord>({ title, when, children, }: LabeledIfProps<R>) => ReactElement | null;
|
|
23
|
+
//# sourceMappingURL=LabeledIf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LabeledIf.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/react-admin/components/shared/LabeledIf.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAW,KAAK,QAAQ,EAAoB,MAAM,aAAa,CAAC;AAEvE,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,QAAQ;IAChD;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;IACb,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC,GAAG,SAAS,KAAK,OAAO,CAAC;IACzC;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,QAAQ,EAAE,4BAI3C,cAAc,CAAC,CAAC,CAAC,KAAG,YAAY,GAAG,IAIrC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Labeled, useRecordContext } from 'react-admin';
|
|
3
|
+
/**
|
|
4
|
+
* レコードに値があるときだけ、見出しつきで描く項目(Show の SimpleShowLayout の子にする)。
|
|
5
|
+
* 無いときは、見出しも空の行も残さない(ログ参照・details・リリースした Lambda)
|
|
6
|
+
*/
|
|
7
|
+
export const LabeledIf = ({ title, when, children, }) => {
|
|
8
|
+
const record = useRecordContext();
|
|
9
|
+
if (!when(record))
|
|
10
|
+
return null;
|
|
11
|
+
return _jsx(Labeled, { label: title, children: children });
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=LabeledIf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LabeledIf.js","sourceRoot":"","sources":["../../../../../src/integrations/react-admin/components/shared/LabeledIf.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAiB,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAkBvE;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAqB,EAC5C,KAAK,EACL,IAAI,EACJ,QAAQ,GACU,EAAuB,EAAE;IAC3C,MAAM,MAAM,GAAG,gBAAgB,EAAK,CAAC;IACrC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;QAAE,OAAO,IAAI,CAAC;IAC/B,OAAO,KAAC,OAAO,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAW,CAAC;AACrD,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 画面の文言の上書きの共通(AlertsList / SystemChangesList などの messages)
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 上書きのうち、値が undefined の項目を捨てる(`{ omitted: undefined }` のような明示の undefined で、
|
|
6
|
+
* 既定の文言を消さない)
|
|
7
|
+
*/
|
|
8
|
+
export declare const definedOnly: <T extends object>(override?: T) => Partial<T>;
|
|
9
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/react-admin/components/shared/messages.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,EAAE,WAAW,CAAC,KAAG,OAAO,CAAC,CAAC,CAGrD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 画面の文言の上書きの共通(AlertsList / SystemChangesList などの messages)
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 上書きのうち、値が undefined の項目を捨てる(`{ omitted: undefined }` のような明示の undefined で、
|
|
6
|
+
* 既定の文言を消さない)
|
|
7
|
+
*/
|
|
8
|
+
export const definedOnly = (override) => Object.fromEntries(Object.entries(override ?? {}).filter(([, v]) => v !== undefined));
|
|
9
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../../../src/integrations/react-admin/components/shared/messages.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAmB,QAAY,EAAc,EAAE,CACxE,MAAM,CAAC,WAAW,CAChB,MAAM,CAAC,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CACpD,CAAC"}
|
|
@@ -23,6 +23,10 @@ export { createDataProvider } from './dataProvider.js';
|
|
|
23
23
|
export type { DynamoDataProvider } from './dataProvider.js';
|
|
24
24
|
export type { DataProviderOptions, ReferenceManyToManyFieldProps, ReferenceManyToManyInputProps, TokenProvider, } from './types.js';
|
|
25
25
|
export { ReferenceManyToManyField, ReferenceManyToManyInput } from './components/index.js';
|
|
26
|
-
export { CloudWatchLogButton, cloudWatchLogUrl, consoleDomainOf } from './components/index.js';
|
|
27
|
-
export type { CloudWatchLogButtonProps, CloudWatchLogRef, CloudWatchLogUrlOptions, } from './components/index.js';
|
|
26
|
+
export { CloudWatchLogButton, cloudWatchLogGroupUrl, cloudWatchLogUrl, consoleDomainOf, } from './components/index.js';
|
|
27
|
+
export type { CloudWatchLogButtonProps, CloudWatchLogGroupUrlOptions, CloudWatchLogRef, CloudWatchLogUrlOptions, } from './components/index.js';
|
|
28
|
+
export { LabeledIf } from './components/index.js';
|
|
29
|
+
export type { LabeledIfProps } from './components/index.js';
|
|
30
|
+
export * from './components/Alerts/index.js';
|
|
31
|
+
export * from './components/SystemChanges/index.js';
|
|
28
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/react-admin/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,YAAY,EACV,mBAAmB,EACnB,6BAA6B,EAC7B,6BAA6B,EAC7B,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAC3F,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/react-admin/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,YAAY,EACV,mBAAmB,EACnB,6BAA6B,EAC7B,6BAA6B,EAC7B,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC"}
|
|
@@ -21,5 +21,9 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export { createDataProvider } from './dataProvider.js';
|
|
23
23
|
export { ReferenceManyToManyField, ReferenceManyToManyInput } from './components/index.js';
|
|
24
|
-
export { CloudWatchLogButton, cloudWatchLogUrl, consoleDomainOf } from './components/index.js';
|
|
24
|
+
export { CloudWatchLogButton, cloudWatchLogGroupUrl, cloudWatchLogUrl, consoleDomainOf, } from './components/index.js';
|
|
25
|
+
// 運用の画面(alerts・systemChanges の List / Show。読み取り専用)と、その部品(ADR 0006 の段階 4)
|
|
26
|
+
export { LabeledIf } from './components/index.js';
|
|
27
|
+
export * from './components/Alerts/index.js';
|
|
28
|
+
export * from './components/SystemChanges/index.js';
|
|
25
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/react-admin/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAQvD,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAC3F,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/react-admin/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAQvD,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAO/B,yEAAyE;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC"}
|
package/dist/server/handler.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// @exabugs/dynamodb-client v1.
|
|
2
|
-
// Built: 2026-10-
|
|
1
|
+
// @exabugs/dynamodb-client v1.20.0
|
|
2
|
+
// Built: 2026-10-24T11:55:31.940Z
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -38980,7 +38980,7 @@ async function handler(event) {
|
|
|
38980
38980
|
return createCorsResponse(HTTP_STATUS.OK);
|
|
38981
38981
|
}
|
|
38982
38982
|
if (event.requestContext.http.method === "GET" && event.requestContext.http.path === "/version") {
|
|
38983
|
-
const version = "1.
|
|
38983
|
+
const version = "1.20.0";
|
|
38984
38984
|
return createSuccessResponse({ version, timestamp: (/* @__PURE__ */ new Date()).toISOString() }, requestId);
|
|
38985
38985
|
}
|
|
38986
38986
|
if (event.requestContext.http.method !== "POST") {
|
|
@@ -11,5 +11,7 @@ export { CHANGE_ID_PATTERN, LIMITS, SYSTEM_CHANGES_RESOURCE, SYSTEM_CHANGE_KINDS
|
|
|
11
11
|
export type { RunDecision, StoredSystemChange, SystemChangeInput, SystemChangeKind, SystemChangeRecord, SystemChangeResult, } from './record.js';
|
|
12
12
|
export { RECORD_HTTP_TIMEOUT_MS, SLACK_HTTP_TIMEOUT_MS, recordAndNotify, recordSystemChange, systemChangesCollectionOf, } from './recorder.js';
|
|
13
13
|
export type { RecordAndNotifyOptions, RecordOutcome, RecordSystemChangeOptions, SystemChangeLog, SystemChangeLogLevel, SystemChangeResponse, SystemChangeSlackOptions, SystemChangesCollection, } from './recorder.js';
|
|
14
|
+
export { SYSTEM_CHANGE_KIND_LABELS, SYSTEM_CHANGE_RESULT_LABELS, parseLambdaReleases, } from './labels.js';
|
|
15
|
+
export type { LambdaRelease } from './labels.js';
|
|
14
16
|
export { formatDuration, formatSystemChangeMessage, lambdaReleaseNames, shouldNotify, } from './slack.js';
|
|
15
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/system-changes/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACzD,YAAY,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,EACd,UAAU,EACV,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,WAAW,EACX,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,sBAAsB,EACtB,aAAa,EACb,yBAAyB,EACzB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,GACb,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/system-changes/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACzD,YAAY,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,EACd,UAAU,EACV,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,WAAW,EACX,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,sBAAsB,EACtB,aAAa,EACb,yBAAyB,EACzB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,mBAAmB,GACpB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,GACb,MAAM,YAAY,CAAC"}
|
|
@@ -8,5 +8,6 @@
|
|
|
8
8
|
export { createSystemChangeHandler } from './handler.js';
|
|
9
9
|
export { CHANGE_ID_PATTERN, LIMITS, SYSTEM_CHANGES_RESOURCE, SYSTEM_CHANGE_KINDS, SYSTEM_CHANGE_RESULTS, SystemChangeInputError, decideRunWrite, isFinished, parseSystemChangeInput, toSystemChangeRecord, } from './record.js';
|
|
10
10
|
export { RECORD_HTTP_TIMEOUT_MS, SLACK_HTTP_TIMEOUT_MS, recordAndNotify, recordSystemChange, systemChangesCollectionOf, } from './recorder.js';
|
|
11
|
+
export { SYSTEM_CHANGE_KIND_LABELS, SYSTEM_CHANGE_RESULT_LABELS, parseLambdaReleases, } from './labels.js';
|
|
11
12
|
export { formatDuration, formatSystemChangeMessage, lambdaReleaseNames, shouldNotify, } from './slack.js';
|
|
12
13
|
//# sourceMappingURL=index.js.map
|