@partisiablockchain/blockchain-api-transaction-client 0.0.0 → 4.120.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.
Files changed (69) hide show
  1. package/README.md +4 -0
  2. package/package.json +25 -3
  3. package/target/main/generated/openapi/apis/ChainControllerApi.d.ts +59 -0
  4. package/target/main/generated/openapi/apis/ChainControllerApi.js +165 -0
  5. package/target/main/generated/openapi/apis/ChainControllerApi.js.map +1 -0
  6. package/target/main/generated/openapi/apis/HealthResourceApi.d.ts +25 -0
  7. package/target/main/generated/openapi/apis/HealthResourceApi.js +81 -0
  8. package/target/main/generated/openapi/apis/HealthResourceApi.js.map +1 -0
  9. package/target/main/generated/openapi/apis/ShardControllerApi.d.ts +76 -0
  10. package/target/main/generated/openapi/apis/ShardControllerApi.js +206 -0
  11. package/target/main/generated/openapi/apis/ShardControllerApi.js.map +1 -0
  12. package/target/main/generated/openapi/apis/index.d.ts +3 -0
  13. package/target/main/generated/openapi/apis/index.js +22 -0
  14. package/target/main/generated/openapi/apis/index.js.map +1 -0
  15. package/target/main/generated/openapi/index.d.ts +3 -0
  16. package/target/main/generated/openapi/index.js +22 -0
  17. package/target/main/generated/openapi/index.js.map +1 -0
  18. package/target/main/generated/openapi/models/Account.d.ts +43 -0
  19. package/target/main/generated/openapi/models/Account.js +52 -0
  20. package/target/main/generated/openapi/models/Account.js.map +1 -0
  21. package/target/main/generated/openapi/models/Block.d.ts +79 -0
  22. package/target/main/generated/openapi/models/Block.js +70 -0
  23. package/target/main/generated/openapi/models/Block.js.map +1 -0
  24. package/target/main/generated/openapi/models/Chain.d.ts +59 -0
  25. package/target/main/generated/openapi/models/Chain.js +59 -0
  26. package/target/main/generated/openapi/models/Chain.js.map +1 -0
  27. package/target/main/generated/openapi/models/Contract.d.ts +75 -0
  28. package/target/main/generated/openapi/models/Contract.js +62 -0
  29. package/target/main/generated/openapi/models/Contract.js.map +1 -0
  30. package/target/main/generated/openapi/models/ExecutionStatus.d.ts +64 -0
  31. package/target/main/generated/openapi/models/ExecutionStatus.js +63 -0
  32. package/target/main/generated/openapi/models/ExecutionStatus.js.map +1 -0
  33. package/target/main/generated/openapi/models/Failure.d.ts +37 -0
  34. package/target/main/generated/openapi/models/Failure.js +48 -0
  35. package/target/main/generated/openapi/models/Failure.js.map +1 -0
  36. package/target/main/generated/openapi/models/Feature.d.ts +37 -0
  37. package/target/main/generated/openapi/models/Feature.js +48 -0
  38. package/target/main/generated/openapi/models/Feature.js.map +1 -0
  39. package/target/main/generated/openapi/models/Jar.d.ts +31 -0
  40. package/target/main/generated/openapi/models/Jar.js +46 -0
  41. package/target/main/generated/openapi/models/Jar.js.map +1 -0
  42. package/target/main/generated/openapi/models/Plugin.d.ts +37 -0
  43. package/target/main/generated/openapi/models/Plugin.js +48 -0
  44. package/target/main/generated/openapi/models/Plugin.js.map +1 -0
  45. package/target/main/generated/openapi/models/SerializedTransaction.d.ts +31 -0
  46. package/target/main/generated/openapi/models/SerializedTransaction.js +46 -0
  47. package/target/main/generated/openapi/models/SerializedTransaction.js.map +1 -0
  48. package/target/main/generated/openapi/models/Shard.d.ts +39 -0
  49. package/target/main/generated/openapi/models/Shard.js +50 -0
  50. package/target/main/generated/openapi/models/Shard.js.map +1 -0
  51. package/target/main/generated/openapi/models/Transaction.d.ts +50 -0
  52. package/target/main/generated/openapi/models/Transaction.js +55 -0
  53. package/target/main/generated/openapi/models/Transaction.js.map +1 -0
  54. package/target/main/generated/openapi/models/TransactionCost.d.ts +57 -0
  55. package/target/main/generated/openapi/models/TransactionCost.js +62 -0
  56. package/target/main/generated/openapi/models/TransactionCost.js.map +1 -0
  57. package/target/main/generated/openapi/models/TransactionPointer.d.ts +37 -0
  58. package/target/main/generated/openapi/models/TransactionPointer.js +48 -0
  59. package/target/main/generated/openapi/models/TransactionPointer.js.map +1 -0
  60. package/target/main/generated/openapi/models/index.d.ts +14 -0
  61. package/target/main/generated/openapi/models/index.js +33 -0
  62. package/target/main/generated/openapi/models/index.js.map +1 -0
  63. package/target/main/generated/openapi/runtime.d.ts +181 -0
  64. package/target/main/generated/openapi/runtime.js +342 -0
  65. package/target/main/generated/openapi/runtime.js.map +1 -0
  66. package/target/main/index.d.ts +3 -0
  67. package/target/main/index.js +37 -0
  68. package/target/main/index.js.map +1 -0
  69. package/LICENSE +0 -662
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * server
6
+ * <h1>server</h1>
7
+ *
8
+ * The version of the OpenAPI document: 4.39.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.TransactionToJSON = exports.TransactionFromJSONTyped = exports.TransactionFromJSON = exports.instanceOfTransaction = void 0;
17
+ const ExecutionStatus_1 = require("./ExecutionStatus");
18
+ /**
19
+ * Check if a given object implements the Transaction interface.
20
+ */
21
+ function instanceOfTransaction(value) {
22
+ if (!('isEvent' in value) || value['isEvent'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ exports.instanceOfTransaction = instanceOfTransaction;
27
+ function TransactionFromJSON(json) {
28
+ return TransactionFromJSONTyped(json, false);
29
+ }
30
+ exports.TransactionFromJSON = TransactionFromJSON;
31
+ function TransactionFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'identifier': json['identifier'] == null ? undefined : json['identifier'],
37
+ 'content': json['content'] == null ? undefined : json['content'],
38
+ 'executionStatus': json['executionStatus'] == null ? undefined : (0, ExecutionStatus_1.ExecutionStatusFromJSON)(json['executionStatus']),
39
+ 'isEvent': json['isEvent'],
40
+ };
41
+ }
42
+ exports.TransactionFromJSONTyped = TransactionFromJSONTyped;
43
+ function TransactionToJSON(value) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'identifier': value['identifier'],
49
+ 'content': value['content'],
50
+ 'executionStatus': (0, ExecutionStatus_1.ExecutionStatusToJSON)(value['executionStatus']),
51
+ 'isEvent': value['isEvent'],
52
+ };
53
+ }
54
+ exports.TransactionToJSON = TransactionToJSON;
55
+ //# sourceMappingURL=Transaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Transaction.js","sourceRoot":"","sources":["../../../../../src/main/generated/openapi/models/Transaction.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH,uDAI2B;AAkC3B;;GAEG;AACH,SAAgB,qBAAqB,CAAC,KAAa;IAC/C,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAHD,sDAGC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAFD,kDAEC;AAED,SAAgB,wBAAwB,CAAC,IAAS,EAAE,mBAA4B;IAC5E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;QACzE,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;QAChE,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,yCAAuB,EAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACjH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAXD,4DAWC;AAED,SAAgB,iBAAiB,CAAC,KAA0B;IACxD,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,OAAO;QAEH,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,iBAAiB,EAAE,IAAA,uCAAqB,EAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QAClE,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC;AAXD,8CAWC"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * server
3
+ * <h1>server</h1>
4
+ *
5
+ * The version of the OpenAPI document: 4.39.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Cost of an executed transaction.
14
+ * @export
15
+ * @interface TransactionCost
16
+ */
17
+ export interface TransactionCost {
18
+ /**
19
+ * Gas allocated for spawned events.
20
+ * @type {number}
21
+ * @memberof TransactionCost
22
+ */
23
+ allocatedForEvents: number;
24
+ /**
25
+ * The remaining gas available.
26
+ * @type {number}
27
+ * @memberof TransactionCost
28
+ */
29
+ remaining: number;
30
+ /**
31
+ * The cost paid by the contract spawning the associated event.
32
+ * @type {number}
33
+ * @memberof TransactionCost
34
+ */
35
+ paidByContract: number;
36
+ /**
37
+ * The cpu cost
38
+ * @type {number}
39
+ * @memberof TransactionCost
40
+ */
41
+ cpu: number;
42
+ /**
43
+ * The network cost for each transaction.
44
+ * @type {{ [key: string]: number; }}
45
+ * @memberof TransactionCost
46
+ */
47
+ networkFees?: {
48
+ [key: string]: number;
49
+ };
50
+ }
51
+ /**
52
+ * Check if a given object implements the TransactionCost interface.
53
+ */
54
+ export declare function instanceOfTransactionCost(value: object): value is TransactionCost;
55
+ export declare function TransactionCostFromJSON(json: any): TransactionCost;
56
+ export declare function TransactionCostFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionCost;
57
+ export declare function TransactionCostToJSON(value?: TransactionCost | null): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * server
6
+ * <h1>server</h1>
7
+ *
8
+ * The version of the OpenAPI document: 4.39.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.TransactionCostToJSON = exports.TransactionCostFromJSONTyped = exports.TransactionCostFromJSON = exports.instanceOfTransactionCost = void 0;
17
+ /**
18
+ * Check if a given object implements the TransactionCost interface.
19
+ */
20
+ function instanceOfTransactionCost(value) {
21
+ if (!('allocatedForEvents' in value) || value['allocatedForEvents'] === undefined)
22
+ return false;
23
+ if (!('remaining' in value) || value['remaining'] === undefined)
24
+ return false;
25
+ if (!('paidByContract' in value) || value['paidByContract'] === undefined)
26
+ return false;
27
+ if (!('cpu' in value) || value['cpu'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ exports.instanceOfTransactionCost = instanceOfTransactionCost;
32
+ function TransactionCostFromJSON(json) {
33
+ return TransactionCostFromJSONTyped(json, false);
34
+ }
35
+ exports.TransactionCostFromJSON = TransactionCostFromJSON;
36
+ function TransactionCostFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'allocatedForEvents': json['allocatedForEvents'],
42
+ 'remaining': json['remaining'],
43
+ 'paidByContract': json['paidByContract'],
44
+ 'cpu': json['cpu'],
45
+ 'networkFees': json['networkFees'] == null ? undefined : json['networkFees'],
46
+ };
47
+ }
48
+ exports.TransactionCostFromJSONTyped = TransactionCostFromJSONTyped;
49
+ function TransactionCostToJSON(value) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'allocatedForEvents': value['allocatedForEvents'],
55
+ 'remaining': value['remaining'],
56
+ 'paidByContract': value['paidByContract'],
57
+ 'cpu': value['cpu'],
58
+ 'networkFees': value['networkFees'],
59
+ };
60
+ }
61
+ exports.TransactionCostToJSON = TransactionCostToJSON;
62
+ //# sourceMappingURL=TransactionCost.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionCost.js","sourceRoot":"","sources":["../../../../../src/main/generated/openapi/models/TransactionCost.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAyCH;;GAEG;AACH,SAAgB,yBAAyB,CAAC,KAAa;IACnD,IAAI,CAAC,CAAC,oBAAoB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,oBAAoB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChG,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,IAAI,CAAC,CAAC,gBAAgB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxF,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClE,OAAO,IAAI,CAAC;AAChB,CAAC;AAND,8DAMC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAFD,0DAEC;AAED,SAAgB,4BAA4B,CAAC,IAAS,EAAE,mBAA4B;IAChF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,CAAC;QAChD,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACxC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC;QAClB,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;KAC/E,CAAC;AACN,CAAC;AAZD,oEAYC;AAED,SAAgB,qBAAqB,CAAC,KAA8B;IAChE,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,OAAO;QAEH,oBAAoB,EAAE,KAAK,CAAC,oBAAoB,CAAC;QACjD,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,CAAC;QACzC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;QACnB,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;KACtC,CAAC;AACN,CAAC;AAZD,sDAYC"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * server
3
+ * <h1>server</h1>
4
+ *
5
+ * The version of the OpenAPI document: 4.39.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Transaction pointer transfer record.
14
+ * @export
15
+ * @interface TransactionPointer
16
+ */
17
+ export interface TransactionPointer {
18
+ /**
19
+ * Is the result of a hashing process, a list of bytes passed through a stream.
20
+ * @type {string}
21
+ * @memberof TransactionPointer
22
+ */
23
+ identifier?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TransactionPointer
28
+ */
29
+ destinationShardId?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the TransactionPointer interface.
33
+ */
34
+ export declare function instanceOfTransactionPointer(value: object): value is TransactionPointer;
35
+ export declare function TransactionPointerFromJSON(json: any): TransactionPointer;
36
+ export declare function TransactionPointerFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionPointer;
37
+ export declare function TransactionPointerToJSON(value?: TransactionPointer | null): any;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * server
6
+ * <h1>server</h1>
7
+ *
8
+ * The version of the OpenAPI document: 4.39.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.TransactionPointerToJSON = exports.TransactionPointerFromJSONTyped = exports.TransactionPointerFromJSON = exports.instanceOfTransactionPointer = void 0;
17
+ /**
18
+ * Check if a given object implements the TransactionPointer interface.
19
+ */
20
+ function instanceOfTransactionPointer(value) {
21
+ return true;
22
+ }
23
+ exports.instanceOfTransactionPointer = instanceOfTransactionPointer;
24
+ function TransactionPointerFromJSON(json) {
25
+ return TransactionPointerFromJSONTyped(json, false);
26
+ }
27
+ exports.TransactionPointerFromJSON = TransactionPointerFromJSON;
28
+ function TransactionPointerFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'identifier': json['identifier'] == null ? undefined : json['identifier'],
34
+ 'destinationShardId': json['destinationShardId'] == null ? undefined : json['destinationShardId'],
35
+ };
36
+ }
37
+ exports.TransactionPointerFromJSONTyped = TransactionPointerFromJSONTyped;
38
+ function TransactionPointerToJSON(value) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'identifier': value['identifier'],
44
+ 'destinationShardId': value['destinationShardId'],
45
+ };
46
+ }
47
+ exports.TransactionPointerToJSON = TransactionPointerToJSON;
48
+ //# sourceMappingURL=TransactionPointer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionPointer.js","sourceRoot":"","sources":["../../../../../src/main/generated/openapi/models/TransactionPointer.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAuBH;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,OAAO,IAAI,CAAC;AAChB,CAAC;AAFD,oEAEC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAFD,gEAEC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;QACzE,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC;KACpG,CAAC;AACN,CAAC;AATD,0EASC;AAED,SAAgB,wBAAwB,CAAC,KAAiC;IACtE,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,OAAO;QAEH,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,oBAAoB,EAAE,KAAK,CAAC,oBAAoB,CAAC;KACpD,CAAC;AACN,CAAC;AATD,4DASC"}
@@ -0,0 +1,14 @@
1
+ export * from './Account';
2
+ export * from './Block';
3
+ export * from './Chain';
4
+ export * from './Contract';
5
+ export * from './ExecutionStatus';
6
+ export * from './Failure';
7
+ export * from './Feature';
8
+ export * from './Jar';
9
+ export * from './Plugin';
10
+ export * from './SerializedTransaction';
11
+ export * from './Shard';
12
+ export * from './Transaction';
13
+ export * from './TransactionCost';
14
+ export * from './TransactionPointer';
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./Account"), exports);
20
+ __exportStar(require("./Block"), exports);
21
+ __exportStar(require("./Chain"), exports);
22
+ __exportStar(require("./Contract"), exports);
23
+ __exportStar(require("./ExecutionStatus"), exports);
24
+ __exportStar(require("./Failure"), exports);
25
+ __exportStar(require("./Feature"), exports);
26
+ __exportStar(require("./Jar"), exports);
27
+ __exportStar(require("./Plugin"), exports);
28
+ __exportStar(require("./SerializedTransaction"), exports);
29
+ __exportStar(require("./Shard"), exports);
30
+ __exportStar(require("./Transaction"), exports);
31
+ __exportStar(require("./TransactionCost"), exports);
32
+ __exportStar(require("./TransactionPointer"), exports);
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/generated/openapi/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,4CAA0B;AAC1B,0CAAwB;AACxB,0CAAwB;AACxB,6CAA2B;AAC3B,oDAAkC;AAClC,4CAA0B;AAC1B,4CAA0B;AAC1B,wCAAsB;AACtB,2CAAyB;AACzB,0DAAwC;AACxC,0CAAwB;AACxB,gDAA8B;AAC9B,oDAAkC;AAClC,uDAAqC"}
@@ -0,0 +1,181 @@
1
+ /**
2
+ * server
3
+ * <h1>server</h1>
4
+ *
5
+ * The version of the OpenAPI document: 4.39.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export declare const BASE_PATH: string;
13
+ export interface ConfigurationParameters {
14
+ basePath?: string;
15
+ fetchApi?: FetchAPI;
16
+ middleware?: Middleware[];
17
+ queryParamsStringify?: (params: HTTPQuery) => string;
18
+ username?: string;
19
+ password?: string;
20
+ apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
21
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
22
+ headers?: HTTPHeaders;
23
+ credentials?: RequestCredentials;
24
+ }
25
+ export declare class Configuration {
26
+ private configuration;
27
+ constructor(configuration?: ConfigurationParameters);
28
+ set config(configuration: Configuration);
29
+ get basePath(): string;
30
+ get fetchApi(): FetchAPI | undefined;
31
+ get middleware(): Middleware[];
32
+ get queryParamsStringify(): (params: HTTPQuery) => string;
33
+ get username(): string | undefined;
34
+ get password(): string | undefined;
35
+ get apiKey(): ((name: string) => string | Promise<string>) | undefined;
36
+ get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
37
+ get headers(): HTTPHeaders | undefined;
38
+ get credentials(): RequestCredentials | undefined;
39
+ }
40
+ export declare const DefaultConfig: Configuration;
41
+ /**
42
+ * This is the base class for all generated API classes.
43
+ */
44
+ export declare class BaseAPI {
45
+ protected configuration: Configuration;
46
+ private static readonly jsonRegex;
47
+ private middleware;
48
+ constructor(configuration?: Configuration);
49
+ withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
50
+ withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
51
+ withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
52
+ /**
53
+ * Check if the given MIME is a JSON MIME.
54
+ * JSON MIME examples:
55
+ * application/json
56
+ * application/json; charset=UTF8
57
+ * APPLICATION/JSON
58
+ * application/vnd.company+json
59
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
60
+ * @return True if the given MIME is JSON, false otherwise.
61
+ */
62
+ protected isJsonMime(mime: string | null | undefined): boolean;
63
+ protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
64
+ private createFetchParams;
65
+ private fetchApi;
66
+ /**
67
+ * Create a shallow clone of `this` by constructing a new instance
68
+ * and then shallow cloning data members.
69
+ */
70
+ private clone;
71
+ }
72
+ export declare class ResponseError extends Error {
73
+ response: Response;
74
+ name: "ResponseError";
75
+ constructor(response: Response, msg?: string);
76
+ }
77
+ export declare class FetchError extends Error {
78
+ cause: Error;
79
+ name: "FetchError";
80
+ constructor(cause: Error, msg?: string);
81
+ }
82
+ export declare class RequiredError extends Error {
83
+ field: string;
84
+ name: "RequiredError";
85
+ constructor(field: string, msg?: string);
86
+ }
87
+ export declare const COLLECTION_FORMATS: {
88
+ csv: string;
89
+ ssv: string;
90
+ tsv: string;
91
+ pipes: string;
92
+ };
93
+ export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
94
+ export type Json = any;
95
+ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
96
+ export type HTTPHeaders = {
97
+ [key: string]: string;
98
+ };
99
+ export type HTTPQuery = {
100
+ [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
101
+ };
102
+ export type HTTPBody = Json | FormData | URLSearchParams;
103
+ export type HTTPRequestInit = {
104
+ headers?: HTTPHeaders;
105
+ method: HTTPMethod;
106
+ credentials?: RequestCredentials;
107
+ body?: HTTPBody;
108
+ };
109
+ export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
110
+ export type InitOverrideFunction = (requestContext: {
111
+ init: HTTPRequestInit;
112
+ context: RequestOpts;
113
+ }) => Promise<RequestInit>;
114
+ export interface FetchParams {
115
+ url: string;
116
+ init: RequestInit;
117
+ }
118
+ export interface RequestOpts {
119
+ path: string;
120
+ method: HTTPMethod;
121
+ headers: HTTPHeaders;
122
+ query?: HTTPQuery;
123
+ body?: HTTPBody;
124
+ }
125
+ export declare function querystring(params: HTTPQuery, prefix?: string): string;
126
+ export declare function mapValues(data: any, fn: (item: any) => any): {};
127
+ export declare function canConsumeForm(consumes: Consume[]): boolean;
128
+ export interface Consume {
129
+ contentType: string;
130
+ }
131
+ export interface RequestContext {
132
+ fetch: FetchAPI;
133
+ url: string;
134
+ init: RequestInit;
135
+ }
136
+ export interface ResponseContext {
137
+ fetch: FetchAPI;
138
+ url: string;
139
+ init: RequestInit;
140
+ response: Response;
141
+ }
142
+ export interface ErrorContext {
143
+ fetch: FetchAPI;
144
+ url: string;
145
+ init: RequestInit;
146
+ error: unknown;
147
+ response?: Response;
148
+ }
149
+ export interface Middleware {
150
+ pre?(context: RequestContext): Promise<FetchParams | void>;
151
+ post?(context: ResponseContext): Promise<Response | void>;
152
+ onError?(context: ErrorContext): Promise<Response | void>;
153
+ }
154
+ export interface ApiResponse<T> {
155
+ raw: Response;
156
+ value(): Promise<T>;
157
+ }
158
+ export interface ResponseTransformer<T> {
159
+ (json: any): T;
160
+ }
161
+ export declare class JSONApiResponse<T> {
162
+ raw: Response;
163
+ private transformer;
164
+ constructor(raw: Response, transformer?: ResponseTransformer<T>);
165
+ value(): Promise<T>;
166
+ }
167
+ export declare class VoidApiResponse {
168
+ raw: Response;
169
+ constructor(raw: Response);
170
+ value(): Promise<void>;
171
+ }
172
+ export declare class BlobApiResponse {
173
+ raw: Response;
174
+ constructor(raw: Response);
175
+ value(): Promise<Blob>;
176
+ }
177
+ export declare class TextApiResponse {
178
+ raw: Response;
179
+ constructor(raw: Response);
180
+ value(): Promise<string>;
181
+ }