@scaleway/sdk-searchdb 1.9.0 → 1.11.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.
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DeploymentStatus, ListDeploymentsRequestOrderBy, ListNodeTypesRequestOrderBy, ListUsersRequestOrderBy, ListVersionsRequestOrderBy, NodeTypeStockStatus, VolumeType } from './types.gen.js';
|
|
2
|
+
/** Lists all values of the enum {@link DeploymentStatus}. */
|
|
3
|
+
export declare const DEPLOYMENT_STATUSES: DeploymentStatus[];
|
|
4
|
+
/** Lists all values of the enum {@link ListDeploymentsRequestOrderBy}. */
|
|
5
|
+
export declare const LIST_DEPLOYMENTS_REQUEST_ORDER_BIES: ListDeploymentsRequestOrderBy[];
|
|
6
|
+
/** Lists all values of the enum {@link ListNodeTypesRequestOrderBy}. */
|
|
7
|
+
export declare const LIST_NODE_TYPES_REQUEST_ORDER_BIES: ListNodeTypesRequestOrderBy[];
|
|
8
|
+
/** Lists all values of the enum {@link ListUsersRequestOrderBy}. */
|
|
9
|
+
export declare const LIST_USERS_REQUEST_ORDER_BIES: ListUsersRequestOrderBy[];
|
|
10
|
+
/** Lists all values of the enum {@link ListVersionsRequestOrderBy}. */
|
|
11
|
+
export declare const LIST_VERSIONS_REQUEST_ORDER_BIES: ListVersionsRequestOrderBy[];
|
|
12
|
+
/** Lists all values of the enum {@link NodeTypeStockStatus}. */
|
|
13
|
+
export declare const NODE_TYPE_STOCK_STATUSES: NodeTypeStockStatus[];
|
|
14
|
+
/** Lists all values of the enum {@link VolumeType}. */
|
|
15
|
+
export declare const VOLUME_TYPES: VolumeType[];
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
//#region src/v1alpha1/constants.gen.ts
|
|
2
|
+
/** Lists all values of the enum {@link DeploymentStatus}. */
|
|
3
|
+
const DEPLOYMENT_STATUSES = [
|
|
4
|
+
"unknown_status",
|
|
5
|
+
"ready",
|
|
6
|
+
"creating",
|
|
7
|
+
"initializing",
|
|
8
|
+
"upgrading",
|
|
9
|
+
"deleting",
|
|
10
|
+
"error",
|
|
11
|
+
"locked",
|
|
12
|
+
"locking",
|
|
13
|
+
"unlocking"
|
|
14
|
+
];
|
|
15
|
+
/** Lists all values of the enum {@link ListDeploymentsRequestOrderBy}. */
|
|
16
|
+
const LIST_DEPLOYMENTS_REQUEST_ORDER_BIES = [
|
|
17
|
+
"created_at_asc",
|
|
18
|
+
"created_at_desc",
|
|
19
|
+
"name_asc",
|
|
20
|
+
"name_desc",
|
|
21
|
+
"updated_at_asc",
|
|
22
|
+
"updated_at_desc"
|
|
23
|
+
];
|
|
24
|
+
/** Lists all values of the enum {@link ListNodeTypesRequestOrderBy}. */
|
|
25
|
+
const LIST_NODE_TYPES_REQUEST_ORDER_BIES = [
|
|
26
|
+
"name_asc",
|
|
27
|
+
"name_desc",
|
|
28
|
+
"vcpus_asc",
|
|
29
|
+
"vcpus_desc",
|
|
30
|
+
"memory_asc",
|
|
31
|
+
"memory_desc"
|
|
32
|
+
];
|
|
33
|
+
/** Lists all values of the enum {@link ListUsersRequestOrderBy}. */
|
|
34
|
+
const LIST_USERS_REQUEST_ORDER_BIES = ["name_asc", "name_desc"];
|
|
35
|
+
/** Lists all values of the enum {@link ListVersionsRequestOrderBy}. */
|
|
36
|
+
const LIST_VERSIONS_REQUEST_ORDER_BIES = ["version_asc", "version_desc"];
|
|
37
|
+
/** Lists all values of the enum {@link NodeTypeStockStatus}. */
|
|
38
|
+
const NODE_TYPE_STOCK_STATUSES = [
|
|
39
|
+
"unknown_stock",
|
|
40
|
+
"low_stock",
|
|
41
|
+
"out_of_stock",
|
|
42
|
+
"available"
|
|
43
|
+
];
|
|
44
|
+
/** Lists all values of the enum {@link VolumeType}. */
|
|
45
|
+
const VOLUME_TYPES = [
|
|
46
|
+
"unknown_type",
|
|
47
|
+
"sbs_5k",
|
|
48
|
+
"sbs_15k"
|
|
49
|
+
];
|
|
50
|
+
//#endregion
|
|
51
|
+
export { DEPLOYMENT_STATUSES, LIST_DEPLOYMENTS_REQUEST_ORDER_BIES, LIST_NODE_TYPES_REQUEST_ORDER_BIES, LIST_USERS_REQUEST_ORDER_BIES, LIST_VERSIONS_REQUEST_ORDER_BIES, NODE_TYPE_STOCK_STATUSES, VOLUME_TYPES };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { API, } from './api.gen.js';
|
|
2
2
|
export * from './content.gen.js';
|
|
3
|
+
export * from './constants.gen.js';
|
|
3
4
|
export * from './marshalling.gen.js';
|
|
4
5
|
export type { CreateDeploymentRequest, CreateEndpointRequest, CreateUserRequest, DeleteDeploymentRequest, DeleteEndpointRequest, DeleteUserRequest, Deployment, DeploymentStatus, DownloadDeploymentCertificateAuthorityRequest, Endpoint, EndpointPrivateNetworkDetails, EndpointPublicDetails, EndpointService, EndpointSpec, EndpointSpecPrivateNetworkDetails, EndpointSpecPublicDetails, GetDeploymentRequest, ListDeploymentsRequest, ListDeploymentsRequestOrderBy, ListDeploymentsResponse, ListNodeTypesRequest, ListNodeTypesRequestOrderBy, ListNodeTypesResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, ListVersionsRequest, ListVersionsRequestOrderBy, ListVersionsResponse, NodeType, NodeTypeStockStatus, NodeTypeVolumeType, UpdateDeploymentRequest, UpdateUserRequest, UpgradeDeploymentRequest, User, Version, Volume, VolumeType, } from './types.gen.js';
|
|
5
6
|
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -2,11 +2,19 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
import { DEPLOYMENT_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
3
|
import { marshalCreateDeploymentRequest, marshalCreateEndpointRequest, marshalCreateUserRequest, marshalUpdateDeploymentRequest, marshalUpdateUserRequest, marshalUpgradeDeploymentRequest, unmarshalDeployment, unmarshalEndpoint, unmarshalListDeploymentsResponse, unmarshalListNodeTypesResponse, unmarshalListUsersResponse, unmarshalListVersionsResponse, unmarshalUser } from "./marshalling.gen.js";
|
|
4
4
|
import { API } from "./api.gen.js";
|
|
5
|
+
import { DEPLOYMENT_STATUSES, LIST_DEPLOYMENTS_REQUEST_ORDER_BIES, LIST_NODE_TYPES_REQUEST_ORDER_BIES, LIST_USERS_REQUEST_ORDER_BIES, LIST_VERSIONS_REQUEST_ORDER_BIES, NODE_TYPE_STOCK_STATUSES, VOLUME_TYPES } from "./constants.gen.js";
|
|
5
6
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
7
|
//#region src/v1alpha1/index.gen.ts
|
|
7
8
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
8
9
|
API: () => API,
|
|
10
|
+
DEPLOYMENT_STATUSES: () => DEPLOYMENT_STATUSES,
|
|
9
11
|
DEPLOYMENT_TRANSIENT_STATUSES: () => DEPLOYMENT_TRANSIENT_STATUSES,
|
|
12
|
+
LIST_DEPLOYMENTS_REQUEST_ORDER_BIES: () => LIST_DEPLOYMENTS_REQUEST_ORDER_BIES,
|
|
13
|
+
LIST_NODE_TYPES_REQUEST_ORDER_BIES: () => LIST_NODE_TYPES_REQUEST_ORDER_BIES,
|
|
14
|
+
LIST_USERS_REQUEST_ORDER_BIES: () => LIST_USERS_REQUEST_ORDER_BIES,
|
|
15
|
+
LIST_VERSIONS_REQUEST_ORDER_BIES: () => LIST_VERSIONS_REQUEST_ORDER_BIES,
|
|
16
|
+
NODE_TYPE_STOCK_STATUSES: () => NODE_TYPE_STOCK_STATUSES,
|
|
17
|
+
VOLUME_TYPES: () => VOLUME_TYPES,
|
|
10
18
|
ValidationRules: () => validation_rules_gen_exports,
|
|
11
19
|
marshalCreateDeploymentRequest: () => marshalCreateDeploymentRequest,
|
|
12
20
|
marshalCreateEndpointRequest: () => marshalCreateEndpointRequest,
|
|
@@ -23,4 +31,4 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
23
31
|
unmarshalUser: () => unmarshalUser
|
|
24
32
|
});
|
|
25
33
|
//#endregion
|
|
26
|
-
export { API, DEPLOYMENT_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateDeploymentRequest, marshalCreateEndpointRequest, marshalCreateUserRequest, marshalUpdateDeploymentRequest, marshalUpdateUserRequest, marshalUpgradeDeploymentRequest, unmarshalDeployment, unmarshalEndpoint, unmarshalListDeploymentsResponse, unmarshalListNodeTypesResponse, unmarshalListUsersResponse, unmarshalListVersionsResponse, unmarshalUser };
|
|
34
|
+
export { API, DEPLOYMENT_STATUSES, DEPLOYMENT_TRANSIENT_STATUSES, LIST_DEPLOYMENTS_REQUEST_ORDER_BIES, LIST_NODE_TYPES_REQUEST_ORDER_BIES, LIST_USERS_REQUEST_ORDER_BIES, LIST_VERSIONS_REQUEST_ORDER_BIES, NODE_TYPE_STOCK_STATUSES, VOLUME_TYPES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateDeploymentRequest, marshalCreateEndpointRequest, marshalCreateUserRequest, marshalUpdateDeploymentRequest, marshalUpdateUserRequest, marshalUpgradeDeploymentRequest, unmarshalDeployment, unmarshalEndpoint, unmarshalListDeploymentsResponse, unmarshalListNodeTypesResponse, unmarshalListUsersResponse, unmarshalListVersionsResponse, unmarshalUser };
|
|
@@ -9,6 +9,7 @@ export declare const queriesMetadata: {
|
|
|
9
9
|
readonly protoName: 'GetDeployment';
|
|
10
10
|
readonly paramsType: 'GetDeploymentRequest';
|
|
11
11
|
readonly returnType: 'Deployment';
|
|
12
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-searchdb/v1alpha1';
|
|
12
13
|
readonly isList: false;
|
|
13
14
|
readonly paginationType: 'none';
|
|
14
15
|
readonly isPrivate: false;
|
|
@@ -19,10 +20,12 @@ export declare const queriesMetadata: {
|
|
|
19
20
|
readonly protoName: 'ListDeployments';
|
|
20
21
|
readonly paramsType: 'ListDeploymentsRequest';
|
|
21
22
|
readonly returnType: 'ListDeploymentsResponse';
|
|
23
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-searchdb/v1alpha1';
|
|
22
24
|
readonly isList: true;
|
|
23
25
|
readonly paginationType: 'offset';
|
|
24
26
|
readonly pageParamKey: 'page';
|
|
25
27
|
readonly listItemType: 'Deployment';
|
|
28
|
+
readonly listItemTypeNamespace: '@scaleway-internal/sdk-searchdb/v1alpha1';
|
|
26
29
|
readonly isPrivate: false;
|
|
27
30
|
readonly description: '"';
|
|
28
31
|
}, {
|
|
@@ -30,10 +33,12 @@ export declare const queriesMetadata: {
|
|
|
30
33
|
readonly protoName: 'ListVersions';
|
|
31
34
|
readonly paramsType: 'ListVersionsRequest';
|
|
32
35
|
readonly returnType: 'ListVersionsResponse';
|
|
36
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-searchdb/v1alpha1';
|
|
33
37
|
readonly isList: true;
|
|
34
38
|
readonly paginationType: 'offset';
|
|
35
39
|
readonly pageParamKey: 'page';
|
|
36
40
|
readonly listItemType: 'Version';
|
|
41
|
+
readonly listItemTypeNamespace: '@scaleway-internal/sdk-searchdb/v1alpha1';
|
|
37
42
|
readonly isPrivate: false;
|
|
38
43
|
readonly description: '"';
|
|
39
44
|
}, {
|
|
@@ -41,10 +46,12 @@ export declare const queriesMetadata: {
|
|
|
41
46
|
readonly protoName: 'ListNodeTypes';
|
|
42
47
|
readonly paramsType: 'ListNodeTypesRequest';
|
|
43
48
|
readonly returnType: 'ListNodeTypesResponse';
|
|
49
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-searchdb/v1alpha1';
|
|
44
50
|
readonly isList: true;
|
|
45
51
|
readonly paginationType: 'offset';
|
|
46
52
|
readonly pageParamKey: 'page';
|
|
47
53
|
readonly listItemType: 'NodeType';
|
|
54
|
+
readonly listItemTypeNamespace: '@scaleway-internal/sdk-searchdb/v1alpha1';
|
|
48
55
|
readonly isPrivate: false;
|
|
49
56
|
readonly description: '"';
|
|
50
57
|
}, {
|
|
@@ -52,10 +59,12 @@ export declare const queriesMetadata: {
|
|
|
52
59
|
readonly protoName: 'ListUsers';
|
|
53
60
|
readonly paramsType: 'ListUsersRequest';
|
|
54
61
|
readonly returnType: 'ListUsersResponse';
|
|
62
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-searchdb/v1alpha1';
|
|
55
63
|
readonly isList: true;
|
|
56
64
|
readonly paginationType: 'offset';
|
|
57
65
|
readonly pageParamKey: 'page';
|
|
58
66
|
readonly listItemType: 'User';
|
|
67
|
+
readonly listItemTypeNamespace: '@scaleway-internal/sdk-searchdb/v1alpha1';
|
|
59
68
|
readonly isPrivate: false;
|
|
60
69
|
readonly description: '"';
|
|
61
70
|
}];
|
|
@@ -11,6 +11,7 @@ const queriesMetadata = {
|
|
|
11
11
|
protoName: "GetDeployment",
|
|
12
12
|
paramsType: "GetDeploymentRequest",
|
|
13
13
|
returnType: "Deployment",
|
|
14
|
+
returnTypeNamespace: "@scaleway-internal/sdk-searchdb/v1alpha1",
|
|
14
15
|
isList: false,
|
|
15
16
|
paginationType: "none",
|
|
16
17
|
isPrivate: false,
|
|
@@ -22,10 +23,12 @@ const queriesMetadata = {
|
|
|
22
23
|
protoName: "ListDeployments",
|
|
23
24
|
paramsType: "ListDeploymentsRequest",
|
|
24
25
|
returnType: "ListDeploymentsResponse",
|
|
26
|
+
returnTypeNamespace: "@scaleway-internal/sdk-searchdb/v1alpha1",
|
|
25
27
|
isList: true,
|
|
26
28
|
paginationType: "offset",
|
|
27
29
|
pageParamKey: "page",
|
|
28
30
|
listItemType: "Deployment",
|
|
31
|
+
listItemTypeNamespace: "@scaleway-internal/sdk-searchdb/v1alpha1",
|
|
29
32
|
isPrivate: false,
|
|
30
33
|
description: "\""
|
|
31
34
|
},
|
|
@@ -34,10 +37,12 @@ const queriesMetadata = {
|
|
|
34
37
|
protoName: "ListVersions",
|
|
35
38
|
paramsType: "ListVersionsRequest",
|
|
36
39
|
returnType: "ListVersionsResponse",
|
|
40
|
+
returnTypeNamespace: "@scaleway-internal/sdk-searchdb/v1alpha1",
|
|
37
41
|
isList: true,
|
|
38
42
|
paginationType: "offset",
|
|
39
43
|
pageParamKey: "page",
|
|
40
44
|
listItemType: "Version",
|
|
45
|
+
listItemTypeNamespace: "@scaleway-internal/sdk-searchdb/v1alpha1",
|
|
41
46
|
isPrivate: false,
|
|
42
47
|
description: "\""
|
|
43
48
|
},
|
|
@@ -46,10 +51,12 @@ const queriesMetadata = {
|
|
|
46
51
|
protoName: "ListNodeTypes",
|
|
47
52
|
paramsType: "ListNodeTypesRequest",
|
|
48
53
|
returnType: "ListNodeTypesResponse",
|
|
54
|
+
returnTypeNamespace: "@scaleway-internal/sdk-searchdb/v1alpha1",
|
|
49
55
|
isList: true,
|
|
50
56
|
paginationType: "offset",
|
|
51
57
|
pageParamKey: "page",
|
|
52
58
|
listItemType: "NodeType",
|
|
59
|
+
listItemTypeNamespace: "@scaleway-internal/sdk-searchdb/v1alpha1",
|
|
53
60
|
isPrivate: false,
|
|
54
61
|
description: "\""
|
|
55
62
|
},
|
|
@@ -58,10 +65,12 @@ const queriesMetadata = {
|
|
|
58
65
|
protoName: "ListUsers",
|
|
59
66
|
paramsType: "ListUsersRequest",
|
|
60
67
|
returnType: "ListUsersResponse",
|
|
68
|
+
returnTypeNamespace: "@scaleway-internal/sdk-searchdb/v1alpha1",
|
|
61
69
|
isList: true,
|
|
62
70
|
paginationType: "offset",
|
|
63
71
|
pageParamKey: "page",
|
|
64
72
|
listItemType: "User",
|
|
73
|
+
listItemTypeNamespace: "@scaleway-internal/sdk-searchdb/v1alpha1",
|
|
65
74
|
isPrivate: false,
|
|
66
75
|
description: "\""
|
|
67
76
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-searchdb",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "Scaleway SDK searchdb",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@scaleway/random-name": "6.0.2",
|
|
36
|
-
"@scaleway/sdk-std": "2.
|
|
36
|
+
"@scaleway/sdk-std": "2.7.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
39
|
+
"@repo/configs": "^0.1.1",
|
|
40
|
+
"@scaleway/sdk-client": "^2.6.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@scaleway/sdk-client": "^2.6.0"
|