@antcde/connect-ts 0.4.38-rc.1 → 0.4.39-rc.1
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/build/AntConnect.d.ts +2 -1
- package/build/AntConnect.d.ts.map +1 -1
- package/build/AntConnect.js +2 -15
- package/build/comms/signalTypes.d.ts +5 -0
- package/build/comms/signalTypes.d.ts.map +1 -1
- package/build/index.d.ts +5 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/service-types.d.ts +2 -1
- package/build/service-types.d.ts.map +1 -1
- package/build/services/AppService/factory/resourceAccess.d.ts +1 -1
- package/build/services/AppService/factory/resourceAccess.d.ts.map +1 -1
- package/build/services/AppService/factory/resourceAccess.js +2 -0
- package/build/services/AppService/types/resourceEntitlements.d.ts +6 -0
- package/build/services/AppService/types/resourceEntitlements.d.ts.map +1 -1
- package/build/services/BroadcastingService.d.ts +11 -0
- package/build/services/BroadcastingService.d.ts.map +1 -0
- package/build/services/BroadcastingService.js +7 -0
- package/build/services/LicenseCompanyPeople.types.d.ts +34 -0
- package/build/services/LicenseCompanyPeople.types.d.ts.map +1 -0
- package/build/services/LicenseCompanyPeople.types.js +3 -0
- package/build/services/LicenseMemberErrors.types.d.ts +42 -0
- package/build/services/LicenseMemberErrors.types.d.ts.map +1 -0
- package/build/services/LicenseMemberErrors.types.js +27 -0
- package/build/services/LicenseService.d.ts +40 -15
- package/build/services/LicenseService.d.ts.map +1 -1
- package/build/services/LicenseService.js +9 -1
- package/build/services/LicenseService.types.d.ts +139 -0
- package/build/services/LicenseService.types.d.ts.map +1 -0
- package/build/services/LicenseService.types.js +15 -0
- package/build/services/Notifications/NotificationService.d.ts +7 -2
- package/build/services/Notifications/NotificationService.d.ts.map +1 -1
- package/build/services/Project/ProjectUserService.d.ts +0 -5
- package/build/services/Project/ProjectUserService.d.ts.map +1 -1
- package/build/services/Project/ProjectUserService.js +0 -1
- package/build/services/RBAC/RoleService.d.ts +0 -1
- package/build/services/RBAC/RoleService.d.ts.map +1 -1
- package/build/services/RBAC/RoleService.js +0 -1
- package/build/services/ResellerService.d.ts +17 -3
- package/build/services/ResellerService.d.ts.map +1 -1
- package/build/services/ResellerService.js +8 -0
- package/build/services/ResellerService.types.d.ts +112 -0
- package/build/services/ResellerService.types.d.ts.map +1 -0
- package/build/services/ResellerService.types.js +22 -0
- package/build/services/ScriptsService.d.ts +3 -9
- package/build/services/ScriptsService.d.ts.map +1 -1
- package/build/services/Trigger/TriggerDatasetResponses.types.d.ts +12 -6
- package/build/services/Trigger/TriggerDatasetResponses.types.d.ts.map +1 -1
- package/build/services/Trigger/TriggerDatasetResponses.types.js +3 -0
- package/build/services/Trigger/TriggerHistoryService.d.ts +19 -19
- package/build/services/Trigger/TriggerHistoryService.d.ts.map +1 -1
- package/build/services/Trigger/TriggerLastRun.types.d.ts +10 -14
- package/build/services/Trigger/TriggerLastRun.types.d.ts.map +1 -1
- package/build/services/Trigger/TriggerRefusalDetail.types.d.ts +12 -6
- package/build/services/Trigger/TriggerRefusalDetail.types.d.ts.map +1 -1
- package/build/services/UserService.d.ts +7 -9
- package/build/services/UserService.d.ts.map +1 -1
- package/build/types.d.ts +1 -126
- package/build/types.d.ts.map +1 -1
- package/build/types.js +2 -19
- package/package.json +3 -3
|
@@ -4,12 +4,14 @@ import type { TriggerExecutionCaller } from './TriggerCaller.types';
|
|
|
4
4
|
import type { DatasetRefusalReason } from './TriggerDatasetResponses.types';
|
|
5
5
|
import type { TriggerResourceReason } from './TriggerDispatch.types';
|
|
6
6
|
import type { ExecutionHistoryResponse } from './TriggerFailedRuns.types';
|
|
7
|
-
import type { DatasetRefusalDetail } from './TriggerRefusalDetail.types';
|
|
7
|
+
import type { DatasetRefusalDetail, ScriptFailureDetail } from './TriggerRefusalDetail.types';
|
|
8
8
|
import type { TriggerStats, TriggerStatsParams } from './TriggerStats.types';
|
|
9
9
|
import type { ExecutionTimelineItem } from './TriggerTimeline.types';
|
|
10
10
|
import type { AntHttpClient } from "../../AntHttpClient";
|
|
11
|
-
export type ExecutionStatus = 'success' | 'error' | 'pending' | 'authorization_required';
|
|
12
|
-
export type OverallExecutionStatus = 'success' | 'partial_success' | 'error';
|
|
11
|
+
export type ExecutionStatus = 'success' | 'error' | 'pending' | 'authorization_required' | 'skipped';
|
|
12
|
+
export type OverallExecutionStatus = 'success' | 'partial_success' | 'error' | 'skipped';
|
|
13
|
+
/** A skipped script step (`script_calls_exhausted`) still counts as a run (AAD-1151). */
|
|
14
|
+
export type TriggerSkipReason = 'license_suspended' | 'trigger_runs_exhausted' | 'script_calls_exhausted';
|
|
13
15
|
export type ExecutionSourceType = 'api_request' | 'test_dispatch' | 'task_triggered' | 'system_event' | 'related_trigger' | 'unknown';
|
|
14
16
|
export interface RelatedTriggersSummary {
|
|
15
17
|
total_related: number;
|
|
@@ -70,19 +72,17 @@ export interface TriggerExecutionHistory {
|
|
|
70
72
|
*/
|
|
71
73
|
trigger_version_label: string | null;
|
|
72
74
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
* "your dataset is too big", and the HTTP status alone cannot carry that
|
|
83
|
-
* difference. Branch on this field, never on the status.
|
|
75
|
+
* Why the run was REFUSED or skipped. Null for a success AND for an ordinary
|
|
76
|
+
* exception (an uncaught error has no code). On a `skipped` run it is a
|
|
77
|
+
* `TriggerSkipReason`: suspended License, or the month's runs or script calls used.
|
|
78
|
+
* Otherwise `response.dataset_refused` / `response.resource_access_denied` tell
|
|
79
|
+
* you which refusal vocabulary applies.
|
|
80
|
+
* ⚠️ `snapshot_limits_misconfigured` is an OPERATOR fault (the deployment's
|
|
81
|
+
* ceilings are unusable), not "your dataset is too big"; the HTTP status cannot
|
|
82
|
+
* carry that difference, so branch on this field, never on the status.
|
|
83
|
+
* comment-budget: allow (public SDK field docs)
|
|
84
84
|
*/
|
|
85
|
-
refusal_reason: DatasetRefusalReason | ResourceAccessReason | TriggerResourceReason | null;
|
|
85
|
+
refusal_reason: DatasetRefusalReason | ResourceAccessReason | TriggerResourceReason | TriggerSkipReason | null;
|
|
86
86
|
/**
|
|
87
87
|
* The figures behind a CEILING refusal, or null.
|
|
88
88
|
*
|
|
@@ -97,7 +97,7 @@ export interface TriggerExecutionHistory {
|
|
|
97
97
|
* ⚠️ `actual` inside it is optional — see {@link DatasetRefusalDetail.actual}
|
|
98
98
|
* before defaulting it to anything.
|
|
99
99
|
*/
|
|
100
|
-
refusal_detail: DatasetRefusalDetail | null;
|
|
100
|
+
refusal_detail: DatasetRefusalDetail | ScriptFailureDetail | null;
|
|
101
101
|
/**
|
|
102
102
|
* The STORED copy of the response was shrunk to save database space.
|
|
103
103
|
*
|
|
@@ -142,8 +142,8 @@ export interface TriggerExecutionHistoryDetail {
|
|
|
142
142
|
/** Same meanings as on the index item — see {@link TriggerExecutionHistory}. */
|
|
143
143
|
trigger_version_id: string | null;
|
|
144
144
|
trigger_version_label: string | null;
|
|
145
|
-
refusal_reason: DatasetRefusalReason | ResourceAccessReason | TriggerResourceReason | null;
|
|
146
|
-
refusal_detail: DatasetRefusalDetail | null;
|
|
145
|
+
refusal_reason: DatasetRefusalReason | ResourceAccessReason | TriggerResourceReason | TriggerSkipReason | null;
|
|
146
|
+
refusal_detail: DatasetRefusalDetail | ScriptFailureDetail | null;
|
|
147
147
|
stored_response_truncated: boolean;
|
|
148
148
|
dataset_truncated: boolean | null;
|
|
149
149
|
}
|
|
@@ -153,7 +153,7 @@ export interface TriggerExecutionHistoryDetail {
|
|
|
153
153
|
export interface ExecutionHistoryFilters {
|
|
154
154
|
search?: string;
|
|
155
155
|
trigger_id?: string;
|
|
156
|
-
/** The run's OVERALL status — the backend accepts `success`, `error`, `partial_success`. */
|
|
156
|
+
/** The run's OVERALL status — the backend accepts `success`, `error`, `partial_success`, `skipped`. */
|
|
157
157
|
status?: OverallExecutionStatus;
|
|
158
158
|
from_date?: string;
|
|
159
159
|
to_date?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TriggerHistoryService.d.ts","sourceRoot":"","sources":["../../../src/services/Trigger/TriggerHistoryService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AACpF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"TriggerHistoryService.d.ts","sourceRoot":"","sources":["../../../src/services/Trigger/TriggerHistoryService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AACpF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAC7F,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC5E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MA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AAE,CAAC,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,uBAAuB,EAAE,YAAY,CAAC,KAAK,OAAO,CAAC,wBAAwB,CAAC,CAAA;IAE7L;;OAEG;IACH,wBAAwB,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAAA;IAE9I;;OAEG;IACH,4BAA4B,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAAA;IAErK,sFAAsF;IACtF,iBAAiB,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,KAAK,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAA;CAC1J;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,aAAa,GAAG,qBAAqB,CAoB5F"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ResourceAccessReason } from '../AppService/types/resourceEntitlements';
|
|
2
2
|
import type { DatasetRefusalReason } from './TriggerDatasetResponses.types';
|
|
3
3
|
import type { TriggerResourceReason } from './TriggerDispatch.types';
|
|
4
|
-
import type { ExecutionStatus } from './TriggerHistoryService';
|
|
4
|
+
import type { ExecutionStatus, TriggerSkipReason } from './TriggerHistoryService';
|
|
5
5
|
/**
|
|
6
6
|
* The most recent execution of a trigger, for the index's run-status column
|
|
7
7
|
* (AAD-961 §1).
|
|
@@ -53,20 +53,16 @@ export interface TriggerLastRun {
|
|
|
53
53
|
/** Wall-clock duration. Null when the run never recorded one. */
|
|
54
54
|
duration_ms: number | null;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* Values come from the same vocabulary as
|
|
65
|
-
* {@link TriggerExecutionHistory.refusal_reason}, covering both dataset refusals
|
|
66
|
-
* and entitlement refusals. The figures behind a ceiling refusal are not here —
|
|
67
|
-
* they are on the run itself, as `refusal_detail`.
|
|
56
|
+
* Why the run was REFUSED or skipped; same vocabulary as
|
|
57
|
+
* {@link TriggerExecutionHistory.refusal_reason}. A `TriggerSkipReason` on a
|
|
58
|
+
* `skipped` run. Ceiling-refusal
|
|
59
|
+
* figures are on the run itself, as `refusal_detail`.
|
|
60
|
+
* ⚠️ **`reason: null` does NOT mean success.** An ordinary exception carries no
|
|
61
|
+
* code, so `status: 'error'` with `reason: null` is a common uncaught failure.
|
|
62
|
+
* Branch on `status` first; `reason` is extra detail, never the failure test.
|
|
63
|
+
* comment-budget: allow (public SDK field docs)
|
|
68
64
|
*/
|
|
69
|
-
reason: DatasetRefusalReason | ResourceAccessReason | TriggerResourceReason | null;
|
|
65
|
+
reason: DatasetRefusalReason | ResourceAccessReason | TriggerResourceReason | TriggerSkipReason | null;
|
|
70
66
|
/**
|
|
71
67
|
* The publisher's label for the version that ran, e.g. `"1.0.0"`.
|
|
72
68
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TriggerLastRun.types.d.ts","sourceRoot":"","sources":["../../../src/services/Trigger/TriggerLastRun.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AACpF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"TriggerLastRun.types.d.ts","sourceRoot":"","sources":["../../../src/services/Trigger/TriggerLastRun.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AACpF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAEjF;;;;;;;;;;GAUG;AAEH;;;;;;;;;;GAUG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;;;;;;;;;;;;;OAcG;IACH,MAAM,EAAE,eAAe,CAAA;IAEvB,kEAAkE;IAClE,EAAE,EAAE,MAAM,CAAA;IAEV,iEAAiE;IACjE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAE1B;;;;;;;;;OASG;IACH,MAAM,EAAE,oBAAoB,GAAG,oBAAoB,GAAG,qBAAqB,GAAG,iBAAiB,GAAG,IAAI,CAAA;IAEtG;;;;;;;OAOG;IACH,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAA;CACrC"}
|
|
@@ -9,12 +9,7 @@
|
|
|
9
9
|
* It exists so a run view can offer "what would fix it" instead of only echoing a
|
|
10
10
|
* sentence. Parsing the prose for the figures works until somebody rewords it.
|
|
11
11
|
*/
|
|
12
|
-
/**
|
|
13
|
-
* A ceiling and, when it was actually measured, the value that exceeded it.
|
|
14
|
-
*
|
|
15
|
-
* `null` on the history row for every refusal that is not a ceiling — see
|
|
16
|
-
* {@link TriggerExecutionHistory.refusal_detail}.
|
|
17
|
-
*/
|
|
12
|
+
/** A ceiling and, when it was actually measured, the value that exceeded it. */
|
|
18
13
|
export interface DatasetRefusalDetail {
|
|
19
14
|
/** The ceiling that applied, in `unit`. */
|
|
20
15
|
limit: number;
|
|
@@ -60,4 +55,15 @@ export interface DatasetRefusalDetail {
|
|
|
60
55
|
*/
|
|
61
56
|
unit: 'bytes';
|
|
62
57
|
}
|
|
58
|
+
/** How a script ended, as the script engine reported it. */
|
|
59
|
+
export type ScriptFailureReason = 'exit' | 'oom' | 'stopped' | 'no_result';
|
|
60
|
+
/**
|
|
61
|
+
* Why a `script_failed` run failed; every field may be absent. `message` (≤ 500 bytes,
|
|
62
|
+
* already redacted) is the publisher's script talking: render it as plain text only.
|
|
63
|
+
*/
|
|
64
|
+
export interface ScriptFailureDetail {
|
|
65
|
+
exit_code?: number;
|
|
66
|
+
reason?: ScriptFailureReason;
|
|
67
|
+
message?: string;
|
|
68
|
+
}
|
|
63
69
|
//# sourceMappingURL=TriggerRefusalDetail.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TriggerRefusalDetail.types.d.ts","sourceRoot":"","sources":["../../../src/services/Trigger/TriggerRefusalDetail.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH
|
|
1
|
+
{"version":3,"file":"TriggerRefusalDetail.types.d.ts","sourceRoot":"","sources":["../../../src/services/Trigger/TriggerRefusalDetail.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,gFAAgF;AAChF,MAAM,WAAW,oBAAoB;IACnC,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAA;IAEb;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;;;;;;;;;;OAaG;IACH,IAAI,EAAE,OAAO,CAAA;CACd;AAED,4DAA4D;AAC5D,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,WAAW,CAAA;AAE1E;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,mBAAmB,CAAA;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { License } from './LicenseService';
|
|
2
|
+
import type { LicenseMemberType, LicenseSeatKind } from './LicenseService.types';
|
|
2
3
|
import type { Role } from './RBAC/RoleService';
|
|
3
4
|
import type { UserPreferences } from './userPreferences';
|
|
4
5
|
import type { MessageResponse } from "../AntConnect";
|
|
5
6
|
import type { AntHttpClient } from "../AntHttpClient";
|
|
6
|
-
import type { TokenResponse } from "../types";
|
|
7
7
|
export type AuthLicense = License & {
|
|
8
8
|
is_admin: boolean;
|
|
9
9
|
mfa_required: boolean;
|
|
@@ -21,6 +21,10 @@ export interface UserShort {
|
|
|
21
21
|
is_device_account?: boolean;
|
|
22
22
|
/** Fields the license users list (`LicenseAdminUserShortResource`) adds. */
|
|
23
23
|
initialised?: boolean;
|
|
24
|
+
/** Guests and seat kinds, present while license plans are on (AAD-1149). */
|
|
25
|
+
member_type?: LicenseMemberType;
|
|
26
|
+
seat_kind?: LicenseSeatKind;
|
|
27
|
+
is_sponsored_seat?: boolean;
|
|
24
28
|
rbac_roles?: Role[];
|
|
25
29
|
is_admin?: boolean;
|
|
26
30
|
last_tracked_login?: string | null;
|
|
@@ -85,22 +89,16 @@ export interface RegistrationUser {
|
|
|
85
89
|
lastname: string;
|
|
86
90
|
email: string;
|
|
87
91
|
password: string;
|
|
88
|
-
type
|
|
92
|
+
type?: 'enterprise';
|
|
89
93
|
resellers: string[];
|
|
90
94
|
}
|
|
91
|
-
interface CommunityRegistrationResponse {
|
|
92
|
-
slug: 'community-registration-successful';
|
|
93
|
-
message: string;
|
|
94
|
-
user: User;
|
|
95
|
-
access_token: TokenResponse;
|
|
96
|
-
}
|
|
97
95
|
interface EnterpriseRegistrationResponse {
|
|
98
96
|
slug: 'enterprise-registration-successful';
|
|
99
97
|
message: string;
|
|
100
98
|
user: User;
|
|
101
99
|
access_token: undefined;
|
|
102
100
|
}
|
|
103
|
-
export type RegistrationResponse =
|
|
101
|
+
export type RegistrationResponse = EnterpriseRegistrationResponse;
|
|
104
102
|
export interface UserService {
|
|
105
103
|
getAuthenticatedUser: () => Promise<User>;
|
|
106
104
|
getUserImage: (userId: string) => Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserService.d.ts","sourceRoot":"","sources":["../../src/services/UserService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"UserService.d.ts","sourceRoot":"","sources":["../../src/services/UserService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAChF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAoB;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAuB;AAEpD,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG;IAClC,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAA;IAC1C,eAAe,EAAE,MAAM,CAAA;IACvB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,CAAA;IACzC,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IAC9C,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;IAC5D,UAAU,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAClD,cAAc,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,KAAK,OAAO,CAAC,eAAe,CAAC,CAAA;IACrE,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,CAAC,CAAA;IACjE,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;IACpE,gBAAgB,EAAE,CAAC,IAAI,EAAE,uBAAuB,KAAK,OAAO,CAAC,wBAAwB,CAAC,CAAA;IACtF,eAAe,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAA;IACnF,iBAAiB,EAAE,MAAM,OAAO,CAAC,yBAAyB,CAAC,CAAA;IAC3D,eAAe,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;IACpE,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,OAAO,CAAC,oBAAoB,CAAC,CAAA;CACpE;AAED,wBAAgB,cAAc,CAAC,UAAU,EAAE,aAAa,GAAG,WAAW,CAerE;AAED,eAAe,WAAW,CAAA"}
|
package/build/types.d.ts
CHANGED
|
@@ -71,132 +71,7 @@ export interface PaginatedResponse<T> {
|
|
|
71
71
|
active: boolean;
|
|
72
72
|
}>;
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
* License types supported by the system.
|
|
76
|
-
* Must match the 'type' column values in the licenses table.
|
|
77
|
-
*/
|
|
78
|
-
export type LicenseType = 'community' | 'enterprise';
|
|
79
|
-
/**
|
|
80
|
-
* Details about a license limit that has been exceeded.
|
|
81
|
-
*/
|
|
82
|
-
export interface LicenseLimitDetails {
|
|
83
|
-
/** Resource type that hit the limit (e.g., 'project', 'table') */
|
|
84
|
-
resource: string;
|
|
85
|
-
/** Current license type */
|
|
86
|
-
license_type: LicenseType;
|
|
87
|
-
/** Name of the license that hit the limit */
|
|
88
|
-
license_name: string;
|
|
89
|
-
/** Maximum allowed for this license type */
|
|
90
|
-
limit: number;
|
|
91
|
-
/** Current usage count */
|
|
92
|
-
usage: number;
|
|
93
|
-
/** Whether upgrading the license would resolve this limit */
|
|
94
|
-
upgrade_required: boolean;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Error response returned when a license limit is exceeded.
|
|
98
|
-
*
|
|
99
|
-
* HTTP Status: 403 Forbidden
|
|
100
|
-
*
|
|
101
|
-
* This error is returned when attempting to create a resource that would
|
|
102
|
-
* exceed the license's allowed limit (e.g., creating a 4th project on a
|
|
103
|
-
* community license that allows only 3 projects).
|
|
104
|
-
*
|
|
105
|
-
* @example
|
|
106
|
-
* ```typescript
|
|
107
|
-
* try {
|
|
108
|
-
* await projectService.createProject(data)
|
|
109
|
-
* } catch (error) {
|
|
110
|
-
* if (isLicenseLimitError(error.response?.data)) {
|
|
111
|
-
* const { limit, usage, license_type } = error.response.data.details
|
|
112
|
-
* showUpgradeDialog({ limit, usage, licenseType: license_type })
|
|
113
|
-
* }
|
|
114
|
-
* }
|
|
115
|
-
* ```
|
|
116
|
-
*/
|
|
117
|
-
export interface LicenseLimitExceededError {
|
|
118
|
-
/** Error code identifying this as a license limit error */
|
|
119
|
-
error: 'LICENSE_LIMIT_EXCEEDED';
|
|
120
|
-
/** Human-readable error message */
|
|
121
|
-
message: string;
|
|
122
|
-
/** Detailed information about the limit */
|
|
123
|
-
details: LicenseLimitDetails;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Type guard to check if an error response is a license limit exceeded error.
|
|
127
|
-
*
|
|
128
|
-
* @param error - The error response data to check
|
|
129
|
-
* @returns True if the error is a LicenseLimitExceededError
|
|
130
|
-
*
|
|
131
|
-
* @example
|
|
132
|
-
* ```typescript
|
|
133
|
-
* if (isLicenseLimitError(error.response?.data)) {
|
|
134
|
-
* // Handle license limit exceeded
|
|
135
|
-
* }
|
|
136
|
-
* ```
|
|
137
|
-
*/
|
|
138
|
-
export declare function isLicenseLimitError(error: unknown): error is LicenseLimitExceededError;
|
|
139
|
-
/**
|
|
140
|
-
* Resource types that can have limits.
|
|
141
|
-
*/
|
|
142
|
-
export type LimitResourceType = 'records' | 'total_records' | 'tables' | 'projects' | 'users' | 'rbac_roles' | 'dms_storage_mb' | 'sbs_records' | 'triggers';
|
|
143
|
-
/**
|
|
144
|
-
* Scope at which a limit applies.
|
|
145
|
-
*/
|
|
146
|
-
export type LimitScope = 'table' | 'project' | 'license';
|
|
147
|
-
/**
|
|
148
|
-
* Current state of a resource limit.
|
|
149
|
-
*
|
|
150
|
-
* Units depend on the resource type:
|
|
151
|
-
* - Most resources: count (number of items)
|
|
152
|
-
* - `dms_storage_mb`: megabytes (MB)
|
|
153
|
-
*/
|
|
154
|
-
export interface ResourceLimitInfo {
|
|
155
|
-
/** Maximum allowed (null = unlimited) */
|
|
156
|
-
limit: number | null;
|
|
157
|
-
/** Current usage (count or MB depending on resource type) */
|
|
158
|
-
usage: number;
|
|
159
|
-
/** Remaining capacity (null = unlimited) */
|
|
160
|
-
remaining: number | null;
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* WebSocket event for real-time resource limit changes.
|
|
164
|
-
*
|
|
165
|
-
* Notifies the frontend when resource limits change (e.g., record created/deleted).
|
|
166
|
-
* Enables real-time UI updates without page refreshes.
|
|
167
|
-
*
|
|
168
|
-
* Channels:
|
|
169
|
-
* - App.License.{licenseId}.Limits
|
|
170
|
-
* - App.Project.{projectId}.Limits
|
|
171
|
-
* - App.Table.{tableId}.Limits
|
|
172
|
-
*
|
|
173
|
-
* Event: limit.change
|
|
174
|
-
*
|
|
175
|
-
* @example
|
|
176
|
-
* ```typescript
|
|
177
|
-
* // Listen for limit changes
|
|
178
|
-
* signal.receive((s) => {
|
|
179
|
-
* if (s.limitChange) {
|
|
180
|
-
* const { resource_type, resource_id, limits } = s.limitChange
|
|
181
|
-
* if (resource_type === 'records' && resource_id === currentTableId) {
|
|
182
|
-
* updateTableLimits('records', limits)
|
|
183
|
-
* }
|
|
184
|
-
* }
|
|
185
|
-
* })
|
|
186
|
-
* ```
|
|
187
|
-
*/
|
|
188
|
-
export interface LimitChangeEvent {
|
|
189
|
-
/** Type of resource limit that changed */
|
|
190
|
-
resource_type: LimitResourceType;
|
|
191
|
-
/** ID of the resource whose limit changed (table_id, project_id, license_id) */
|
|
192
|
-
resource_id: string;
|
|
193
|
-
/** Level at which this limit applies */
|
|
194
|
-
scope: LimitScope;
|
|
195
|
-
/** ID of the scope container (table_id, project_id, or license_id) */
|
|
196
|
-
scope_id: string;
|
|
197
|
-
/** Updated limit values */
|
|
198
|
-
limits: ResourceLimitInfo;
|
|
199
|
-
}
|
|
74
|
+
export * from './services/LicenseService.types';
|
|
200
75
|
/**
|
|
201
76
|
* Status of a long-running job.
|
|
202
77
|
*/
|
package/build/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,QAAQ,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,IAAI,EAAE,CAAC,CAAA;CACR;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC;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;IACf,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6CAA6C;IAC7C,OAAO,CAAC,EAAE,QAAQ,CAAA;CACnB"}
|
package/build/types.js
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @param error - The error response data to check
|
|
5
|
-
* @returns True if the error is a LicenseLimitExceededError
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```typescript
|
|
9
|
-
* if (isLicenseLimitError(error.response?.data)) {
|
|
10
|
-
* // Handle license limit exceeded
|
|
11
|
-
* }
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
|
-
export function isLicenseLimitError(error) {
|
|
15
|
-
return (typeof error === 'object'
|
|
16
|
-
&& error !== null
|
|
17
|
-
&& 'error' in error
|
|
18
|
-
&& error.error === 'LICENSE_LIMIT_EXCEEDED');
|
|
19
|
-
}
|
|
1
|
+
// License plans, limits and the limit-exceeded error live with the license service.
|
|
2
|
+
export * from './services/LicenseService.types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antcde/connect-ts",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.39-rc.1",
|
|
4
4
|
"description": "Helper to connect to the ANT api",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"axios": "^1.20.0",
|
|
40
40
|
"comlink": "^4.4.2",
|
|
41
41
|
"post-robot": "10.0.46",
|
|
42
|
-
"qs": "^6.16.
|
|
42
|
+
"qs": "^6.16.1",
|
|
43
43
|
"rxjs": "^7.8.2",
|
|
44
44
|
"zod": "^4.6.7"
|
|
45
45
|
},
|
|
@@ -52,6 +52,6 @@
|
|
|
52
52
|
"ts-patch": "^4.0.1",
|
|
53
53
|
"typescript": "~6.0.3",
|
|
54
54
|
"typescript-transform-paths": "^4.0.0",
|
|
55
|
-
"vitest": "^5.0.
|
|
55
|
+
"vitest": "^5.0.5"
|
|
56
56
|
}
|
|
57
57
|
}
|