Skip to content

Commit 6f89a2c

Browse files
committed
fixup!(satp-hermes): move CreateListenerRequest from oapi
Signed-off-by: Rafael Belchior <[email protected]>
1 parent b4a77c9 commit 6f89a2c

File tree

12 files changed

+35
-144
lines changed

12 files changed

+35
-144
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"spellcheck": "cspell lint --no-progress \"*/*/src/**/*.{js,ts}\"",
6363
"tsc": "NODE_OPTIONS=\"--max_old_space_size=3072\" tsc --build --verbose",
6464
"codegen": "run-s 'codegen:warmup-*' codegen:lerna codegen:cleanup",
65-
"codegen:cleanup": "rm --force --verbose ./openapitools.json",
65+
"codegen:cleanup": "rm -f -v ./openapitools.json",
6666
"codegen:lerna": "lerna run codegen",
6767
"codegen:warmup-bundle": "yarn tools:bundle-open-api-tpl-files",
6868
"codegen:warmup-cleancodegendir": "node tools/clear-openapi-codegen-folders.js",

packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ model_chain_code_life_cycle_command_responses.go
1515
model_chain_code_programming_language.go
1616
model_connection_profile.go
1717
model_connection_profile_client.go
18-
model_create_listener_request.go
1918
model_default_event_handler_strategy.go
2019
model_deploy_contract_go_source_v1_501_response.go
2120
model_deploy_contract_go_source_v1_request.go

packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ Class | Method | HTTP request | Description
9999
- [ChainCodeProgrammingLanguage](docs/ChainCodeProgrammingLanguage.md)
100100
- [ConnectionProfile](docs/ConnectionProfile.md)
101101
- [ConnectionProfileClient](docs/ConnectionProfileClient.md)
102-
- [CreateListenerRequest](docs/CreateListenerRequest.md)
103102
- [DefaultEventHandlerStrategy](docs/DefaultEventHandlerStrategy.md)
104103
- [DeployContractGoSourceV1501Response](docs/DeployContractGoSourceV1501Response.md)
105104
- [DeployContractGoSourceV1Request](docs/DeployContractGoSourceV1Request.md)

packages/cactus-plugin-ledger-connector-fabric/src/main/go/generated/openapi/go-client/api/openapi.yaml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,29 +1547,6 @@ components:
15471547
- gatewayOptions
15481548
- query
15491549
type: object
1550-
CreateListenerRequest:
1551-
description: Request for Create Listener endpoint.
1552-
properties:
1553-
channelName:
1554-
description: "Fabric channel we want to connect to. If not provided, then\
1555-
\ one from channelName parameter will be used"
1556-
maxLength: 100
1557-
minLength: 1
1558-
nullable: false
1559-
type: string
1560-
contractName:
1561-
maxLength: 100
1562-
minLength: 1
1563-
nullable: false
1564-
type: string
1565-
gatewayOptions:
1566-
$ref: '#/components/schemas/GatewayOptions'
1567-
signingCredential:
1568-
$ref: '#/components/schemas/FabricSigningCredential'
1569-
required:
1570-
- channelName
1571-
- contractName
1572-
type: object
15731550
GetChainInfoRequestV1:
15741551
description: Request for GetChainInfo endpoint.
15751552
example:

