gopadjs 1.0.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/.codacy.yml +8 -0
- package/.editorconfig +24 -0
- package/.github/RELEASE +1 -0
- package/.github/issue_template.md +9 -0
- package/.github/pull_request_template.md +8 -0
- package/.github/renovate.json +6 -0
- package/.github/semantic.yml +23 -0
- package/.github/settings.yml +43 -0
- package/.github/workflows/automerge.yml +49 -0
- package/.github/workflows/flake.yml +56 -0
- package/.github/workflows/general.yml +45 -0
- package/.github/workflows/release.yml +49 -0
- package/.openapi-generator/FILES +25 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +3 -0
- package/.releaserc +140 -0
- package/CHANGELOG.md +16 -0
- package/CONTRIBUTING.md +121 -0
- package/DCO +34 -0
- package/LICENSE +202 -0
- package/README.md +88 -0
- package/api/auth-api.ts +399 -0
- package/api/team-api.ts +1641 -0
- package/api/user-api.ts +1641 -0
- package/api.ts +17 -0
- package/base.ts +91 -0
- package/common.ts +203 -0
- package/configuration.ts +132 -0
- package/flake.lock +472 -0
- package/flake.nix +57 -0
- package/hack/generate-client.sh +65 -0
- package/hack/openapi/templates/README.mustache +93 -0
- package/hack/openapi/templates/gitignore +6 -0
- package/hack/semantic-version.sh +17 -0
- package/index.ts +17 -0
- package/model/index.ts +12 -0
- package/model/notification.ts +43 -0
- package/model/team-user-params.ts +42 -0
- package/model/team-users.ts +46 -0
- package/model/team.ts +61 -0
- package/model/teams.ts +37 -0
- package/model/user-auth.ts +45 -0
- package/model/user-team-params.ts +42 -0
- package/model/user-team.ts +79 -0
- package/model/user-teams.ts +46 -0
- package/model/user.ts +100 -0
- package/model/users.ts +37 -0
- package/model/validation.ts +33 -0
- package/openapi.yml +12 -0
- package/openapitools.json +7 -0
- package/package.json +41 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
package/flake.lock
ADDED
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
{
|
|
2
|
+
"nodes": {
|
|
3
|
+
"cachix": {
|
|
4
|
+
"inputs": {
|
|
5
|
+
"devenv": "devenv_2",
|
|
6
|
+
"flake-compat": [
|
|
7
|
+
"devenv",
|
|
8
|
+
"flake-compat"
|
|
9
|
+
],
|
|
10
|
+
"nixpkgs": [
|
|
11
|
+
"devenv",
|
|
12
|
+
"nixpkgs"
|
|
13
|
+
],
|
|
14
|
+
"pre-commit-hooks": [
|
|
15
|
+
"devenv",
|
|
16
|
+
"pre-commit-hooks"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"locked": {
|
|
20
|
+
"lastModified": 1712055811,
|
|
21
|
+
"narHash": "sha256-7FcfMm5A/f02yyzuavJe06zLa9hcMHsagE28ADcmQvk=",
|
|
22
|
+
"owner": "cachix",
|
|
23
|
+
"repo": "cachix",
|
|
24
|
+
"rev": "02e38da89851ec7fec3356a5c04bc8349cae0e30",
|
|
25
|
+
"type": "github"
|
|
26
|
+
},
|
|
27
|
+
"original": {
|
|
28
|
+
"owner": "cachix",
|
|
29
|
+
"repo": "cachix",
|
|
30
|
+
"type": "github"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"devenv": {
|
|
34
|
+
"inputs": {
|
|
35
|
+
"cachix": "cachix",
|
|
36
|
+
"flake-compat": "flake-compat_2",
|
|
37
|
+
"nix": "nix_2",
|
|
38
|
+
"nixpkgs": "nixpkgs_2",
|
|
39
|
+
"pre-commit-hooks": "pre-commit-hooks"
|
|
40
|
+
},
|
|
41
|
+
"locked": {
|
|
42
|
+
"lastModified": 1716484006,
|
|
43
|
+
"narHash": "sha256-2gtN5jf21HS9TAZXhf9G+OSUY1TQ/95n6clcuFjYQ58=",
|
|
44
|
+
"owner": "cachix",
|
|
45
|
+
"repo": "devenv",
|
|
46
|
+
"rev": "800f19d1b999f89464fd8e0226abf4b3b444b0fa",
|
|
47
|
+
"type": "github"
|
|
48
|
+
},
|
|
49
|
+
"original": {
|
|
50
|
+
"owner": "cachix",
|
|
51
|
+
"repo": "devenv",
|
|
52
|
+
"type": "github"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"devenv_2": {
|
|
56
|
+
"inputs": {
|
|
57
|
+
"flake-compat": [
|
|
58
|
+
"devenv",
|
|
59
|
+
"cachix",
|
|
60
|
+
"flake-compat"
|
|
61
|
+
],
|
|
62
|
+
"nix": "nix",
|
|
63
|
+
"nixpkgs": "nixpkgs",
|
|
64
|
+
"poetry2nix": "poetry2nix",
|
|
65
|
+
"pre-commit-hooks": [
|
|
66
|
+
"devenv",
|
|
67
|
+
"cachix",
|
|
68
|
+
"pre-commit-hooks"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"locked": {
|
|
72
|
+
"lastModified": 1708704632,
|
|
73
|
+
"narHash": "sha256-w+dOIW60FKMaHI1q5714CSibk99JfYxm0CzTinYWr+Q=",
|
|
74
|
+
"owner": "cachix",
|
|
75
|
+
"repo": "devenv",
|
|
76
|
+
"rev": "2ee4450b0f4b95a1b90f2eb5ffea98b90e48c196",
|
|
77
|
+
"type": "github"
|
|
78
|
+
},
|
|
79
|
+
"original": {
|
|
80
|
+
"owner": "cachix",
|
|
81
|
+
"ref": "python-rewrite",
|
|
82
|
+
"repo": "devenv",
|
|
83
|
+
"type": "github"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"flake-compat": {
|
|
87
|
+
"flake": false,
|
|
88
|
+
"locked": {
|
|
89
|
+
"lastModified": 1673956053,
|
|
90
|
+
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
|
|
91
|
+
"owner": "edolstra",
|
|
92
|
+
"repo": "flake-compat",
|
|
93
|
+
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
|
|
94
|
+
"type": "github"
|
|
95
|
+
},
|
|
96
|
+
"original": {
|
|
97
|
+
"owner": "edolstra",
|
|
98
|
+
"repo": "flake-compat",
|
|
99
|
+
"type": "github"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"flake-compat_2": {
|
|
103
|
+
"flake": false,
|
|
104
|
+
"locked": {
|
|
105
|
+
"lastModified": 1696426674,
|
|
106
|
+
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
|
107
|
+
"owner": "edolstra",
|
|
108
|
+
"repo": "flake-compat",
|
|
109
|
+
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
|
110
|
+
"type": "github"
|
|
111
|
+
},
|
|
112
|
+
"original": {
|
|
113
|
+
"owner": "edolstra",
|
|
114
|
+
"repo": "flake-compat",
|
|
115
|
+
"type": "github"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"flake-parts": {
|
|
119
|
+
"inputs": {
|
|
120
|
+
"nixpkgs-lib": "nixpkgs-lib"
|
|
121
|
+
},
|
|
122
|
+
"locked": {
|
|
123
|
+
"lastModified": 1715865404,
|
|
124
|
+
"narHash": "sha256-/GJvTdTpuDjNn84j82cU6bXztE0MSkdnTWClUCRub78=",
|
|
125
|
+
"owner": "hercules-ci",
|
|
126
|
+
"repo": "flake-parts",
|
|
127
|
+
"rev": "8dc45382d5206bd292f9c2768b8058a8fd8311d9",
|
|
128
|
+
"type": "github"
|
|
129
|
+
},
|
|
130
|
+
"original": {
|
|
131
|
+
"owner": "hercules-ci",
|
|
132
|
+
"repo": "flake-parts",
|
|
133
|
+
"type": "github"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"flake-utils": {
|
|
137
|
+
"inputs": {
|
|
138
|
+
"systems": "systems"
|
|
139
|
+
},
|
|
140
|
+
"locked": {
|
|
141
|
+
"lastModified": 1689068808,
|
|
142
|
+
"narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
|
|
143
|
+
"owner": "numtide",
|
|
144
|
+
"repo": "flake-utils",
|
|
145
|
+
"rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4",
|
|
146
|
+
"type": "github"
|
|
147
|
+
},
|
|
148
|
+
"original": {
|
|
149
|
+
"owner": "numtide",
|
|
150
|
+
"repo": "flake-utils",
|
|
151
|
+
"type": "github"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"flake-utils_2": {
|
|
155
|
+
"inputs": {
|
|
156
|
+
"systems": "systems_2"
|
|
157
|
+
},
|
|
158
|
+
"locked": {
|
|
159
|
+
"lastModified": 1710146030,
|
|
160
|
+
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
|
161
|
+
"owner": "numtide",
|
|
162
|
+
"repo": "flake-utils",
|
|
163
|
+
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
|
164
|
+
"type": "github"
|
|
165
|
+
},
|
|
166
|
+
"original": {
|
|
167
|
+
"owner": "numtide",
|
|
168
|
+
"repo": "flake-utils",
|
|
169
|
+
"type": "github"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"gitignore": {
|
|
173
|
+
"inputs": {
|
|
174
|
+
"nixpkgs": [
|
|
175
|
+
"devenv",
|
|
176
|
+
"pre-commit-hooks",
|
|
177
|
+
"nixpkgs"
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
"locked": {
|
|
181
|
+
"lastModified": 1709087332,
|
|
182
|
+
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
|
|
183
|
+
"owner": "hercules-ci",
|
|
184
|
+
"repo": "gitignore.nix",
|
|
185
|
+
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
|
186
|
+
"type": "github"
|
|
187
|
+
},
|
|
188
|
+
"original": {
|
|
189
|
+
"owner": "hercules-ci",
|
|
190
|
+
"repo": "gitignore.nix",
|
|
191
|
+
"type": "github"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"nix": {
|
|
195
|
+
"inputs": {
|
|
196
|
+
"flake-compat": "flake-compat",
|
|
197
|
+
"nixpkgs": [
|
|
198
|
+
"devenv",
|
|
199
|
+
"cachix",
|
|
200
|
+
"devenv",
|
|
201
|
+
"nixpkgs"
|
|
202
|
+
],
|
|
203
|
+
"nixpkgs-regression": "nixpkgs-regression"
|
|
204
|
+
},
|
|
205
|
+
"locked": {
|
|
206
|
+
"lastModified": 1712911606,
|
|
207
|
+
"narHash": "sha256-BGvBhepCufsjcUkXnEEXhEVjwdJAwPglCC2+bInc794=",
|
|
208
|
+
"owner": "domenkozar",
|
|
209
|
+
"repo": "nix",
|
|
210
|
+
"rev": "b24a9318ea3f3600c1e24b4a00691ee912d4de12",
|
|
211
|
+
"type": "github"
|
|
212
|
+
},
|
|
213
|
+
"original": {
|
|
214
|
+
"owner": "domenkozar",
|
|
215
|
+
"ref": "devenv-2.21",
|
|
216
|
+
"repo": "nix",
|
|
217
|
+
"type": "github"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"nix-github-actions": {
|
|
221
|
+
"inputs": {
|
|
222
|
+
"nixpkgs": [
|
|
223
|
+
"devenv",
|
|
224
|
+
"cachix",
|
|
225
|
+
"devenv",
|
|
226
|
+
"poetry2nix",
|
|
227
|
+
"nixpkgs"
|
|
228
|
+
]
|
|
229
|
+
},
|
|
230
|
+
"locked": {
|
|
231
|
+
"lastModified": 1688870561,
|
|
232
|
+
"narHash": "sha256-4UYkifnPEw1nAzqqPOTL2MvWtm3sNGw1UTYTalkTcGY=",
|
|
233
|
+
"owner": "nix-community",
|
|
234
|
+
"repo": "nix-github-actions",
|
|
235
|
+
"rev": "165b1650b753316aa7f1787f3005a8d2da0f5301",
|
|
236
|
+
"type": "github"
|
|
237
|
+
},
|
|
238
|
+
"original": {
|
|
239
|
+
"owner": "nix-community",
|
|
240
|
+
"repo": "nix-github-actions",
|
|
241
|
+
"type": "github"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"nix_2": {
|
|
245
|
+
"inputs": {
|
|
246
|
+
"flake-compat": [
|
|
247
|
+
"devenv",
|
|
248
|
+
"flake-compat"
|
|
249
|
+
],
|
|
250
|
+
"nixpkgs": [
|
|
251
|
+
"devenv",
|
|
252
|
+
"nixpkgs"
|
|
253
|
+
],
|
|
254
|
+
"nixpkgs-regression": "nixpkgs-regression_2"
|
|
255
|
+
},
|
|
256
|
+
"locked": {
|
|
257
|
+
"lastModified": 1712911606,
|
|
258
|
+
"narHash": "sha256-BGvBhepCufsjcUkXnEEXhEVjwdJAwPglCC2+bInc794=",
|
|
259
|
+
"owner": "domenkozar",
|
|
260
|
+
"repo": "nix",
|
|
261
|
+
"rev": "b24a9318ea3f3600c1e24b4a00691ee912d4de12",
|
|
262
|
+
"type": "github"
|
|
263
|
+
},
|
|
264
|
+
"original": {
|
|
265
|
+
"owner": "domenkozar",
|
|
266
|
+
"ref": "devenv-2.21",
|
|
267
|
+
"repo": "nix",
|
|
268
|
+
"type": "github"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"nixpkgs": {
|
|
272
|
+
"locked": {
|
|
273
|
+
"lastModified": 1692808169,
|
|
274
|
+
"narHash": "sha256-x9Opq06rIiwdwGeK2Ykj69dNc2IvUH1fY55Wm7atwrE=",
|
|
275
|
+
"owner": "NixOS",
|
|
276
|
+
"repo": "nixpkgs",
|
|
277
|
+
"rev": "9201b5ff357e781bf014d0330d18555695df7ba8",
|
|
278
|
+
"type": "github"
|
|
279
|
+
},
|
|
280
|
+
"original": {
|
|
281
|
+
"owner": "NixOS",
|
|
282
|
+
"ref": "nixpkgs-unstable",
|
|
283
|
+
"repo": "nixpkgs",
|
|
284
|
+
"type": "github"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"nixpkgs-lib": {
|
|
288
|
+
"locked": {
|
|
289
|
+
"lastModified": 1714640452,
|
|
290
|
+
"narHash": "sha256-QBx10+k6JWz6u7VsohfSw8g8hjdBZEf8CFzXH1/1Z94=",
|
|
291
|
+
"type": "tarball",
|
|
292
|
+
"url": "https://github.com/NixOS/nixpkgs/archive/50eb7ecf4cd0a5756d7275c8ba36790e5bd53e33.tar.gz"
|
|
293
|
+
},
|
|
294
|
+
"original": {
|
|
295
|
+
"type": "tarball",
|
|
296
|
+
"url": "https://github.com/NixOS/nixpkgs/archive/50eb7ecf4cd0a5756d7275c8ba36790e5bd53e33.tar.gz"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"nixpkgs-regression": {
|
|
300
|
+
"locked": {
|
|
301
|
+
"lastModified": 1643052045,
|
|
302
|
+
"narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=",
|
|
303
|
+
"owner": "NixOS",
|
|
304
|
+
"repo": "nixpkgs",
|
|
305
|
+
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
|
|
306
|
+
"type": "github"
|
|
307
|
+
},
|
|
308
|
+
"original": {
|
|
309
|
+
"owner": "NixOS",
|
|
310
|
+
"repo": "nixpkgs",
|
|
311
|
+
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
|
|
312
|
+
"type": "github"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"nixpkgs-regression_2": {
|
|
316
|
+
"locked": {
|
|
317
|
+
"lastModified": 1643052045,
|
|
318
|
+
"narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=",
|
|
319
|
+
"owner": "NixOS",
|
|
320
|
+
"repo": "nixpkgs",
|
|
321
|
+
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
|
|
322
|
+
"type": "github"
|
|
323
|
+
},
|
|
324
|
+
"original": {
|
|
325
|
+
"owner": "NixOS",
|
|
326
|
+
"repo": "nixpkgs",
|
|
327
|
+
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
|
|
328
|
+
"type": "github"
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"nixpkgs-stable": {
|
|
332
|
+
"locked": {
|
|
333
|
+
"lastModified": 1710695816,
|
|
334
|
+
"narHash": "sha256-3Eh7fhEID17pv9ZxrPwCLfqXnYP006RKzSs0JptsN84=",
|
|
335
|
+
"owner": "NixOS",
|
|
336
|
+
"repo": "nixpkgs",
|
|
337
|
+
"rev": "614b4613980a522ba49f0d194531beddbb7220d3",
|
|
338
|
+
"type": "github"
|
|
339
|
+
},
|
|
340
|
+
"original": {
|
|
341
|
+
"owner": "NixOS",
|
|
342
|
+
"ref": "nixos-23.11",
|
|
343
|
+
"repo": "nixpkgs",
|
|
344
|
+
"type": "github"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"nixpkgs_2": {
|
|
348
|
+
"locked": {
|
|
349
|
+
"lastModified": 1713361204,
|
|
350
|
+
"narHash": "sha256-TA6EDunWTkc5FvDCqU3W2T3SFn0gRZqh6D/hJnM02MM=",
|
|
351
|
+
"owner": "cachix",
|
|
352
|
+
"repo": "devenv-nixpkgs",
|
|
353
|
+
"rev": "285676e87ad9f0ca23d8714a6ab61e7e027020c6",
|
|
354
|
+
"type": "github"
|
|
355
|
+
},
|
|
356
|
+
"original": {
|
|
357
|
+
"owner": "cachix",
|
|
358
|
+
"ref": "rolling",
|
|
359
|
+
"repo": "devenv-nixpkgs",
|
|
360
|
+
"type": "github"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"nixpkgs_3": {
|
|
364
|
+
"locked": {
|
|
365
|
+
"lastModified": 1716509168,
|
|
366
|
+
"narHash": "sha256-4zSIhSRRIoEBwjbPm3YiGtbd8HDWzFxJjw5DYSDy1n8=",
|
|
367
|
+
"owner": "NixOS",
|
|
368
|
+
"repo": "nixpkgs",
|
|
369
|
+
"rev": "bfb7a882678e518398ce9a31a881538679f6f092",
|
|
370
|
+
"type": "github"
|
|
371
|
+
},
|
|
372
|
+
"original": {
|
|
373
|
+
"owner": "NixOS",
|
|
374
|
+
"ref": "nixos-unstable",
|
|
375
|
+
"repo": "nixpkgs",
|
|
376
|
+
"type": "github"
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
"poetry2nix": {
|
|
380
|
+
"inputs": {
|
|
381
|
+
"flake-utils": "flake-utils",
|
|
382
|
+
"nix-github-actions": "nix-github-actions",
|
|
383
|
+
"nixpkgs": [
|
|
384
|
+
"devenv",
|
|
385
|
+
"cachix",
|
|
386
|
+
"devenv",
|
|
387
|
+
"nixpkgs"
|
|
388
|
+
]
|
|
389
|
+
},
|
|
390
|
+
"locked": {
|
|
391
|
+
"lastModified": 1692876271,
|
|
392
|
+
"narHash": "sha256-IXfZEkI0Mal5y1jr6IRWMqK8GW2/f28xJenZIPQqkY0=",
|
|
393
|
+
"owner": "nix-community",
|
|
394
|
+
"repo": "poetry2nix",
|
|
395
|
+
"rev": "d5006be9c2c2417dafb2e2e5034d83fabd207ee3",
|
|
396
|
+
"type": "github"
|
|
397
|
+
},
|
|
398
|
+
"original": {
|
|
399
|
+
"owner": "nix-community",
|
|
400
|
+
"repo": "poetry2nix",
|
|
401
|
+
"type": "github"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"pre-commit-hooks": {
|
|
405
|
+
"inputs": {
|
|
406
|
+
"flake-compat": [
|
|
407
|
+
"devenv",
|
|
408
|
+
"flake-compat"
|
|
409
|
+
],
|
|
410
|
+
"flake-utils": "flake-utils_2",
|
|
411
|
+
"gitignore": "gitignore",
|
|
412
|
+
"nixpkgs": [
|
|
413
|
+
"devenv",
|
|
414
|
+
"nixpkgs"
|
|
415
|
+
],
|
|
416
|
+
"nixpkgs-stable": "nixpkgs-stable"
|
|
417
|
+
},
|
|
418
|
+
"locked": {
|
|
419
|
+
"lastModified": 1713775815,
|
|
420
|
+
"narHash": "sha256-Wu9cdYTnGQQwtT20QQMg7jzkANKQjwBD9iccfGKkfls=",
|
|
421
|
+
"owner": "cachix",
|
|
422
|
+
"repo": "pre-commit-hooks.nix",
|
|
423
|
+
"rev": "2ac4dcbf55ed43f3be0bae15e181f08a57af24a4",
|
|
424
|
+
"type": "github"
|
|
425
|
+
},
|
|
426
|
+
"original": {
|
|
427
|
+
"owner": "cachix",
|
|
428
|
+
"repo": "pre-commit-hooks.nix",
|
|
429
|
+
"type": "github"
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"root": {
|
|
433
|
+
"inputs": {
|
|
434
|
+
"devenv": "devenv",
|
|
435
|
+
"flake-parts": "flake-parts",
|
|
436
|
+
"nixpkgs": "nixpkgs_3"
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
"systems": {
|
|
440
|
+
"locked": {
|
|
441
|
+
"lastModified": 1681028828,
|
|
442
|
+
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
443
|
+
"owner": "nix-systems",
|
|
444
|
+
"repo": "default",
|
|
445
|
+
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
446
|
+
"type": "github"
|
|
447
|
+
},
|
|
448
|
+
"original": {
|
|
449
|
+
"owner": "nix-systems",
|
|
450
|
+
"repo": "default",
|
|
451
|
+
"type": "github"
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
"systems_2": {
|
|
455
|
+
"locked": {
|
|
456
|
+
"lastModified": 1681028828,
|
|
457
|
+
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
458
|
+
"owner": "nix-systems",
|
|
459
|
+
"repo": "default",
|
|
460
|
+
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
461
|
+
"type": "github"
|
|
462
|
+
},
|
|
463
|
+
"original": {
|
|
464
|
+
"owner": "nix-systems",
|
|
465
|
+
"repo": "default",
|
|
466
|
+
"type": "github"
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
"root": "root",
|
|
471
|
+
"version": 7
|
|
472
|
+
}
|
package/flake.nix
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
description = "Nix flake for development";
|
|
3
|
+
|
|
4
|
+
inputs = {
|
|
5
|
+
nixpkgs = {
|
|
6
|
+
url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
devenv = {
|
|
10
|
+
url = "github:cachix/devenv";
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
flake-parts = {
|
|
14
|
+
url = "github:hercules-ci/flake-parts";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
outputs = inputs@{ flake-parts, ... }:
|
|
19
|
+
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
20
|
+
imports = [
|
|
21
|
+
inputs.devenv.flakeModule
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
systems = [
|
|
25
|
+
"x86_64-linux"
|
|
26
|
+
"aarch64-linux"
|
|
27
|
+
"x86_64-darwin"
|
|
28
|
+
"aarch64-darwin"
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
perSystem = { config, self', inputs', pkgs, system, ... }: {
|
|
32
|
+
imports = [
|
|
33
|
+
{
|
|
34
|
+
_module.args.pkgs = import inputs.nixpkgs {
|
|
35
|
+
inherit system;
|
|
36
|
+
config.allowUnfree = true;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
];
|
|
40
|
+
|
|
41
|
+
devenv = {
|
|
42
|
+
shells = {
|
|
43
|
+
default = {
|
|
44
|
+
languages = {
|
|
45
|
+
javascript = {
|
|
46
|
+
enable = true;
|
|
47
|
+
package = pkgs.nodejs_20;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
packages = with pkgs; [];
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -eo pipefail
|
|
3
|
+
|
|
4
|
+
if [ -L "${0}" ]
|
|
5
|
+
then
|
|
6
|
+
ROOT=$(realpath -e "$(dirname "$(readlink -e "${0}")")/..")
|
|
7
|
+
else
|
|
8
|
+
ROOT=$(realpath -e "$(dirname "${0}")/..")
|
|
9
|
+
fi
|
|
10
|
+
|
|
11
|
+
SPEC_VERSION="1.0.0-alpha1"
|
|
12
|
+
SPEC_DOWNLOAD=${SPEC:-https://dl.gopad.eu/openapi/${SPEC_VERSION}.yml}
|
|
13
|
+
|
|
14
|
+
pushd "${ROOT}" >/dev/null
|
|
15
|
+
echo "> install requirements"
|
|
16
|
+
npm install --ci
|
|
17
|
+
popd >/dev/null
|
|
18
|
+
|
|
19
|
+
echo "> deleteing apis and models"
|
|
20
|
+
rm -rf api model
|
|
21
|
+
|
|
22
|
+
if hash openapi-generator-cli 2>/dev/null; then
|
|
23
|
+
export TS_POST_PROCESS_FILE="./node_modules/.bin/prettier -w"
|
|
24
|
+
|
|
25
|
+
openapi-generator-cli \
|
|
26
|
+
generate \
|
|
27
|
+
-c openapi.yml \
|
|
28
|
+
-g typescript-axios \
|
|
29
|
+
--git-repo-id gopad-js \
|
|
30
|
+
--git-user-id gopad \
|
|
31
|
+
--http-user-agent "gopad-js/${SPEC_VERSION}" \
|
|
32
|
+
-i "${SPEC_DOWNLOAD}" \
|
|
33
|
+
-o . \
|
|
34
|
+
-t hack/openapi/templates \
|
|
35
|
+
--strict-spec true
|
|
36
|
+
else
|
|
37
|
+
if hash docker 2>/dev/null; then
|
|
38
|
+
COMMAND="docker"
|
|
39
|
+
elif hash podman 2>/dev/null; then
|
|
40
|
+
COMMAND="postman"
|
|
41
|
+
else
|
|
42
|
+
echo "missing container runtime"
|
|
43
|
+
exit 1
|
|
44
|
+
fi
|
|
45
|
+
|
|
46
|
+
"${COMMAND}" run --rm \
|
|
47
|
+
-v "${ROOT}:/generate:Z" \
|
|
48
|
+
-w /generate \
|
|
49
|
+
docker.io/openapitools/openapi-generator-cli:v7.6.0 \
|
|
50
|
+
generate \
|
|
51
|
+
-c /generate/openapi.yml \
|
|
52
|
+
-g typescript-axios \
|
|
53
|
+
--git-repo-id gopad-js \
|
|
54
|
+
--git-user-id gopad \
|
|
55
|
+
--http-user-agent "gopad-js/${SPEC_VERSION}" \
|
|
56
|
+
-i "${SPEC_DOWNLOAD}" \
|
|
57
|
+
-o /generate \
|
|
58
|
+
-t /generate/hack/openapi/templates \
|
|
59
|
+
--strict-spec true
|
|
60
|
+
|
|
61
|
+
pushd "${ROOT}" >/dev/null
|
|
62
|
+
echo "> fix code formatting"
|
|
63
|
+
npm run format
|
|
64
|
+
popd >/dev/null
|
|
65
|
+
fi
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Gopad: SDK for Javascript
|
|
2
|
+
|
|
3
|
+
[](https://github.com/gopad/gopad-js/actions/workflows/general.yml) [](https://matrix.to/#/#gopad:matrix.org) [](https://www.codacy.com/gh/gopad/gopad-js/dashboard?utm_source=github.com&utm_medium=referral&utm_content=gopad/gopad-js&utm_campaign=Badge_Grade) [](https://badge.fury.io/js/gopad)
|
|
4
|
+
|
|
5
|
+
This repository provides a client SDK for Typescript/Javascript. This SDK is
|
|
6
|
+
automatically generated by the [OpenAPI Generator][generator] project:
|
|
7
|
+
|
|
8
|
+
- API version: {{appVersion}}
|
|
9
|
+
- Package version: {{npmVersion}}
|
|
10
|
+
{{^hideGenerationTimestamp}}
|
|
11
|
+
- Build date: {{generatedDate}}
|
|
12
|
+
{{/hideGenerationTimestamp}}
|
|
13
|
+
- Build package: {{generatorClass}}
|
|
14
|
+
{{#infoUrl}}
|
|
15
|
+
|
|
16
|
+
For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})
|
|
17
|
+
{{/infoUrl}}
|
|
18
|
+
|
|
19
|
+
## Environments
|
|
20
|
+
|
|
21
|
+
- Node.js
|
|
22
|
+
- Webpack
|
|
23
|
+
- Browserify
|
|
24
|
+
|
|
25
|
+
## Language level
|
|
26
|
+
|
|
27
|
+
- ES5 - you must have a Promises/A+ library installed
|
|
28
|
+
- ES6
|
|
29
|
+
|
|
30
|
+
## Module system
|
|
31
|
+
|
|
32
|
+
- CommonJS
|
|
33
|
+
- ES6 module system
|
|
34
|
+
|
|
35
|
+
It can be used in both TypeScript and JavaScript. In TypeScript, the definition
|
|
36
|
+
will be automatically resolved via `package.json`.
|
|
37
|
+
|
|
38
|
+
## Installation
|
|
39
|
+
|
|
40
|
+
### Installation with NPM
|
|
41
|
+
|
|
42
|
+
If you want to use one of the versions released via NPM you just need to execute
|
|
43
|
+
the following command within your project directory, after that you can import
|
|
44
|
+
it as other libraries:
|
|
45
|
+
|
|
46
|
+
```console
|
|
47
|
+
npm install --save {{npmName}}@{{npmVersion}}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Installation with Git
|
|
51
|
+
|
|
52
|
+
If you want to use an unreleased version hosted on our GitHub repository you can
|
|
53
|
+
execute the folling command within your project directory, after that you can
|
|
54
|
+
import it as other libraries:
|
|
55
|
+
|
|
56
|
+
```console
|
|
57
|
+
npm install --save https://github.com/{{#gitUserId}}{{.}}{{/gitUserId}}{{^gitUserId}}YOUR_USERNAME{{/gitUserId}}/{{#gitRepoId}}{{.}}{{/gitRepoId}}{{^gitRepoId}}{{projectName}}{{/gitRepoId}}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Building
|
|
61
|
+
|
|
62
|
+
To build and compile the Typescript sources to Javascript simply execute the
|
|
63
|
+
following commands and you are ready to go:
|
|
64
|
+
|
|
65
|
+
```console
|
|
66
|
+
npm install
|
|
67
|
+
npm run build
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Security
|
|
71
|
+
|
|
72
|
+
If you find a security issue please contact
|
|
73
|
+
[gopad@webhippie.de](mailto:gopad@webhippie.de) first.
|
|
74
|
+
|
|
75
|
+
## Contributing
|
|
76
|
+
|
|
77
|
+
Fork -> Patch -> Push -> Pull Request
|
|
78
|
+
|
|
79
|
+
## Authors
|
|
80
|
+
|
|
81
|
+
- [Thomas Boerger](https://github.com/tboerger)
|
|
82
|
+
|
|
83
|
+
## License
|
|
84
|
+
|
|
85
|
+
Apache-2.0
|
|
86
|
+
|
|
87
|
+
## Copyright
|
|
88
|
+
|
|
89
|
+
```console
|
|
90
|
+
Copyright (c) 2018 Thomas Boerger <thomas@webhippie.de>
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
[generator]: https://openapi-generator.tech
|