You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by oc...@apache.org on 2023/01/27 20:33:06 UTC

[trafficcontrol-trafficops-types] branch master updated (2e69198 -> eec2394)

This is an automated email from the ASF dual-hosted git repository.

ocket8888 pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol-trafficops-types.git


    from 2e69198  Version bump
     new 4d0ab61  Add multiple_server_capabilities request/response types
     new eec2394  Fix incorrect type on DSes

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/delivery.service.ts  |  2 +-
 src/server.capability.ts | 27 +++++++++++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletion(-)


[trafficcontrol-trafficops-types] 01/02: Add multiple_server_capabilities request/response types

Posted by oc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ocket8888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol-trafficops-types.git

commit 4d0ab61463b4059e0865d7940f9e7e24bf93306c
Author: ocket8888 <oc...@apache.org>
AuthorDate: Wed Jan 25 08:46:14 2023 -0700

    Add multiple_server_capabilities request/response types
---
 src/server.capability.ts | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/src/server.capability.ts b/src/server.capability.ts
index be6fb11..4d634bc 100644
--- a/src/server.capability.ts
+++ b/src/server.capability.ts
@@ -126,3 +126,30 @@ export interface ResponseServerServerCapability {
  * a Server Capability it ostensibly possesses.
  */
 export type ServerServerCapability = RequestServerServerCapability | RequestServerServerCapabilityResponse | ResponseServerServerCapability;
+
+/**
+ * Represents a response to a request to simultaneously create multiple
+ * associations between servers and Server Capabilities they now possess.
+ */
+export interface ResponseMultipleServerCapabilities {
+	serverIds: Array<number>;
+	serverCapabilities: Array<string>;
+}
+
+/**
+ * Represents a request to simultaneously create multiple associations between
+ * servers and Server Capabilities they will then possess.
+ */
+export interface RequestMultipleServerCapabilities extends ResponseMultipleServerCapabilities{
+	/**
+	 * The purpose of this property is unknown, and it may be removed before
+	 * 4.1's release.
+	 */
+	pageType: "server" | "sc";
+}
+
+/**
+ * Generically represents multiple simultaneously created server-and-Server
+ * Capability associations in the context of either a request or a response.
+ */
+export type MultipleServerCapabilities = RequestMultipleServerCapabilities | ResponseMultipleServerCapabilities;


[trafficcontrol-trafficops-types] 02/02: Fix incorrect type on DSes

Posted by oc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ocket8888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol-trafficops-types.git

commit eec239477b1ad0ee437c204a932b6a3d970100c9
Author: ocket8888 <oc...@apache.org>
AuthorDate: Fri Jan 27 13:32:59 2023 -0700

    Fix incorrect type on DSes
---
 src/delivery.service.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/delivery.service.ts b/src/delivery.service.ts
index e56959b..bb40cb9 100644
--- a/src/delivery.service.ts
+++ b/src/delivery.service.ts
@@ -178,7 +178,7 @@ interface RequestDeliveryServiceBase {
 	/** Whether or not the Delivery Service is actively routed. */
 	active: boolean;
 	/** Whether or not anonymization services are blocked. */
-	anonymousBlockingEnabled?: number | null;
+	anonymousBlockingEnabled?: boolean | null;
 	/**
 	 * @deprecated This field no longer works and is subject to removal in the
 	 * future.