@tmdjr/user-metadata-contracts 0.0.2
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/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/models/AuthTestDto.d.ts +3 -0
- package/dist/models/AuthTestDto.js +1 -0
- package/dist/models/CreateExampleMongodbDocDto.d.ts +9 -0
- package/dist/models/CreateExampleMongodbDocDto.js +1 -0
- package/dist/models/ExampleMongodbDocDto.d.ts +12 -0
- package/dist/models/ExampleMongodbDocDto.js +1 -0
- package/dist/models/ExampleMongodbDocObjectDto.d.ts +6 -0
- package/dist/models/ExampleMongodbDocObjectDto.js +1 -0
- package/dist/models/UpdateExampleMongodbDocDto.d.ts +9 -0
- package/dist/models/UpdateExampleMongodbDocDto.js +1 -0
- package/dist/service-user-metadata.types.d.ts +349 -0
- package/dist/service-user-metadata.types.js +5 -0
- package/package.json +30 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { AuthTestDto } from './models/AuthTestDto';
|
|
2
|
+
export type { CreateExampleMongodbDocDto } from './models/CreateExampleMongodbDocDto';
|
|
3
|
+
export type { ExampleMongodbDocDto } from './models/ExampleMongodbDocDto';
|
|
4
|
+
export type { ExampleMongodbDocObjectDto } from './models/ExampleMongodbDocObjectDto';
|
|
5
|
+
export type { UpdateExampleMongodbDocDto } from './models/UpdateExampleMongodbDocDto';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ExampleMongodbDocObjectDto } from './ExampleMongodbDocObjectDto';
|
|
2
|
+
export type CreateExampleMongodbDocDto = {
|
|
3
|
+
name: string;
|
|
4
|
+
type: 'SOME_ENUM' | 'SOME_OTHER_ENUM';
|
|
5
|
+
description?: string;
|
|
6
|
+
archived?: boolean;
|
|
7
|
+
exampleMongodbDocObject?: ExampleMongodbDocObjectDto;
|
|
8
|
+
lastUpdated?: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ExampleMongodbDocObjectDto } from './ExampleMongodbDocObjectDto';
|
|
2
|
+
export type ExampleMongodbDocDto = {
|
|
3
|
+
_id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
type: 'SOME_ENUM' | 'SOME_OTHER_ENUM';
|
|
6
|
+
version: number;
|
|
7
|
+
description: string;
|
|
8
|
+
lastUpdated: string;
|
|
9
|
+
archived: boolean;
|
|
10
|
+
exampleMongodbDocObject?: ExampleMongodbDocObjectDto;
|
|
11
|
+
__v: number;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ExampleMongodbDocObjectDto } from './ExampleMongodbDocObjectDto';
|
|
2
|
+
export type UpdateExampleMongodbDocDto = {
|
|
3
|
+
name?: string;
|
|
4
|
+
type?: 'SOME_ENUM' | 'SOME_OTHER_ENUM';
|
|
5
|
+
description?: string;
|
|
6
|
+
archived?: boolean;
|
|
7
|
+
exampleMongodbDocObject?: ExampleMongodbDocObjectDto;
|
|
8
|
+
lastUpdated?: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
"/example-crud/auth-test": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
get: operations["ExampleCrudController_authTest"];
|
|
14
|
+
put?: never;
|
|
15
|
+
post?: never;
|
|
16
|
+
delete?: never;
|
|
17
|
+
options?: never;
|
|
18
|
+
head?: never;
|
|
19
|
+
patch?: never;
|
|
20
|
+
trace?: never;
|
|
21
|
+
};
|
|
22
|
+
"/example-crud": {
|
|
23
|
+
parameters: {
|
|
24
|
+
query?: never;
|
|
25
|
+
header?: never;
|
|
26
|
+
path?: never;
|
|
27
|
+
cookie?: never;
|
|
28
|
+
};
|
|
29
|
+
get: operations["ExampleCrudController_findAll"];
|
|
30
|
+
put?: never;
|
|
31
|
+
post: operations["ExampleCrudController_create"];
|
|
32
|
+
delete?: never;
|
|
33
|
+
options?: never;
|
|
34
|
+
head?: never;
|
|
35
|
+
patch?: never;
|
|
36
|
+
trace?: never;
|
|
37
|
+
};
|
|
38
|
+
"/example-crud/{id}": {
|
|
39
|
+
parameters: {
|
|
40
|
+
query?: never;
|
|
41
|
+
header?: never;
|
|
42
|
+
path?: never;
|
|
43
|
+
cookie?: never;
|
|
44
|
+
};
|
|
45
|
+
get: operations["ExampleCrudController_findOne"];
|
|
46
|
+
put?: never;
|
|
47
|
+
post?: never;
|
|
48
|
+
delete: operations["ExampleCrudController_remove"];
|
|
49
|
+
options?: never;
|
|
50
|
+
head?: never;
|
|
51
|
+
patch: operations["ExampleCrudController_update"];
|
|
52
|
+
trace?: never;
|
|
53
|
+
};
|
|
54
|
+
"/example-crud/name/{name}": {
|
|
55
|
+
parameters: {
|
|
56
|
+
query?: never;
|
|
57
|
+
header?: never;
|
|
58
|
+
path?: never;
|
|
59
|
+
cookie?: never;
|
|
60
|
+
};
|
|
61
|
+
get: operations["ExampleCrudController_findByName"];
|
|
62
|
+
put?: never;
|
|
63
|
+
post?: never;
|
|
64
|
+
delete?: never;
|
|
65
|
+
options?: never;
|
|
66
|
+
head?: never;
|
|
67
|
+
patch?: never;
|
|
68
|
+
trace?: never;
|
|
69
|
+
};
|
|
70
|
+
"/example-crud/{id}/archive": {
|
|
71
|
+
parameters: {
|
|
72
|
+
query?: never;
|
|
73
|
+
header?: never;
|
|
74
|
+
path?: never;
|
|
75
|
+
cookie?: never;
|
|
76
|
+
};
|
|
77
|
+
get?: never;
|
|
78
|
+
put?: never;
|
|
79
|
+
post?: never;
|
|
80
|
+
delete?: never;
|
|
81
|
+
options?: never;
|
|
82
|
+
head?: never;
|
|
83
|
+
patch: operations["ExampleCrudController_archive"];
|
|
84
|
+
trace?: never;
|
|
85
|
+
};
|
|
86
|
+
"/example-crud/{id}/unarchive": {
|
|
87
|
+
parameters: {
|
|
88
|
+
query?: never;
|
|
89
|
+
header?: never;
|
|
90
|
+
path?: never;
|
|
91
|
+
cookie?: never;
|
|
92
|
+
};
|
|
93
|
+
get?: never;
|
|
94
|
+
put?: never;
|
|
95
|
+
post?: never;
|
|
96
|
+
delete?: never;
|
|
97
|
+
options?: never;
|
|
98
|
+
head?: never;
|
|
99
|
+
patch: operations["ExampleCrudController_unarchive"];
|
|
100
|
+
trace?: never;
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
export type webhooks = Record<string, never>;
|
|
104
|
+
export interface components {
|
|
105
|
+
schemas: {
|
|
106
|
+
AuthTestDto: {
|
|
107
|
+
message: string;
|
|
108
|
+
};
|
|
109
|
+
ExampleMongodbDocObjectDto: {
|
|
110
|
+
street: string;
|
|
111
|
+
city: string;
|
|
112
|
+
state: string;
|
|
113
|
+
zip: string;
|
|
114
|
+
};
|
|
115
|
+
CreateExampleMongodbDocDto: {
|
|
116
|
+
name: string;
|
|
117
|
+
/** @enum {string} */
|
|
118
|
+
type: "SOME_ENUM" | "SOME_OTHER_ENUM";
|
|
119
|
+
description?: string;
|
|
120
|
+
archived?: boolean;
|
|
121
|
+
exampleMongodbDocObject?: components["schemas"]["ExampleMongodbDocObjectDto"];
|
|
122
|
+
/** Format: date-time */
|
|
123
|
+
lastUpdated?: string;
|
|
124
|
+
};
|
|
125
|
+
ExampleMongodbDocDto: {
|
|
126
|
+
_id: string;
|
|
127
|
+
name: string;
|
|
128
|
+
/** @enum {string} */
|
|
129
|
+
type: "SOME_ENUM" | "SOME_OTHER_ENUM";
|
|
130
|
+
version: number;
|
|
131
|
+
description: string;
|
|
132
|
+
/** Format: date-time */
|
|
133
|
+
lastUpdated: string;
|
|
134
|
+
archived: boolean;
|
|
135
|
+
exampleMongodbDocObject?: components["schemas"]["ExampleMongodbDocObjectDto"];
|
|
136
|
+
__v: number;
|
|
137
|
+
};
|
|
138
|
+
UpdateExampleMongodbDocDto: {
|
|
139
|
+
name?: string;
|
|
140
|
+
/** @enum {string} */
|
|
141
|
+
type?: "SOME_ENUM" | "SOME_OTHER_ENUM";
|
|
142
|
+
description?: string;
|
|
143
|
+
archived?: boolean;
|
|
144
|
+
exampleMongodbDocObject?: components["schemas"]["ExampleMongodbDocObjectDto"];
|
|
145
|
+
/** Format: date-time */
|
|
146
|
+
lastUpdated?: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
responses: never;
|
|
150
|
+
parameters: never;
|
|
151
|
+
requestBodies: never;
|
|
152
|
+
headers: never;
|
|
153
|
+
pathItems: never;
|
|
154
|
+
}
|
|
155
|
+
export type $defs = Record<string, never>;
|
|
156
|
+
export interface operations {
|
|
157
|
+
ExampleCrudController_authTest: {
|
|
158
|
+
parameters: {
|
|
159
|
+
query?: never;
|
|
160
|
+
header?: never;
|
|
161
|
+
path?: never;
|
|
162
|
+
cookie?: never;
|
|
163
|
+
};
|
|
164
|
+
requestBody?: never;
|
|
165
|
+
responses: {
|
|
166
|
+
200: {
|
|
167
|
+
headers: {
|
|
168
|
+
[name: string]: unknown;
|
|
169
|
+
};
|
|
170
|
+
content: {
|
|
171
|
+
"application/json": components["schemas"]["AuthTestDto"];
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
ExampleCrudController_findAll: {
|
|
177
|
+
parameters: {
|
|
178
|
+
query?: {
|
|
179
|
+
/** @description Filter by archived status */
|
|
180
|
+
archived?: boolean;
|
|
181
|
+
};
|
|
182
|
+
header?: never;
|
|
183
|
+
path?: never;
|
|
184
|
+
cookie?: never;
|
|
185
|
+
};
|
|
186
|
+
requestBody?: never;
|
|
187
|
+
responses: {
|
|
188
|
+
200: {
|
|
189
|
+
headers: {
|
|
190
|
+
[name: string]: unknown;
|
|
191
|
+
};
|
|
192
|
+
content: {
|
|
193
|
+
"application/json": components["schemas"]["ExampleMongodbDocDto"][];
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
ExampleCrudController_create: {
|
|
199
|
+
parameters: {
|
|
200
|
+
query?: never;
|
|
201
|
+
header?: never;
|
|
202
|
+
path?: never;
|
|
203
|
+
cookie?: never;
|
|
204
|
+
};
|
|
205
|
+
requestBody: {
|
|
206
|
+
content: {
|
|
207
|
+
"application/json": components["schemas"]["CreateExampleMongodbDocDto"];
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
responses: {
|
|
211
|
+
201: {
|
|
212
|
+
headers: {
|
|
213
|
+
[name: string]: unknown;
|
|
214
|
+
};
|
|
215
|
+
content: {
|
|
216
|
+
"application/json": components["schemas"]["ExampleMongodbDocDto"];
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
ExampleCrudController_findOne: {
|
|
222
|
+
parameters: {
|
|
223
|
+
query?: never;
|
|
224
|
+
header?: never;
|
|
225
|
+
path: {
|
|
226
|
+
id: string;
|
|
227
|
+
};
|
|
228
|
+
cookie?: never;
|
|
229
|
+
};
|
|
230
|
+
requestBody?: never;
|
|
231
|
+
responses: {
|
|
232
|
+
200: {
|
|
233
|
+
headers: {
|
|
234
|
+
[name: string]: unknown;
|
|
235
|
+
};
|
|
236
|
+
content: {
|
|
237
|
+
"application/json": components["schemas"]["ExampleMongodbDocDto"];
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
ExampleCrudController_remove: {
|
|
243
|
+
parameters: {
|
|
244
|
+
query?: never;
|
|
245
|
+
header?: never;
|
|
246
|
+
path: {
|
|
247
|
+
id: string;
|
|
248
|
+
};
|
|
249
|
+
cookie?: never;
|
|
250
|
+
};
|
|
251
|
+
requestBody?: never;
|
|
252
|
+
responses: {
|
|
253
|
+
204: {
|
|
254
|
+
headers: {
|
|
255
|
+
[name: string]: unknown;
|
|
256
|
+
};
|
|
257
|
+
content?: never;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
ExampleCrudController_update: {
|
|
262
|
+
parameters: {
|
|
263
|
+
query?: never;
|
|
264
|
+
header?: never;
|
|
265
|
+
path: {
|
|
266
|
+
id: string;
|
|
267
|
+
};
|
|
268
|
+
cookie?: never;
|
|
269
|
+
};
|
|
270
|
+
requestBody: {
|
|
271
|
+
content: {
|
|
272
|
+
"application/json": components["schemas"]["UpdateExampleMongodbDocDto"];
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
responses: {
|
|
276
|
+
200: {
|
|
277
|
+
headers: {
|
|
278
|
+
[name: string]: unknown;
|
|
279
|
+
};
|
|
280
|
+
content: {
|
|
281
|
+
"application/json": components["schemas"]["ExampleMongodbDocDto"];
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
ExampleCrudController_findByName: {
|
|
287
|
+
parameters: {
|
|
288
|
+
query?: never;
|
|
289
|
+
header?: never;
|
|
290
|
+
path: {
|
|
291
|
+
name: string;
|
|
292
|
+
};
|
|
293
|
+
cookie?: never;
|
|
294
|
+
};
|
|
295
|
+
requestBody?: never;
|
|
296
|
+
responses: {
|
|
297
|
+
200: {
|
|
298
|
+
headers: {
|
|
299
|
+
[name: string]: unknown;
|
|
300
|
+
};
|
|
301
|
+
content: {
|
|
302
|
+
"application/json": components["schemas"]["ExampleMongodbDocDto"];
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
ExampleCrudController_archive: {
|
|
308
|
+
parameters: {
|
|
309
|
+
query?: never;
|
|
310
|
+
header?: never;
|
|
311
|
+
path: {
|
|
312
|
+
id: string;
|
|
313
|
+
};
|
|
314
|
+
cookie?: never;
|
|
315
|
+
};
|
|
316
|
+
requestBody?: never;
|
|
317
|
+
responses: {
|
|
318
|
+
200: {
|
|
319
|
+
headers: {
|
|
320
|
+
[name: string]: unknown;
|
|
321
|
+
};
|
|
322
|
+
content: {
|
|
323
|
+
"application/json": components["schemas"]["ExampleMongodbDocDto"];
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
ExampleCrudController_unarchive: {
|
|
329
|
+
parameters: {
|
|
330
|
+
query?: never;
|
|
331
|
+
header?: never;
|
|
332
|
+
path: {
|
|
333
|
+
id: string;
|
|
334
|
+
};
|
|
335
|
+
cookie?: never;
|
|
336
|
+
};
|
|
337
|
+
requestBody?: never;
|
|
338
|
+
responses: {
|
|
339
|
+
200: {
|
|
340
|
+
headers: {
|
|
341
|
+
[name: string]: unknown;
|
|
342
|
+
};
|
|
343
|
+
content: {
|
|
344
|
+
"application/json": components["schemas"]["ExampleMongodbDocDto"];
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tmdjr/user-metadata-contracts",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Types & runtime enums generated from NGX service-user-metadata spec",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"private": false,
|
|
7
|
+
"type": "module",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"main": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"clean": "rm -rf dist src/service-user-metadata.types.ts src/models src/core src/schemas",
|
|
19
|
+
"gen:types": "openapi-typescript ../../openapi.json --output ./src/service-user-metadata.types.ts",
|
|
20
|
+
"gen:models": "openapi --input ../../openapi.json --output ./src --client none --exportCore false --exportServices false --exportModels true --useUnionTypes true",
|
|
21
|
+
"gen": "npm run gen:types && npm run gen:models",
|
|
22
|
+
"build": "tsc -p tsconfig.build.json",
|
|
23
|
+
"prepublishOnly": "npm run clean && npm run gen && npm run build"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"openapi-typescript": "^7.5.1",
|
|
27
|
+
"typescript": "^5.7.3",
|
|
28
|
+
"openapi-typescript-codegen": "^0.29.0"
|
|
29
|
+
}
|
|
30
|
+
}
|