@looker/sdk-codegen 21.8.2 → 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 +124 -170
- 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 +12 -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 +3 -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,404 +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
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
15
18
|
|
|
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)
|
|
16
22
|
|
|
17
23
|
### Bug Fixes
|
|
18
24
|
|
|
19
|
-
|
|
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))
|
|
20
26
|
|
|
21
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)
|
|
22
28
|
|
|
23
|
-
|
|
24
29
|
### Features
|
|
25
30
|
|
|
26
|
-
|
|
27
|
-
|
|
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))
|
|
28
32
|
|
|
29
33
|
### Dependencies
|
|
30
34
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
- The following workspace dependencies were updated
|
|
36
|
+
- dependencies
|
|
37
|
+
- @looker/sdk-rtl bumped from ^21.5.0 to ^21.6.0
|
|
34
38
|
|
|
35
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)
|
|
36
40
|
|
|
37
|
-
|
|
38
41
|
### Dependencies
|
|
39
42
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
- The following workspace dependencies were updated
|
|
44
|
+
- dependencies
|
|
45
|
+
- @looker/sdk-rtl bumped from ^21.4.0 to ^21.5.0
|
|
43
46
|
|
|
44
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)
|
|
45
48
|
|
|
46
|
-
|
|
47
49
|
### Bug Fixes
|
|
48
50
|
|
|
49
|
-
|
|
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))
|
|
50
52
|
|
|
51
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)
|
|
52
54
|
|
|
53
|
-
|
|
54
55
|
### Bug Fixes
|
|
55
56
|
|
|
56
|
-
|
|
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))
|
|
57
58
|
|
|
58
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)
|
|
59
60
|
|
|
60
|
-
|
|
61
61
|
### Dependencies
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
- The following workspace dependencies were updated
|
|
64
|
+
- dependencies
|
|
65
|
+
- @looker/sdk-rtl bumped from ^21.3.4 to ^21.4.0
|
|
66
66
|
|
|
67
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)
|
|
68
68
|
|
|
69
|
-
|
|
70
69
|
### Features
|
|
71
70
|
|
|
72
|
-
|
|
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))
|
|
73
72
|
|
|
74
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)
|
|
75
74
|
|
|
76
|
-
|
|
77
75
|
### Features
|
|
78
76
|
|
|
79
|
-
|
|
80
|
-
|
|
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))
|
|
81
78
|
|
|
82
79
|
### Bug Fixes
|
|
83
80
|
|
|
84
|
-
|
|
85
|
-
|
|
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))
|
|
86
82
|
|
|
87
83
|
### Dependencies
|
|
88
84
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
- The following workspace dependencies were updated
|
|
86
|
+
- dependencies
|
|
87
|
+
- @looker/sdk-rtl bumped from ^21.3.3 to ^21.3.4
|
|
92
88
|
|
|
93
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)
|
|
94
90
|
|
|
95
|
-
|
|
96
91
|
### Dependencies
|
|
97
92
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
93
|
+
- The following workspace dependencies were updated
|
|
94
|
+
- dependencies
|
|
95
|
+
- @looker/sdk-rtl bumped from ^21.3.2 to ^21.3.3
|
|
101
96
|
|
|
102
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)
|
|
103
98
|
|
|
104
|
-
|
|
105
99
|
### Features
|
|
106
100
|
|
|
107
|
-
|
|
108
|
-
|
|
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))
|
|
109
102
|
|
|
110
103
|
### Bug Fixes
|
|
111
104
|
|
|
112
|
-
|
|
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))
|
|
113
106
|
|
|
114
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)
|
|
115
108
|
|
|
116
|
-
|
|
117
109
|
### ⚠ BREAKING CHANGES
|
|
118
110
|
|
|
119
|
-
|
|
111
|
+
- SDK support for 22.0
|
|
120
112
|
|
|
121
113
|
### Features
|
|
122
114
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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))
|
|
127
118
|
|
|
128
119
|
### Bug Fixes
|
|
129
120
|
|
|
130
|
-
|
|
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))
|
|
131
122
|
|
|
132
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)
|
|
133
124
|
|
|
134
|
-
|
|
135
125
|
### Features
|
|
136
126
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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))
|
|
140
129
|
|
|
141
130
|
### Bug Fixes
|
|
142
131
|
|
|
143
|
-
|
|
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))
|
|
144
133
|
|
|
145
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)
|
|
146
135
|
|
|
147
|
-
|
|
148
136
|
### Dependencies
|
|
149
137
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
138
|
+
- The following workspace dependencies were updated
|
|
139
|
+
- dependencies
|
|
140
|
+
- @looker/sdk-rtl bumped from ^21.3.0 to ^21.3.1
|
|
153
141
|
|
|
154
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)
|
|
155
143
|
|
|
156
|
-
|
|
157
144
|
### Features
|
|
158
145
|
|
|
159
|
-
|
|
160
|
-
|
|
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))
|
|
161
147
|
|
|
162
148
|
### Dependencies
|
|
163
149
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
150
|
+
- The following workspace dependencies were updated
|
|
151
|
+
- dependencies
|
|
152
|
+
- @looker/sdk-rtl bumped from ^21.2.0 to ^21.3.0
|
|
167
153
|
|
|
168
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)
|
|
169
155
|
|
|
170
|
-
|
|
171
156
|
### Bug Fixes
|
|
172
157
|
|
|
173
|
-
|
|
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))
|
|
174
159
|
|
|
175
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)
|
|
176
161
|
|
|
177
|
-
|
|
178
162
|
### Features
|
|
179
163
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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))
|
|
183
166
|
|
|
184
167
|
### Dependencies
|
|
185
168
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
169
|
+
- The following workspace dependencies were updated
|
|
170
|
+
- dependencies
|
|
171
|
+
- @looker/sdk-rtl bumped from ^21.1.1 to ^21.2.0
|
|
189
172
|
|
|
190
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)
|
|
191
174
|
|
|
192
|
-
|
|
193
175
|
### Bug Fixes
|
|
194
176
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
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))
|
|
198
179
|
|
|
199
180
|
### Dependencies
|
|
200
181
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
182
|
+
- The following workspace dependencies were updated
|
|
183
|
+
- dependencies
|
|
184
|
+
- @looker/sdk-rtl bumped from ^21.1.0 to ^21.1.1
|
|
204
185
|
|
|
205
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)
|
|
206
187
|
|
|
207
|
-
|
|
208
188
|
### Features
|
|
209
189
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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))
|
|
215
194
|
|
|
216
195
|
### Bug Fixes
|
|
217
196
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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))
|
|
223
201
|
|
|
224
202
|
### Dependencies
|
|
225
203
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
204
|
+
- The following workspace dependencies were updated
|
|
205
|
+
- dependencies
|
|
206
|
+
- @looker/sdk-rtl bumped from ^21.0.20 to ^21.1.0
|
|
229
207
|
|
|
230
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)
|
|
231
209
|
|
|
232
|
-
|
|
233
210
|
### Bug Fixes
|
|
234
211
|
|
|
235
|
-
|
|
236
|
-
|
|
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))
|
|
237
213
|
|
|
238
214
|
### Dependencies
|
|
239
215
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
216
|
+
- The following workspace dependencies were updated
|
|
217
|
+
- dependencies
|
|
218
|
+
- @looker/sdk-rtl bumped from ^21.0.19 to ^21.0.20
|
|
243
219
|
|
|
244
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)
|
|
245
221
|
|
|
246
|
-
|
|
247
222
|
### Features
|
|
248
223
|
|
|
249
|
-
|
|
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))
|
|
250
225
|
|
|
251
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)
|
|
252
227
|
|
|
253
|
-
|
|
254
228
|
### Bug Fixes
|
|
255
229
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
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)
|
|
259
232
|
|
|
260
233
|
### Dependencies
|
|
261
234
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
235
|
+
- The following workspace dependencies were updated
|
|
236
|
+
- dependencies
|
|
237
|
+
- @looker/sdk-rtl bumped from ^21.0.18 to ^21.0.19
|
|
265
238
|
|
|
266
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)
|
|
267
240
|
|
|
268
|
-
|
|
269
241
|
### Dependencies
|
|
270
242
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
243
|
+
- The following workspace dependencies were updated
|
|
244
|
+
- dependencies
|
|
245
|
+
- @looker/sdk-rtl bumped from ^21.0.17 to ^21.0.18
|
|
274
246
|
|
|
275
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)
|
|
276
248
|
|
|
277
|
-
|
|
278
249
|
### Dependencies
|
|
279
250
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
251
|
+
- The following workspace dependencies were updated
|
|
252
|
+
- dependencies
|
|
253
|
+
- @looker/sdk-rtl bumped from ^21.0.16 to ^21.0.17
|
|
283
254
|
|
|
284
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)
|
|
285
256
|
|
|
286
|
-
|
|
287
257
|
### Bug Fixes
|
|
288
258
|
|
|
289
|
-
|
|
290
|
-
|
|
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)
|
|
291
260
|
|
|
292
261
|
### Dependencies
|
|
293
262
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
263
|
+
- The following workspace dependencies were updated
|
|
264
|
+
- dependencies
|
|
265
|
+
- @looker/sdk-rtl bumped from ^21.0.15 to ^21.0.16
|
|
297
266
|
|
|
298
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)
|
|
299
268
|
|
|
300
|
-
|
|
301
269
|
### Dependencies
|
|
302
270
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
271
|
+
- The following workspace dependencies were updated
|
|
272
|
+
- dependencies
|
|
273
|
+
- @looker/sdk-rtl bumped from ^21.0.14 to ^21.0.15
|
|
306
274
|
|
|
307
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)
|
|
308
276
|
|
|
309
|
-
|
|
310
277
|
### Dependencies
|
|
311
278
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
279
|
+
- The following workspace dependencies were updated
|
|
280
|
+
- dependencies
|
|
281
|
+
- @looker/sdk-rtl bumped from ^21.0.13 to ^21.0.14
|
|
315
282
|
|
|
316
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)
|
|
317
284
|
|
|
318
|
-
|
|
319
285
|
### Features
|
|
320
286
|
|
|
321
|
-
|
|
322
|
-
|
|
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))
|
|
323
289
|
|
|
324
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)
|
|
325
291
|
|
|
326
|
-
|
|
327
292
|
### Bug Fixes
|
|
328
293
|
|
|
329
|
-
|
|
330
|
-
|
|
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))
|
|
331
295
|
|
|
332
296
|
### Dependencies
|
|
333
297
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
298
|
+
- The following workspace dependencies were updated
|
|
299
|
+
- dependencies
|
|
300
|
+
- @looker/sdk-rtl bumped from ^21.0.12 to ^21.0.13
|
|
337
301
|
|
|
338
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)
|
|
339
303
|
|
|
340
|
-
|
|
341
304
|
### Bug Fixes
|
|
342
305
|
|
|
343
|
-
|
|
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))
|
|
344
307
|
|
|
345
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)
|
|
346
309
|
|
|
347
|
-
|
|
348
310
|
### Features
|
|
349
311
|
|
|
350
|
-
|
|
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)
|
|
351
313
|
|
|
352
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)
|
|
353
315
|
|
|
354
|
-
|
|
355
316
|
### Features
|
|
356
317
|
|
|
357
|
-
|
|
358
|
-
|
|
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))
|
|
359
319
|
|
|
360
320
|
### Bug Fixes
|
|
361
321
|
|
|
362
|
-
|
|
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))
|
|
363
323
|
|
|
364
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)
|
|
365
325
|
|
|
366
|
-
|
|
367
326
|
### Features
|
|
368
327
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
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))
|
|
372
330
|
|
|
373
331
|
### Bug Fixes
|
|
374
332
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
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))
|
|
380
337
|
|
|
381
338
|
### Dependencies
|
|
382
339
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
340
|
+
- The following workspace dependencies were updated
|
|
341
|
+
- dependencies
|
|
342
|
+
- @looker/sdk-rtl bumped from ^21.0.11 to ^21.0.12
|
|
386
343
|
|
|
387
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)
|
|
388
345
|
|
|
389
|
-
|
|
390
346
|
### Features
|
|
391
347
|
|
|
392
|
-
|
|
393
|
-
|
|
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))
|
|
394
349
|
|
|
395
350
|
### Bug Fixes
|
|
396
351
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
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))
|
|
401
355
|
|
|
402
356
|
### Dependencies
|
|
403
357
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
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
|
|
408
362
|
|
|
409
363
|
## [0.3.5-alpha.5]
|
|
410
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;
|