@common-stack/generate-plugin 6.0.2-alpha.9 → 6.0.6-alpha.0

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 (37) hide show
  1. package/CHANGELOG.md +76 -20
  2. package/lib/generators/add-backend/files/config.json +0 -1
  3. package/lib/generators/add-backend/files/package.json +2 -35
  4. package/lib/generators/add-backend/files/src/api/root-schema.graphqls +19 -0
  5. package/lib/generators/add-backend/files/src/config/env-config.ts.template +2 -24
  6. package/lib/generators/add-backend/files/src/service.ts.template +4 -5
  7. package/lib/generators/add-backend/files/tsconfig.json +6 -12
  8. package/lib/generators/add-backend/files/webpack.config.js +8 -0
  9. package/lib/generators/add-backend/files/webpack.config.mjs +7 -0
  10. package/lib/generators/add-browser-package/files/package.json +1 -1
  11. package/lib/generators/add-frontend/templates/Dockerfile +1 -1
  12. package/lib/generators/add-frontend/templates/package.json +2 -2
  13. package/lib/generators/add-frontend/templates/vite.config.ts.template +2 -2
  14. package/lib/generators/add-fullstack/files/package.json +3 -4
  15. package/lib/generators/add-fullstack/files/tools/deploy-cli/updateLernaVersion.js +24 -5
  16. package/lib/generators/add-moleculer/files/Dockerfile +1 -1
  17. package/lib/generators/add-moleculer/files/package.json +5 -5
  18. package/lib/generators/add-server-package/files/package.json +3 -3
  19. package/package.json +3 -3
  20. package/src/generators/add-fullstack/files/.husky/pre-commit +1 -0
  21. package/src/generators/add-fullstack/files/CHANGELOG.md +18 -10
  22. package/src/generators/add-fullstack/files/package.json +4 -5
  23. package/src/generators/add-fullstack/files/tools/deploy-cli/updateLernaVersion.js +24 -5
  24. package/src/generators/add-moleculer/files/CHANGELOG.md +4 -0
  25. package/src/generators/add-moleculer/files/Dockerfile +1 -1
  26. package/src/generators/add-moleculer/files/package.json +6 -6
  27. package/lib/generators/add-backend/files/CHANGELOG.md +0 -196
  28. package/lib/generators/add-backend/files/generated-schema.graphql +0 -235
  29. package/lib/generators/add-browser-package/files/CHANGELOG.md +0 -3119
  30. package/lib/generators/add-core-package/files/CHANGELOG.md +0 -1076
  31. package/lib/generators/add-fullstack/files/tools/rollup/rollupPluginGenerateJson.mjs +0 -48
  32. package/lib/generators/add-fullstack/files/tools/rollup/rollupPluginModifyLibFiles.mjs +0 -410
  33. package/lib/generators/add-moleculer/files/draft.toml +0 -61
  34. package/src/generators/add-fullstack/files/tools/rollup/rollupPluginGenerateJson.mjs +0 -48
  35. package/src/generators/add-fullstack/files/tools/rollup/rollupPluginModifyLibFiles.mjs +0 -410
  36. package/src/generators/add-moleculer/files/.draft-tasks.toml +0 -0
  37. package/src/generators/add-moleculer/files/draft.toml +0 -61
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sample-stack",
3
- "version": "0.14.0",
3
+ "version": "5.0.5-alpha.10",
4
4
  "private": true,
5
5
  "homepage": "https://github.com/cdmbase/fullstack-pro#readme",
6
6
  "bugs": {
@@ -113,8 +113,6 @@
113
113
  "react-native-gesture-handler": "~2.12.0"
114
114
  },
115
115
  "dependencies": {
116
- "dataloader": "^2.1.0",
117
- "framer-motion": "^6.2.6",
118
116
  "graphql": "^16.0.0",
119
117
  "graphql-tag": "^2.12.6"
120
118
  },
@@ -147,7 +145,8 @@
147
145
  "@babel/preset-typescript": "^7.18.6",
148
146
  "@babel/register": "^7.18.9",
149
147
  "@babel/runtime": "^7.20.1",
150
- "@common-stack/env-list-loader": "6.0.2-alpha.2",
148
+ "@common-stack/env-list-loader": "5.0.6-alpha.3",
149
+ "@common-stack/generate-plugin": "6.0.1-alpha.0",
151
150
  "@emotion/babel-plugin": "^11.11.0",
