@scaleway/sdk-account 2.2.0 → 2.2.2
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/dist/v3/api.gen.js +25 -43
- package/dist/v3/marshalling.gen.js +4 -13
- package/dist/v3/types.gen.d.ts +1 -1
- package/package.json +2 -2
package/dist/v3/api.gen.js
CHANGED
|
@@ -10,12 +10,17 @@ class ContractAPI extends API {
|
|
|
10
10
|
* @param request - The request {@link ContractApiDownloadContractSignatureRequest}
|
|
11
11
|
* @returns A Promise of Blob
|
|
12
12
|
*/
|
|
13
|
-
downloadContractSignature = (request) => this.client.fetch(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
downloadContractSignature = (request) => this.client.fetch(
|
|
14
|
+
{
|
|
15
|
+
method: "GET",
|
|
16
|
+
path: `/account/v3/contract-signatures/${validatePathParam("contractSignatureId", request.contractSignatureId)}/download`,
|
|
17
|
+
urlParams: urlParams(
|
|
18
|
+
["dl", 1],
|
|
19
|
+
["locale", request.locale]
|
|
20
|
+
),
|
|
21
|
+
responseType: "blob"
|
|
22
|
+
}
|
|
23
|
+
);
|
|
19
24
|
/**
|
|
20
25
|
* Create a signature for your Organization for the latest version of the requested contract.
|
|
21
26
|
*
|
|
@@ -25,10 +30,7 @@ class ContractAPI extends API {
|
|
|
25
30
|
createContractSignature = (request) => this.client.fetch(
|
|
26
31
|
{
|
|
27
32
|
body: JSON.stringify(
|
|
28
|
-
marshalContractApiCreateContractSignatureRequest(
|
|
29
|
-
request,
|
|
30
|
-
this.client.settings
|
|
31
|
-
)
|
|
33
|
+
marshalContractApiCreateContractSignatureRequest(request, this.client.settings)
|
|
32
34
|
),
|
|
33
35
|
headers: jsonContentHeaders,
|
|
34
36
|
method: "POST",
|
|
@@ -60,10 +62,7 @@ class ContractAPI extends API {
|
|
|
60
62
|
checkContractSignature = (request) => this.client.fetch(
|
|
61
63
|
{
|
|
62
64
|
body: JSON.stringify(
|
|
63
|
-
marshalContractApiCheckContractSignatureRequest(
|
|
64
|
-
request,
|
|
65
|
-
this.client.settings
|
|
66
|
-
)
|
|
65
|
+
marshalContractApiCheckContractSignatureRequest(request, this.client.settings)
|
|
67
66
|
),
|
|
68
67
|
headers: jsonContentHeaders,
|
|
69
68
|
method: "POST",
|
|
@@ -77,15 +76,9 @@ class ContractAPI extends API {
|
|
|
77
76
|
path: `/account/v3/contract-signatures`,
|
|
78
77
|
urlParams: urlParams(
|
|
79
78
|
["order_by", request.orderBy],
|
|
80
|
-
[
|
|
81
|
-
"organization_id",
|
|
82
|
-
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
83
|
-
],
|
|
79
|
+
["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId],
|
|
84
80
|
["page", request.page],
|
|
85
|
-
[
|
|
86
|
-
"page_size",
|
|
87
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
88
|
-
]
|
|
81
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
|
|
89
82
|
)
|
|
90
83
|
},
|
|
91
84
|
unmarshalListContractSignaturesResponse
|
|
@@ -96,11 +89,7 @@ class ContractAPI extends API {
|
|
|
96
89
|
* @param request - The request {@link ContractApiListContractSignaturesRequest}
|
|
97
90
|
* @returns A Promise of ListContractSignaturesResponse
|
|
98
91
|
*/
|
|
99
|
-
listContractSignatures = (request = {}) => enrichForPagination(
|
|
100
|
-
"contractSignatures",
|
|
101
|
-
this.pageOfListContractSignatures,
|
|
102
|
-
request
|
|
103
|
-
);
|
|
92
|
+
listContractSignatures = (request = {}) => enrichForPagination("contractSignatures", this.pageOfListContractSignatures, request);
|
|
104
93
|
}
|
|
105
94
|
class ProjectAPI extends API {
|
|
106
95
|
/**
|
|
@@ -127,15 +116,9 @@ class ProjectAPI extends API {
|
|
|
127
116
|
urlParams: urlParams(
|
|
128
117
|
["name", request.name],
|
|
129
118
|
["order_by", request.orderBy],
|
|
130
|
-
[
|
|
131
|
-
"organization_id",
|
|
132
|
-
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
133
|
-
],
|
|
119
|
+
["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId],
|
|
134
120
|
["page", request.page],
|
|
135
|
-
[
|
|
136
|
-
"page_size",
|
|
137
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
138
|
-
],
|
|
121
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
|
|
139
122
|
["project_ids", request.projectIds]
|
|
140
123
|
)
|
|
141
124
|
},
|
|
@@ -166,10 +149,12 @@ class ProjectAPI extends API {
|
|
|
166
149
|
*
|
|
167
150
|
* @param request - The request {@link ProjectApiDeleteProjectRequest}
|
|
168
151
|
*/
|
|
169
|
-
deleteProject = (request = {}) => this.client.fetch(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
152
|
+
deleteProject = (request = {}) => this.client.fetch(
|
|
153
|
+
{
|
|
154
|
+
method: "DELETE",
|
|
155
|
+
path: `/account/v3/projects/${validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
|
|
156
|
+
}
|
|
157
|
+
);
|
|
173
158
|
/**
|
|
174
159
|
* Update Project. Update the parameters of an existing Project, specified by its Project ID. These parameters include the name and description.
|
|
175
160
|
*
|
|
@@ -196,10 +181,7 @@ class ProjectAPI extends API {
|
|
|
196
181
|
setProjectQualification = (request = {}) => this.client.fetch(
|
|
197
182
|
{
|
|
198
183
|
body: JSON.stringify(
|
|
199
|
-
marshalProjectApiSetProjectQualificationRequest(
|
|
200
|
-
request,
|
|
201
|
-
this.client.settings
|
|
202
|
-
)
|
|
184
|
+
marshalProjectApiSetProjectQualificationRequest(request, this.client.settings)
|
|
203
185
|
),
|
|
204
186
|
headers: jsonContentHeaders,
|
|
205
187
|
method: "POST",
|
|
@@ -135,9 +135,7 @@ const unmarshalQualification = (data) => {
|
|
|
135
135
|
hostApplication: data.host_application ? unmarshalQualificationHostApplication(data.host_application) : void 0,
|
|
136
136
|
hostWebsite: data.host_website ? unmarshalQualificationHostWebsite(data.host_website) : void 0,
|
|
137
137
|
otherUseCase: data.other_use_case ? unmarshalQualificationOtherUseCase(data.other_use_case) : void 0,
|
|
138
|
-
setScalewayEnvironment: data.set_scaleway_environment ? unmarshalQualificationSetScalewayEnvironment(
|
|
139
|
-
data.set_scaleway_environment
|
|
140
|
-
) : void 0,
|
|
138
|
+
setScalewayEnvironment: data.set_scaleway_environment ? unmarshalQualificationSetScalewayEnvironment(data.set_scaleway_environment) : void 0,
|
|
141
139
|
shareData: data.share_data ? unmarshalQualificationShareData(data.share_data) : void 0
|
|
142
140
|
};
|
|
143
141
|
};
|
|
@@ -175,10 +173,7 @@ const unmarshalListContractSignaturesResponse = (data) => {
|
|
|
175
173
|
);
|
|
176
174
|
}
|
|
177
175
|
return {
|
|
178
|
-
contractSignatures: unmarshalArrayOfObject(
|
|
179
|
-
data.contract_signatures,
|
|
180
|
-
unmarshalContractSignature
|
|
181
|
-
),
|
|
176
|
+
contractSignatures: unmarshalArrayOfObject(data.contract_signatures, unmarshalContractSignature),
|
|
182
177
|
totalCount: data.total_count
|
|
183
178
|
};
|
|
184
179
|
};
|
|
@@ -256,9 +251,7 @@ const marshalQualification = (request, defaults) => ({
|
|
|
256
251
|
},
|
|
257
252
|
{
|
|
258
253
|
param: "host_application",
|
|
259
|
-
value: request.hostApplication !== void 0 ? marshalQualificationHostApplication(
|
|
260
|
-
request.hostApplication
|
|
261
|
-
) : void 0
|
|
254
|
+
value: request.hostApplication !== void 0 ? marshalQualificationHostApplication(request.hostApplication) : void 0
|
|
262
255
|
},
|
|
263
256
|
{
|
|
264
257
|
param: "deploy_software",
|
|
@@ -266,9 +259,7 @@ const marshalQualification = (request, defaults) => ({
|
|
|
266
259
|
},
|
|
267
260
|
{
|
|
268
261
|
param: "set_scaleway_environment",
|
|
269
|
-
value: request.setScalewayEnvironment !== void 0 ? marshalQualificationSetScalewayEnvironment(
|
|
270
|
-
request.setScalewayEnvironment
|
|
271
|
-
) : void 0
|
|
262
|
+
value: request.setScalewayEnvironment !== void 0 ? marshalQualificationSetScalewayEnvironment(request.setScalewayEnvironment) : void 0
|
|
272
263
|
},
|
|
273
264
|
{
|
|
274
265
|
param: "ai_machine",
|
package/dist/v3/types.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LanguageCode as StdLanguageCode } from '@scaleway/sdk-std';
|
|
2
|
-
export type ContractType = 'unknown_type' | 'global' | 'k8s' | 'instance' | 'container' | 'baremetal' | 'network';
|
|
2
|
+
export type ContractType = 'unknown_type' | 'global' | 'k8s' | 'instance' | 'container' | 'baremetal' | 'network' | 'core';
|
|
3
3
|
export type ListContractSignaturesRequestOrderBy = 'signed_at_asc' | 'signed_at_desc' | 'expires_at_asc' | 'expires_at_desc' | 'name_asc' | 'name_desc';
|
|
4
4
|
export type ListProjectsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
5
5
|
export type QualificationAiMachineSubUseCase = 'unknown_sub_use_case';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-account",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "Scaleway SDK account",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@scaleway/random-name": "5.1.2",
|
|
30
|
-
"@scaleway/sdk-std": "2.1.
|
|
30
|
+
"@scaleway/sdk-std": "2.1.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@scaleway/sdk-client": "^2.1.0"
|