-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use unambiguous metadata value type definitions in OAS
- Loading branch information
Showing
116 changed files
with
13,846 additions
and
481 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
sdk/typescript/lib/generated/models/MetadataBoolArrayValue.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Babylon Gateway API - RCnet V2 | ||
* This API is exposed by the Babylon Radix Gateway to enable clients to efficiently query current and historic state on the RadixDLT ledger, and intelligently handle transaction submission. It is designed for use by wallets and explorers. For simple use cases, you can typically use the Core API on a Node. A Gateway is only needed for reading historic snapshots of ledger states or a more robust set-up. The Gateway API is implemented by the [Network Gateway](https://github.com/radixdlt/babylon-gateway), which is configured to read from [full node(s)](https://github.com/radixdlt/babylon-node) to extract and index data from the network. This document is an API reference documentation, visit [User Guide](https://docs-babylon.radixdlt.com/) to learn more about how to run a Gateway of your own. ## Integration and forward compatibility guarantees We give no guarantees that other endpoints will not change before Babylon mainnet launch, although changes are expected to be minimal. | ||
* | ||
* The version of the OpenAPI document: 0.4.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { exists, mapValues } from '../runtime'; | ||
/** | ||
* | ||
* @export | ||
* @interface MetadataBoolArrayValue | ||
*/ | ||
export interface MetadataBoolArrayValue { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof MetadataBoolArrayValue | ||
*/ | ||
type: MetadataBoolArrayValueTypeEnum; | ||
/** | ||
* | ||
* @type {Array<boolean>} | ||
* @memberof MetadataBoolArrayValue | ||
*/ | ||
values: Array<boolean>; | ||
} | ||
|
||
|
||
/** | ||
* @export | ||
*/ | ||
export const MetadataBoolArrayValueTypeEnum = { | ||
BoolArray: 'BoolArray' | ||
} as const; | ||
export type MetadataBoolArrayValueTypeEnum = typeof MetadataBoolArrayValueTypeEnum[keyof typeof MetadataBoolArrayValueTypeEnum]; | ||
|
||
|
||
/** | ||
* Check if a given object implements the MetadataBoolArrayValue interface. | ||
*/ | ||
export function instanceOfMetadataBoolArrayValue(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "type" in value; | ||
isInstance = isInstance && "values" in value; | ||
|
||
return isInstance; | ||
} | ||
|
||
export function MetadataBoolArrayValueFromJSON(json: any): MetadataBoolArrayValue { | ||
return MetadataBoolArrayValueFromJSONTyped(json, false); | ||
} | ||
|
||
export function MetadataBoolArrayValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetadataBoolArrayValue { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'type': json['type'], | ||
'values': json['values'], | ||
}; | ||
} | ||
|
||
export function MetadataBoolArrayValueToJSON(value?: MetadataBoolArrayValue | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'type': value.type, | ||
'values': value.values, | ||
}; | ||
} | ||
|
84 changes: 84 additions & 0 deletions
84
sdk/typescript/lib/generated/models/MetadataBoolArrayValueAllOf.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Babylon Gateway API - RCnet V2 | ||
* This API is exposed by the Babylon Radix Gateway to enable clients to efficiently query current and historic state on the RadixDLT ledger, and intelligently handle transaction submission. It is designed for use by wallets and explorers. For simple use cases, you can typically use the Core API on a Node. A Gateway is only needed for reading historic snapshots of ledger states or a more robust set-up. The Gateway API is implemented by the [Network Gateway](https://github.com/radixdlt/babylon-gateway), which is configured to read from [full node(s)](https://github.com/radixdlt/babylon-node) to extract and index data from the network. This document is an API reference documentation, visit [User Guide](https://docs-babylon.radixdlt.com/) to learn more about how to run a Gateway of your own. ## Integration and forward compatibility guarantees We give no guarantees that other endpoints will not change before Babylon mainnet launch, although changes are expected to be minimal. | ||
* | ||
* The version of the OpenAPI document: 0.4.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { exists, mapValues } from '../runtime'; | ||
/** | ||
* | ||
* @export | ||
* @interface MetadataBoolArrayValueAllOf | ||
*/ | ||
export interface MetadataBoolArrayValueAllOf { | ||
/** | ||
* | ||
* @type {Array<boolean>} | ||
* @memberof MetadataBoolArrayValueAllOf | ||
*/ | ||
values: Array<boolean>; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof MetadataBoolArrayValueAllOf | ||
*/ | ||
type?: MetadataBoolArrayValueAllOfTypeEnum; | ||
} | ||
|
||
|
||
/** | ||
* @export | ||
*/ | ||
export const MetadataBoolArrayValueAllOfTypeEnum = { | ||
BoolArray: 'BoolArray' | ||
} as const; | ||
export type MetadataBoolArrayValueAllOfTypeEnum = typeof MetadataBoolArrayValueAllOfTypeEnum[keyof typeof MetadataBoolArrayValueAllOfTypeEnum]; | ||
|
||
|
||
/** | ||
* Check if a given object implements the MetadataBoolArrayValueAllOf interface. | ||
*/ | ||
export function instanceOfMetadataBoolArrayValueAllOf(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "values" in value; | ||
|
||
return isInstance; | ||
} | ||
|
||
export function MetadataBoolArrayValueAllOfFromJSON(json: any): MetadataBoolArrayValueAllOf { | ||
return MetadataBoolArrayValueAllOfFromJSONTyped(json, false); | ||
} | ||
|
||
export function MetadataBoolArrayValueAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetadataBoolArrayValueAllOf { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'values': json['values'], | ||
'type': !exists(json, 'type') ? undefined : json['type'], | ||
}; | ||
} | ||
|
||
export function MetadataBoolArrayValueAllOfToJSON(value?: MetadataBoolArrayValueAllOf | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'values': value.values, | ||
'type': value.type, | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Babylon Gateway API - RCnet V2 | ||
* This API is exposed by the Babylon Radix Gateway to enable clients to efficiently query current and historic state on the RadixDLT ledger, and intelligently handle transaction submission. It is designed for use by wallets and explorers. For simple use cases, you can typically use the Core API on a Node. A Gateway is only needed for reading historic snapshots of ledger states or a more robust set-up. The Gateway API is implemented by the [Network Gateway](https://github.com/radixdlt/babylon-gateway), which is configured to read from [full node(s)](https://github.com/radixdlt/babylon-node) to extract and index data from the network. This document is an API reference documentation, visit [User Guide](https://docs-babylon.radixdlt.com/) to learn more about how to run a Gateway of your own. ## Integration and forward compatibility guarantees We give no guarantees that other endpoints will not change before Babylon mainnet launch, although changes are expected to be minimal. | ||
* | ||
* The version of the OpenAPI document: 0.4.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { exists, mapValues } from '../runtime'; | ||
/** | ||
* | ||
* @export | ||
* @interface MetadataBoolValue | ||
*/ | ||
export interface MetadataBoolValue { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof MetadataBoolValue | ||
*/ | ||
type: MetadataBoolValueTypeEnum; | ||
/** | ||
* | ||
* @type {boolean} | ||
* @memberof MetadataBoolValue | ||
*/ | ||
value: boolean; | ||
} | ||
|
||
|
||
/** | ||
* @export | ||
*/ | ||
export const MetadataBoolValueTypeEnum = { | ||
Bool: 'Bool' | ||
} as const; | ||
export type MetadataBoolValueTypeEnum = typeof MetadataBoolValueTypeEnum[keyof typeof MetadataBoolValueTypeEnum]; | ||
|
||
|
||
/** | ||
* Check if a given object implements the MetadataBoolValue interface. | ||
*/ | ||
export function instanceOfMetadataBoolValue(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "type" in value; | ||
isInstance = isInstance && "value" in value; | ||
|
||
return isInstance; | ||
} | ||
|
||
export function MetadataBoolValueFromJSON(json: any): MetadataBoolValue { | ||
return MetadataBoolValueFromJSONTyped(json, false); | ||
} | ||
|
||
export function MetadataBoolValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetadataBoolValue { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'type': json['type'], | ||
'value': json['value'], | ||
}; | ||
} | ||
|
||
export function MetadataBoolValueToJSON(value?: MetadataBoolValue | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'type': value.type, | ||
'value': value.value, | ||
}; | ||
} | ||
|
Oops, something went wrong.