152
151
  "@graphql-codegen/add": "^5.0.2",
153
152
  "@graphql-codegen/cli": "^5.0.2",
@@ -256,7 +255,7 @@
256
255
  "html-loader": "^4.2.0",
257
256
  "html-webpack-plugin": "^5.5.0",
258
257
  "http-proxy-middleware": "^2.0.6",
259
- "husky": "^8.0.2",
258
+ "husky": "^9.1.5",
260
259
  "ignore-loader": "^0.1.2",
261
260
  "ip": "^1.1.8",
262
261
  "isomorphic-style-loader": "^5.3.2",
@@ -1,4 +1,5 @@
1
1
  const fs = require('fs');
2
+ const { exec } = require('child_process');
2
3
 
3
4
  function updateLernaJson(filePath, versionArg) {
4
5
  // Read the existing lerna.json file
@@ -23,18 +24,36 @@ function updateLernaJson(filePath, versionArg) {
23
24
  const minorVersion = versionComponents.length > 1 ? versionComponents[1] : '0';
24
25
  lernaConfig.version = `${majorVersion}.${minorVersion}.0`;
25
26
 
26
- // Update the allowBranch fields
27
- const branchName = `devpublish${majorVersion}${minorVersion !== '0' ? '_' + minorVersion : ''}`;
27
+ // Update the allowBranch fields with dash instead of dot
28
+ const branchName = `devpublish${majorVersion}${minorVersion !== '0' ? '-' + minorVersion : ''}`;
29
+ const branchDevelopName = `develop${majorVersion}${minorVersion !== '0' ? '-' + minorVersion : ''}`;
30
+
28
31
  lernaConfig.command.publish.allowBranch.push(branchName);
29
32
  lernaConfig.command.version.allowBranch.push(branchName);
33
+ lernaConfig.command.version.allowBranch.push(branchDevelopName);
30
34
 
31
35
  // Write the updated lerna.json file
32
- fs.writeFile(filePath, JSON.stringify(lernaConfig, null, 2), 'utf8', writeErr => {
36
+ fs.writeFile(filePath, JSON.stringify(lernaConfig, null, 2), 'utf8', (writeErr) => {
33
37
  if (writeErr) {
34
38
  console.error(`Error writing file: ${writeErr}`);
35
39
  return;
36
40
  }
37
- console.log(`lerna.json updated successfully to version ${lernaConfig.version} with branch ${branchName}`);
41
+ console.log(
42
+ `lerna.json updated successfully to version ${lernaConfig.version} with branches ${branchName} and ${branchDevelopName}`,
43
+ );
44
+
45
+ // Run prettier to format the updated lerna.json file
46
+ exec(`npx prettier --write ${filePath}`, (execErr, stdout, stderr) => {
47
+ if (execErr) {
48
+ console.error(`Error running prettier: ${execErr}`);
49
+ return;
50
+ }
51
+ if (stderr) {
52
+ console.error(`Prettier stderr: ${stderr}`);
53
+ }
54
+ console.log(`Prettier stdout: ${stdout}`);
55
+ console.log('lerna.json formatted successfully.');
56
+ });
38
57
  });
39
58
  });
40
59
  }
@@ -48,4 +67,4 @@ if (!filePath || !versionArg || !versionArg.match(/^v\d+(\.\d+)?$/)) {
48
67
  process.exit(1);
49
68
  }
50
69
 
51
- updateLernaJson(filePath, versionArg);
70
+ updateLernaJson(filePath, versionArg);
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.0.5-alpha.10](https://github.com/cdmbase/common-stack/compare/v5.0.5-alpha.9...v5.0.5-alpha.10) (2024-08-15)
7
+
8
+ **Note:** Version bump only for package moleculer-server
9
+
6
10
  ## [3.1.1-alpha.5](https://github.com/CDEBase/adminIde-stack/compare/v3.1.1-alpha.4...v3.1.1-alpha.5) (2023-01-23)
7
11
 
8
12
  **Note:** Version bump only for package adminide-stack-billing-server
@@ -1,4 +1,4 @@
1
- FROM node:20:16-alpine
1
+ FROM node:20.16-alpine
2
2
 
3
3
  # Copy package.json only to temp folder, install its dependencies,
4
4
  # set workdir and copy the dependnecies there
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moleculer-server",
3
- "version": "3.1.1-alpha.5",
3
+ "version": "5.0.5-alpha.10",
4
4
  "private": true,
5
5
  "description": "",
6
6
  "license": "ISC",
@@ -25,11 +25,11 @@
25
25
  "watch": "npm run start:dev"
26
26
  },
