@voxgig/sdkgen 0.33.0 → 0.34.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/bin/voxgig-sdkgen +1 -1
- package/package.json +2 -2
- package/project/.sdk/model/feature/log.jsonic +1 -2
- package/project/.sdk/model/feature/test.jsonic +1 -2
- package/project/.sdk/src/cmp/go/TestDirect_go.ts +10 -10
- package/project/.sdk/src/cmp/go/fragment/Entity.fragment.go +3 -3
- package/project/.sdk/src/cmp/js/EntityOperation_js.ts +1 -1
- package/project/.sdk/src/cmp/js/TestDirect_js.ts +12 -12
- package/project/.sdk/src/cmp/js/fragment/EntityCreateOp.fragment.js +5 -5
- package/project/.sdk/src/cmp/js/fragment/EntityListOp.fragment.js +5 -5
- package/project/.sdk/src/cmp/js/fragment/EntityLoadOp.fragment.js +5 -5
- package/project/.sdk/src/cmp/js/fragment/EntityRemoveOp.fragment.js +6 -6
- package/project/.sdk/src/cmp/js/fragment/EntityUpdateOp.fragment.js +5 -5
- package/project/.sdk/src/cmp/ts/EntityBase_ts.ts +38 -0
- package/project/.sdk/src/cmp/ts/EntityOperation_ts.ts +1 -1
- package/project/.sdk/src/cmp/ts/Main_ts.ts +2 -0
- package/project/.sdk/src/cmp/ts/TestDirect_ts.ts +12 -12
- package/project/.sdk/src/cmp/ts/fragment/Entity.fragment.ts +8 -139
- package/project/.sdk/src/cmp/ts/fragment/EntityBase.fragment.ts +161 -0
- package/project/.sdk/src/cmp/ts/fragment/EntityCreateOp.fragment.ts +7 -7
- package/project/.sdk/src/cmp/ts/fragment/EntityListOp.fragment.ts +7 -7
- package/project/.sdk/src/cmp/ts/fragment/EntityLoadOp.fragment.ts +7 -7
- package/project/.sdk/src/cmp/ts/fragment/EntityRemoveOp.fragment.ts +8 -8
- package/project/.sdk/src/cmp/ts/fragment/EntityUpdateOp.fragment.ts +5 -5
- package/project/.sdk/src/cmp/ts/fragment/Main.fragment.ts +2 -1
- package/project/.sdk/tm/go/core/context.go +8 -8
- package/project/.sdk/tm/go/core/operation.go +6 -6
- package/project/.sdk/tm/go/core/target.go +3 -3
- package/project/.sdk/tm/go/core/types.go +1 -3
- package/project/.sdk/tm/go/core/utility_type.go +1 -1
- package/project/.sdk/tm/go/feature/base_feature.go +1 -3
- package/project/.sdk/tm/go/feature/test_feature.go +4 -4
- package/project/.sdk/tm/go/test/primary_utility_test.go +13 -13
- package/project/.sdk/tm/go/utility/make_spec.go +2 -2
- package/project/.sdk/tm/go/utility/make_target.go +18 -18
- package/project/.sdk/tm/go/utility/param.go +3 -3
- package/project/.sdk/tm/go/utility/prepare_params.go +2 -2
- package/project/.sdk/tm/go/utility/prepare_path.go +2 -2
- package/project/.sdk/tm/go/utility/prepare_query.go +3 -3
- package/project/.sdk/tm/go/utility/register.go +1 -1
- package/project/.sdk/tm/go/utility/transform_request.go +2 -2
- package/project/.sdk/tm/go/utility/transform_response.go +2 -2
- package/project/.sdk/tm/js/src/feature/log/LogFeature.js +2 -7
- package/project/.sdk/tm/ts/src/Context.ts +3 -3
- package/project/.sdk/tm/ts/src/Operation.ts +3 -3
- package/project/.sdk/tm/ts/src/{Target.ts → Point.ts} +2 -2
- package/project/.sdk/tm/ts/src/feature/base/BaseFeature.ts +7 -2
- package/project/.sdk/tm/ts/src/feature/log/LogFeature.ts +2 -7
- package/project/.sdk/tm/ts/src/feature/test/TestFeature.ts +3 -3
- package/project/.sdk/tm/ts/src/types.ts +18 -15
- package/project/.sdk/tm/ts/src/utility/{MakeTargetUtility.ts → MakePointUtility.ts} +18 -18
- package/project/.sdk/tm/ts/src/utility/MakeSpecUtility.ts +2 -2
- package/project/.sdk/tm/ts/src/utility/ParamUtility.ts +2 -2
- package/project/.sdk/tm/ts/src/utility/PrepareBodyUtility.ts +1 -1
- package/project/.sdk/tm/ts/src/utility/PrepareParamsUtility.ts +3 -3
- package/project/.sdk/tm/ts/src/utility/PreparePathUtility.ts +2 -2
- package/project/.sdk/tm/ts/src/utility/PrepareQueryUtility.ts +2 -2
- package/project/.sdk/tm/ts/src/utility/TransformRequestUtility.ts +2 -2
- package/project/.sdk/tm/ts/src/utility/TransformResponseUtility.ts +2 -2
- package/project/.sdk/tm/ts/src/utility/Utility.ts +2 -2
- package/project/.sdk/tm/ts/test/utility/PrimaryUtility.test.ts +8 -8
|
@@ -48,7 +48,7 @@ describe('PrimaryUtility', async () => {
|
|
|
48
48
|
const fns = [
|
|
49
49
|
'clean', 'done', 'makeError', 'featureAdd', 'featureHook', 'featureInit',
|
|
50
50
|
'fetcher', 'makeFetchDef', 'makeContext', 'makeOptions', 'makeRequest',
|
|
51
|
-
'makeResponse', 'makeResult', '
|
|
51
|
+
'makeResponse', 'makeResult', 'makePoint', 'makeSpec', 'makeUrl',
|
|
52
52
|
'param', 'prepareAuth', 'prepareBody', 'prepareHeaders', 'prepareMethod',
|
|
53
53
|
'prepareParams', 'preparePath', 'prepareQuery', 'resultBasic',
|
|
54
54
|
'resultBody', 'resultHeaders', 'transformRequest', 'transformResponse',
|
|
@@ -119,7 +119,7 @@ describe('PrimaryUtility', async () => {
|
|
|
119
119
|
entity: opmap.entity || '_',
|
|
120
120
|
name: opmap.name || '_',
|
|
121
121
|
input: opmap.input || '_',
|
|
122
|
-
|
|
122
|
+
points: opmap.points || [],
|
|
123
123
|
}))
|
|
124
124
|
})
|
|
125
125
|
|
|
@@ -245,9 +245,9 @@ describe('PrimaryUtility', async () => {
|
|
|
245
245
|
})
|
|
246
246
|
|
|
247
247
|
|
|
248
|
-
test('
|
|
248
|
+
test('makePoint-single', () => {
|
|
249
249
|
const ctx = makeCtx()
|
|
250
|
-
const
|
|
250
|
+
const point = {
|
|
251
251
|
parts: ['items', '{id}'],
|
|
252
252
|
args: { params: [] },
|
|
253
253
|
params: [],
|
|
@@ -256,11 +256,11 @@ describe('PrimaryUtility', async () => {
|
|
|
256
256
|
active: true,
|
|
257
257
|
transform: { req: undefined, res: undefined },
|
|
258
258
|
}
|
|
259
|
-
ctx.op.
|
|
259
|
+
ctx.op.points = [point]
|
|
260
260
|
|
|
261
|
-
const result = utility.
|
|
261
|
+
const result = utility.makePoint(ctx)
|
|
262
262
|
ok(!(result instanceof Error))
|
|
263
|
-
equal(ctx.
|
|
263
|
+
equal(ctx.point, point)
|
|
264
264
|
})
|
|
265
265
|
|
|
266
266
|
|
|
@@ -443,7 +443,7 @@ describe('PrimaryUtility', async () => {
|
|
|
443
443
|
|
|
444
444
|
function makeFullCtx(overrides?: any) {
|
|
445
445
|
const ctx = makeCtx(overrides)
|
|
446
|
-
ctx.
|
|
446
|
+
ctx.point = {
|
|
447
447
|
parts: ['items', '{id}'],
|
|
448
448
|
args: { params: [{ name: 'id', reqd: true }] },
|
|
449
449
|
params: ['id'],
|