@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.
- package/.oxfmtrc.json +8 -1
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +7 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +633 -85
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/smoke/sdk-dotnet.ts +17 -3
- package/smoke/sdk-elixir.ts +17 -3
- package/smoke/sdk-go.ts +21 -4
- package/smoke/sdk-kotlin.ts +23 -4
- package/smoke/sdk-node.ts +15 -3
- package/smoke/sdk-ruby.ts +17 -3
- package/smoke/sdk-rust.ts +16 -3
- package/src/node/client.ts +94 -12
- package/src/node/common.ts +1 -1
- package/src/node/enums.ts +4 -4
- package/src/node/errors.ts +5 -1
- package/src/node/fixtures.ts +6 -4
- package/src/node/index.ts +65 -9
- package/src/node/models.ts +86 -75
- package/src/node/naming.ts +91 -2
- package/src/node/resources.ts +462 -23
- package/src/node/serializers.ts +3 -1
- package/src/node/tests.ts +39 -15
- package/src/node/utils.ts +52 -2
- package/test/node/client.test.ts +181 -82
- package/test/node/enums.test.ts +73 -3
- package/test/node/models.test.ts +107 -20
- package/test/node/naming.test.ts +14 -4
- package/test/node/resources.test.ts +627 -25
- package/test/node/serializers.test.ts +33 -6
|
@@ -30,7 +30,13 @@ describe('generateSerializers', () => {
|
|
|
30
30
|
name: 'getOrganization',
|
|
31
31
|
httpMethod: 'get',
|
|
32
32
|
path: '/organizations/{id}',
|
|
33
|
-
pathParams: [
|
|
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: [
|
|
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: [
|
|
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: {
|
|
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: {
|
|
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: {
|
|
402
|
+
type: {
|
|
403
|
+
kind: 'array',
|
|
404
|
+
items: { kind: 'model', name: 'Connection' },
|
|
405
|
+
},
|
|
379
406
|
required: true,
|
|
380
407
|
},
|
|
381
408
|
{
|