27
27
  "dependencies": {
28
- "@common-stack/client-core": "6.0.2-alpha.2",
29
- "@common-stack/core": "6.0.2-alpha.2",
30
- "@common-stack/server-core": "6.0.2-alpha.2",
31
- "@common-stack/server-stack": "6.0.2-alpha.2",
32
- "@common-stack/store-mongo": "6.0.2-alpha.2",
28
+ "@common-stack/client-core": "5.0.6-alpha.3",
29
+ "@common-stack/core": "5.0.6-alpha.3",
30
+ "@common-stack/server-core": "6.0.1-alpha.0",
31
+ "@common-stack/server-stack": "6.0.1-alpha.0",
32
+ "@common-stack/store-mongo": "5.0.6-alpha.3",
33
33
  "@container-stack/mailing-api": "5.2.1-alpha.1",
34
34
  "helmet": "^3.21.2",
35
35
  "react": "18.2.0",
@@ -1,196 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [3.1.1-alpha.5](https://github.com/cdmbase/fullstack-pro/compare/v3.1.1-alpha.4...v3.1.1-alpha.5) (2023-01-23)
7
-
8
- **Note:** Version bump only for package adminide-stack-backend-server
9
-
10
- ## [3.1.1-alpha.4](https://github.com/cdmbase/fullstack-pro/compare/v3.1.1-alpha.3...v3.1.1-alpha.4) (2023-01-22)
11
-
12
- **Note:** Version bump only for package adminide-stack-backend-server
13
-
14
- ## [2.0.1-alpha.13](https://github.com/cdmbase/fullstack-pro/compare/v2.0.1-alpha.12...v2.0.1-alpha.13) (2023-01-11)
15
-
16
- **Note:** Version bump only for package adminide-stack-backend-server
17
-
18
- ## [2.0.1-alpha.11](https://github.com/cdmbase/fullstack-pro/compare/v2.0.1-alpha.10...v2.0.1-alpha.11) (2023-01-05)
19
-
20
- **Note:** Version bump only for package adminide-stack-backend-server
21
-
22
- ## [2.0.1-alpha.7](https://github.com/cdmbase/fullstack-pro/compare/v2.0.1-alpha.6...v2.0.1-alpha.7) (2022-12-29)
23
-
24
- **Note:** Version bump only for package adminide-stack-backend-server
25
-
26
- ## [2.0.1-alpha.5](https://github.com/cdmbase/fullstack-pro/compare/v2.0.1-alpha.4...v2.0.1-alpha.5) (2022-12-27)
27
-
28
- **Note:** Version bump only for package adminide-stack-backend-server
29
-
30
- ## [2.0.1-alpha.3](https://github.com/cdmbase/fullstack-pro/compare/v2.0.1-alpha.2...v2.0.1-alpha.3) (2022-12-27)
31
-
32
- **Note:** Version bump only for package adminide-stack-backend-server
33
-
34
- ## [2.0.1-alpha.2](https://github.com/cdmbase/fullstack-pro/compare/v2.0.1-alpha.0...v2.0.1-alpha.2) (2022-12-27)
35
-
36
- **Note:** Version bump only for package adminide-stack-backend-server
37
-
38
- ## [2.0.1-alpha.0](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.201...v2.0.1-alpha.0) (2022-12-25)
39
-
40
- **Note:** Version bump only for package adminide-stack-backend-server
41
-
42
- ## [1.1.3-alpha.201](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.200...v1.1.3-alpha.201) (2022-12-22)
43
-
44
- **Note:** Version bump only for package adminide-stack-backend-server
45
-
46
- ## [1.1.3-alpha.198](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.197...v1.1.3-alpha.198) (2022-12-18)
47
-
48
- **Note:** Version bump only for package adminide-stack-backend-server
49
-
50
- ## [1.1.3-alpha.193](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.192...v1.1.3-alpha.193) (2022-12-17)
51
-
52
- **Note:** Version bump only for package adminide-stack-backend-server
53
-
54
- ## [1.1.3-alpha.191](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.190...v1.1.3-alpha.191) (2022-12-15)
55
-
56
- **Note:** Version bump only for package adminide-stack-backend-server
57
-
58
- ## [1.1.3-alpha.190](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.189...v1.1.3-alpha.190) (2022-12-13)
59
-
60
- **Note:** Version bump only for package adminide-stack-backend-server
61
-
62
- ## [1.1.3-alpha.188](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.187...v1.1.3-alpha.188) (2022-12-11)
63
-
64
- **Note:** Version bump only for package adminide-stack-backend-server
65
-
66
- ## [1.1.3-alpha.186](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.185...v1.1.3-alpha.186) (2022-12-10)
67
-
68
- **Note:** Version bump only for package adminide-stack-backend-server
69
-
70
- ## [1.1.3-alpha.185](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.184...v1.1.3-alpha.185) (2022-12-10)
71
-
72
- **Note:** Version bump only for package adminide-stack-backend-server
73
-
74
- ## [1.1.3-alpha.182](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.181...v1.1.3-alpha.182) (2022-12-09)
75
-
76
- **Note:** Version bump only for package adminide-stack-backend-server
77
-
78
- ## [1.1.3-alpha.181](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.180...v1.1.3-alpha.181) (2022-12-09)
79
-
80
- **Note:** Version bump only for package adminide-stack-backend-server
81
-
82
- ## [1.1.3-alpha.180](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.179...v1.1.3-alpha.180) (2022-12-09)
83
-
84
- **Note:** Version bump only for package adminide-stack-backend-server
85
-
86
- ## [1.1.3-alpha.179](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.178...v1.1.3-alpha.179) (2022-12-09)
87
-
88
- **Note:** Version bump only for package adminide-stack-backend-server
89
-
90
- ## [1.1.3-alpha.178](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.177...v1.1.3-alpha.178) (2022-12-09)
91
-
92
- **Note:** Version bump only for package adminide-stack-backend-server
93
-
94
- ## [1.1.3-alpha.177](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.176...v1.1.3-alpha.177) (2022-12-07)
95
-
96
- **Note:** Version bump only for package adminide-stack-backend-server
97
-
98
- ## [1.1.3-alpha.176](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.175...v1.1.3-alpha.176) (2022-12-07)
99
-
100
- **Note:** Version bump only for package adminide-stack-backend-server
101
-
102
- ## [1.1.3-alpha.175](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.174...v1.1.3-alpha.175) (2022-12-06)
103
-
104
- **Note:** Version bump only for package adminide-stack-backend-server
105
-
106
- ## [1.1.3-alpha.174](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.173...v1.1.3-alpha.174) (2022-12-04)
107
-
108
- **Note:** Version bump only for package adminide-stack-backend-server
109
-
110
- ## [1.1.3-alpha.173](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.172...v1.1.3-alpha.173) (2022-12-01)
111
-
112
- **Note:** Version bump only for package adminide-stack-backend-server
113
-
114
- ## [1.1.3-alpha.170](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.169...v1.1.3-alpha.170) (2022-12-01)
115
-
116
- **Note:** Version bump only for package adminide-stack-backend-server
117
-
118
- ## [1.1.3-alpha.169](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.168...v1.1.3-alpha.169) (2022-12-01)
119
-
120
- **Note:** Version bump only for package adminide-stack-backend-server
121
-
122
- ## [1.1.3-alpha.164](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.163...v1.1.3-alpha.164) (2022-11-17)
123
-
124
- **Note:** Version bump only for package adminide-stack-backend-server
125
-
126
- ## [1.1.3-alpha.162](https://github.com/cdmbase/fullstack-pro/compare/v1.1.3-alpha.161...v1.1.3-alpha.162) (2022-11-15)
127
-
128
- **Note:** Version bump only for package adminide-stack-backend-server
129
-
130
- ## [1.1.3-alpha.161](https://github.com/cdmbase/fullstack-pro/compare/v0.0.16-3...v1.1.3-alpha.161) (2022-11-15)
131
-
132
- ### Bug Fixes
133
-
134
- - **backend-server:** fix shield issues of reporting every error as UnAuthorised error ([c0a0605](https://github.com/cdmbase/fullstack-pro/commit/c0a0605984de37a139ada757b4ca39365e64b211))
135
- - **backend-server:** sequence of stripe and template migrations ([2ce7bfd](https://github.com/cdmbase/fullstack-pro/commit/2ce7bfdc09b72b4a85780beda6c8dd7b437dd989))
136
- - **billing-api:** make description unique for all rules ([f31e717](https://github.com/cdmbase/fullstack-pro/commit/f31e717f0de7ae7ae99f28d3ec087faf3a10ea70))
137
- - **billing-server:** multiple small fixes ([34d4d55](https://github.com/cdmbase/fullstack-pro/commit/34d4d5575de143314d1ede0ec3afad2a44ea0e19))
138
- - **billing:** stripe connect resolvers and services ([4719f00](https://github.com/cdmbase/fullstack-pro/commit/4719f00103821649e07413d3784463f13ae1a5e4))
139
- - call moleculer service for stripe migrations ([96a33bb](https://github.com/cdmbase/fullstack-pro/commit/96a33bb366bb9c40cf784facf7698c2aaed3cb25)), closes [#1116](https://github.com/cdmbase/fullstack-pro/issues/1116)
140
- - handled mobile authentication with and password renew ([34b2027](https://github.com/cdmbase/fullstack-pro/commit/34b2027ef977912458c107e8a435012677f796c8))
141
- - header of undefined issue ([4f2a224](https://github.com/cdmbase/fullstack-pro/commit/4f2a224314023a357a3fff03ecc7f1e60d7ca777))
142
- - refactored account model and populated countries using county service ([1811396](https://github.com/cdmbase/fullstack-pro/commit/1811396ba1c4b2f8500b1f5660a0a4453c677f15))
143
- - resolved package.json ([802574c](https://github.com/cdmbase/fullstack-pro/commit/802574c93bd946d3bdfa45f7730e9c6a51341334))
144
- - restrict mongoose version ([3f00cbe](https://github.com/cdmbase/fullstack-pro/commit/3f00cbe642655bf6aa7e2459e03bd61c9c7e7a80))
145
- - **workspaces:** fix status icon on workspaces list screen, ([4cb7d5e](https://github.com/cdmbase/fullstack-pro/commit/4cb7d5efc946ff282762984802ebeb05b8b17f49))
146
-
147
- - refactor(Added Preference Settings Component): ([7883533](https://github.com/cdmbase/fullstack-pro/commit/78835339ba1e36fce24a53a1e3fa3735d769f2a5))
148
-
149
- ### Features
150
-
151
- - :sparkles: Role Based Configuration ([f623ad0](https://github.com/cdmbase/fullstack-pro/commit/f623ad0ab5394685ba335f44d64cc94f28f2acc7))
152
- - **add lifecycle and extension:** Added setup for invoking services in the browser side resolvers ([d536d7d](https://github.com/cdmbase/fullstack-pro/commit/d536d7d757a19b011c106d7fd33290286d2f17c5))
153
- - add roles and abilities for both teams and workspaces/projects ([fb3e899](https://github.com/cdmbase/fullstack-pro/commit/fb3e899abfe3bb24df697ce8abc58a5b03a0f499))
154
- - **Better streamline of code and use molecuer service:** Moleculer Service and app fixes ([6555252](https://github.com/cdmbase/fullstack-pro/commit/6555252275514c7e72598e03ff0775cb5d9fa04e))
155
- - **billing:** add payment profiles & stripe connect integration ([5836c0b](https://github.com/cdmbase/fullstack-pro/commit/5836c0b0d43611908d13c929f0de18be351f5e1e))
156
- - **billing:** move billing module from user to organization ([c2c5abb](https://github.com/cdmbase/fullstack-pro/commit/c2c5abb80886df20cac11a5756c6fa02ce8fde27))
157
- - read rules from single module ([52eb42c](https://github.com/cdmbase/fullstack-pro/commit/52eb42c2c4a058850fbac26fbae8648ac7ad80e9))
158
- - **registry-api:** add api management backend ([a0f3921](https://github.com/cdmbase/fullstack-pro/commit/a0f392153b686e1bdfaae4f3823ab17085684067)), closes [#1003](https://github.com/cdmbase/fullstack-pro/issues/1003)
159
- - updated common-stack version ([70a2b93](https://github.com/cdmbase/fullstack-pro/commit/70a2b939a35763ddb8fabdec59757d2c17841d39))
160
-
161
- ### Reverts
162
-
163
- - Revert "udpate redis typefix" ([a262508](https://github.com/cdmbase/fullstack-pro/commit/a262508a6fc45236ffd14622fc23dd689698c435))
164
-
165
- ### BREAKING CHANGES
166
-
167
- -
168
-
169
- # Change Log
170
-
171
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
172
-
173
- <a name="0.2.0"></a>
174
-
175
- # [0.2.0](https://github.com/DxCx/webpack-apollo-server/compare/v0.1.0...v0.2.0) (2017-01-25)
176
-
177
- ### Bug Fixes
178
-
179
- - **schema:** Fixed connector test ([cfbe262](https://github.com/DxCx/webpack-apollo-server/commit/cfbe262))
180
- - **tests:** replace mocha/chai/istanbul with jest ([f8f9527](https://github.com/DxCx/webpack-apollo-server/commit/f8f9527))
181
-
182
- ### Features
183
-
184
- - **compilers:** Removed babel ([39275e9](https://github.com/DxCx/webpack-apollo-server/commit/39275e9))
185
- - **formatting:** Added editor config and applied style throughout the project. ([1aa8016](https://github.com/DxCx/webpack-apollo-server/commit/1aa8016))
186
- - **schema:** Passing connectors through context ([1bd1ac7](https://github.com/DxCx/webpack-apollo-server/commit/1bd1ac7))
187
-
188
- <a name="0.1.0"></a>
189
-
190
- # 0.1.0 (2016-09-09)
191
-
192
- ### Features
193
-
194
- - **graphql-tools:** changed vanilla graphql to graphql-tools ([#9](https://github.com/DxCx/webpack-apollo-server/issues/9)) ([b8435b1](https://github.com/DxCx/webpack-apollo-server/commit/b8435b1)), closes [graphql-tools/#121](https://github.com/DxCx/webpack-apollo-server/issues/121)
195
- - **standard-version:** Added standard-version for auto SemVer ([e311e3e](https://github.com/DxCx/webpack-apollo-server/commit/e311e3e))
196
- - **tests:** Added testing using mocha & istanbul ([#7](https://github.com/DxCx/webpack-apollo-server/issues/7)) ([0463daa](https://github.com/DxCx/webpack-apollo-server/commit/0463daa))
@@ -1,235 +0,0 @@
1
- """
2
- Address City Interface
3
- """
4
- interface ICity {
5
- id: ID!
6
- name: String!
7
- state: ITerritorialState!
8
- location: GeoLocation
9
- createdAt: DateTime!
10
- updatedAt: DateTime!
11
- }
12
-
13
- """
14
- Address City Create Input
15
- """
16
- input CityInput {
17
- """
18
- Name of the state to display
19
- """
20
- name: String!
21
- """
22
- ID of State to associate
23
- """
24
- state: TerritorialStateInput!
25
- }
26
-
27
- """
28
- Address City Update Input
29
- """
30
- input CityUpdateInput {
31
- name: String
32
- state: TerritorialStateUpdateInput!
33
- }
34
-
35
- """
36
- Pub N Go Property Address City
37
- """
38
- type City implements ICity {
39
- id: ID!
40
- name: String!
41
- state: State!
42
- location: GeoLocation
43
- createdAt: DateTime!
44
- updatedAt: DateTime!
45
- }
46
-
47
- type Cities {
48
- totalCount: Int!
49
- data: [City]
50
- }
51
-
52
- input CitiesOptions {
53
- criteria: AnyObject
54
- limit: Int
55
- skip: Int
56
- sort: Sort
57
- }
58
-
59
- input CitiesInput {
60
- countryOptions: CitiesOptions
61
- stateOptions: CitiesOptions
62
- cityOptions: CitiesOptions
63
- }
64
-
65
- extend type Query {
66
- cities(input: CitiesInput): Cities!
67
- city(id: ID!): City!
68
- }
69
-
70
- extend type Mutation {
71
- createCity(propertyCity: CityInput!): City!
72
- updateCity(id: ID!, propertyCity: CityUpdateInput!): City!
73
- deleteCity(id: ID!): Boolean!
74
- }
75
-
76
- interface ICountry {
77
- id: ID!
78
- name: String!
79
- phone_code: String!
80
- currency: String
81
- currency_symbol: String
82
- emoji: String
83
- location: GeoLocation
84
- createdAt: DateTime!
85
- updatedAt: DateTime!
86
- }
87
-
88
- type Country implements ICountry {
89
- id: ID!
90
- name: String!
91
- phone_code: String!
92
- currency: String
93
- currency_symbol: String
94
- emoji: String
95
- location: GeoLocation
96
- states(criteria: AnyObject, limit: Int, skip: Int, sort: Sort): States
97
- createdAt: DateTime!
98
- updatedAt: DateTime!
99
- }
100
-
101
- input CountryInput {
102
- name: String!
103
- }
104
-
105
- type Countries {
106
- totalCount: Int!
107
- data: [Country]
108
- }
109
-
110
- extend type Query {
111
- countries(criteria: AnyObject, limit: Int, skip: Int, sort: Sort): Countries!
112
- country(id: ID!): Country!
113
- countryByName(name: String!): Country!
114
- }
115
-
116
- extend type Mutation {
117
- createCountry(country: CountryInput!): Country!
118
- updateCountry(id: ID!, country: CountryInput!): Country!
119
- deleteCountry(id: ID!): Boolean!
120
- }
121
-
122
- type Country implements ICountry{
123
- id: ID!
124
- name: String!
125
- phone_code: String!
126
- currency: String
127
- currency_symbol: String
128
- emoji: String
129
- location: GeoLocation
130
- states(criteria: AnyObject, limit: Int, skip: Int, sort: Sort): States
131
- createdAt: DateTime!
132
- updatedAt: DateTime!
133
- }
134
-
135
- type Countries {
136
- totalCount: Int!
137
- data: [Country]
138
- }
139
-
140
- extend type Query {
141
- countries(criteria: AnyObject, limit: Int, skip: Int, sort: Sort): Countries!
142
- country(id: ID!): Country!
143
- countryByName(name: String!): Country!
144
- }
145
-
146
- extend type Mutation {
147
- createCountry(country: CountryInput!): Country!
148
- updateCountry(id: ID!, country: CountryInput!): Country!
149
- deleteCountry(id: ID!): Boolean!
150
- }
151
- """
152
- Territorial State
153
- """
154
- interface ITerritorialState {
155
- id: ID!
156
- name: String!
157
- country: ICountry!
158
- location: GeoLocation
159
- createdAt: DateTime!
160
- updatedAt: DateTime!
161
- }
162
-
163
- """
164
- Address State Create Input
165
- """
166
- input TerritorialStateInput {
167
- """
168
- Name of the country to display
169
- """
170
- name: String!
171
- """
172
- ID of Country to associate
173
- """
174
- country: String!
175
- }
176
-
177
- """
178
- Address State Update Input
179
- """
180
- input TerritorialStateUpdateInput {
181
- name: String
182
- country: Int!
183
- }
184
-
185
-
186
- """
187
- Address State
188
- """
189
- type State implements ITerritorialState{
190
- id: ID!
191
- name: String!
192
- country: Country!
193
- cities(criteria: AnyObject, limit: Int, skip: Int, sort: Sort): Cities!
194
- location: GeoLocation
195
- createdAt: DateTime!
196
- updatedAt: DateTime!
197
- }
198
-
199
- """
200
- Address State Create Input
201
- """
202
- input StateInput {
203
- """
204
- Name of the country to display
205
- """
206
- name: String!
207
- """
208
- ID of Country to associate
209
- """
210
- country: String!
211
- }
212
-
213
- """
214
- Address State Update Input
215
- """
216
- input StateUpdateInput {
217
- name: String
218
- country: String!
219
- }
220
-
221
- type States {
222
- totalCount: Int!
223
- data: [State]
224
- }
225
-
226
- extend type Query {
227
- states(criteria: AnyObject, limit: Int, skip: Int, sort: Sort): States!
228
- state(id: ID!): State!
229
- }
230
-
231
- extend type Mutation {
232
- createState(state: StateInput!): State!
233
- updateState(id: ID!, state: StateUpdateInput!): State!
234
- deleteState(id: ID!): Boolean!
235
- }