@dynamic-labs/sdk-api 0.0.588 → 0.0.589
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/package.json
CHANGED
|
@@ -111,17 +111,20 @@ class CustomHostnamesApi extends runtime.BaseAPI {
|
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
|
-
* Delete the custom hostname
|
|
114
|
+
* Delete the custom hostname
|
|
115
115
|
*/
|
|
116
|
-
|
|
116
|
+
deleteCustomHostnameRaw(requestParameters, initOverrides) {
|
|
117
117
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
118
118
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
119
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling
|
|
119
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteCustomHostname.');
|
|
120
|
+
}
|
|
121
|
+
if (requestParameters.customHostnameId === null || requestParameters.customHostnameId === undefined) {
|
|
122
|
+
throw new runtime.RequiredError('customHostnameId', 'Required parameter requestParameters.customHostnameId was null or undefined when calling deleteCustomHostname.');
|
|
120
123
|
}
|
|
121
124
|
const queryParameters = {};
|
|
122
125
|
const headerParameters = {};
|
|
123
126
|
const response = yield this.request({
|
|
124
|
-
path: `/environments/{environmentId}/custom/hostnames`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
127
|
+
path: `/environments/{environmentId}/custom/hostnames/{customHostnameId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"customHostnameId"}}`, encodeURIComponent(String(requestParameters.customHostnameId))),
|
|
125
128
|
method: 'DELETE',
|
|
126
129
|
headers: headerParameters,
|
|
127
130
|
query: queryParameters,
|
|
@@ -130,11 +133,11 @@ class CustomHostnamesApi extends runtime.BaseAPI {
|
|
|
130
133
|
});
|
|
131
134
|
}
|
|
132
135
|
/**
|
|
133
|
-
* Delete the custom hostname
|
|
136
|
+
* Delete the custom hostname
|
|
134
137
|
*/
|
|
135
|
-
|
|
138
|
+
deleteCustomHostname(requestParameters, initOverrides) {
|
|
136
139
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
137
|
-
yield this.
|
|
140
|
+
yield this.deleteCustomHostnameRaw(requestParameters, initOverrides);
|
|
138
141
|
});
|
|
139
142
|
}
|
|
140
143
|
/**
|
|
@@ -15,8 +15,9 @@ export interface CreateCustomHostnameRequest {
|
|
|
15
15
|
environmentId: string;
|
|
16
16
|
customHostnameCreateRequest: CustomHostnameCreateRequest;
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
18
|
+
export interface DeleteCustomHostnameRequest {
|
|
19
19
|
environmentId: string;
|
|
20
|
+
customHostnameId: string;
|
|
20
21
|
}
|
|
21
22
|
export interface GetCustomHostnamesRequest {
|
|
22
23
|
environmentId: string;
|
|
@@ -34,13 +35,13 @@ export declare class CustomHostnamesApi extends runtime.BaseAPI {
|
|
|
34
35
|
*/
|
|
35
36
|
createCustomHostname(requestParameters: CreateCustomHostnameRequest, initOverrides?: RequestInit): Promise<CustomHostname>;
|
|
36
37
|
/**
|
|
37
|
-
* Delete the custom hostname
|
|
38
|
+
* Delete the custom hostname
|
|
38
39
|
*/
|
|
39
|
-
|
|
40
|
+
deleteCustomHostnameRaw(requestParameters: DeleteCustomHostnameRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
40
41
|
/**
|
|
41
|
-
* Delete the custom hostname
|
|
42
|
+
* Delete the custom hostname
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
+
deleteCustomHostname(requestParameters: DeleteCustomHostnameRequest, initOverrides?: RequestInit): Promise<void>;
|
|
44
45
|
/**
|
|
45
46
|
* Get the custom hostnames for this environemnt
|
|
46
47
|
*/
|
|
@@ -107,17 +107,20 @@ class CustomHostnamesApi extends BaseAPI {
|
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
|
-
* Delete the custom hostname
|
|
110
|
+
* Delete the custom hostname
|
|
111
111
|
*/
|
|
112
|
-
|
|
112
|
+
deleteCustomHostnameRaw(requestParameters, initOverrides) {
|
|
113
113
|
return __awaiter(this, void 0, void 0, function* () {
|
|
114
114
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
115
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling
|
|
115
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteCustomHostname.');
|
|
116
|
+
}
|
|
117
|
+
if (requestParameters.customHostnameId === null || requestParameters.customHostnameId === undefined) {
|
|
118
|
+
throw new RequiredError('customHostnameId', 'Required parameter requestParameters.customHostnameId was null or undefined when calling deleteCustomHostname.');
|
|
116
119
|
}
|
|
117
120
|
const queryParameters = {};
|
|
118
121
|
const headerParameters = {};
|
|
119
122
|
const response = yield this.request({
|
|
120
|
-
path: `/environments/{environmentId}/custom/hostnames`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
123
|
+
path: `/environments/{environmentId}/custom/hostnames/{customHostnameId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"customHostnameId"}}`, encodeURIComponent(String(requestParameters.customHostnameId))),
|
|
121
124
|
method: 'DELETE',
|
|
122
125
|
headers: headerParameters,
|
|
123
126
|
query: queryParameters,
|
|
@@ -126,11 +129,11 @@ class CustomHostnamesApi extends BaseAPI {
|
|
|
126
129
|
});
|
|
127
130
|
}
|
|
128
131
|
/**
|
|
129
|
-
* Delete the custom hostname
|
|
132
|
+
* Delete the custom hostname
|
|
130
133
|
*/
|
|
131
|
-
|
|
134
|
+
deleteCustomHostname(requestParameters, initOverrides) {
|
|
132
135
|
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
-
yield this.
|
|
136
|
+
yield this.deleteCustomHostnameRaw(requestParameters, initOverrides);
|
|
134
137
|
});
|
|
135
138
|
}
|
|
136
139
|
/**
|
|
@@ -18,7 +18,7 @@ function CustomHostnameFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
18
|
return {
|
|
19
19
|
'id': json['id'],
|
|
20
20
|
'hostname': json['hostname'],
|
|
21
|
-
'usage':
|
|
21
|
+
'usage': CustomHostnameUsageEnum.CustomHostnameUsageEnumFromJSON(json['usage']),
|
|
22
22
|
'status': CustomHostnameStatusEnum.CustomHostnameStatusEnumFromJSON(json['status']),
|
|
23
23
|
'verificationRecords': (json['verificationRecords'].map(CustomHostnameVerificationRecord.CustomHostnameVerificationRecordFromJSON)),
|
|
24
24
|
'errors': !runtime.exists(json, 'errors') ? undefined : json['errors'],
|
|
@@ -14,7 +14,7 @@ function CustomHostnameFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
14
|
return {
|
|
15
15
|
'id': json['id'],
|
|
16
16
|
'hostname': json['hostname'],
|
|
17
|
-
'usage':
|
|
17
|
+
'usage': CustomHostnameUsageEnumFromJSON(json['usage']),
|
|
18
18
|
'status': CustomHostnameStatusEnumFromJSON(json['status']),
|
|
19
19
|
'verificationRecords': (json['verificationRecords'].map(CustomHostnameVerificationRecordFromJSON)),
|
|
20
20
|
'errors': !exists(json, 'errors') ? undefined : json['errors'],
|