@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.
Files changed (61) hide show
  1. package/bin/voxgig-sdkgen +1 -1
  2. package/package.json +2 -2
  3. package/project/.sdk/model/feature/log.jsonic +1 -2
  4. package/project/.sdk/model/feature/test.jsonic +1 -2
  5. package/project/.sdk/src/cmp/go/TestDirect_go.ts +10 -10
  6. package/project/.sdk/src/cmp/go/fragment/Entity.fragment.go +3 -3
  7. package/project/.sdk/src/cmp/js/EntityOperation_js.ts +1 -1
  8. package/project/.sdk/src/cmp/js/TestDirect_js.ts +12 -12
  9. package/project/.sdk/src/cmp/js/fragment/EntityCreateOp.fragment.js +5 -5
  10. package/project/.sdk/src/cmp/js/fragment/EntityListOp.fragment.js +5 -5
  11. package/project/.sdk/src/cmp/js/fragment/EntityLoadOp.fragment.js +5 -5
  12. package/project/.sdk/src/cmp/js/fragment/EntityRemoveOp.fragment.js +6 -6
  13. package/project/.sdk/src/cmp/js/fragment/EntityUpdateOp.fragment.js +5 -5
  14. package/project/.sdk/src/cmp/ts/EntityBase_ts.ts +38 -0
  15. package/project/.sdk/src/cmp/ts/EntityOperation_ts.ts +1 -1
  16. package/project/.sdk/src/cmp/ts/Main_ts.ts +2 -0
  17. package/project/.sdk/src/cmp/ts/TestDirect_ts.ts +12 -12
  18. package/project/.sdk/src/cmp/ts/fragment/Entity.fragment.ts +8 -139
  19. package/project/.sdk/src/cmp/ts/fragment/EntityBase.fragment.ts +161 -0
  20. package/project/.sdk/src/cmp/ts/fragment/EntityCreateOp.fragment.ts +7 -7
  21. package/project/.sdk/src/cmp/ts/fragment/EntityListOp.fragment.ts +7 -7
  22. package/project/.sdk/src/cmp/ts/fragment/EntityLoadOp.fragment.ts +7 -7
  23. package/project/.sdk/src/cmp/ts/fragment/EntityRemoveOp.fragment.ts +8 -8
  24. package/project/.sdk/src/cmp/ts/fragment/EntityUpdateOp.fragment.ts +5 -5
  25. package/project/.sdk/src/cmp/ts/fragment/Main.fragment.ts +2 -1
  26. package/project/.sdk/tm/go/core/context.go +8 -8
  27. package/project/.sdk/tm/go/core/operation.go +6 -6
  28. package/project/.sdk/tm/go/core/target.go +3 -3
  29. package/project/.sdk/tm/go/core/types.go +1 -3
  30. package/project/.sdk/tm/go/core/utility_type.go +1 -1
  31. package/project/.sdk/tm/go/feature/base_feature.go +1 -3
  32. package/project/.sdk/tm/go/feature/test_feature.go +4 -4
  33. package/project/.sdk/tm/go/test/primary_utility_test.go +13 -13
  34. package/project/.sdk/tm/go/utility/make_spec.go +2 -2
  35. package/project/.sdk/tm/go/utility/make_target.go +18 -18
  36. package/project/.sdk/tm/go/utility/param.go +3 -3
  37. package/project/.sdk/tm/go/utility/prepare_params.go +2 -2
  38. package/project/.sdk/tm/go/utility/prepare_path.go +2 -2
  39. package/project/.sdk/tm/go/utility/prepare_query.go +3 -3
  40. package/project/.sdk/tm/go/utility/register.go +1 -1
  41. package/project/.sdk/tm/go/utility/transform_request.go +2 -2
  42. package/project/.sdk/tm/go/utility/transform_response.go +2 -2
  43. package/project/.sdk/tm/js/src/feature/log/LogFeature.js +2 -7
  44. package/project/.sdk/tm/ts/src/Context.ts +3 -3
  45. package/project/.sdk/tm/ts/src/Operation.ts +3 -3
  46. package/project/.sdk/tm/ts/src/{Target.ts → Point.ts} +2 -2
  47. package/project/.sdk/tm/ts/src/feature/base/BaseFeature.ts +7 -2
  48. package/project/.sdk/tm/ts/src/feature/log/LogFeature.ts +2 -7
  49. package/project/.sdk/tm/ts/src/feature/test/TestFeature.ts +3 -3
  50. package/project/.sdk/tm/ts/src/types.ts +18 -15
  51. package/project/.sdk/tm/ts/src/utility/{MakeTargetUtility.ts → MakePointUtility.ts} +18 -18
  52. package/project/.sdk/tm/ts/src/utility/MakeSpecUtility.ts +2 -2
  53. package/project/.sdk/tm/ts/src/utility/ParamUtility.ts +2 -2
  54. package/project/.sdk/tm/ts/src/utility/PrepareBodyUtility.ts +1 -1
  55. package/project/.sdk/tm/ts/src/utility/PrepareParamsUtility.ts +3 -3
  56. package/project/.sdk/tm/ts/src/utility/PreparePathUtility.ts +2 -2
  57. package/project/.sdk/tm/ts/src/utility/PrepareQueryUtility.ts +2 -2
  58. package/project/.sdk/tm/ts/src/utility/TransformRequestUtility.ts +2 -2
  59. package/project/.sdk/tm/ts/src/utility/TransformResponseUtility.ts +2 -2
  60. package/project/.sdk/tm/ts/src/utility/Utility.ts +2 -2
  61. 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', 'makeTarget', 'makeSpec', 'makeUrl',
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
- targets: opmap.targets || [],
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('makeTarget-single', () => {
248
+ test('makePoint-single', () => {
249
249
  const ctx = makeCtx()
250
- const target = {
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.targets = [target]
259
+ ctx.op.points = [point]
260
260
 
261
- const result = utility.makeTarget(ctx)
261
+ const result = utility.makePoint(ctx)
262
262
  ok(!(result instanceof Error))
263
- equal(ctx.target, target)
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.target = {
446
+ ctx.point = {
447
447
  parts: ['items', '{id}'],
448
448
  args: { params: [{ name: 'id', reqd: true }] },
449
449
  params: ['id'],