@workos/oagen-emitters 0.2.0 → 0.2.1

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.
@@ -30,7 +30,13 @@ describe('generateSerializers', () => {
30
30
  name: 'getOrganization',
31
31
  httpMethod: 'get',
32
32
  path: '/organizations/{id}',
33
- pathParams: [{ name: 'id', type: { kind: 'primitive', type: 'string' }, required: true }],
33
+ pathParams: [
34
+ {
35
+ name: 'id',
36
+ type: { kind: 'primitive', type: 'string' },
37
+ required: true,
38
+ },
39
+ ],
34
40
  queryParams: [],
35
41
  headerParams: [],
36
42
  response: { kind: 'model', name: 'Organization' },
@@ -90,7 +96,13 @@ describe('generateSerializers', () => {
90
96
  name: 'getOrganization',
91
97
  httpMethod: 'get',
92
98
  path: '/organizations/{id}',
93
- pathParams: [{ name: 'id', type: { kind: 'primitive', type: 'string' }, required: true }],
99
+ pathParams: [
100
+ {
101
+ name: 'id',
102
+ type: { kind: 'primitive', type: 'string' },
103
+ required: true,
104
+ },
105
+ ],
94
106
  queryParams: [],
95
107
  headerParams: [],
96
108
  response: { kind: 'model', name: 'Organization' },
@@ -151,7 +163,13 @@ describe('generateSerializers', () => {
151
163
  name: 'getOrganization',
152
164
  httpMethod: 'get',
153
165
  path: '/organizations/{id}',
154
- pathParams: [{ name: 'id', type: { kind: 'primitive', type: 'string' }, required: true }],
166
+ pathParams: [
167
+ {
168
+ name: 'id',
169
+ type: { kind: 'primitive', type: 'string' },
170
+ required: true,
171
+ },
172
+ ],
155
173
  queryParams: [],
156
174
  headerParams: [],
157
175
  response: { kind: 'model', name: 'Organization' },
@@ -303,12 +321,18 @@ describe('generateSerializers', () => {
303
321
  fields: [
304
322
  {
305
323
  name: 'before',
306
- type: { kind: 'nullable', inner: { kind: 'primitive', type: 'string' } },
324
+ type: {
325
+ kind: 'nullable',
326
+ inner: { kind: 'primitive', type: 'string' },
327
+ },
307
328
  required: false,
308
329
  },
309
330
  {
310
331
  name: 'after',
311
- type: { kind: 'nullable', inner: { kind: 'primitive', type: 'string' } },
332
+ type: {
333
+ kind: 'nullable',
334
+ inner: { kind: 'primitive', type: 'string' },
335
+ },
312
336
  required: false,
313
337
  },
314
338
  ],
@@ -375,7 +399,10 @@ describe('generateSerializers', () => {
375
399
  },
376
400
  {
377
401
  name: 'data',
378
- type: { kind: 'array', items: { kind: 'model', name: 'Connection' } },
402
+ type: {
403
+ kind: 'array',
404
+ items: { kind: 'model', name: 'Connection' },
405
+ },
379
406
  required: true,
380
407
  },
381
408
  {