wasm-ast-types 0.0.3

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Dan Lynch <pyramation@gmail.com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # wasm-ast-types
2
+
package/main/index.js ADDED
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _types = require("./types");
8
+
9
+ Object.keys(_types).forEach(function (key) {
10
+ if (key === "default" || key === "__esModule") return;
11
+ if (key in exports && exports[key] === _types[key]) return;
12
+ Object.defineProperty(exports, key, {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _types[key];
16
+ }
17
+ });
18
+ });
19
+
20
+ var _utils = require("./utils");
21
+
22
+ Object.keys(_utils).forEach(function (key) {
23
+ if (key === "default" || key === "__esModule") return;
24
+ if (key in exports && exports[key] === _utils[key]) return;
25
+ Object.defineProperty(exports, key, {
26
+ enumerable: true,
27
+ get: function get() {
28
+ return _utils[key];
29
+ }
30
+ });
31
+ });
32
+
33
+ var _wasm = require("./wasm");
34
+
35
+ Object.keys(_wasm).forEach(function (key) {
36
+ if (key === "default" || key === "__esModule") return;
37
+ if (key in exports && exports[key] === _wasm[key]) return;
38
+ Object.defineProperty(exports, key, {
39
+ enumerable: true,
40
+ get: function get() {
41
+ return _wasm[key];
42
+ }
43
+ });
44
+ });
package/main/types.js ADDED
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ ;
4
+ ;
package/main/utils.js ADDED
@@ -0,0 +1,200 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports.typedIdentifier = exports.shorthandProperty = exports.recursiveNamespace = exports.promiseTypeAnnotation = exports.memberExpressionOrIdentifierSnake = exports.memberExpressionOrIdentifier = exports.importStmt = exports.importAminoMsg = exports.getFieldDimensionality = exports.classProperty = exports.classDeclaration = exports.bindMethod = exports.arrowFunctionExpression = exports.arrayTypeNDimensions = exports.FieldTypeAsts = void 0;
11
+
12
+ var _toArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toArray"));
13
+
14
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
15
+
16
+ var t = _interopRequireWildcard(require("@babel/types"));
17
+
18
+ var _case = require("case");
19
+
20
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
+
22
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
+
24
+ var bindMethod = function bindMethod(name) {
25
+ return t.expressionStatement(t.assignmentExpression('=', t.memberExpression(t.thisExpression(), t.identifier(name)), t.callExpression(t.memberExpression(t.memberExpression(t.thisExpression(), t.identifier(name)), t.identifier('bind')), [t.thisExpression()])));
26
+ };
27
+
28
+ exports.bindMethod = bindMethod;
29
+
30
+ var typedIdentifier = function typedIdentifier(name, typeAnnotation) {
31
+ var optional = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
32
+ var type = t.identifier(name);
33
+ type.typeAnnotation = typeAnnotation;
34
+ type.optional = optional;
35
+ return type;
36
+ };
37
+
38
+ exports.typedIdentifier = typedIdentifier;
39
+
40
+ var promiseTypeAnnotation = function promiseTypeAnnotation(name) {
41
+ return t.tsTypeAnnotation(t.tsTypeReference(t.identifier('Promise'), t.tsTypeParameterInstantiation([t.tsTypeReference(t.identifier(name))])));
42
+ };
43
+
44
+ exports.promiseTypeAnnotation = promiseTypeAnnotation;
45
+
46
+ var classDeclaration = function classDeclaration(name, body) {
47
+ var implementsExressions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
48
+ var superClass = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
49
+ var declaration = t.classDeclaration(t.identifier(name), superClass, t.classBody(body));
50
+
51
+ if (implementsExressions.length) {
52
+ declaration["implements"] = implementsExressions;
53
+ }
54
+
55
+ return declaration;
56
+ };
57
+
58
+ exports.classDeclaration = classDeclaration;
59
+
60
+ var classProperty = function classProperty(name) {
61
+ var typeAnnotation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
62
+ var isReadonly = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
63
+ var isStatic = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
64
+ var prop = t.classProperty(t.identifier(name));
65
+ if (isReadonly) prop.readonly = true;
66
+ if (isStatic) prop["static"] = true;
67
+ if (typeAnnotation) prop.typeAnnotation = typeAnnotation;
68
+ return prop;
69
+ };
70
+
71
+ exports.classProperty = classProperty;
72
+
73
+ var arrowFunctionExpression = function arrowFunctionExpression(params, body, returnType) {
74
+ var isAsync = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
75
+ var func = t.arrowFunctionExpression(params, body, isAsync);
76
+ if (returnType) func.returnType = returnType;
77
+ return func;
78
+ };
79
+
80
+ exports.arrowFunctionExpression = arrowFunctionExpression;
81
+
82
+ var recursiveNamespace = function recursiveNamespace(names, moduleBlockBody) {
83
+ if (!names || !names.length) return moduleBlockBody;
84
+ var name = names.pop();
85
+ var body = [t.exportNamedDeclaration(t.tsModuleDeclaration(t.identifier(name), t.tsModuleBlock(recursiveNamespace(names, moduleBlockBody))))];
86
+ return body;
87
+ };
88
+
89
+ exports.recursiveNamespace = recursiveNamespace;
90
+
91
+ var arrayTypeNDimensions = function arrayTypeNDimensions(body, n) {
92
+ if (!n) return t.tsArrayType(body);
93
+ return t.tsArrayType(arrayTypeNDimensions(body, n - 1));
94
+ };
95
+
96
+ exports.arrayTypeNDimensions = arrayTypeNDimensions;
97
+ var FieldTypeAsts = {
98
+ string: function string() {
99
+ return t.tsStringKeyword();
100
+ },
101
+ array: function array(type) {
102
+ return t.tsArrayType(FieldTypeAsts[type]());
103
+ },
104
+ Duration: function Duration() {
105
+ return t.tsTypeReference(t.identifier('Duration'));
106
+ },
107
+ Height: function Height() {
108
+ return t.tsTypeReference(t.identifier('Height'));
109
+ },
110
+ Coin: function Coin() {
111
+ return t.tsTypeReference(t.identifier('Coin'));
112
+ },
113
+ Long: function Long() {
114
+ return t.tsTypeReference(t.identifier('Long'));
115
+ }
116
+ };
117
+ exports.FieldTypeAsts = FieldTypeAsts;
118
+
119
+ var shorthandProperty = function shorthandProperty(prop) {
120
+ return t.objectProperty(t.identifier(prop), t.identifier(prop), false, true);
121
+ };
122
+
123
+ exports.shorthandProperty = shorthandProperty;
124
+
125
+ var importStmt = function importStmt(names, path) {
126
+ return t.importDeclaration(names.map(function (name) {
127
+ return t.importSpecifier(t.identifier(name), t.identifier(name));
128
+ }), t.stringLiteral(path));
129
+ };
130
+
131
+ exports.importStmt = importStmt;
132
+
133
+ var importAminoMsg = function importAminoMsg() {
134
+ return importStmt(['AminoMsg'], '@cosmjs/amino');
135
+ };
136
+
137
+ exports.importAminoMsg = importAminoMsg;
138
+
139
+ var getFieldDimensionality = function getFieldDimensionality(field) {
140
+ var typeName = field.type;
141
+ var isArray = typeName.endsWith('[]');
142
+ var dimensions = 0;
143
+
144
+ if (isArray) {
145
+ dimensions = typeName.match(/\[\]/g).length - 1;
146
+ typeName = typeName.replace(/\[\]/g, '');
147
+ }
148
+
149
+ return {
150
+ typeName: typeName,
151
+ dimensions: dimensions,
152
+ isArray: isArray
153
+ };
154
+ };
155
+
156
+ exports.getFieldDimensionality = getFieldDimensionality;
157
+
158
+ var memberExpressionOrIdentifier = function memberExpressionOrIdentifier(names) {
159
+ if (names.length === 1) {
160
+ return t.identifier(names[0]);
161
+ }
162
+
163
+ if (names.length === 2) {
164
+ var _names = (0, _slicedToArray2["default"])(names, 2),
165
+ b = _names[0],
166
+ a = _names[1];
167
+
168
+ return t.memberExpression(t.identifier(a), t.identifier(b));
169
+ }
170
+
171
+ var _names2 = (0, _toArray2["default"])(names),
172
+ name = _names2[0],
173
+ rest = _names2.slice(1);
174
+
175
+ return t.memberExpression(memberExpressionOrIdentifier(rest), t.identifier(name));
176
+ };
177
+
178
+ exports.memberExpressionOrIdentifier = memberExpressionOrIdentifier;
179
+
180
+ var memberExpressionOrIdentifierSnake = function memberExpressionOrIdentifierSnake(names) {
181
+ if (names.length === 1) {
182
+ return t.identifier((0, _case.snake)(names[0]));
183
+ }
184
+
185
+ if (names.length === 2) {
186
+ var _names3 = (0, _slicedToArray2["default"])(names, 2),
187
+ b = _names3[0],
188
+ a = _names3[1];
189
+
190
+ return t.memberExpression(t.identifier((0, _case.snake)(a)), t.identifier((0, _case.snake)(b)));
191
+ }
192
+
193
+ var _names4 = (0, _toArray2["default"])(names),
194
+ name = _names4[0],
195
+ rest = _names4.slice(1);
196
+
197
+ return t.memberExpression(memberExpressionOrIdentifierSnake(rest), t.identifier((0, _case.snake)(name)));
198
+ };
199
+
200
+ exports.memberExpressionOrIdentifierSnake = memberExpressionOrIdentifierSnake;
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
7
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
8
+
9
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
+
11
+ var _utils = require("./utils");
12
+
13
+ var _generator = _interopRequireDefault(require("@babel/generator"));
14
+
15
+ var t = _interopRequireWildcard(require("@babel/types"));
16
+
17
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
+
19
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
20
+
21
+ var expectCode = function expectCode(ast) {
22
+ expect((0, _generator["default"])(ast).code).toMatchSnapshot();
23
+ };
24
+
25
+ var printCode = function printCode(ast) {
26
+ console.log((0, _generator["default"])(ast).code);
27
+ };
28
+
29
+ it('top import', /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
30
+ return _regenerator["default"].wrap(function _callee$(_context) {
31
+ while (1) {
32
+ switch (_context.prev = _context.next) {
33
+ case 0:
34
+ expectCode((0, _utils.importStmt)(['CosmWasmClient', 'ExecuteResult', 'SigningCosmWasmClient'], '@cosmjs/cosmwasm-stargate'));
35
+
36
+ case 1:
37
+ case "end":
38
+ return _context.stop();
39
+ }
40
+ }
41
+ }, _callee);
42
+ })));
43
+ it('interfaces', /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
44
+ return _regenerator["default"].wrap(function _callee2$(_context2) {
45
+ while (1) {
46
+ switch (_context2.prev = _context2.next) {
47
+ case 0:
48
+ expectCode(t.program([t.exportNamedDeclaration(t.tsInterfaceDeclaration(t.identifier('SG721ReadOnlyInstance'), null, [], t.tSInterfaceBody([t.tSPropertySignature(t.identifier('contractAddress'), t.tsTypeAnnotation(t.tsStringKeyword())), // methods
49
+ t.tSPropertySignature(t.identifier('tokens'), t.tsTypeAnnotation(t.tsFunctionType(null, [(0, _utils.typedIdentifier)('owner', t.tsTypeAnnotation(t.tsStringKeyword())), (0, _utils.typedIdentifier)('startAfter', t.tsTypeAnnotation(t.tsStringKeyword()), true), (0, _utils.typedIdentifier)('limit', t.tsTypeAnnotation(t.tsStringKeyword()), true)], (0, _utils.promiseTypeAnnotation)('TokensResponse'))))]))), // extends
50
+ t.exportNamedDeclaration(t.tsInterfaceDeclaration(t.identifier('SG721Instance'), null, [t.tSExpressionWithTypeArguments(t.identifier('SG721ReadOnlyInstance'))], t.tSInterfaceBody([// contract address
51
+ t.tSPropertySignature(t.identifier('contractAddress'), t.tsTypeAnnotation(t.tsStringKeyword())), // METHOD
52
+ t.tSPropertySignature(t.identifier('mint'), t.tsTypeAnnotation(t.tsFunctionType(null, [(0, _utils.typedIdentifier)('sender', t.tsTypeAnnotation(t.tsStringKeyword())), (0, _utils.typedIdentifier)('anotherProp', t.tsTypeAnnotation(t.tsStringKeyword())), (0, _utils.typedIdentifier)('prop3', t.tsTypeAnnotation(t.tsStringKeyword()))], (0, _utils.promiseTypeAnnotation)('ExecuteResult'))))])))]));
53
+
54
+ case 1:
55
+ case "end":
56
+ return _context2.stop();
57
+ }
58
+ }
59
+ }, _callee2);
60
+ })));
61
+ it('readonly classes', /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
62
+ return _regenerator["default"].wrap(function _callee3$(_context3) {
63
+ while (1) {
64
+ switch (_context3.prev = _context3.next) {
65
+ case 0:
66
+ expectCode(t.program([t.exportNamedDeclaration((0, _utils.classDeclaration)('SG721QueryClient', [// client
67
+ (0, _utils.classProperty)('client', t.tsTypeAnnotation(t.tsTypeReference(t.identifier('CosmWasmClient')))), // contractAddress
68
+ (0, _utils.classProperty)('contractAddress', t.tsTypeAnnotation(t.tsStringKeyword())), // constructor
69
+ t.classMethod('constructor', t.identifier('constructor'), [(0, _utils.typedIdentifier)('client', t.tsTypeAnnotation(t.tsTypeReference(t.identifier('CosmWasmClient')))), (0, _utils.typedIdentifier)('contractAddress', t.tsTypeAnnotation(t.tsStringKeyword()))], t.blockStatement([// client/contract set
70
+ t.expressionStatement(t.assignmentExpression('=', t.memberExpression(t.thisExpression(), t.identifier('client')), t.identifier('client'))), t.expressionStatement(t.assignmentExpression('=', t.memberExpression(t.thisExpression(), t.identifier('contractAddress')), t.identifier('contractAddress'))), // bindings
71
+ (0, _utils.bindMethod)('approval'), (0, _utils.bindMethod)('otherProp'), (0, _utils.bindMethod)('hello'), (0, _utils.bindMethod)('mintme')])), // methods:
72
+ t.classProperty(t.identifier('approval'), (0, _utils.arrowFunctionExpression)([// props
73
+ (0, _utils.typedIdentifier)('owner', t.tsTypeAnnotation(t.tsStringKeyword())), //
74
+ (0, _utils.typedIdentifier)('spender', t.tsTypeAnnotation(t.tsStringKeyword()))], t.blockStatement([t.returnStatement(t.callExpression(t.memberExpression(t.memberExpression(t.thisExpression(), t.identifier('client')), t.identifier('queryContractSmart')), [t.memberExpression(t.thisExpression(), t.identifier('contractAddress')), t.objectExpression([// props
75
+ t.objectProperty(t.identifier('owner'), t.identifier('owner'), false, true), t.objectProperty(t.identifier('spender'), t.identifier('spender'), false, true)])]))]), t.tsTypeAnnotation(t.tsTypeReference(t.identifier('Promise'), t.tsTypeParameterInstantiation([t.tSTypeReference(t.identifier('ApprovalResponse'))]))), true))], [t.tSExpressionWithTypeArguments(t.identifier('SG721ReadOnlyInstance'))]))]));
76
+
77
+ case 1:
78
+ case "end":
79
+ return _context3.stop();
80
+ }
81
+ }
82
+ }, _callee3);
83
+ })));
84
+ it('mutation classes', /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
85
+ return _regenerator["default"].wrap(function _callee4$(_context4) {
86
+ while (1) {
87
+ switch (_context4.prev = _context4.next) {
88
+ case 0:
89
+ expectCode(t.program([t.exportNamedDeclaration((0, _utils.classDeclaration)('SG721Client', [// client
90
+ (0, _utils.classProperty)('client', t.tsTypeAnnotation(t.tsTypeReference(t.identifier('SigningCosmWasmClient')))), // contractAddress
91
+ (0, _utils.classProperty)('contractAddress', t.tsTypeAnnotation(t.tsStringKeyword())), // constructor
92
+ t.classMethod('constructor', t.identifier('constructor'), [(0, _utils.typedIdentifier)('client', t.tsTypeAnnotation(t.tsTypeReference(t.identifier('SigningCosmWasmClient')))), (0, _utils.typedIdentifier)('contractAddress', t.tsTypeAnnotation(t.tsStringKeyword()))], t.blockStatement([// super()
93
+ t.expressionStatement(t.callExpression(t["super"](), [t.identifier('client'), t.identifier('contractAddress')])), // client/contract set
94
+ t.expressionStatement(t.assignmentExpression('=', t.memberExpression(t.thisExpression(), t.identifier('client')), t.identifier('client'))), t.expressionStatement(t.assignmentExpression('=', t.memberExpression(t.thisExpression(), t.identifier('contractAddress')), t.identifier('contractAddress'))), // bindings
95
+ (0, _utils.bindMethod)('approval'), (0, _utils.bindMethod)('otherProp'), (0, _utils.bindMethod)('hello'), (0, _utils.bindMethod)('mintme')])), // methods:
96
+ t.classProperty(t.identifier('mint'), (0, _utils.arrowFunctionExpression)([// props
97
+ (0, _utils.typedIdentifier)('sender', t.tsTypeAnnotation(t.tsStringKeyword())), (0, _utils.typedIdentifier)('tokenId', t.tsTypeAnnotation(t.tsStringKeyword())), (0, _utils.typedIdentifier)('owner', t.tsTypeAnnotation(t.tsStringKeyword())), (0, _utils.typedIdentifier)('token_uri', t.tsTypeAnnotation(t.tsStringKeyword()))], t.blockStatement([t.returnStatement(t.awaitExpression(t.callExpression(t.memberExpression(t.memberExpression(t.thisExpression(), t.identifier('client')), t.identifier('execute')), [t.identifier('sender'), t.memberExpression(t.thisExpression(), t.identifier('contractAddress')), t.objectExpression([t.objectProperty(t.identifier('mint'), t.objectExpression([t.objectProperty(t.identifier('token_id'), t.identifier('tokenId')), t.objectProperty(t.identifier('owner'), t.identifier('owner')), t.objectProperty(t.identifier('token_uri'), t.identifier('token_uri')), t.objectProperty(t.identifier('expression'), t.objectExpression([]))]))]), t.stringLiteral('auto')])))]), // return type
98
+ t.tsTypeAnnotation(t.tsTypeReference(t.identifier('Promise'), t.tsTypeParameterInstantiation([t.tSTypeReference(t.identifier('ExecuteResult'))]))), true))], [t.tSExpressionWithTypeArguments(t.identifier('SG721ReadOnlyInstance'))], t.identifier('SG721QueryClient')))]));
99
+
100
+ case 1:
101
+ case "end":
102
+ return _context4.stop();
103
+ }
104
+ }
105
+ }, _callee4);
106
+ })));