vovk-cli 0.0.1-draft.369 → 0.0.1-draft.370

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.
@@ -1,11 +1,11 @@
1
1
  <% const vars = {
2
- rpcModuleName: t.TheThing + 'Controller',
2
+ ControllerName: t.TheThing + 'Controller',
3
3
  ServiceName: t.TheThing + 'Service',
4
4
  }; %>
5
5
  ---
6
6
  outDir: <%= t.defaultOutDir %>
7
- fileName: <%= vars.rpcModuleName + '.ts' %>
8
- sourceName: <%= vars.rpcModuleName %>
7
+ fileName: <%= vars.ControllerName + '.ts' %>
8
+ sourceName: <%= vars.ControllerName %>
9
9
  compiledName: <%= t.TheThing + 'RPC' %>
10
10
  ---
11
11
 
@@ -15,7 +15,7 @@ import <%= vars.ServiceName %> from './<%= vars.ServiceName %><%= t.nodeNextReso
15
15
  <% } %>
16
16
 
17
17
  @prefix('<%= t['the-things'] %>')
18
- export default class <%= vars.rpcModuleName %> {
18
+ export default class <%= vars.ControllerName %> {
19
19
  @operation({
20
20
  summary: 'Get <%= t.TheThings %>',
21
21
  })
@@ -1,5 +1,5 @@
1
1
  <% const vars = {
2
- rpcModuleName: t.TheThing + 'Controller',
2
+ ControllerName: t.TheThing + 'Controller',
3
3
  ServiceName: t.TheThing + 'Service',
4
4
  }; %>
5
5
  ---
@@ -9,17 +9,17 @@ sourceName: <%= vars.ServiceName %>
9
9
  ---
10
10
 
11
11
  import type { VovkBody, VovkQuery } from 'vovk';
12
- import type <%= vars.rpcModuleName %> from './<%= vars.rpcModuleName %><%= t.nodeNextResolutionExt.ts %>';
12
+ import type <%= vars.ControllerName %> from './<%= vars.ControllerName %><%= t.nodeNextResolutionExt.ts %>';
13
13
 
14
14
  export default class <%= vars.ServiceName %> {
15
- static get<%= t.TheThings %> = (search: VovkQuery<typeof <%= vars.rpcModuleName %>.get<%= t.TheThings %>>['search']) => {
15
+ static get<%= t.TheThings %> = (search: VovkQuery<typeof <%= vars.ControllerName %>.get<%= t.TheThings %>>['search']) => {
16
16
  return { results: [], search };
17
17
  };
18
18
 
19
19
  static update<%= t.TheThing %> = (
20
20
  id: string,
21
- q: VovkQuery<typeof <%= vars.rpcModuleName %>.update<%= t.TheThing %>>['q'],
22
- body: VovkBody<typeof <%= vars.rpcModuleName %>.update<%= t.TheThing %>>
21
+ q: VovkQuery<typeof <%= vars.ControllerName %>.update<%= t.TheThing %>>['q'],
22
+ body: VovkBody<typeof <%= vars.ControllerName %>.update<%= t.TheThing %>>
23
23
  ) => {
24
24
  return { id, q, body };
25
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk-cli",
3
- "version": "0.0.1-draft.369",
3
+ "version": "0.0.1-draft.370",
4
4
  "bin": {
5
5
  "vovk": "./dist/index.mjs"
6
6
  },
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "homepage": "https://vovk.dev",
37
37
  "peerDependencies": {
38
- "vovk": "^3.0.0-draft.420",
38
+ "vovk": "^3.0.0-draft.433",
39
39
  "vovk-ajv": "^0.0.0-draft.103",
40
40
  "vovk-client": "^0.0.4-draft.131",
41
41
  "vovk-python": "^0.0.1-draft.73",