@dx-do/client 7.18.0 → 9.0.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/README.md +1 -14
- package/dist/index.cjs.js +38530 -35291
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +38278 -35197
- package/dist/index.esm.js.map +1 -1
- package/dist/src/index.d.ts +38 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/lib/model/alarm/alarm-queue.d.ts +2 -0
- package/dist/src/lib/model/alarm/alarm-queue.d.ts.map +1 -1
- package/dist/src/lib/model/alert/PlatformAlert.d.ts +2 -1
- package/dist/src/lib/model/alert/PlatformAlert.d.ts.map +1 -1
- package/dist/src/lib/model/channel/notify-channel.d.ts +5 -4
- package/dist/src/lib/model/channel/notify-channel.d.ts.map +1 -1
- package/dist/src/lib/model/config/DXSaaSConfiguration.d.ts +0 -4
- package/dist/src/lib/model/config/DXSaaSConfiguration.d.ts.map +1 -1
- package/dist/src/lib/model/dashboard/DashboardResponse.d.ts +12 -3
- package/dist/src/lib/model/dashboard/DashboardResponse.d.ts.map +1 -1
- package/dist/src/lib/model/datastore/index.d.ts +1 -0
- package/dist/src/lib/model/datastore/index.d.ts.map +1 -1
- package/dist/src/lib/model/datastore/metric-data/index.d.ts +2 -0
- package/dist/src/lib/model/datastore/metric-data/index.d.ts.map +1 -0
- package/dist/src/lib/model/datastore/metric-data/metric-data.d.ts +40 -0
- package/dist/src/lib/model/datastore/metric-data/metric-data.d.ts.map +1 -0
- package/dist/src/lib/model/log/log-metric-apply.d.ts +69 -0
- package/dist/src/lib/model/log/log-metric-apply.d.ts.map +1 -0
- package/dist/src/lib/model/log/log-metric.d.ts +222 -0
- package/dist/src/lib/model/log/log-metric.d.ts.map +1 -0
- package/dist/src/lib/model/maintenance/delete.d.ts +2 -3
- package/dist/src/lib/model/maintenance/delete.d.ts.map +1 -1
- package/dist/src/lib/model/managementmodule/management-module-export.d.ts +110 -0
- package/dist/src/lib/model/managementmodule/management-module-export.d.ts.map +1 -0
- package/dist/src/lib/model/managementmodule/management-module-relink.d.ts +30 -0
- package/dist/src/lib/model/managementmodule/management-module-relink.d.ts.map +1 -0
- package/dist/src/lib/model/managementmodule/management-module-transform-presets.d.ts +4 -0
- package/dist/src/lib/model/managementmodule/management-module-transform-presets.d.ts.map +1 -0
- package/dist/src/lib/model/managementmodule/management-module-transform.d.ts +110 -0
- package/dist/src/lib/model/managementmodule/management-module-transform.d.ts.map +1 -0
- package/dist/src/lib/model/metricgrouping/PlatformMetricGrouping.d.ts +23 -3
- package/dist/src/lib/model/metricgrouping/PlatformMetricGrouping.d.ts.map +1 -1
- package/dist/src/lib/model/metricgrouping/metric-grouping-filter.d.ts +42 -0
- package/dist/src/lib/model/metricgrouping/metric-grouping-filter.d.ts.map +1 -0
- package/dist/src/lib/model/oi/alarms.d.ts +14 -0
- package/dist/src/lib/model/oi/alarms.d.ts.map +1 -1
- package/dist/src/lib/model/oi/custom-properties.d.ts +184 -0
- package/dist/src/lib/model/oi/custom-properties.d.ts.map +1 -0
- package/dist/src/lib/model/oi/custom-property-grid.d.ts +121 -0
- package/dist/src/lib/model/oi/custom-property-grid.d.ts.map +1 -0
- package/dist/src/lib/model/oi/custom-property-routing.d.ts +60 -0
- package/dist/src/lib/model/oi/custom-property-routing.d.ts.map +1 -0
- package/dist/src/lib/model/oi/services.create.d.ts +6 -1
- package/dist/src/lib/model/oi/services.create.d.ts.map +1 -1
- package/dist/src/lib/model/security/access-references.d.ts +23 -0
- package/dist/src/lib/model/security/access-references.d.ts.map +1 -0
- package/dist/src/lib/model/security/roles.d.ts +75 -0
- package/dist/src/lib/model/security/roles.d.ts.map +1 -0
- package/dist/src/lib/model/security/user-groups.d.ts +69 -0
- package/dist/src/lib/model/security/user-groups.d.ts.map +1 -0
- package/dist/src/lib/model/service/availability-kpi.d.ts +86 -0
- package/dist/src/lib/model/service/availability-kpi.d.ts.map +1 -0
- package/dist/src/lib/model/situations/SituationLifecycle.d.ts +2 -0
- package/dist/src/lib/model/situations/SituationLifecycle.d.ts.map +1 -1
- package/dist/src/lib/model/situations/naming-template.d.ts +73 -0
- package/dist/src/lib/model/situations/naming-template.d.ts.map +1 -0
- package/dist/src/lib/model/situations/situation-explain.d.ts +365 -0
- package/dist/src/lib/model/situations/situation-explain.d.ts.map +1 -0
- package/dist/src/lib/model/synthetics/access-policy.d.ts +115 -0
- package/dist/src/lib/model/synthetics/access-policy.d.ts.map +1 -0
- package/dist/src/lib/model/synthetics/auth.d.ts +220 -0
- package/dist/src/lib/model/synthetics/auth.d.ts.map +1 -0
- package/dist/src/lib/model/synthetics/check.d.ts +367 -0
- package/dist/src/lib/model/synthetics/check.d.ts.map +1 -0
- package/dist/src/lib/model/synthetics/common.d.ts +165 -0
- package/dist/src/lib/model/synthetics/common.d.ts.map +1 -0
- package/dist/src/lib/model/synthetics/create.d.ts +3366 -0
- package/dist/src/lib/model/synthetics/create.d.ts.map +1 -0
- package/dist/src/lib/model/synthetics/errors.d.ts +102 -0
- package/dist/src/lib/model/synthetics/errors.d.ts.map +1 -0
- package/dist/src/lib/model/synthetics/examples.d.ts +24 -0
- package/dist/src/lib/model/synthetics/examples.d.ts.map +1 -0
- package/dist/src/lib/model/synthetics/location.d.ts +46 -0
- package/dist/src/lib/model/synthetics/location.d.ts.map +1 -0
- package/dist/src/lib/model/synthetics/monitor.d.ts +456 -0
- package/dist/src/lib/model/synthetics/monitor.d.ts.map +1 -0
- package/dist/src/lib/model/synthetics/params.d.ts +806 -0
- package/dist/src/lib/model/synthetics/params.d.ts.map +1 -0
- package/dist/src/lib/model/synthetics/query.d.ts +297 -0
- package/dist/src/lib/model/synthetics/query.d.ts.map +1 -0
- package/dist/src/lib/model/synthetics/schedule.d.ts +93 -0
- package/dist/src/lib/model/synthetics/schedule.d.ts.map +1 -0
- package/dist/src/lib/model/synthetics/script.d.ts +64 -0
- package/dist/src/lib/model/synthetics/script.d.ts.map +1 -0
- package/dist/src/lib/model/synthetics/state.d.ts +645 -0
- package/dist/src/lib/model/synthetics/state.d.ts.map +1 -0
- package/dist/src/lib/model/synthetics/update.d.ts +378 -0
- package/dist/src/lib/model/synthetics/update.d.ts.map +1 -0
- package/dist/src/lib/services/alarm.service.d.ts +4 -2
- package/dist/src/lib/services/alarm.service.d.ts.map +1 -1
- package/dist/src/lib/services/custom-property.service.d.ts +53 -0
- package/dist/src/lib/services/custom-property.service.d.ts.map +1 -0
- package/dist/src/lib/services/dashboard.service.d.ts +11 -0
- package/dist/src/lib/services/dashboard.service.d.ts.map +1 -1
- package/dist/src/lib/services/datastore/datastore-metric-data.service.d.ts +19 -0
- package/dist/src/lib/services/datastore/datastore-metric-data.service.d.ts.map +1 -0
- package/dist/src/lib/services/dx-saas.service.d.ts +19 -1
- package/dist/src/lib/services/dx-saas.service.d.ts.map +1 -1
- package/dist/src/lib/services/log-metric.service.d.ts +112 -0
- package/dist/src/lib/services/log-metric.service.d.ts.map +1 -0
- package/dist/src/lib/services/logs.service.d.ts +3 -1
- package/dist/src/lib/services/logs.service.d.ts.map +1 -1
- package/dist/src/lib/services/platform-management-module.service.d.ts +49 -4
- package/dist/src/lib/services/platform-management-module.service.d.ts.map +1 -1
- package/dist/src/lib/services/platform-metric-grouping.service.d.ts +14 -0
- package/dist/src/lib/services/platform-metric-grouping.service.d.ts.map +1 -1
- package/dist/src/lib/services/role.service.d.ts +46 -0
- package/dist/src/lib/services/role.service.d.ts.map +1 -0
- package/dist/src/lib/services/service-monolith.d.ts +14 -2
- package/dist/src/lib/services/service-monolith.d.ts.map +1 -1
- package/dist/src/lib/services/service.service.d.ts +40 -0
- package/dist/src/lib/services/service.service.d.ts.map +1 -1
- package/dist/src/lib/services/situation.service.d.ts +13 -2
- package/dist/src/lib/services/situation.service.d.ts.map +1 -1
- package/dist/src/lib/services/synthetic-access.service.d.ts +35 -0
- package/dist/src/lib/services/synthetic-access.service.d.ts.map +1 -0
- package/dist/src/lib/services/synthetic-monitor.service.d.ts +417 -0
- package/dist/src/lib/services/synthetic-monitor.service.d.ts.map +1 -0
- package/dist/src/lib/services/user-group.service.d.ts +52 -0
- package/dist/src/lib/services/user-group.service.d.ts.map +1 -0
- package/package.json +2 -1
- package/dist/src/lib/model/asm/client/client/client.gen.d.ts +0 -3
- package/dist/src/lib/model/asm/client/client/client.gen.d.ts.map +0 -1
- package/dist/src/lib/model/asm/client/client/index.d.ts +0 -11
- package/dist/src/lib/model/asm/client/client/index.d.ts.map +0 -1
- package/dist/src/lib/model/asm/client/client/types.gen.d.ts +0 -88
- package/dist/src/lib/model/asm/client/client/types.gen.d.ts.map +0 -1
- package/dist/src/lib/model/asm/client/client/utils.gen.d.ts +0 -15
- package/dist/src/lib/model/asm/client/client/utils.gen.d.ts.map +0 -1
- package/dist/src/lib/model/asm/client/client.gen.d.ts +0 -13
- package/dist/src/lib/model/asm/client/client.gen.d.ts.map +0 -1
- package/dist/src/lib/model/asm/client/core/auth.gen.d.ts +0 -26
- package/dist/src/lib/model/asm/client/core/auth.gen.d.ts.map +0 -1
- package/dist/src/lib/model/asm/client/core/bodySerializer.gen.d.ts +0 -26
- package/dist/src/lib/model/asm/client/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/src/lib/model/asm/client/core/params.gen.d.ts +0 -44
- package/dist/src/lib/model/asm/client/core/params.gen.d.ts.map +0 -1
- package/dist/src/lib/model/asm/client/core/pathSerializer.gen.d.ts +0 -34
- package/dist/src/lib/model/asm/client/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/src/lib/model/asm/client/core/queryKeySerializer.gen.d.ts +0 -19
- package/dist/src/lib/model/asm/client/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/src/lib/model/asm/client/core/serverSentEvents.gen.d.ts +0 -72
- package/dist/src/lib/model/asm/client/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/src/lib/model/asm/client/core/types.gen.d.ts +0 -84
- package/dist/src/lib/model/asm/client/core/types.gen.d.ts.map +0 -1
- package/dist/src/lib/model/asm/client/core/utils.gen.d.ts +0 -20
- package/dist/src/lib/model/asm/client/core/utils.gen.d.ts.map +0 -1
- package/dist/src/lib/model/asm/client/index.d.ts +0 -3
- package/dist/src/lib/model/asm/client/index.d.ts.map +0 -1
- package/dist/src/lib/model/asm/client/schemas.gen.d.ts +0 -4522
- package/dist/src/lib/model/asm/client/schemas.gen.d.ts.map +0 -1
- package/dist/src/lib/model/asm/client/sdk.gen.d.ts +0 -585
- package/dist/src/lib/model/asm/client/sdk.gen.d.ts.map +0 -1
- package/dist/src/lib/model/asm/client/types.gen.d.ts +0 -4877
- package/dist/src/lib/model/asm/client/types.gen.d.ts.map +0 -1
- package/dist/src/lib/services/asm.service.d.ts +0 -22
- package/dist/src/lib/services/asm.service.d.ts.map +0 -1
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
import { Logging } from '@dx-do/util';
|
|
2
|
+
import { DxSaasService } from './dx-saas.service';
|
|
3
|
+
import type { SyntheticLocationList } from '../model/synthetics/location';
|
|
4
|
+
import type { SyntheticMonitorCreate } from '../model/synthetics/create';
|
|
5
|
+
import type { SyntheticMonitor, SyntheticMonitorAuthEncOptions, SyntheticMonitorGroupSummary, SyntheticMonitorHistoryEntry, SyntheticMonitorTypeInfoList } from '../model/synthetics/monitor';
|
|
6
|
+
import type { SyntheticMonitorDistinctAttribute, SyntheticMonitorFilters, SyntheticMonitorGroupBy, SyntheticMonitorListQuery, SyntheticMonitorListResult } from '../model/synthetics/query';
|
|
7
|
+
import type { SyntheticScript, SyntheticScriptCreate, SyntheticScriptUpdate } from '../model/synthetics/script';
|
|
8
|
+
import type { SyntheticCheckResult } from '../model/synthetics/check';
|
|
9
|
+
import type { SyntheticSchedule, SyntheticScheduleSave, SyntheticScheduleWindow } from '../model/synthetics/schedule';
|
|
10
|
+
import type { SyntheticAuthStore, SyntheticCredential, SyntheticCredentialSave, SyntheticProxy, SyntheticProxySave, SyntheticVariable, SyntheticVariableSave } from '../model/synthetics/auth';
|
|
11
|
+
import type { SyntheticMonitorState } from '../model/synthetics/state';
|
|
12
|
+
import type { SyntheticMonitorBulkUpdateRequest, SyntheticMonitorBulkUpdateResponse, SyntheticMonitorUpdate } from '../model/synthetics/update';
|
|
13
|
+
import SimpleLog = Logging.SimpleLog;
|
|
14
|
+
/**
|
|
15
|
+
* Path of the Synthetics Monitor API relative to the cohort: the spec's first server
|
|
16
|
+
* (`/synthetics/monitor/api`) plus `/v1`, verified live. The spec's second server (`/api`) is not
|
|
17
|
+
* routed by the gateway (404).
|
|
18
|
+
*/
|
|
19
|
+
export declare const SYNTHETIC_MONITOR_API_PATH = "synthetics/monitor/api/v1";
|
|
20
|
+
/**
|
|
21
|
+
* Path of the Synthetics Station API relative to the cohort, verified live. It is not in the
|
|
22
|
+
* Monitor API spec; its `location` resource is the store monitor location references point into.
|
|
23
|
+
*/
|
|
24
|
+
export declare const SYNTHETIC_STATION_API_PATH = "synthetics/station/api/v1";
|
|
25
|
+
/** Path of the Synthetics Check API (run a monitor now) relative to the cohort, verified live. */
|
|
26
|
+
export declare const SYNTHETIC_CHECK_API_PATH = "synthetics/check/api/v1";
|
|
27
|
+
/** Path of the scripts store (webdriver and jmeter scripts) relative to the cohort, verified live. */
|
|
28
|
+
export declare const SYNTHETIC_SCRIPT_API_PATH = "synthetics/script/api/v1/script";
|
|
29
|
+
/**
|
|
30
|
+
* Path of a station's file proxy relative to the cohort, verified live: a check result's stored
|
|
31
|
+
* files (`assets[].path`) download from `${SYNTHETIC_STATION_FILES_PATH}/{stationId}/assets{path}`.
|
|
32
|
+
*/
|
|
33
|
+
export declare const SYNTHETIC_STATION_FILES_PATH = "synthetics/location-proxy/proxy";
|
|
34
|
+
/** Path of the schedule store relative to the cohort, verified live. */
|
|
35
|
+
export declare const SYNTHETIC_SCHEDULE_API_PATH = "synthetics/variable/api/v1/schedule";
|
|
36
|
+
/** Paging of {@link SyntheticMonitorService.list}. */
|
|
37
|
+
export interface SyntheticMonitorListPaging {
|
|
38
|
+
/** Monitors per request (the API's `limit`); default 100. */
|
|
39
|
+
pageSize?: number;
|
|
40
|
+
/** Stop after this many monitors; default 1000. `truncated` says whether more matched. */
|
|
41
|
+
max?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* DXO2 integrated synthetic monitors (the Synthetics Monitor API, #1423): list, read, create,
|
|
45
|
+
* update, delete and bulk-update monitors of all 18 types.
|
|
46
|
+
*
|
|
47
|
+
* Uses the bearer-only `tenant*` helpers: verified live, the API needs only the user token (the
|
|
48
|
+
* `x-authorizationview` header of the `oi*` helpers changes nothing). `/v1/tenant/*` (cross-tenant
|
|
49
|
+
* platform operations) is deliberately not wrapped. Requests are validated with `parse` (throws);
|
|
50
|
+
* responses with `safeParse` (warn + return raw on mismatch). List, summary and history answer
|
|
51
|
+
* newline-delimited JSON, normalized to arrays here.
|
|
52
|
+
*
|
|
53
|
+
* Errors surface as `SimpleHTTPError` (`httpCode`, `responseData`). The body is rarely the bare
|
|
54
|
+
* Status the spec declares; turn any of them into one readable line with
|
|
55
|
+
* `describeSyntheticMonitorApiError`, or into a Status with `unwrapSyntheticMonitorApiError`.
|
|
56
|
+
*/
|
|
57
|
+
export declare class SyntheticMonitorService {
|
|
58
|
+
private readonly dxSaasService;
|
|
59
|
+
private readonly log;
|
|
60
|
+
constructor(dxSaasService: DxSaasService, log?: SimpleLog);
|
|
61
|
+
/**
|
|
62
|
+
* Lists monitors matching the filters, paging with `limit`/`offset` until a short page or the
|
|
63
|
+
* cap. The API returns no total count, so a short (or empty) page is the only end signal.
|
|
64
|
+
*
|
|
65
|
+
* `GET synthetics/monitor/api/v1/monitor?limit=&offset=&<filters>&orderBy=&dir=`
|
|
66
|
+
*
|
|
67
|
+
* @param query - Filters (several values of one filter match any; `name` takes `*` wildcards and
|
|
68
|
+
* ignores case, the others match exactly) and ordering (default: last modified, newest first).
|
|
69
|
+
* @param paging - Page size and overall cap; see {@link SyntheticMonitorListPaging}.
|
|
70
|
+
* @remarks Each page is response-validated, not thrown on. List entries carry `lastModified`.
|
|
71
|
+
* @throws ZodError when a filter value or the paging is malformed.
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const { monitors, truncated } = await service.list({ type: ['http'], status: ['enabled'] });
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
list(query?: SyntheticMonitorListQuery, paging?: SyntheticMonitorListPaging): Promise<SyntheticMonitorListResult>;
|
|
78
|
+
/**
|
|
79
|
+
* One monitor, at its latest version or at `version`.
|
|
80
|
+
*
|
|
81
|
+
* `GET synthetics/monitor/api/v1/monitor/{id}?version=`
|
|
82
|
+
*
|
|
83
|
+
* @remarks References stay `{id, version}`; use {@link getState} for the resolved definition.
|
|
84
|
+
* Response-validated, not thrown on.
|
|
85
|
+
* @throws SimpleHTTPError 404 (`{"message": "Not Found"}`) when no monitor has that id, or the
|
|
86
|
+
* version is past the latest; 422 (`Id: uuid4`) when the id is not a UUID v4.
|
|
87
|
+
*/
|
|
88
|
+
get(id: string, version?: number): Promise<SyntheticMonitor>;
|
|
89
|
+
/**
|
|
90
|
+
* The full, resolved definition of a monitor: variables, credentials, proxy, schedule and
|
|
91
|
+
* script inlined (values of `secret_plain` variables are never returned), locations as ids.
|
|
92
|
+
*
|
|
93
|
+
* `GET synthetics/monitor/api/v1/monitor-state/{id}?version=`
|
|
94
|
+
*
|
|
95
|
+
* @remarks Response-validated, not thrown on. May carry credential values and the last
|
|
96
|
+
* editor's email (`userId`); never log it whole.
|
|
97
|
+
* @throws SimpleHTTPError 500 when no monitor has that id (the spec says 404); 422 when the id
|
|
98
|
+
* is not a UUID v4.
|
|
99
|
+
*/
|
|
100
|
+
getState(id: string, version?: number): Promise<SyntheticMonitorState>;
|
|
101
|
+
/**
|
|
102
|
+
* Version history of a monitor, newest first: one full snapshot per stored version, with
|
|
103
|
+
* `modifiedAt` and `modifiedBy`. A deleted monitor's history ends in a `status: "deleted"`
|
|
104
|
+
* entry.
|
|
105
|
+
*
|
|
106
|
+
* `GET synthetics/monitor/api/v1/monitor/{id}/log?limit=&offset=`
|
|
107
|
+
*
|
|
108
|
+
* @param paging - One page; omitted = the whole history.
|
|
109
|
+
* @returns The entries; an empty array for an unknown id (the API answers 200 with no body).
|
|
110
|
+
* @remarks Response-validated, not thrown on. `modifiedBy` is an email address.
|
|
111
|
+
* @throws ZodError when the paging is malformed.
|
|
112
|
+
*/
|
|
113
|
+
history(id: string, paging?: {
|
|
114
|
+
limit?: number;
|
|
115
|
+
offset?: number;
|
|
116
|
+
}): Promise<SyntheticMonitorHistoryEntry[]>;
|
|
117
|
+
/**
|
|
118
|
+
* Monitor counts over the monitors matching the filters: grouped by one attribute, or, without
|
|
119
|
+
* `groupBy`, a single `{name: "all", count}` row.
|
|
120
|
+
*
|
|
121
|
+
* `GET synthetics/monitor/api/v1/monitor/summary?groupBy=&<filters>`
|
|
122
|
+
*
|
|
123
|
+
* @returns One row per value; an empty array when no monitor matches a grouped summary.
|
|
124
|
+
* @remarks Response-validated, not thrown on. `groupBy: 'location'` names rows by station id.
|
|
125
|
+
* @throws ZodError when `groupBy` or a filter is malformed.
|
|
126
|
+
* @example
|
|
127
|
+
* ```ts
|
|
128
|
+
* const byType = await service.summary('type'); // [{ name: 'http', count: 12 }, …]
|
|
129
|
+
* const [all] = await service.summary(); // { name: 'all', count: 42 }
|
|
130
|
+
* ```
|
|
131
|
+
*/
|
|
132
|
+
summary(groupBy?: SyntheticMonitorGroupBy, filters?: SyntheticMonitorFilters): Promise<SyntheticMonitorGroupSummary[]>;
|
|
133
|
+
/**
|
|
134
|
+
* Distinct values of one attribute across every monitor the user can see — e.g. the existing
|
|
135
|
+
* groups before choosing one.
|
|
136
|
+
*
|
|
137
|
+
* `GET synthetics/monitor/api/v1/monitor/filter/{tag|group|type}`
|
|
138
|
+
*
|
|
139
|
+
* @remarks Response-validated, not thrown on.
|
|
140
|
+
* @throws ZodError when the attribute is not tag, group or type.
|
|
141
|
+
*/
|
|
142
|
+
distinctValues(attribute: SyntheticMonitorDistinctAttribute): Promise<string[]>;
|
|
143
|
+
/**
|
|
144
|
+
* The monitor types with their UI display names and interval choices.
|
|
145
|
+
*
|
|
146
|
+
* `GET synthetics/monitor/api/v1/monitor/monitor-types`
|
|
147
|
+
*
|
|
148
|
+
* @remarks The spec types this as the auth-enc options map; the wire is an array of
|
|
149
|
+
* `{name, type, minInterval, intervals}`. Response-validated, not thrown on.
|
|
150
|
+
*/
|
|
151
|
+
monitorTypes(): Promise<SyntheticMonitorTypeInfoList>;
|
|
152
|
+
/**
|
|
153
|
+
* The monitoring stations a monitor can run from (its `locations`), public and private.
|
|
154
|
+
*
|
|
155
|
+
* `GET synthetics/station/api/v1/location`
|
|
156
|
+
*
|
|
157
|
+
* @returns Every station, as a plain array (not newline-delimited).
|
|
158
|
+
* @remarks Response-validated, not thrown on. A monitor references a station as
|
|
159
|
+
* `{id: station.id, version: station.version}`; the server stores the station's current version
|
|
160
|
+
* whatever version is sent.
|
|
161
|
+
* @example
|
|
162
|
+
* ```ts
|
|
163
|
+
* const virginia = (await service.listLocations()).find((s) => s.name === 'Virginia');
|
|
164
|
+
* ```
|
|
165
|
+
*/
|
|
166
|
+
listLocations(): Promise<SyntheticLocationList>;
|
|
167
|
+
/**
|
|
168
|
+
* Authentication and encryption options per monitor type: the allowed values of
|
|
169
|
+
* `parameters.authenticationType`, `encryption` and `cipherList`, and whether CA/client
|
|
170
|
+
* certificates may be attached.
|
|
171
|
+
*
|
|
172
|
+
* `GET synthetics/monitor/api/v1/monitor/auth-enc-options`
|
|
173
|
+
*
|
|
174
|
+
* @remarks Response-validated, not thrown on.
|
|
175
|
+
*/
|
|
176
|
+
authEncOptions(): Promise<SyntheticMonitorAuthEncOptions>;
|
|
177
|
+
/**
|
|
178
|
+
* Creates a monitor. `body.type` selects the endpoint and is not sent.
|
|
179
|
+
*
|
|
180
|
+
* `POST synthetics/monitor/api/v1/monitor/{type}` (answers 201)
|
|
181
|
+
*
|
|
182
|
+
* @returns The created monitor, with its `id` and `version` 1.
|
|
183
|
+
* @remarks Response-validated, not thrown on.
|
|
184
|
+
* @throws ZodError when the body is invalid for its type (unknown key, missing required field
|
|
185
|
+
* or status, timing out of range or not `firstLimit < secondLimit < timeout`, 0 or more than 10
|
|
186
|
+
* locations).
|
|
187
|
+
* @throws SimpleHTTPError 422 with `details.causes` when the server rejects it (e.g. a name
|
|
188
|
+
* another monitor has, or an unknown location id).
|
|
189
|
+
* @example
|
|
190
|
+
* ```ts
|
|
191
|
+
* const monitor = await service.create({
|
|
192
|
+
* type: 'ping', name: 'gateway ping', group: 'network', target: '//gw.example.com', status: 'disabled',
|
|
193
|
+
* timing: { interval: 300, timeout: 30, firstLimit: 5, secondLimit: 15 },
|
|
194
|
+
* locations: [{ id: locationId, version: 1 }], parameters: {},
|
|
195
|
+
* });
|
|
196
|
+
* ```
|
|
197
|
+
*/
|
|
198
|
+
create(body: SyntheticMonitorCreate): Promise<SyntheticMonitor>;
|
|
199
|
+
/**
|
|
200
|
+
* Changes properties of one monitor, pinned to the version the caller read (optimistic locking).
|
|
201
|
+
* Nested objects are merged into the stored ones, arrays replace the stored lists, and every
|
|
202
|
+
* accepted call bumps the version.
|
|
203
|
+
*
|
|
204
|
+
* `PATCH synthetics/monitor/api/v1/monitor/{id}?version=`
|
|
205
|
+
*
|
|
206
|
+
* @param version - The monitor's current version, from {@link get}.
|
|
207
|
+
* @returns The updated monitor, with its new `version`.
|
|
208
|
+
* @remarks Response-validated, not thrown on.
|
|
209
|
+
* @throws ZodError when the patch is empty or malformed.
|
|
210
|
+
* @throws SimpleHTTPError 409 when the monitor changed since `version` (the body does not carry
|
|
211
|
+
* the current version: re-read it, review, and resubmit); 404 when `version` is past the latest;
|
|
212
|
+
* 400 when the merged timing breaks `firstLimit < secondLimit < timeout`.
|
|
213
|
+
*/
|
|
214
|
+
update(id: string, version: number, patch: SyntheticMonitorUpdate): Promise<SyntheticMonitor>;
|
|
215
|
+
/**
|
|
216
|
+
* Deletes a monitor. It disappears from list, get and summary; its history keeps a final
|
|
217
|
+
* `status: "deleted"` entry, and its name becomes free for reuse.
|
|
218
|
+
*
|
|
219
|
+
* `DELETE synthetics/monitor/api/v1/monitor/{id}`
|
|
220
|
+
*
|
|
221
|
+
* @remarks The server answers 200 with an empty body; verify with {@link get} (expect 404).
|
|
222
|
+
* @throws SimpleHTTPError 404 when no monitor has that id.
|
|
223
|
+
*/
|
|
224
|
+
delete(id: string): Promise<void>;
|
|
225
|
+
/**
|
|
226
|
+
* Applies the same property changes to several monitors, each pinned to its version.
|
|
227
|
+
*
|
|
228
|
+
* `POST synthetics/monitor/api/v1/monitor/bulk-update`
|
|
229
|
+
*
|
|
230
|
+
* @returns `ok` (updated, with new versions) and `failed` (with reasons). Always read both: the
|
|
231
|
+
* server answers a non-2xx status (404, 409) whenever any monitor failed, even when others were
|
|
232
|
+
* updated, with this body. Such a response is returned, not thrown.
|
|
233
|
+
* @remarks Response-validated, not thrown on. The non-2xx answer is still logged as an HTTP
|
|
234
|
+
* error by `DxSaasService`.
|
|
235
|
+
* @throws ZodError when the request is malformed or names no monitors.
|
|
236
|
+
* @throws SimpleHTTPError for a failure whose body is not a bulk response (e.g. a 422 on the
|
|
237
|
+
* properties).
|
|
238
|
+
*/
|
|
239
|
+
bulkUpdate(request: SyntheticMonitorBulkUpdateRequest): Promise<SyntheticMonitorBulkUpdateResponse>;
|
|
240
|
+
/**
|
|
241
|
+
* Runs a monitor once, now, from each of its stations, and waits for the probes.
|
|
242
|
+
*
|
|
243
|
+
* `POST synthetics/check/api/v1/check/{id}` with body `{}`
|
|
244
|
+
*
|
|
245
|
+
* @returns One probe per station (`locationId`, `metrics.failed`, `metrics.performance`,
|
|
246
|
+
* timings) and `errors`. A failed probe is a normal answer with `failed: true`, not an error.
|
|
247
|
+
* @remarks Sends probe traffic to the target but changes no configuration; works on a disabled
|
|
248
|
+
* monitor (measured). Response-validated, not thrown on.
|
|
249
|
+
* @throws SimpleHTTPError 500 when no monitor has that id (verify with {@link get} first); 422
|
|
250
|
+
* when the id is not a UUID v4.
|
|
251
|
+
*/
|
|
252
|
+
check(id: string): Promise<SyntheticCheckResult>;
|
|
253
|
+
/**
|
|
254
|
+
* One schedule, hidden or not, at its latest version or at `version`.
|
|
255
|
+
*
|
|
256
|
+
* `GET synthetics/variable/api/v1/schedule/{id}?version=`
|
|
257
|
+
*
|
|
258
|
+
* @remarks Response-validated, not thrown on. A monitor's `schedule` reference pins a version;
|
|
259
|
+
* pass it to read what the monitor runs on.
|
|
260
|
+
* @throws SimpleHTTPError 404 when no schedule has that id (or it was deleted).
|
|
261
|
+
*/
|
|
262
|
+
getSchedule(id: string, version?: number): Promise<SyntheticSchedule>;
|
|
263
|
+
/**
|
|
264
|
+
* Creates a schedule the way the UI creates a monitor's own one: a client-generated id, named
|
|
265
|
+
* `schedule-<id>`, hidden (left out of the schedule list). Attach it with {@link update}
|
|
266
|
+
* (`{schedule: {id, version}}`) or put the reference in a {@link create} body.
|
|
267
|
+
*
|
|
268
|
+
* `POST synthetics/variable/api/v1/schedule` with `version: 0` (answers 201)
|
|
269
|
+
*
|
|
270
|
+
* @param options - `group` (the UI uses the monitor's), `id` (default: a random UUID).
|
|
271
|
+
* @returns The stored schedule, at version 1.
|
|
272
|
+
* @remarks Response-validated, not thrown on.
|
|
273
|
+
* @throws ZodError when the window is invalid (unknown timezone, times out of 0–86400, or
|
|
274
|
+
* enableTime not below disableTime).
|
|
275
|
+
* @example
|
|
276
|
+
* ```ts
|
|
277
|
+
* const schedule = await service.createSchedule(
|
|
278
|
+
* { timezone: 'Europe/Berlin', daysOfWeek: ['monday', 'friday'], enableTime: 28800, disableTime: 64800 },
|
|
279
|
+
* { group: monitor.group }
|
|
280
|
+
* );
|
|
281
|
+
* await service.update(monitor.id, monitor.version, { schedule: { id: schedule.id, version: schedule.version } });
|
|
282
|
+
* ```
|
|
283
|
+
*/
|
|
284
|
+
createSchedule(window: SyntheticScheduleWindow, options?: {
|
|
285
|
+
group?: string;
|
|
286
|
+
id?: string;
|
|
287
|
+
}): Promise<SyntheticSchedule>;
|
|
288
|
+
/**
|
|
289
|
+
* Replaces a schedule. `schedule.version` must be its current version; the stored version goes
|
|
290
|
+
* up by one. Monitors keep running on the version they reference until it is moved.
|
|
291
|
+
*
|
|
292
|
+
* `POST synthetics/variable/api/v1/schedule` with `version: <current>`
|
|
293
|
+
*
|
|
294
|
+
* @returns The stored schedule with its new version.
|
|
295
|
+
* @remarks Response-validated, not thrown on. The store has no PUT or PATCH (405).
|
|
296
|
+
* @throws ZodError when the schedule is malformed or its version is 0 (that would create).
|
|
297
|
+
* @throws SimpleHTTPError 409 when `version` is not the current one.
|
|
298
|
+
*/
|
|
299
|
+
updateSchedule(schedule: SyntheticScheduleSave): Promise<SyntheticSchedule>;
|
|
300
|
+
/**
|
|
301
|
+
* Deletes a schedule. The store does not check whether a monitor still references it.
|
|
302
|
+
*
|
|
303
|
+
* `DELETE synthetics/variable/api/v1/schedule/{id}`
|
|
304
|
+
*
|
|
305
|
+
* @remarks Answers 200 with no body; verify with {@link getSchedule} (expect 404).
|
|
306
|
+
* @throws SimpleHTTPError 500 when it is already deleted or never existed (not 404).
|
|
307
|
+
*/
|
|
308
|
+
deleteSchedule(id: string): Promise<void>;
|
|
309
|
+
private saveSchedule;
|
|
310
|
+
/**
|
|
311
|
+
* One variable, credential or proxy, at its latest version or at `version`.
|
|
312
|
+
*
|
|
313
|
+
* `GET synthetics/variable/api/v1/{variable|credentials|proxy}/{id}?version=`
|
|
314
|
+
*
|
|
315
|
+
* @remarks Response-validated, not thrown on. A `secret_plain` variable comes back without its
|
|
316
|
+
* value; a `binary` or `plain` one with it. Older versions stay readable after an edit (measured on
|
|
317
|
+
* the lab, 2026-11-12), so read a monitor's reference at the version it pins.
|
|
318
|
+
* @throws SimpleHTTPError 404 when no object has that id (or it was deleted), or `version` is past the latest.
|
|
319
|
+
*/
|
|
320
|
+
getVariable(id: string, version?: number): Promise<SyntheticVariable>;
|
|
321
|
+
/** @see {@link getVariable} */
|
|
322
|
+
getCredential(id: string, version?: number): Promise<SyntheticCredential>;
|
|
323
|
+
/** @see {@link getVariable} */
|
|
324
|
+
getProxy(id: string, version?: number): Promise<SyntheticProxy>;
|
|
325
|
+
/**
|
|
326
|
+
* Saves a variable: version 0 or 1 with a fresh id creates it, the current version replaces it.
|
|
327
|
+
*
|
|
328
|
+
* `POST synthetics/variable/api/v1/variable` (answers 201 either way)
|
|
329
|
+
*
|
|
330
|
+
* @returns The stored variable with its version (a secret_plain one without its value).
|
|
331
|
+
* @throws ZodError when the body is malformed (including a group outside dx-do's rules).
|
|
332
|
+
* @throws SimpleHTTPError 409 when the version is not the current one, or the id was deleted.
|
|
333
|
+
*/
|
|
334
|
+
saveVariable(variable: SyntheticVariableSave): Promise<SyntheticVariable>;
|
|
335
|
+
/**
|
|
336
|
+
* Saves a credential; its variable references must exist at the versions given.
|
|
337
|
+
*
|
|
338
|
+
* `POST synthetics/variable/api/v1/credentials`
|
|
339
|
+
*
|
|
340
|
+
* @throws ZodError when the body is malformed.
|
|
341
|
+
* @throws SimpleHTTPError 404 `variable not found` for a reference to a missing id or version;
|
|
342
|
+
* 409 for a stale version.
|
|
343
|
+
*/
|
|
344
|
+
saveCredential(credential: SyntheticCredentialSave): Promise<SyntheticCredential>;
|
|
345
|
+
/**
|
|
346
|
+
* Saves a proxy (`http://host[:port]`, its login in a credential).
|
|
347
|
+
*
|
|
348
|
+
* `POST synthetics/variable/api/v1/proxy`
|
|
349
|
+
*
|
|
350
|
+
* @throws ZodError when the body is malformed (a URI with another scheme or a user in it).
|
|
351
|
+
* @throws SimpleHTTPError 409 for a stale version.
|
|
352
|
+
*/
|
|
353
|
+
saveProxy(proxy: SyntheticProxySave): Promise<SyntheticProxy>;
|
|
354
|
+
/**
|
|
355
|
+
* Deletes a variable, credential or proxy. The store does not check whether anything still
|
|
356
|
+
* references it.
|
|
357
|
+
*
|
|
358
|
+
* `DELETE synthetics/variable/api/v1/{variable|credentials|proxy}/{id}`
|
|
359
|
+
*
|
|
360
|
+
* @remarks Answers 200 with no body; verify with a get (expect 404).
|
|
361
|
+
* @throws SimpleHTTPError 500 when the id does not exist (not 404).
|
|
362
|
+
*/
|
|
363
|
+
deleteAuthObject(store: SyntheticAuthStore, id: string): Promise<void>;
|
|
364
|
+
private getAuthObject;
|
|
365
|
+
private saveAuthObject;
|
|
366
|
+
/**
|
|
367
|
+
* Stores a script the way the UI stores a monitor's own one: hidden, in group "script", named
|
|
368
|
+
* `<type>-<uuid>.<xml|jmx>` unless a name is given. Reference it from a monitor as
|
|
369
|
+
* `script: {id, version}` ({@link create} body or {@link update}).
|
|
370
|
+
*
|
|
371
|
+
* `POST synthetics/script/api/v1/script` (answers 201)
|
|
372
|
+
*
|
|
373
|
+
* @returns The stored script at version 1, with the `${…}` placeholders the server found as `parameters`.
|
|
374
|
+
* @remarks Response-validated, not thrown on. The content is not checked by the store.
|
|
375
|
+
* @throws ZodError when the type is unknown or the content is empty.
|
|
376
|
+
*/
|
|
377
|
+
createScript(script: SyntheticScriptCreate): Promise<SyntheticScript>;
|
|
378
|
+
/**
|
|
379
|
+
* A script, at a version (a monitor pins one) or the latest.
|
|
380
|
+
*
|
|
381
|
+
* `GET synthetics/script/api/v1/script/{id}?version=`
|
|
382
|
+
*
|
|
383
|
+
* @remarks Response-validated, not thrown on.
|
|
384
|
+
* @throws SimpleHTTPError 404 when no script has that id (or it was deleted); logged at debug.
|
|
385
|
+
*/
|
|
386
|
+
getScript(id: string, version?: number): Promise<SyntheticScript>;
|
|
387
|
+
/**
|
|
388
|
+
* Replaces a script's content; the version goes up by one and older versions stay readable.
|
|
389
|
+
* Monitors keep running the version they pin until their reference is moved.
|
|
390
|
+
*
|
|
391
|
+
* `PATCH synthetics/script/api/v1/script/{id}` `{id, name, content, version}`
|
|
392
|
+
*
|
|
393
|
+
* @remarks Response-validated, not thrown on.
|
|
394
|
+
* @throws ZodError when the content is empty or the version is below 1.
|
|
395
|
+
*/
|
|
396
|
+
updateScript(id: string, update: SyntheticScriptUpdate): Promise<SyntheticScript>;
|
|
397
|
+
/**
|
|
398
|
+
* Deletes a script. The store does not check whether a monitor still references it, so check
|
|
399
|
+
* first; a monitor left pointing at a deleted script cannot run.
|
|
400
|
+
*
|
|
401
|
+
* `DELETE synthetics/script/api/v1/script/{id}`
|
|
402
|
+
*
|
|
403
|
+
* @remarks Answers 200 with no body, also when already deleted; verify with {@link getScript} (expect 404).
|
|
404
|
+
*/
|
|
405
|
+
deleteScript(id: string): Promise<void>;
|
|
406
|
+
/**
|
|
407
|
+
* Downloads a file a check stored (a check result's `assets[].path`), through the station that
|
|
408
|
+
* ran it: the HAR, the JMeter JTL, and for webdriver runs the log, the video (mp4) and the browser
|
|
409
|
+
* console (json).
|
|
410
|
+
*
|
|
411
|
+
* `GET synthetics/location-proxy/proxy/{stationId}/assets{path}`
|
|
412
|
+
*
|
|
413
|
+
* @remarks Bytes, not validated: the files are of many kinds.
|
|
414
|
+
*/
|
|
415
|
+
getCheckAsset(stationId: string, path: string): Promise<Uint8Array>;
|
|
416
|
+
}
|
|
417
|
+
//# sourceMappingURL=synthetic-monitor.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"synthetic-monitor.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/synthetic-monitor.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAK1E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAQzE,OAAO,KAAK,EACV,gBAAgB,EAChB,8BAA8B,EAC9B,4BAA4B,EAC5B,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,6BAA6B,CAAC;AAQrC,OAAO,KAAK,EACV,iCAAiC,EACjC,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB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AAC,QAAQ,EAAE,qBAAqB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAK/E;;;;;;;;OAQG;IACG,cAAc,CAAC,UAAU,EAAE,uBAAuB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAKvF;;;;;;;OAOG;IACG,SAAS,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,CAAC;IAKnE;;;;;;;;OAQG;IACG,gBAAgB,CAAC,KAAK,EAAE,kBAAkB,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAM9D,aAAa;YAkBb,cAAc;IAS5B;;;;;;;;;;OAUG;IACG,YAAY,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,eAAe,CAAC;IAgB3E;;;;;;;OAOG;IACG,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAavE;;;;;;;;OAQG;IACG,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,eAAe,CAAC;IAavF;;;;;;;OAOG;IACG,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI7C;;;;;;;;OAQG;IACG,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;CAM1E"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Logging } from '@dx-do/util';
|
|
2
|
+
import { DxSaasService } from './dx-saas.service';
|
|
3
|
+
import { UserGroup, UserGroupWrite } from '../model/security/user-groups';
|
|
4
|
+
/**
|
|
5
|
+
* User groups (`ess/usergroups/v1`, 2026-11). Semantics measured on THE_LABORATORY are on the model
|
|
6
|
+
* (`model/security/user-groups.ts`); the one to remember: roles and synthetics access name a group
|
|
7
|
+
* by its name, and nothing follows a rename or a delete.
|
|
8
|
+
*/
|
|
9
|
+
export declare class UserGroupService {
|
|
10
|
+
private dxSaaSService;
|
|
11
|
+
private log;
|
|
12
|
+
constructor(dxSaaSService: DxSaasService, log?: Logging.SimpleLog);
|
|
13
|
+
/**
|
|
14
|
+
* Every group, without members.
|
|
15
|
+
*
|
|
16
|
+
* @remarks Response-validated, not thrown.
|
|
17
|
+
*/
|
|
18
|
+
listGroups(): Promise<UserGroup[]>;
|
|
19
|
+
/**
|
|
20
|
+
* One group with its member ids and member details.
|
|
21
|
+
*
|
|
22
|
+
* @remarks Response-validated, not thrown.
|
|
23
|
+
*/
|
|
24
|
+
getGroup(groupId: number): Promise<UserGroup>;
|
|
25
|
+
/**
|
|
26
|
+
* Every group name a role or an access policy can legitimately reference: the user groups plus
|
|
27
|
+
* the legacy APM/ACA groups (`/apm/atc/api/private/aca/group`, whose ids are their names; built-in
|
|
28
|
+
* roles still list some of them). A reference to a name in neither grants nobody.
|
|
29
|
+
*/
|
|
30
|
+
knownGroupNames(): Promise<{
|
|
31
|
+
userGroups: string[];
|
|
32
|
+
legacyGroups: string[];
|
|
33
|
+
}>;
|
|
34
|
+
/** A group by exact name, with members; undefined when there is none. */
|
|
35
|
+
findGroup(groupName: string): Promise<UserGroup | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* Creates a group. The server answers 400 when the name is taken.
|
|
38
|
+
*
|
|
39
|
+
* @throws ZodError for an empty name or member id.
|
|
40
|
+
*/
|
|
41
|
+
createGroup(body: UserGroupWrite): Promise<UserGroup>;
|
|
42
|
+
/**
|
|
43
|
+
* Replaces a group's name, description and COMPLETE member list (a member left out is removed).
|
|
44
|
+
* A rename does not update the roles or access policies that name the group.
|
|
45
|
+
*
|
|
46
|
+
* @throws ZodError for an empty name or member id.
|
|
47
|
+
*/
|
|
48
|
+
updateGroup(groupId: number, body: UserGroupWrite): Promise<UserGroup>;
|
|
49
|
+
/** Deletes a group (204). Roles and access policies that name it keep the name. */
|
|
50
|
+
deleteGroup(groupId: number): Promise<void>;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=user-group.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-group.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/user-group.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EACL,SAAS,EAGT,cAAc,EAEf,MAAM,+BAA+B,CAAC;AAIvC;;;;GAIG;AACH,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,GAAG;gBADH,aAAa,EAAE,aAAa,EAC5B,GAAG,GAAE,OAAO,CAAC,SAAuC;IAG9D;;;;OAIG;IACG,UAAU,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;IAOxC;;;;OAIG;IACG,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAUnD;;;;OAIG;IACG,eAAe,IAAI,OAAO,CAAC;QAAE,UAAU,EAAE,MAAM,EAAE,CAAC;QAAC,YAAY,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAgBlF,yEAAyE;IACnE,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;IAKlE;;;;OAIG;IACG,WAAW,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC;IAQ3D;;;;;OAKG;IACG,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC;IAQ5E,mFAAmF;IAC7E,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGlD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dx-do/client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "Opinionated TS client library for DX O2",
|
|
5
5
|
"author": "Ki Alam",
|
|
6
6
|
"logo": {
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"datastore-driver": "bun bin/datastore-driver.ts",
|
|
38
38
|
"op-set-drift": "bun bin/op-set-drift.ts",
|
|
39
|
+
"vertex-definition-drift": "bun bin/vertex-definition-drift.ts",
|
|
39
40
|
"nass-store-merge-probe": "bun tools/nass-store-merge-probe.ts",
|
|
40
41
|
"log-ingest-probe": "bun tools/log-ingest-probe.ts"
|
|
41
42
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.gen.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/model/asm/client/client/client.gen.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAkB,MAAM,gBAAgB,CAAC;AAGrE,eAAO,MAAM,YAAY,GAAI,SAAQ,MAAW,KAAG,MAqJlD,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type { Auth } from '../core/auth.gen.js';
|
|
2
|
-
export type { QuerySerializerOptions } from '../core/bodySerializer.gen.js';
|
|
3
|
-
export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer, } from '../core/bodySerializer.gen.js';
|
|
4
|
-
export { buildClientParams } from '../core/params.gen.js';
|
|
5
|
-
export { serializeQueryKeyValue } from '../core/queryKeySerializer.gen.js';
|
|
6
|
-
export type { ServerSentEventsResult } from '../core/serverSentEvents.gen.js';
|
|
7
|
-
export type { ClientMeta } from '../core/types.gen.js';
|
|
8
|
-
export { createClient } from './client.gen.js';
|
|
9
|
-
export type { Client, ClientOptions, Config, CreateClientConfig, Options, RequestOptions, RequestResult, TDataShape, } from './types.gen.js';
|
|
10
|
-
export { createConfig } from './utils.gen.js';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/model/asm/client/client/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,YAAY,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,YAAY,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EACV,MAAM,EACN,aAAa,EACb,MAAM,EACN,kBAAkB,EAClB,OAAO,EACP,cAAc,EACd,aAAa,EACb,UAAU,GACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import type { AxiosError, AxiosInstance, AxiosRequestHeaders, AxiosResponse, AxiosStatic, CreateAxiosDefaults } from 'axios';
|
|
2
|
-
import type { Auth } from '../core/auth.gen.js';
|
|
3
|
-
import type { ServerSentEventsOptions, ServerSentEventsResult } from '../core/serverSentEvents.gen.js';
|
|
4
|
-
import type { Client as CoreClient, Config as CoreConfig } from '../core/types.gen.js';
|
|
5
|
-
export interface Config<T extends ClientOptions = ClientOptions> extends Omit<CreateAxiosDefaults, 'auth' | 'baseURL' | 'headers' | 'method'>, CoreConfig {
|
|
6
|
-
/**
|
|
7
|
-
* Axios implementation. You can use this option to provide either an
|
|
8
|
-
* `AxiosStatic` or an `AxiosInstance`.
|
|
9
|
-
*
|
|
10
|
-
* @default axios
|
|
11
|
-
*/
|
|
12
|
-
axios?: AxiosStatic | AxiosInstance;
|
|
13
|
-
/**
|
|
14
|
-
* Base URL for all requests made by this client.
|
|
15
|
-
*/
|
|
16
|
-
baseURL?: T['baseURL'];
|
|
17
|
-
/**
|
|
18
|
-
* An object containing any HTTP headers that you want to pre-populate your
|
|
19
|
-
* `Headers` object with.
|
|
20
|
-
*
|
|
21
|
-
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
22
|
-
*/
|
|
23
|
-
headers?: AxiosRequestHeaders | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
24
|
-
/**
|
|
25
|
-
* Throw an error instead of returning it in the response?
|
|
26
|
-
*
|
|
27
|
-
* @default false
|
|
28
|
-
*/
|
|
29
|
-
throwOnError?: T['throwOnError'];
|
|
30
|
-
}
|
|
31
|
-
export interface RequestOptions<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
32
|
-
throwOnError: ThrowOnError;
|
|
33
|
-
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
34
|
-
/**
|
|
35
|
-
* Any body that you want to add to your request.
|
|
36
|
-
*
|
|
37
|
-
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
38
|
-
*/
|
|
39
|
-
body?: unknown;
|
|
40
|
-
path?: Record<string, unknown>;
|
|
41
|
-
query?: Record<string, unknown>;
|
|
42
|
-
/**
|
|
43
|
-
* Security mechanism(s) to use for the request.
|
|
44
|
-
*/
|
|
45
|
-
security?: ReadonlyArray<Auth>;
|
|
46
|
-
url: Url;
|
|
47
|
-
}
|
|
48
|
-
export interface ClientOptions {
|
|
49
|
-
baseURL?: string;
|
|
50
|
-
throwOnError?: boolean;
|
|
51
|
-
}
|
|
52
|
-
export type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean> = ThrowOnError extends true ? Promise<AxiosResponse<TData extends Record<string, unknown> ? TData[keyof TData] : TData>> : Promise<(AxiosResponse<TData extends Record<string, unknown> ? TData[keyof TData] : TData> & {
|
|
53
|
-
error: undefined;
|
|
54
|
-
}) | (AxiosError<TError extends Record<string, unknown> ? TError[keyof TError] : TError> & {
|
|
55
|
-
data: undefined;
|
|
56
|
-
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
57
|
-
})>;
|
|
58
|
-
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions<TData, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError>;
|
|
59
|
-
type SseFn = <TData = unknown, _TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions<never, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData>>;
|
|
60
|
-
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions<TData, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError>;
|
|
61
|
-
type BuildUrlFn = <TData extends {
|
|
62
|
-
path?: Record<string, unknown>;
|
|
63
|
-
query?: Record<string, unknown>;
|
|
64
|
-
url: string;
|
|
65
|
-
}>(options: TData & Pick<RequestOptions<unknown, boolean>, 'axios' | 'baseURL' | 'paramsSerializer' | 'querySerializer'>) => string;
|
|
66
|
-
export type Client = CoreClient<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
67
|
-
instance: AxiosInstance;
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* The `createClientConfig()` function will be called on client initialization
|
|
71
|
-
* and the returned object will become the client's initial configuration.
|
|
72
|
-
*
|
|
73
|
-
* You may want to initialize your client this way instead of calling
|
|
74
|
-
* `setConfig()`. This is useful for example if you're using Next.js
|
|
75
|
-
* to ensure your client always has the correct values.
|
|
76
|
-
*/
|
|
77
|
-
export type CreateClientConfig<T extends ClientOptions = ClientOptions> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
|
|
78
|
-
export interface TDataShape {
|
|
79
|
-
body?: unknown;
|
|
80
|
-
headers?: unknown;
|
|
81
|
-
path?: unknown;
|
|
82
|
-
query?: unknown;
|
|
83
|
-
url: string;
|
|
84
|
-
}
|
|
85
|
-
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
86
|
-
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = OmitKeys<RequestOptions<TResponse, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
87
|
-
export {};
|
|
88
|
-
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/model/asm/client/client/types.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,mBAAmB,EACpB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EACV,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvF,MAAM,WAAW,MAAM,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,CAC7D,SAAQ,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC,EAAE,UAAU;IACxF;;;;;OAKG;IACH,KAAK,CAAC,EAAE,WAAW,GAAG,aAAa,CAAC;IACpC;;OAEG;IACH,OAAO,CA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CAAC;AAEnD,MAAM,MAAM,OAAO,CACjB,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,YAAY,SAAS,OAAO,GAAG,OAAO,EACtC,SAAS,GAAG,OAAO,IACjB,QAAQ,CAAC,cAAc,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,GACtF,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { QuerySerializerOptions } from '../core/bodySerializer.gen.js';
|
|
2
|
-
import type { Client, ClientOptions, Config, RequestOptions } from './types.gen.js';
|
|
3
|
-
export declare const createQuerySerializer: <T = unknown>({ parameters, ...args }?: QuerySerializerOptions) => ((queryParams: T) => string);
|
|
4
|
-
export declare function setAuthParams(options: Pick<RequestOptions, 'auth' | 'query' | 'security'> & {
|
|
5
|
-
headers: Record<any, unknown>;
|
|
6
|
-
}): Promise<void>;
|
|
7
|
-
export declare const buildUrl: Client['buildUrl'];
|
|
8
|
-
export declare const mergeConfigs: (a: Config, b: Config) => Config;
|
|
9
|
-
/**
|
|
10
|
-
* Special Axios headers keywords allowing to set headers by request method.
|
|
11
|
-
*/
|
|
12
|
-
export declare const axiosHeadersKeywords: readonly ["common", "delete", "get", "head", "patch", "post", "put"];
|
|
13
|
-
export declare const mergeHeaders: (...headers: Array<Required<Config>["headers"] | undefined>) => Record<any, unknown>;
|
|
14
|
-
export declare const createConfig: <T extends ClientOptions = ClientOptions>(override?: Config<Omit<ClientOptions, keyof T> & T>) => Config<Omit<ClientOptions, keyof T> & T>;
|
|
15
|
-
//# sourceMappingURL=utils.gen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.gen.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/model/asm/client/client/utils.g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