@serve.zone/interfaces 32.71.0 → 32.73.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 +20 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/data/backuprestorerefusal.d.ts +17 -2
- package/dist_ts/data/backuprestorerefusal.js +20 -1
- package/dist_ts/data/cloudlyconfig.d.ts +6 -0
- package/dist_ts/data/clusternode.d.ts +7 -0
- package/dist_ts/data/clusternode.js +1 -1
- package/dist_ts/data/index.d.ts +1 -0
- package/dist_ts/data/index.js +2 -1
- package/dist_ts/data/location.d.ts +137 -0
- package/dist_ts/data/location.js +160 -0
- package/dist_ts/requests/baremetal.d.ts +12 -0
- package/dist_ts/requests/cluster.d.ts +20 -0
- package/dist_ts/requests/cluster.js +1 -1
- package/dist_ts/requests/index.d.ts +2 -1
- package/dist_ts/requests/index.js +3 -2
- package/dist_ts/requests/location.d.ts +88 -0
- package/dist_ts/requests/location.js +2 -0
- package/dist_ts/requests/node.d.ts +16 -0
- package/package.json +2 -2
- package/readme.md +50 -0
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/data/backuprestorerefusal.ts +31 -1
- package/ts/data/cloudlyconfig.ts +6 -0
- package/ts/data/clusternode.ts +9 -1
- package/ts/data/index.ts +1 -0
- package/ts/data/location.ts +259 -0
- package/ts/requests/baremetal.ts +12 -0
- package/ts/requests/cluster.ts +20 -0
- package/ts/requests/index.ts +2 -0
- package/ts/requests/location.ts +119 -0
- package/ts/requests/node.ts +16 -0
package/ts/requests/node.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { IBareMetal } from '../data/baremetal.js';
|
|
|
3
3
|
import type { ICluster } from '../data/cluster.js';
|
|
4
4
|
import type { IClusterNode, INodeAction, INodeMetricsSample, TNodeActionName } from '../data/clusternode.js';
|
|
5
5
|
import type { IDeployment } from '../data/deployment.js';
|
|
6
|
+
import type { ILocationScope } from '../data/location.js';
|
|
6
7
|
import type { INodeActionConfirmation, INodeActionPreview } from '../data/nodeaction.js';
|
|
7
8
|
import type { ISparkFleetTarget, ISparkFleetTargetChange, ISparkNodeTargetHold } from '../data/sparkfleettarget.js';
|
|
8
9
|
import type { IIdentity } from '../data/user.js';
|
|
@@ -159,6 +160,14 @@ export interface IReq_Any_Cloudly_CreateNodeJumpCommand extends plugins.typedreq
|
|
|
159
160
|
* its name is proposed from that (`data.proposeClusterNodeName`).
|
|
160
161
|
*/
|
|
161
162
|
nodeName?: string;
|
|
163
|
+
/**
|
|
164
|
+
* The location the new node stands in. Named, the location must exist (`location-not-found`)
|
|
165
|
+
* and, when the cluster has nodes, be the cluster's (`location-mismatch`); the jump code keeps
|
|
166
|
+
* it and the claim checks it again against the cluster as it stands then. Absent, the claim
|
|
167
|
+
* places the node in the cluster's location, or for a cluster without nodes in the location
|
|
168
|
+
* that receives unnamed creates (the initial location).
|
|
169
|
+
*/
|
|
170
|
+
locationId?: string;
|
|
162
171
|
};
|
|
163
172
|
response: {
|
|
164
173
|
jumpCode: string;
|
|
@@ -177,9 +186,16 @@ export interface IReq_Any_Cloudly_GetNodes extends plugins.typedrequestInterface
|
|
|
177
186
|
request: {
|
|
178
187
|
identity: IIdentity;
|
|
179
188
|
clusterId?: string;
|
|
189
|
+
/** Only the nodes whose `data.locationId` is this location. */
|
|
190
|
+
locationScope?: ILocationScope;
|
|
180
191
|
};
|
|
181
192
|
response: {
|
|
182
193
|
nodes: IClusterNode[];
|
|
194
|
+
/**
|
|
195
|
+
* The scope Cloudly applied, echoing `locationScope`. Absent from a Cloudly that ignored the
|
|
196
|
+
* scope (one without locations): its list is unscoped and must not be shown as scoped.
|
|
197
|
+
*/
|
|
198
|
+
appliedLocationScope?: ILocationScope;
|
|
183
199
|
};
|
|
184
200
|
}
|
|
185
201
|
|