@looker/sdk-codegen 21.8.1 → 21.9.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.
- package/CHANGELOG.md +128 -167
- package/README.md +0 -1
- package/lib/codeGen.d.ts +1 -1
- package/lib/codeGen.js +4 -6
- package/lib/codeGen.js.map +1 -1
- package/lib/codeGenerators.d.ts +1 -1
- package/lib/codeGenerators.js +2 -4
- package/lib/codeGenerators.js.map +1 -1
- package/lib/csharp.gen.d.ts +1 -1
- package/lib/csharp.gen.js +2 -2
- package/lib/csharp.gen.js.map +1 -1
- package/lib/declarationInfo.d.ts +3 -3
- package/lib/declarationInfo.js +1 -2
- package/lib/declarationInfo.js.map +1 -1
- package/lib/esm/codeGen.js +14 -23
- package/lib/esm/codeGen.js.map +1 -1
- package/lib/esm/codeGenerators.js +17 -28
- package/lib/esm/codeGenerators.js.map +1 -1
- package/lib/esm/csharp.gen.js +11 -18
- package/lib/esm/csharp.gen.js.map +1 -1
- package/lib/esm/declarationInfo.js +3 -10
- package/lib/esm/declarationInfo.js.map +1 -1
- package/lib/esm/exampleInfo.js +9 -24
- package/lib/esm/exampleInfo.js.map +1 -1
- package/lib/esm/go.gen.js +11 -18
- package/lib/esm/go.gen.js.map +1 -1
- package/lib/esm/index.js +13 -148
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/kotlin.gen.js +11 -18
- package/lib/esm/kotlin.gen.js.map +1 -1
- package/lib/esm/pseudo.gen.js +6 -13
- package/lib/esm/pseudo.gen.js.map +1 -1
- package/lib/esm/python.gen.js +15 -19
- package/lib/esm/python.gen.js.map +1 -1
- package/lib/esm/sdkModels.js +52 -96
- package/lib/esm/sdkModels.js.map +1 -1
- package/lib/esm/specConverter.js +29 -57
- package/lib/esm/specConverter.js.map +1 -1
- package/lib/esm/specDiff.js +17 -36
- package/lib/esm/specDiff.js.map +1 -1
- package/lib/esm/swift.gen.js +17 -24
- package/lib/esm/swift.gen.js.map +1 -1
- package/lib/esm/testUtils/index.js +1 -16
- package/lib/esm/testUtils/index.js.map +1 -1
- package/lib/esm/testUtils/testUtils.js +12 -25
- package/lib/esm/testUtils/testUtils.js.map +1 -1
- package/lib/esm/typescript.gen.js +16 -23
- package/lib/esm/typescript.gen.js.map +1 -1
- package/lib/exampleInfo.d.ts +6 -6
- package/lib/exampleInfo.js +1 -2
- package/lib/exampleInfo.js.map +1 -1
- package/lib/go.gen.js +3 -3
- package/lib/go.gen.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/kotlin.gen.d.ts +1 -1
- package/lib/kotlin.gen.js +2 -2
- package/lib/kotlin.gen.js.map +1 -1
- package/lib/pseudo.gen.js +2 -2
- package/lib/pseudo.gen.js.map +1 -1
- package/lib/python.gen.js +6 -3
- package/lib/python.gen.js.map +1 -1
- package/lib/sdkModels.d.ts +13 -13
- package/lib/sdkModels.js +15 -25
- package/lib/sdkModels.js.map +1 -1
- package/lib/specConverter.d.ts +6 -9
- package/lib/specConverter.js +12 -20
- package/lib/specConverter.js.map +1 -1
- package/lib/specDiff.d.ts +4 -4
- package/lib/specDiff.js +4 -8
- package/lib/specDiff.js.map +1 -1
- package/lib/swift.gen.js +2 -2
- package/lib/swift.gen.js.map +1 -1
- package/lib/testUtils/index.js.map +1 -1
- package/lib/testUtils/testUtils.js +4 -6
- package/lib/testUtils/testUtils.js.map +1 -1
- package/lib/typescript.gen.js +4 -4
- package/lib/typescript.gen.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -7,397 +7,358 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
### Dependencies
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
- The following workspace dependencies were updated
|
|
11
|
+
- dependencies
|
|
12
|
+
- @looker/sdk-rtl bumped from ^21.6.0 to ^21.6.1
|
|
13
13
|
|
|
14
|
-
## [21.
|
|
14
|
+
## [21.9.0](https://github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.8.2...sdk-codegen-v21.9.0) (2024-08-12)
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
### Features
|
|
18
18
|
|
|
19
|
-
*
|
|
19
|
+
* update Go SDK to accept auth session interface ([#1488](https://github.com/looker-open-source/sdk-codegen/issues/1488)) ([aee5bf3](https://github.com/looker-open-source/sdk-codegen/commit/aee5bf3133fbca988b57a31ac9c7d82fa58d5d9b))
|
|
20
|
+
|
|
21
|
+
## [21.8.2](https://github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.8.1...sdk-codegen-v21.8.2) (2023-09-21)
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
- add mdls import to makeTheCall when mdls is used ([#1355](https://github.com/looker-open-source/sdk-codegen/issues/1355)) ([4f5ed2b](https://github.com/looker-open-source/sdk-codegen/commit/4f5ed2be97cc1462b980c20c2e9140cee087865f))
|
|
26
|
+
|
|
27
|
+
## [21.8.0](https://github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.7.4...sdk-codegen-v21.8.0) (2023-02-22)
|
|
20
28
|
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
- keep all body parameters toggle in API Explorer requests ([#1245](https://github.com/looker-open-source/sdk-codegen/issues/1245)) ([043ed3f](https://github.com/looker-open-source/sdk-codegen/commit/043ed3ff12cba4f821604b5b668d7301ed4aa6d1))
|
|
21
32
|
|
|
22
33
|
### Dependencies
|
|
23
34
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
35
|
+
- The following workspace dependencies were updated
|
|
36
|
+
- dependencies
|
|
37
|
+
- @looker/sdk-rtl bumped from ^21.5.0 to ^21.6.0
|
|
27
38
|
|
|
28
39
|
### [21.7.4](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.7.3...sdk-codegen-v21.7.4) (2022-12-09)
|
|
29
40
|
|
|
30
|
-
|
|
31
41
|
### Dependencies
|
|
32
42
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
43
|
+
- The following workspace dependencies were updated
|
|
44
|
+
- dependencies
|
|
45
|
+
- @looker/sdk-rtl bumped from ^21.4.0 to ^21.5.0
|
|
36
46
|
|
|
37
47
|
### [21.7.3](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.7.2...sdk-codegen-v21.7.3) (2022-11-10)
|
|
38
48
|
|
|
39
|
-
|
|
40
49
|
### Bug Fixes
|
|
41
50
|
|
|
42
|
-
|
|
51
|
+
- spec parsing unit tests ([#1207](https://www.github.com/looker-open-source/sdk-codegen/issues/1207)) ([4e86291](https://www.github.com/looker-open-source/sdk-codegen/commit/4e862913b555c6294798d11eaa012b7f72736ecb))
|
|
43
52
|
|
|
44
53
|
### [21.7.2](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.7.1...sdk-codegen-v21.7.2) (2022-10-17)
|
|
45
54
|
|
|
46
|
-
|
|
47
55
|
### Bug Fixes
|
|
48
56
|
|
|
49
|
-
|
|
57
|
+
- various path navigation issues ([#1190](https://www.github.com/looker-open-source/sdk-codegen/issues/1190)) ([e73da3d](https://www.github.com/looker-open-source/sdk-codegen/commit/e73da3d39960cb528947c21202318b84d586ce1f))
|
|
50
58
|
|
|
51
59
|
### [21.7.1](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.7.0...sdk-codegen-v21.7.1) (2022-09-21)
|
|
52
60
|
|
|
53
|
-
|
|
54
61
|
### Dependencies
|
|
55
62
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
63
|
+
- The following workspace dependencies were updated
|
|
64
|
+
- dependencies
|
|
65
|
+
- @looker/sdk-rtl bumped from ^21.3.4 to ^21.4.0
|
|
59
66
|
|
|
60
67
|
## [21.7.0](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.6.0...sdk-codegen-v21.7.0) (2022-07-29)
|
|
61
68
|
|
|
62
|
-
|
|
63
69
|
### Features
|
|
64
70
|
|
|
65
|
-
|
|
71
|
+
- keep SDK request interfaces distinct ([#1125](https://www.github.com/looker-open-source/sdk-codegen/issues/1125)) ([50e925c](https://www.github.com/looker-open-source/sdk-codegen/commit/50e925c90eb3c5ffefc8e8535131471e2f2d0334))
|
|
66
72
|
|
|
67
73
|
## [21.6.0](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.5.2...sdk-codegen-v21.6.0) (2022-07-07)
|
|
68
74
|
|
|
69
|
-
|
|
70
75
|
### Features
|
|
71
76
|
|
|
72
|
-
|
|
73
|
-
|
|
77
|
+
- generate SDK 22.6 ([#1102](https://www.github.com/looker-open-source/sdk-codegen/issues/1102)) ([2162860](https://www.github.com/looker-open-source/sdk-codegen/commit/2162860f0bf292bce0a79f8115f7c9fc5628057f))
|
|
74
78
|
|
|
75
79
|
### Bug Fixes
|
|
76
80
|
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
- remove generated files from examples index ([#1076](https://www.github.com/looker-open-source/sdk-codegen/issues/1076)) ([d75bce8](https://www.github.com/looker-open-source/sdk-codegen/commit/d75bce8dc25d41fd6bc5e2e513782eaa6009fd10))
|
|
79
82
|
|
|
80
83
|
### Dependencies
|
|
81
84
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
- The following workspace dependencies were updated
|
|
86
|
+
- dependencies
|
|
87
|
+
- @looker/sdk-rtl bumped from ^21.3.3 to ^21.3.4
|
|
85
88
|
|
|
86
89
|
### [21.5.2](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.5.1...sdk-codegen-v21.5.2) (2022-04-07)
|
|
87
90
|
|
|
88
|
-
|
|
89
91
|
### Dependencies
|
|
90
92
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
- The following workspace dependencies were updated
|
|
94
|
+
- dependencies
|
|
95
|
+
- @looker/sdk-rtl bumped from ^21.3.2 to ^21.3.3
|
|
94
96
|
|
|
95
97
|
## [21.5.0](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.4.0...sdk-codegen-v21.5.0) (2022-03-04)
|
|
96
98
|
|
|
97
|
-
|
|
98
99
|
### Features
|
|
99
100
|
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
- generate code deprecation tags ([#1006](https://www.github.com/looker-open-source/sdk-codegen/issues/1006)) ([afd4b66](https://www.github.com/looker-open-source/sdk-codegen/commit/afd4b66ffbd11cdacd19fe1353c9e5bf381fe932))
|
|
102
102
|
|
|
103
103
|
### Bug Fixes
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
- remove python version upper bound ([#1015](https://www.github.com/looker-open-source/sdk-codegen/issues/1015)) ([b1650a1](https://www.github.com/looker-open-source/sdk-codegen/commit/b1650a1a8a56c52a7a06ca5c9cef02300af7289e))
|
|
106
106
|
|
|
107
107
|
## [21.4.0](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.3.1...sdk-codegen-v21.4.0) (2022-02-14)
|
|
108
108
|
|
|
109
|
-
|
|
110
109
|
### ⚠ BREAKING CHANGES
|
|
111
110
|
|
|
112
|
-
|
|
111
|
+
- SDK support for 22.0
|
|
113
112
|
|
|
114
113
|
### Features
|
|
115
114
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
- fuzzy JSON value handling for the Swift SDK ([#961](https://www.github.com/looker-open-source/sdk-codegen/issues/961)) ([0b6b696](https://www.github.com/looker-open-source/sdk-codegen/commit/0b6b696742d67d1abc0cf69dfbf820f5a28d0f86))
|
|
116
|
+
- SDK build for 22.0. ([#959](https://www.github.com/looker-open-source/sdk-codegen/issues/959)) ([de651b3](https://www.github.com/looker-open-source/sdk-codegen/commit/de651b373978fd3689429c0cbdb364a2820fe211))
|
|
117
|
+
- SDK support for 22.0 ([5f9930c](https://www.github.com/looker-open-source/sdk-codegen/commit/5f9930c0b0f7bde59f0b9b47f882ae1f3ff9e490))
|
|
120
118
|
|
|
121
119
|
### Bug Fixes
|
|
122
120
|
|
|
123
|
-
|
|
121
|
+
- Update go codegen to set object as interface{} ([#980](https://www.github.com/looker-open-source/sdk-codegen/issues/980)) ([007989d](https://www.github.com/looker-open-source/sdk-codegen/commit/007989d6c438fa42ec261f5b216f2d933b489742))
|
|
124
122
|
|
|
125
123
|
### [21.3.1](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.2.0...sdk-codegen-v21.3.1) (2022-01-27)
|
|
126
124
|
|
|
127
|
-
|
|
128
125
|
### Features
|
|
129
126
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
127
|
+
- add http method to IRawResponse ([#925](https://www.github.com/looker-open-source/sdk-codegen/issues/925)) ([25cef47](https://www.github.com/looker-open-source/sdk-codegen/commit/25cef47fa61a5f15565560b48f5e0c45a0cd9b44))
|
|
128
|
+
- support string or numeric JSON format for numeric IDs in Swift ([#937](https://www.github.com/looker-open-source/sdk-codegen/issues/937)) ([1487d8a](https://www.github.com/looker-open-source/sdk-codegen/commit/1487d8a38432cef2e994d14001df18659522ca90))
|
|
133
129
|
|
|
134
130
|
### Bug Fixes
|
|
135
131
|
|
|
136
|
-
|
|
132
|
+
- enum naming and registration ([#918](https://www.github.com/looker-open-source/sdk-codegen/issues/918)) ([9d4a6cb](https://www.github.com/looker-open-source/sdk-codegen/commit/9d4a6cbfac5defad3a35389e2d46947d2135d349))
|
|
137
133
|
|
|
138
134
|
### [21.3.1](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.3.0...sdk-codegen-v21.3.1) (2021-12-20)
|
|
139
135
|
|
|
140
|
-
|
|
141
136
|
### Dependencies
|
|
142
137
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
138
|
+
- The following workspace dependencies were updated
|
|
139
|
+
- dependencies
|
|
140
|
+
- @looker/sdk-rtl bumped from ^21.3.0 to ^21.3.1
|
|
146
141
|
|
|
147
142
|
## [21.3.0](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.2.1...sdk-codegen-v21.3.0) (2021-12-16)
|
|
148
143
|
|
|
149
|
-
|
|
150
144
|
### Features
|
|
151
145
|
|
|
152
|
-
|
|
153
|
-
|
|
146
|
+
- add http method to IRawResponse ([#925](https://www.github.com/looker-open-source/sdk-codegen/issues/925)) ([25cef47](https://www.github.com/looker-open-source/sdk-codegen/commit/25cef47fa61a5f15565560b48f5e0c45a0cd9b44))
|
|
154
147
|
|
|
155
148
|
### Dependencies
|
|
156
149
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
150
|
+
- The following workspace dependencies were updated
|
|
151
|
+
- dependencies
|
|
152
|
+
- @looker/sdk-rtl bumped from ^21.2.0 to ^21.3.0
|
|
160
153
|
|
|
161
154
|
### [21.2.1](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.2.0...sdk-codegen-v21.2.1) (2021-12-06)
|
|
162
155
|
|
|
163
|
-
|
|
164
156
|
### Bug Fixes
|
|
165
157
|
|
|
166
|
-
|
|
158
|
+
- enum naming and registration ([#918](https://www.github.com/looker-open-source/sdk-codegen/issues/918)) ([9d4a6cb](https://www.github.com/looker-open-source/sdk-codegen/commit/9d4a6cbfac5defad3a35389e2d46947d2135d349))
|
|
167
159
|
|
|
168
160
|
## [21.2.0](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.1.1...sdk-codegen-v21.2.0) (2021-11-10)
|
|
169
161
|
|
|
170
|
-
|
|
171
162
|
### Features
|
|
172
163
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
164
|
+
- create @looker/extension-utils ([#886](https://www.github.com/looker-open-source/sdk-codegen/issues/886)) ([9d1720d](https://www.github.com/looker-open-source/sdk-codegen/commit/9d1720d9a4cec00c45195dd9c716d9a2a929264f))
|
|
165
|
+
- Looker 21.20 bindings ([#899](https://www.github.com/looker-open-source/sdk-codegen/issues/899)) ([304d0d0](https://www.github.com/looker-open-source/sdk-codegen/commit/304d0d0688349efad0499d37609605e14df7e97d))
|
|
176
166
|
|
|
177
167
|
### Dependencies
|
|
178
168
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
169
|
+
- The following workspace dependencies were updated
|
|
170
|
+
- dependencies
|
|
171
|
+
- @looker/sdk-rtl bumped from ^21.1.1 to ^21.2.0
|
|
182
172
|
|
|
183
173
|
### [21.1.1](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.1.0...sdk-codegen-v21.1.1) (2021-10-27)
|
|
184
174
|
|
|
185
|
-
|
|
186
175
|
### Bug Fixes
|
|
187
176
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
177
|
+
- another TS SDK error handling tweak ([#873](https://www.github.com/looker-open-source/sdk-codegen/issues/873)) ([1c04952](https://www.github.com/looker-open-source/sdk-codegen/commit/1c049527e22926fa7fe0ae011ab4595520005e2f))
|
|
178
|
+
- do not "reserve" type names ending in [] ([#876](https://www.github.com/looker-open-source/sdk-codegen/issues/876)) ([bab56ef](https://www.github.com/looker-open-source/sdk-codegen/commit/bab56ef1c60389d04e8a1e4973afde0d0b75d5ec))
|
|
191
179
|
|
|
192
180
|
### Dependencies
|
|
193
181
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
182
|
+
- The following workspace dependencies were updated
|
|
183
|
+
- dependencies
|
|
184
|
+
- @looker/sdk-rtl bumped from ^21.1.0 to ^21.1.1
|
|
197
185
|
|
|
198
186
|
## [21.1.0](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.0.25...sdk-codegen-v21.1.0) (2021-10-19)
|
|
199
187
|
|
|
200
|
-
|
|
201
188
|
### Features
|
|
202
189
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
190
|
+
- closest path match for API Explorer ([#811](https://www.github.com/looker-open-source/sdk-codegen/issues/811)) ([45fd26f](https://www.github.com/looker-open-source/sdk-codegen/commit/45fd26fb0f325fa90edfec72f835ed3a79b9afeb))
|
|
191
|
+
- makeTheCall for Kotlin and type tagging ([#833](https://www.github.com/looker-open-source/sdk-codegen/issues/833)) ([2ca950e](https://www.github.com/looker-open-source/sdk-codegen/commit/2ca950e16c9c172d3e67de58261df16e424efaa3))
|
|
192
|
+
- support either string or numeric JSON values with AnyString ([#848](https://www.github.com/looker-open-source/sdk-codegen/issues/848)) ([9b428f5](https://www.github.com/looker-open-source/sdk-codegen/commit/9b428f5dc871477402f1683cffaadfad55501878))
|
|
193
|
+
- Update Kotlin SDK to use Gson instead of Jackson ([#836](https://www.github.com/looker-open-source/sdk-codegen/issues/836)) ([4d1f789](https://www.github.com/looker-open-source/sdk-codegen/commit/4d1f789fa3b97b0808f06d5d547c96de3ca890ff))
|
|
208
194
|
|
|
209
195
|
### Bug Fixes
|
|
210
196
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
197
|
+
- intrinsic type params are not Partial<T> ([#819](https://www.github.com/looker-open-source/sdk-codegen/issues/819)) ([4b31490](https://www.github.com/looker-open-source/sdk-codegen/commit/4b31490f7ce5c9593854e56518245c5399ea9548))
|
|
198
|
+
- Property names with special characters in Kotlin SDK ([#838](https://www.github.com/looker-open-source/sdk-codegen/issues/838)) ([40b6b24](https://www.github.com/looker-open-source/sdk-codegen/commit/40b6b24bfedf8ba16b5dbae2abbbdce2f73c1ffd))
|
|
199
|
+
- request content initialization and filtering for RunIt requests ([#852](https://www.github.com/looker-open-source/sdk-codegen/issues/852)) ([474ee93](https://www.github.com/looker-open-source/sdk-codegen/commit/474ee9365dafe6549826a9f627ac0a79dc0e9a56))
|
|
200
|
+
- stack overflow for type tagging during codegen ([#845](https://www.github.com/looker-open-source/sdk-codegen/issues/845)) ([4ece1b3](https://www.github.com/looker-open-source/sdk-codegen/commit/4ece1b374d9d4b73c1f3fd0512ab54da209c6be6))
|
|
216
201
|
|
|
217
202
|
### Dependencies
|
|
218
203
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
204
|
+
- The following workspace dependencies were updated
|
|
205
|
+
- dependencies
|
|
206
|
+
- @looker/sdk-rtl bumped from ^21.0.20 to ^21.1.0
|
|
222
207
|
|
|
223
208
|
### [21.0.25](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.0.24...sdk-codegen-v21.0.25) (2021-09-01)
|
|
224
209
|
|
|
225
|
-
|
|
226
210
|
### Bug Fixes
|
|
227
211
|
|
|
228
|
-
|
|
229
|
-
|
|
212
|
+
- spec refresh ([#801](https://www.github.com/looker-open-source/sdk-codegen/issues/801)) ([a10245a](https://www.github.com/looker-open-source/sdk-codegen/commit/a10245aa7ea180670d9d8219810aab88eb50854d))
|
|
230
213
|
|
|
231
214
|
### Dependencies
|
|
232
215
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
216
|
+
- The following workspace dependencies were updated
|
|
217
|
+
- dependencies
|
|
218
|
+
- @looker/sdk-rtl bumped from ^21.0.19 to ^21.0.20
|
|
236
219
|
|
|
237
220
|
### [21.0.24](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.0.23...sdk-codegen-v21.0.24) (2021-08-11)
|
|
238
221
|
|
|
239
|
-
|
|
240
222
|
### Features
|
|
241
223
|
|
|
242
|
-
|
|
224
|
+
- fetch API specifications for stand-alone API Explorer ([#789](https://www.github.com/looker-open-source/sdk-codegen/issues/789)) ([f7be1fb](https://www.github.com/looker-open-source/sdk-codegen/commit/f7be1fb589570137c5ab39304910c57f721de8fb))
|
|
243
225
|
|
|
244
226
|
### [21.0.23](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.0.22...sdk-codegen-v21.0.23) (2021-07-30)
|
|
245
227
|
|
|
246
|
-
|
|
247
228
|
### Bug Fixes
|
|
248
229
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
230
|
+
- improved writeable type support ([#766](https://www.github.com/looker-open-source/sdk-codegen/issues/766)) ([be91bd8](https://www.github.com/looker-open-source/sdk-codegen/commit/be91bd8e772f9a64c47486b317f1ac1f6ef14327))
|
|
231
|
+
- remove unused net/url import from go ([#767](https://www.github.com/looker-open-source/sdk-codegen/issues/767)) ([35d912c](https://www.github.com/looker-open-source/sdk-codegen/commit/35d912c1e31e5817a2b6a81084753a66a4860338)), closes [#765](https://www.github.com/looker-open-source/sdk-codegen/issues/765)
|
|
252
232
|
|
|
253
233
|
### Dependencies
|
|
254
234
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
235
|
+
- The following workspace dependencies were updated
|
|
236
|
+
- dependencies
|
|
237
|
+
- @looker/sdk-rtl bumped from ^21.0.18 to ^21.0.19
|
|
258
238
|
|
|
259
239
|
### [21.0.22](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.0.21...sdk-codegen-v21.0.22) (2021-07-09)
|
|
260
240
|
|
|
261
|
-
|
|
262
241
|
### Dependencies
|
|
263
242
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
243
|
+
- The following workspace dependencies were updated
|
|
244
|
+
- dependencies
|
|
245
|
+
- @looker/sdk-rtl bumped from ^21.0.17 to ^21.0.18
|
|
267
246
|
|
|
268
247
|
### [21.0.21](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.0.20...sdk-codegen-v21.0.21) (2021-07-08)
|
|
269
248
|
|
|
270
|
-
|
|
271
249
|
### Dependencies
|
|
272
250
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
251
|
+
- The following workspace dependencies were updated
|
|
252
|
+
- dependencies
|
|
253
|
+
- @looker/sdk-rtl bumped from ^21.0.16 to ^21.0.17
|
|
276
254
|
|
|
277
255
|
### [21.0.20](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.0.19...sdk-codegen-v21.0.20) (2021-07-02)
|
|
278
256
|
|
|
279
|
-
|
|
280
257
|
### Bug Fixes
|
|
281
258
|
|
|
282
|
-
|
|
283
|
-
|
|
259
|
+
- python remove runtime asserts ([#703](https://www.github.com/looker-open-source/sdk-codegen/issues/703)) ([9b963c3](https://www.github.com/looker-open-source/sdk-codegen/commit/9b963c3367905f907e7867df1446f56e18284c3b)), closes [#695](https://www.github.com/looker-open-source/sdk-codegen/issues/695)
|
|
284
260
|
|
|
285
261
|
### Dependencies
|
|
286
262
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
263
|
+
- The following workspace dependencies were updated
|
|
264
|
+
- dependencies
|
|
265
|
+
- @looker/sdk-rtl bumped from ^21.0.15 to ^21.0.16
|
|
290
266
|
|
|
291
267
|
### [21.0.19](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.0.18...sdk-codegen-v21.0.19) (2021-07-01)
|
|
292
268
|
|
|
293
|
-
|
|
294
269
|
### Dependencies
|
|
295
270
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
271
|
+
- The following workspace dependencies were updated
|
|
272
|
+
- dependencies
|
|
273
|
+
- @looker/sdk-rtl bumped from ^21.0.14 to ^21.0.15
|
|
299
274
|
|
|
300
275
|
### [21.0.18](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.0.17...sdk-codegen-v21.0.18) (2021-06-30)
|
|
301
276
|
|
|
302
|
-
|
|
303
277
|
### Dependencies
|
|
304
278
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
279
|
+
- The following workspace dependencies were updated
|
|
280
|
+
- dependencies
|
|
281
|
+
- @looker/sdk-rtl bumped from ^21.0.13 to ^21.0.14
|
|
308
282
|
|
|
309
283
|
### [21.0.17](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.0.16...sdk-codegen-v21.0.17) (2021-06-16)
|
|
310
284
|
|
|
311
|
-
|
|
312
285
|
### Features
|
|
313
286
|
|
|
314
|
-
|
|
315
|
-
|
|
287
|
+
- reduce size of apix bundle ([#676](https://www.github.com/looker-open-source/sdk-codegen/issues/676)) ([0d74f6a](https://www.github.com/looker-open-source/sdk-codegen/commit/0d74f6a7814b509416a9d2558c16439a4859b543))
|
|
288
|
+
- two-way type references ([#684](https://www.github.com/looker-open-source/sdk-codegen/issues/684)) ([fbc0565](https://www.github.com/looker-open-source/sdk-codegen/commit/fbc0565c4c8fe3d1488bd246e244bed56f1412a9))
|
|
316
289
|
|
|
317
290
|
### [21.0.16](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.0.15...sdk-codegen-v21.0.16) (2021-05-05)
|
|
318
291
|
|
|
319
|
-
|
|
320
292
|
### Bug Fixes
|
|
321
293
|
|
|
322
|
-
|
|
323
|
-
|
|
294
|
+
- use "TypeScript" and "JavaScript" everywhere ([#644](https://www.github.com/looker-open-source/sdk-codegen/issues/644)) ([c15031c](https://www.github.com/looker-open-source/sdk-codegen/commit/c15031cee189556adbd9e18641e7c992e86e3611))
|
|
324
295
|
|
|
325
296
|
### Dependencies
|
|
326
297
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
298
|
+
- The following workspace dependencies were updated
|
|
299
|
+
- dependencies
|
|
300
|
+
- @looker/sdk-rtl bumped from ^21.0.12 to ^21.0.13
|
|
330
301
|
|
|
331
302
|
### [21.0.15](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.0.14...sdk-codegen-v21.0.15) (2021-04-27)
|
|
332
303
|
|
|
333
|
-
|
|
334
304
|
### Bug Fixes
|
|
335
305
|
|
|
336
|
-
|
|
306
|
+
- added a missing "import type" statement to the TS SDK ([#632](https://www.github.com/looker-open-source/sdk-codegen/issues/632)) ([59c0f3d](https://www.github.com/looker-open-source/sdk-codegen/commit/59c0f3d418ca557c65e5690435ee2eca96c5231d))
|
|
337
307
|
|
|
338
308
|
### [21.0.14](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.0.13...sdk-codegen-v21.0.14) (2021-04-26)
|
|
339
309
|
|
|
340
|
-
|
|
341
310
|
### Features
|
|
342
311
|
|
|
343
|
-
|
|
312
|
+
- add noComment toggle to code generators ([#627](https://www.github.com/looker-open-source/sdk-codegen/issues/627)) ([90bbecb](https://www.github.com/looker-open-source/sdk-codegen/commit/90bbecbeb31c66bda31f6d14abcc50288e6d7ea1)), closes [#626](https://www.github.com/looker-open-source/sdk-codegen/issues/626)
|
|
344
313
|
|
|
345
314
|
### [21.0.13](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.0.12...sdk-codegen-v21.0.13) (2021-04-21)
|
|
346
315
|
|
|
347
|
-
|
|
348
316
|
### Features
|
|
349
317
|
|
|
350
|
-
|
|
351
|
-
|
|
318
|
+
- adds 'SDK Examples' data table ([#602](https://www.github.com/looker-open-source/sdk-codegen/issues/602)) ([3678c96](https://www.github.com/looker-open-source/sdk-codegen/commit/3678c96cc7c2edadd00013b66711c917a62d1000))
|
|
352
319
|
|
|
353
320
|
### Bug Fixes
|
|
354
321
|
|
|
355
|
-
|
|
322
|
+
- updated TypeScript, C#, Go language names in codeGenerators.ts ([#610](https://www.github.com/looker-open-source/sdk-codegen/issues/610)) ([13fb42b](https://www.github.com/looker-open-source/sdk-codegen/commit/13fb42b6bfa651a137e75b04fc6ee00620705ede))
|
|
356
323
|
|
|
357
324
|
### [21.0.12](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.0.11...sdk-codegen-v21.0.12) (2021-04-15)
|
|
358
325
|
|
|
359
|
-
|
|
360
326
|
### Features
|
|
361
327
|
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
328
|
+
- add source declaration links to API Explorer ([#578](https://www.github.com/looker-open-source/sdk-codegen/issues/578)) ([ce0e588](https://www.github.com/looker-open-source/sdk-codegen/commit/ce0e588787bdbc2e8ca4aadd44c31dc3ba1a0ef1))
|
|
329
|
+
- TypeScript SDK tree-shaking support ([#580](https://www.github.com/looker-open-source/sdk-codegen/issues/580)) ([8b7f2f0](https://www.github.com/looker-open-source/sdk-codegen/commit/8b7f2f00ab1a765a04bd460a1ca88e9b7bd66a98))
|
|
365
330
|
|
|
366
331
|
### Bug Fixes
|
|
367
332
|
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
333
|
+
- add missing bumper method to ICodeGen ([#575](https://www.github.com/looker-open-source/sdk-codegen/issues/575)) ([2a87467](https://www.github.com/looker-open-source/sdk-codegen/commit/2a87467ae9297d062257eaced6ebd09cd6d78856))
|
|
334
|
+
- add warning about python sdk login_user breaking change in 21.4.0 ([#579](https://www.github.com/looker-open-source/sdk-codegen/issues/579)) ([c74d447](https://www.github.com/looker-open-source/sdk-codegen/commit/c74d447e53d81c84d2182960f00ad2d3191b9cef))
|
|
335
|
+
- **ApiExplorer:** Added support for Golang syntax highlighting ([#563](https://www.github.com/looker-open-source/sdk-codegen/issues/563)) ([e2ae33e](https://www.github.com/looker-open-source/sdk-codegen/commit/e2ae33eb1d63b0f8d9987bf86bbed64641d4bea3))
|
|
336
|
+
- recursive search of direct type references ([#591](https://www.github.com/looker-open-source/sdk-codegen/issues/591)) ([9af2e37](https://www.github.com/looker-open-source/sdk-codegen/commit/9af2e3755fb4f7f987cc6980ed57e15f504295ba))
|
|
373
337
|
|
|
374
338
|
### Dependencies
|
|
375
339
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
340
|
+
- The following workspace dependencies were updated
|
|
341
|
+
- dependencies
|
|
342
|
+
- @looker/sdk-rtl bumped from ^21.0.11 to ^21.0.12
|
|
379
343
|
|
|
380
344
|
### [21.0.11](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.0.10...sdk-codegen-v21.0.11) (2021-04-02)
|
|
381
345
|
|
|
382
|
-
|
|
383
346
|
### Features
|
|
384
347
|
|
|
385
|
-
|
|
386
|
-
|
|
348
|
+
- Added --versions option to the code generator ([#514](https://www.github.com/looker-open-source/sdk-codegen/issues/514)) ([ee6f3e8](https://www.github.com/looker-open-source/sdk-codegen/commit/ee6f3e8f55e300df1a75c9be89b47f067bc08dee))
|
|
387
349
|
|
|
388
350
|
### Bug Fixes
|
|
389
351
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
352
|
+
- legacy generator was broken ([#540](https://www.github.com/looker-open-source/sdk-codegen/issues/540)) ([212cfce](https://www.github.com/looker-open-source/sdk-codegen/commit/212cfce4745ea663322b2338d91315cefec451a9))
|
|
353
|
+
- python sdk login, login_user, logout methods ([#545](https://www.github.com/looker-open-source/sdk-codegen/issues/545)) ([e55086c](https://www.github.com/looker-open-source/sdk-codegen/commit/e55086c81401092e8dbd93e273ba101e2e3efe95))
|
|
354
|
+
- TypeScript SDK generator import logic ([#547](https://www.github.com/looker-open-source/sdk-codegen/issues/547)) ([c5aa033](https://www.github.com/looker-open-source/sdk-codegen/commit/c5aa033c749a2db8a0f98d5b8f49dc287fad06a2))
|
|
394
355
|
|
|
395
356
|
### Dependencies
|
|
396
357
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
358
|
+
- The following workspace dependencies were updated
|
|
359
|
+
- dependencies
|
|
360
|
+
- @looker/sdk-codegen-utils bumped from ^21.0.10 to ^21.0.11
|
|
361
|
+
- @looker/sdk-rtl bumped from ^21.0.10 to ^21.0.11
|
|
401
362
|
|
|
402
363
|
## [0.3.5-alpha.5]
|
|
403
364
|
|
package/README.md
CHANGED
package/lib/codeGen.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface IVersionInfo {
|
|
|
6
6
|
spec: SpecItem;
|
|
7
7
|
}
|
|
8
8
|
export declare const trimInputs: (inputs: any, keepBody?: boolean, depth?: number) => any;
|
|
9
|
-
export
|
|
9
|
+
export type CodeAssignment = (indent: string, value: any) => string;
|
|
10
10
|
export interface IMappedType {
|
|
11
11
|
name: string;
|
|
12
12
|
default: string;
|
package/lib/codeGen.js
CHANGED
|
@@ -7,9 +7,9 @@ exports.trimInputs = exports.commentBlock = exports.CodeGen = void 0;
|
|
|
7
7
|
var _sdkRtl = require("@looker/sdk-rtl");
|
|
8
8
|
var _sdkModels = require("./sdkModels");
|
|
9
9
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
|
-
function _toPropertyKey(
|
|
11
|
-
function _toPrimitive(
|
|
12
|
-
var commentBlock = function commentBlock(text) {
|
|
10
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
11
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
12
|
+
var commentBlock = exports.commentBlock = function commentBlock(text) {
|
|
13
13
|
var indent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
14
14
|
var commentStr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '// ';
|
|
15
15
|
if (!text || !text.trim()) return '';
|
|
@@ -17,8 +17,7 @@ var commentBlock = function commentBlock(text) {
|
|
|
17
17
|
var lines = text.split('\n').map(x => "".concat(indentation).concat(x).trimRight());
|
|
18
18
|
return lines.join('\n');
|
|
19
19
|
};
|
|
20
|
-
exports.
|
|
21
|
-
var trimInputs = function trimInputs(inputs) {
|
|
20
|
+
var trimInputs = exports.trimInputs = function trimInputs(inputs) {
|
|
22
21
|
var keepBody = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
23
22
|
var depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
24
23
|
function isEmpty(value, depth) {
|
|
@@ -57,7 +56,6 @@ var trimInputs = function trimInputs(inputs) {
|
|
|
57
56
|
}
|
|
58
57
|
return result;
|
|
59
58
|
};
|
|
60
|
-
exports.trimInputs = trimInputs;
|
|
61
59
|
class CodeGen {
|
|
62
60
|
constructor(api, versions) {
|
|
63
61
|
this.api = api;
|