expo-backend-types 0.0.30 → 0.0.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +9 -2
  2. package/types/schema.d.ts +161 -87
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,
@@ -9,12 +9,13 @@
9
9
  "types"
10
10
  ],
11
11
  "scripts": {
12
- "ci": "npm run build && npm run check-format && npm run lint && npm run check-exports",
12
+ "ci": "npm run generate-ts-schema && npm run build && npm run check-format && npm run lint && npm run check-exports",
13
13
  "build": "nest build",
14
14
  "format": "prettier --write \"src/**/*.ts\"",
15
15
  "check-format": "prettier --check \"src/**/*.ts\"",
16
16
  "check-exports": "attw --pack .",
17
17
  "local-release": "changeset version && changeset publish",
18
+ "commit-schema": "git add ./types/schema.d.ts swagger.yaml && git commit -m \"Update schema\"",
18
19
  "start": "nest start",
19
20
  "dev": "nest start --watch",
20
21
  "start:debug": "nest start --debug --watch",
@@ -86,6 +87,12 @@
86
87
  "eslint --fix",
87
88
  "git add"
88
89
  ],
90
+ "swagger.yaml": [
91
+ "git add"
92
+ ],
93
+ "types/schema.d.ts": [
94
+ "git add"
95
+ ],
89
96
  "*.json": [
90
97
  "prettier --write",
91
98
  "git add"
package/types/schema.d.ts CHANGED
@@ -1,87 +1,161 @@
1
- /**
2
- * This file was auto-generated by openapi-typescript.
3
- * Do not make direct changes to the file.
4
- */
5
-
6
- export interface paths {
7
- "/": {
8
- parameters: {
9
- query?: never;
10
- header?: never;
11
- path?: never;
12
- cookie?: never;
13
- };
14
- get: operations["AppController_getHello"];
15
- put?: never;
16
- post?: never;
17
- delete?: never;
18
- options?: never;
19
- head?: never;
20
- patch?: never;
21
- trace?: never;
22
- };
23
- "/test/{id}": {
24
- parameters: {
25
- query?: never;
26
- header?: never;
27
- path?: never;
28
- cookie?: never;
29
- };
30
- get: operations["AppController_test"];
31
- put?: never;
32
- post?: never;
33
- delete?: never;
34
- options?: never;
35
- head?: never;
36
- patch?: never;
37
- trace?: never;
38
- };
39
- }
40
- export type webhooks = Record<string, never>;
41
- export interface components {
42
- schemas: never;
43
- responses: never;
44
- parameters: never;
45
- requestBodies: never;
46
- headers: never;
47
- pathItems: never;
48
- }
49
- export type $defs = Record<string, never>;
50
- export interface operations {
51
- AppController_getHello: {
52
- parameters: {
53
- query?: never;
54
- header?: never;
55
- path?: never;
56
- cookie?: never;
57
- };
58
- requestBody?: never;
59
- responses: {
60
- 200: {
61
- headers: {
62
- [name: string]: unknown;
63
- };
64
- content?: never;
65
- };
66
- };
67
- };
68
- AppController_test: {
69
- parameters: {
70
- query?: never;
71
- header?: never;
72
- path: {
73
- id: string;
74
- };
75
- cookie?: never;
76
- };
77
- requestBody?: never;
78
- responses: {
79
- 200: {
80
- headers: {
81
- [name: string]: unknown;
82
- };
83
- content?: never;
84
- };
85
- };
86
- };
87
- }
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+
6
+ export interface paths {
7
+ "/": {
8
+ parameters: {
9
+ query?: never;
10
+ header?: never;
11
+ path?: never;
12
+ cookie?: never;
13
+ };
14
+ get: operations["AppController_getHello"];
15
+ put?: never;
16
+ post?: never;
17
+ delete?: never;
18
+ options?: never;
19
+ head?: never;
20
+ patch?: never;
21
+ trace?: never;
22
+ };
23
+ "/test/{id}": {
24
+ parameters: {
25
+ query?: never;
26
+ header?: never;
27
+ path?: never;
28
+ cookie?: never;
29
+ };
30
+ get: operations["AppController_test"];
31
+ put: operations["AppController_testPut"];
32
+ post: operations["AppController_testPost"];
33
+ delete?: never;
34
+ options?: never;
35
+ head?: never;
36
+ patch?: never;
37
+ trace?: never;
38
+ };
39
+ "/otraRuta/{id1}/{id2}": {
40
+ parameters: {
41
+ query?: never;
42
+ header?: never;
43
+ path?: never;
44
+ cookie?: never;
45
+ };
46
+ get?: never;
47
+ put?: never;
48
+ post: operations["AppController_otraRuta"];
49
+ delete?: never;
50
+ options?: never;
51
+ head?: never;
52
+ patch?: never;
53
+ trace?: never;
54
+ };
55
+ }
56
+ export type webhooks = Record<string, never>;
57
+ export interface components {
58
+ schemas: never;
59
+ responses: never;
60
+ parameters: never;
61
+ requestBodies: never;
62
+ headers: never;
63
+ pathItems: never;
64
+ }
65
+ export type $defs = Record<string, never>;
66
+ export interface operations {
67
+ AppController_getHello: {
68
+ parameters: {
69
+ query?: never;
70
+ header?: never;
71
+ path?: never;
72
+ cookie?: never;
73
+ };
74
+ requestBody?: never;
75
+ responses: {
76
+ 200: {
77
+ headers: {
78
+ [name: string]: unknown;
79
+ };
80
+ content?: never;
81
+ };
82
+ };
83
+ };
84
+ AppController_test: {
85
+ parameters: {
86
+ query?: never;
87
+ header?: never;
88
+ path: {
89
+ id: string;
90
+ };
91
+ cookie?: never;
92
+ };
93
+ requestBody?: never;
94
+ responses: {
95
+ 200: {
96
+ headers: {
97
+ [name: string]: unknown;
98
+ };
99
+ content?: never;
100
+ };
101
+ };
102
+ };
103
+ AppController_testPut: {
104
+ parameters: {
105
+ query?: never;
106
+ header?: never;
107
+ path: {
108
+ id: string;
109
+ };
110
+ cookie?: never;
111
+ };
112
+ requestBody?: never;
113
+ responses: {
114
+ 200: {
115
+ headers: {
116
+ [name: string]: unknown;
117
+ };
118
+ content?: never;
119
+ };
120
+ };
121
+ };
122
+ AppController_testPost: {
123
+ parameters: {
124
+ query?: never;
125
+ header?: never;
126
+ path: {
127
+ id: string;
128
+ };
129
+ cookie?: never;
130
+ };
131
+ requestBody?: never;
132
+ responses: {
133
+ 201: {
134
+ headers: {
135
+ [name: string]: unknown;
136
+ };
137
+ content?: never;
138
+ };
139
+ };
140
+ };
141
+ AppController_otraRuta: {
142
+ parameters: {
143
+ query?: never;
144
+ header?: never;
145
+ path: {
146
+ id1: string;
147
+ id2: string;
148
+ };
149
+ cookie?: never;
150
+ };
151
+ requestBody?: never;
152
+ responses: {
153
+ 201: {
154
+ headers: {
155
+ [name: string]: unknown;
156
+ };
157
+ content?: never;
158
+ };
159
+ };
160
+ };
161
+ }