@dynamic-labs/sdk-api 0.123.0 → 0.125.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/package.json
CHANGED
package/src/apis/WaasApi.d.ts
CHANGED
|
@@ -105,6 +105,10 @@ export interface UpdateWaasEnvPolicyLayerRequest {
|
|
|
105
105
|
environmentId: string;
|
|
106
106
|
waasEnvPolicyLayerUpdateRequest: WaasEnvPolicyLayerUpdateRequest;
|
|
107
107
|
}
|
|
108
|
+
export interface UpdateWaasEnvPolicyLayerRulesRequest {
|
|
109
|
+
environmentId: string;
|
|
110
|
+
waasPolicyLayerUpdateRequest: WaasPolicyLayerUpdateRequest;
|
|
111
|
+
}
|
|
108
112
|
export interface UpdateWaasPolicyRequest {
|
|
109
113
|
environmentId: string;
|
|
110
114
|
waasPolicyUpdateRequest: WaasPolicyUpdateRequest;
|
|
@@ -378,6 +382,16 @@ export declare class WaasApi extends runtime.BaseAPI {
|
|
|
378
382
|
* Write the environment-Layer\'s Rules
|
|
379
383
|
*/
|
|
380
384
|
updateWaasEnvPolicyLayer(requestParameters: UpdateWaasEnvPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
385
|
+
/**
|
|
386
|
+
* Applies a single per-Rule upsert or remove operation, or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle, or, with op set to replace, a full rules list that replaces the Layer\'s Rules, to the environment Composition Layer. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. A concurrent edit of the same Layer is retried; if it still conflicts the call returns 409 and can be sent again. PUT remains the whole-list write.
|
|
387
|
+
* Update the environment-Layer\'s Rules by ruleId
|
|
388
|
+
*/
|
|
389
|
+
updateWaasEnvPolicyLayerRulesRaw(requestParameters: UpdateWaasEnvPolicyLayerRulesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
390
|
+
/**
|
|
391
|
+
* Applies a single per-Rule upsert or remove operation, or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle, or, with op set to replace, a full rules list that replaces the Layer\'s Rules, to the environment Composition Layer. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. A concurrent edit of the same Layer is retried; if it still conflicts the call returns 409 and can be sent again. PUT remains the whole-list write.
|
|
392
|
+
* Update the environment-Layer\'s Rules by ruleId
|
|
393
|
+
*/
|
|
394
|
+
updateWaasEnvPolicyLayerRules(requestParameters: UpdateWaasEnvPolicyLayerRulesRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
381
395
|
/**
|
|
382
396
|
* Updates the WaaS policy for the specified environment.
|
|
383
397
|
* Update the WAAS policy for an environment by ruleId
|
package/src/apis/WaasApi.js
CHANGED
|
@@ -982,6 +982,37 @@ class WaasApi extends BaseAPI {
|
|
|
982
982
|
const response = await this.updateWaasEnvPolicyLayerRaw(requestParameters, initOverrides);
|
|
983
983
|
return await response.value();
|
|
984
984
|
}
|
|
985
|
+
/**
|
|
986
|
+
* Applies a single per-Rule upsert or remove operation, or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle, or, with op set to replace, a full rules list that replaces the Layer\'s Rules, to the environment Composition Layer. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. A concurrent edit of the same Layer is retried; if it still conflicts the call returns 409 and can be sent again. PUT remains the whole-list write.
|
|
987
|
+
* Update the environment-Layer\'s Rules by ruleId
|
|
988
|
+
*/
|
|
989
|
+
async updateWaasEnvPolicyLayerRulesRaw(requestParameters, initOverrides) {
|
|
990
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
991
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateWaasEnvPolicyLayerRules.');
|
|
992
|
+
}
|
|
993
|
+
if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
|
|
994
|
+
throw new RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateWaasEnvPolicyLayerRules.');
|
|
995
|
+
}
|
|
996
|
+
const queryParameters = {};
|
|
997
|
+
const headerParameters = {};
|
|
998
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
999
|
+
const response = await this.request({
|
|
1000
|
+
path: `/environments/{environmentId}/waas/policies/env-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
1001
|
+
method: 'PATCH',
|
|
1002
|
+
headers: headerParameters,
|
|
1003
|
+
query: queryParameters,
|
|
1004
|
+
body: WaasPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
|
|
1005
|
+
}, initOverrides);
|
|
1006
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* Applies a single per-Rule upsert or remove operation, or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle, or, with op set to replace, a full rules list that replaces the Layer\'s Rules, to the environment Composition Layer. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. A concurrent edit of the same Layer is retried; if it still conflicts the call returns 409 and can be sent again. PUT remains the whole-list write.
|
|
1010
|
+
* Update the environment-Layer\'s Rules by ruleId
|
|
1011
|
+
*/
|
|
1012
|
+
async updateWaasEnvPolicyLayerRules(requestParameters, initOverrides) {
|
|
1013
|
+
const response = await this.updateWaasEnvPolicyLayerRulesRaw(requestParameters, initOverrides);
|
|
1014
|
+
return await response.value();
|
|
1015
|
+
}
|
|
985
1016
|
/**
|
|
986
1017
|
* Updates the WaaS policy for the specified environment.
|
|
987
1018
|
* Update the WAAS policy for an environment by ruleId
|
|
@@ -11,11 +11,17 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ExchangeKeyEnum } from './ExchangeKeyEnum';
|
|
13
13
|
/**
|
|
14
|
-
* An exchange a flow can be paid with, ready to display.
|
|
14
|
+
* An exchange a flow can be paid with, ready to display. Its id matches `exchangeSource.exchangeId` on a flow attached to it.
|
|
15
15
|
* @export
|
|
16
16
|
* @interface FlowExchange
|
|
17
17
|
*/
|
|
18
18
|
export interface FlowExchange {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof FlowExchange
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {ExchangeKeyEnum}
|
|
@@ -9,6 +9,7 @@ function FlowExchangeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9
9
|
return json;
|
|
10
10
|
}
|
|
11
11
|
return {
|
|
12
|
+
'id': json['id'],
|
|
12
13
|
'key': ExchangeKeyEnumFromJSON(json['key']),
|
|
13
14
|
'label': json['label'],
|
|
14
15
|
'iconUrl': json['iconUrl'],
|
|
@@ -22,6 +23,7 @@ function FlowExchangeToJSON(value) {
|
|
|
22
23
|
return null;
|
|
23
24
|
}
|
|
24
25
|
return {
|
|
26
|
+
'id': value.id,
|
|
25
27
|
'key': ExchangeKeyEnumToJSON(value.key),
|
|
26
28
|
'label': value.label,
|
|
27
29
|
'iconUrl': value.iconUrl,
|
|
@@ -17,7 +17,7 @@ import { WaasPolicyLayerRule } from './WaasPolicyLayerRule';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface WaasEnvPolicyLayerUpdateRequest {
|
|
19
19
|
/**
|
|
20
|
-
* The environment-Layer's full Rule list, in either syntax; a PUT always replaces it whole
|
|
20
|
+
* The environment-Layer's full Rule list, in either syntax; a PUT always replaces it whole. To change one Rule at a time, use PATCH. Each Rule must structurally be one syntax or the other, so a malformed Rule is refused here rather than deep in the enclave.
|
|
21
21
|
* @type {Array<WaasPolicyLayerRule>}
|
|
22
22
|
* @memberof WaasEnvPolicyLayerUpdateRequest
|
|
23
23
|
*/
|