packages/cactus-plugin-ledger-connector-fabric/src/main/json/openapi.json

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,35 +1063,6 @@
10631063
}
10641064
}
10651065
},
1066-
"CreateListenerRequest": {
1067-
"description": "Request for Create Listener endpoint.",
1068-
"type": "object",
1069-
"required": ["channelName", "contractName"],
1070-
"properties": {
1071-
"channelName": {
1072-
"type": "string",
1073-
"description": "Fabric channel we want to connect to. If not provided, then one from channelName parameter will be used",
1074-
"minLength": 1,
1075-
"maxLength": 100,
1076-
"nullable": false
1077-
},
1078-
"contractName": {
1079-
"type": "string",
1080-
"minLength": 1,
1081-
"maxLength": 100,
1082-
"nullable": false
1083-
},
1084-
"gatewayOptions": {
1085-
"$ref": "#/components/schemas/GatewayOptions",
1086-
"description": "Fabric SDK gateway options.",
1087-
"nullable": false
1088-
},
1089-
"signingCredential": {
1090-
"$ref": "#/components/schemas/FabricSigningCredential",
1091-
"nullable": false
1092-
}
1093-
}
1094-
},
10951066
"GetChainInfoRequestV1": {
10961067
"description": "Request for GetChainInfo endpoint.",
10971068
"type": "object",

packages/cactus-plugin-ledger-connector-fabric/src/main/kotlin/generated/openapi/kotlin-client/.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ src/main/kotlin/org/openapitools/client/models/ChainCodeLifeCycleCommandResponse
3030
src/main/kotlin/org/openapitools/client/models/ChainCodeProgrammingLanguage.kt
3131
src/main/kotlin/org/openapitools/client/models/ConnectionProfile.kt
3232
src/main/kotlin/org/openapitools/client/models/ConnectionProfileClient.kt
33-
src/main/kotlin/org/openapitools/client/models/CreateListenerRequest.kt
3433
src/main/kotlin/org/openapitools/client/models/DefaultEventHandlerStrategy.kt
3534
src/main/kotlin/org/openapitools/client/models/DeployContractGoSourceV1501Response.kt
3635
src/main/kotlin/org/openapitools/client/models/DeployContractGoSourceV1Request.kt

packages/cactus-plugin-ledger-connector-fabric/src/main/kotlin/generated/openapi/kotlin-client/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ Class | Method | HTTP request | Description
6767
- [org.openapitools.client.models.ChainCodeProgrammingLanguage](docs/ChainCodeProgrammingLanguage.md)
6868
- [org.openapitools.client.models.ConnectionProfile](docs/ConnectionProfile.md)
6969
- [org.openapitools.client.models.ConnectionProfileClient](docs/ConnectionProfileClient.md)
70-
- [org.openapitools.client.models.CreateListenerRequest](docs/CreateListenerRequest.md)
7170
- [org.openapitools.client.models.DefaultEventHandlerStrategy](docs/DefaultEventHandlerStrategy.md)
7271
- [org.openapitools.client.models.DeployContractGoSourceV1501Response](docs/DeployContractGoSourceV1501Response.md)
7372
- [org.openapitools.client.models.DeployContractGoSourceV1Request](docs/DeployContractGoSourceV1Request.md)

packages/cactus-plugin-ledger-connector-fabric/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/CreateListenerRequest.kt

Lines changed: 0 additions & 50 deletions
This file was deleted.

packages/cactus-plugin-ledger-connector-fabric/src/main/typescript/common/utils.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
import Long from "long";
2+
import {
3+
FabricSigningCredential,
4+
GatewayOptions,
5+
} from "../generated/openapi/typescript-axios/api";
26

37
/**
48
* Check if provided variable is a function. Throws otherwise.
@@ -53,3 +57,30 @@ export function fabricLongToNumber(longNumberObject: FabricLong) {
5357
);
5458
return longValue.toNumber();
5559
}
60+
61+
export interface CreateListenerRequest {
62+
/**
63+
* Fabric channel we want to connect to. If not provided, then one from channelName parameter will be used
64+
* @type {string}
65+
* @memberof CreateListenerRequest
66+
*/
67+
channelName: string;
68+
/**
69+
*
70+
* @type {string}
71+
* @memberof CreateListenerRequest
72+
*/
73+
contractName: string;
74+
/**
75+
*
76+
* @type {GatewayOptions}
77+
* @memberof CreateListenerRequest
78+
*/
79+
gatewayOptions?: GatewayOptions;
80+
/**
81+
*
82+
* @type {FabricSigningCredential}
83+
* @memberof CreateListenerRequest
84+
*/
85+
signingCredential?: FabricSigningCredential;
86+
}

packages/cactus-plugin-ledger-connector-fabric/src/main/typescript/generated/openapi/typescript-axios/api.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -279,37 +279,6 @@ export interface ConnectionProfileClient {
279279
*/
280280
'organization'?: string;
281281
}
282-
/**
283-
* Request for Create Listener endpoint.
284-
* @export
285-
* @interface CreateListenerRequest
286-
*/
287-
export interface CreateListenerRequest {
288-
/**
289-
* Fabric channel we want to connect to. If not provided, then one from channelName parameter will be used
290-
* @type {string}
291-
* @memberof CreateListenerRequest
292-
*/
293-
'channelName': string;
294-
/**
295-
*
296-
* @type {string}
297-
* @memberof CreateListenerRequest
298-
*/
299-
'contractName': string;
300-
/**
301-
*
302-
* @type {GatewayOptions}
303-
* @memberof CreateListenerRequest
304-
*/
305-
'gatewayOptions'?: GatewayOptions;
306-
/**
307-
*
308-
* @type {FabricSigningCredential}
309-
* @memberof CreateListenerRequest
310-
*/
311-
'signingCredential'?: FabricSigningCredential;
312-
}
313282
/**
314283
*
315284
* @export

0 commit comments

Comments
 (0)