nestia 3.1.1-dev.20221016 → 3.1.1-dev.20221016-3

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 (220) hide show
  1. package/package.json +11 -2
  2. package/.eslintrc.cjs +0 -33
  3. package/.github/FUNDING.yml +0 -3
  4. package/.github/ISSUE_TEMPLATE/BUG_REPORT.md +0 -42
  5. package/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md +0 -13
  6. package/.github/ISSUE_TEMPLATE/QUESTION.md +0 -11
  7. package/.github/PULL_REQUEST_TEMPLATE.md +0 -13
  8. package/.github/workflows/build.yml +0 -14
  9. package/.prettierignore +0 -5
  10. package/.vscode/settings.json +0 -10
  11. package/CODE_OF_CONDUCT.md +0 -133
  12. package/demo/encrypted/src/Backend.ts +0 -27
  13. package/demo/encrypted/src/Configuration.ts +0 -7
  14. package/demo/encrypted/src/api/HttpError.ts +0 -1
  15. package/demo/encrypted/src/api/IConnection.ts +0 -1
  16. package/demo/encrypted/src/api/Primitive.ts +0 -1
  17. package/demo/encrypted/src/api/__internal/AesPkcs5.ts +0 -1
  18. package/demo/encrypted/src/api/__internal/Fetcher.ts +0 -1
  19. package/demo/encrypted/src/api/functional/index.ts +0 -7
  20. package/demo/encrypted/src/api/functional/sellers/authenticate/index.ts +0 -136
  21. package/demo/encrypted/src/api/functional/sellers/authenticate/password/index.ts +0 -53
  22. package/demo/encrypted/src/api/functional/sellers/index.ts +0 -7
  23. package/demo/encrypted/src/api/index.ts +0 -9
  24. package/demo/encrypted/src/api/module.ts +0 -10
  25. package/demo/encrypted/src/api/structures/ISeller.ts +0 -56
  26. package/demo/encrypted/src/controllers/SellerAuthenticateController.ts +0 -70
  27. package/demo/encrypted/src/test/features/test_seller_exit.ts +0 -18
  28. package/demo/encrypted/src/test/features/test_seller_join.ts +0 -19
  29. package/demo/encrypted/src/test/features/test_seller_login.ts +0 -16
  30. package/demo/encrypted/src/test/features/test_seller_password_change.ts +0 -18
  31. package/demo/encrypted/src/test/index.ts +0 -24
  32. package/demo/encrypted/src/test/internal/DynamicImportIterator.ts +0 -109
  33. package/demo/encrypted/src/test/internal/StopWatch.ts +0 -15
  34. package/demo/encrypted/swagger.json +0 -257
  35. package/demo/encrypted/tsconfig.json +0 -8
  36. package/demo/generic/nestia.config.ts +0 -10
  37. package/demo/generic/src/Backend.ts +0 -27
  38. package/demo/generic/src/Configuration.ts +0 -7
  39. package/demo/generic/src/api/HttpError.ts +0 -1
  40. package/demo/generic/src/api/IConnection.ts +0 -1
  41. package/demo/generic/src/api/Primitive.ts +0 -1
  42. package/demo/generic/src/api/__internal/AesPkcs5.ts +0 -1
  43. package/demo/generic/src/api/__internal/Fetcher.ts +0 -1
  44. package/demo/generic/src/api/functional/consumers/index.ts +0 -7
  45. package/demo/generic/src/api/functional/consumers/sales/index.ts +0 -8
  46. package/demo/generic/src/api/functional/consumers/sales/questions/index.ts +0 -136
  47. package/demo/generic/src/api/functional/consumers/sales/reviews/index.ts +0 -136
  48. package/demo/generic/src/api/functional/index.ts +0 -7
  49. package/demo/generic/src/api/index.ts +0 -9
  50. package/demo/generic/src/api/module.ts +0 -10
  51. package/demo/generic/src/api/structures/IAttachmentFile.ts +0 -21
  52. package/demo/generic/src/api/structures/ISaleArticle.ts +0 -79
  53. package/demo/generic/src/api/structures/ISaleInquiry.ts +0 -34
  54. package/demo/generic/src/api/structures/ISaleInquiryAnswer.ts +0 -23
  55. package/demo/generic/src/api/structures/ISaleQuestion.ts +0 -22
  56. package/demo/generic/src/api/structures/ISaleReview.ts +0 -32
  57. package/demo/generic/src/controllers/ConsumerSaleQuestionsController.ts +0 -33
  58. package/demo/generic/src/controllers/ConsumerSaleReviewsController.ts +0 -34
  59. package/demo/generic/src/controllers/SaleInquiriesController.ts +0 -87
  60. package/demo/generic/src/test/features/test_question_store.ts +0 -21
  61. package/demo/generic/src/test/features/test_question_update.ts +0 -42
  62. package/demo/generic/src/test/features/test_review_store.ts +0 -22
  63. package/demo/generic/src/test/features/test_review_update.ts +0 -44
  64. package/demo/generic/src/test/index.ts +0 -24
  65. package/demo/generic/src/test/internal/DynamicImportIterator.ts +0 -109
  66. package/demo/generic/src/test/internal/StopWatch.ts +0 -15
  67. package/demo/generic/swagger.json +0 -736
  68. package/demo/generic/tsconfig.json +0 -9
  69. package/demo/multiple-paths/src/Backend.ts +0 -27
  70. package/demo/multiple-paths/src/Configuration.ts +0 -7
  71. package/demo/multiple-paths/src/api/HttpError.ts +0 -1
  72. package/demo/multiple-paths/src/api/IConnection.ts +0 -1
  73. package/demo/multiple-paths/src/api/Primitive.ts +0 -1
  74. package/demo/multiple-paths/src/api/__internal/AesPkcs5.ts +0 -1
  75. package/demo/multiple-paths/src/api/__internal/Fetcher.ts +0 -1
  76. package/demo/multiple-paths/src/api/functional/consumers/index.ts +0 -7
  77. package/demo/multiple-paths/src/api/functional/consumers/sales/articles/comments/index.ts +0 -65
  78. package/demo/multiple-paths/src/api/functional/consumers/sales/articles/index.ts +0 -7
  79. package/demo/multiple-paths/src/api/functional/consumers/sales/index.ts +0 -7
  80. package/demo/multiple-paths/src/api/functional/health/alive/index.ts +0 -42
  81. package/demo/multiple-paths/src/api/functional/health/index.ts +0 -44
  82. package/demo/multiple-paths/src/api/functional/healthy/alive/index.ts +0 -42
  83. package/demo/multiple-paths/src/api/functional/healthy/index.ts +0 -44
  84. package/demo/multiple-paths/src/api/functional/index.ts +0 -10
  85. package/demo/multiple-paths/src/api/functional/sellers/index.ts +0 -7
  86. package/demo/multiple-paths/src/api/functional/sellers/sales/articles/comments/index.ts +0 -65
  87. package/demo/multiple-paths/src/api/functional/sellers/sales/articles/index.ts +0 -7
  88. package/demo/multiple-paths/src/api/functional/sellers/sales/index.ts +0 -7
  89. package/demo/multiple-paths/src/api/index.ts +0 -9
  90. package/demo/multiple-paths/src/api/module.ts +0 -10
  91. package/demo/multiple-paths/src/api/structures/ISaleArticleComment.ts +0 -93
  92. package/demo/multiple-paths/src/controllers/HealthController.ts +0 -7
  93. package/demo/multiple-paths/src/controllers/MultipleController.ts +0 -56
  94. package/demo/multiple-paths/src/test/features/test_consumer_sale_article_comment_store.ts +0 -21
  95. package/demo/multiple-paths/src/test/features/test_health_checks.ts +0 -10
  96. package/demo/multiple-paths/src/test/features/test_seller_sale_article_store.ts +0 -21
  97. package/demo/multiple-paths/src/test/index.ts +0 -24
  98. package/demo/multiple-paths/src/test/internal/DynamicImportIterator.ts +0 -109
  99. package/demo/multiple-paths/src/test/internal/StopWatch.ts +0 -15
  100. package/demo/multiple-paths/swagger.json +0 -338
  101. package/demo/multiple-paths/tsconfig.json +0 -3
  102. package/demo/recursive/src/Backend.ts +0 -27
  103. package/demo/recursive/src/Configuration.ts +0 -7
  104. package/demo/recursive/src/api/HttpError.ts +0 -1
  105. package/demo/recursive/src/api/IConnection.ts +0 -1
  106. package/demo/recursive/src/api/Primitive.ts +0 -1
  107. package/demo/recursive/src/api/__internal/AesPkcs5.ts +0 -1
  108. package/demo/recursive/src/api/__internal/Fetcher.ts +0 -1
  109. package/demo/recursive/src/api/functional/consumers/index.ts +0 -7
  110. package/demo/recursive/src/api/functional/consumers/systematic/categories/index.ts +0 -117
  111. package/demo/recursive/src/api/functional/consumers/systematic/index.ts +0 -7
  112. package/demo/recursive/src/api/functional/index.ts +0 -7
  113. package/demo/recursive/src/api/index.ts +0 -9
  114. package/demo/recursive/src/api/module.ts +0 -10
  115. package/demo/recursive/src/api/structures/ICategory.ts +0 -49
  116. package/demo/recursive/src/consumer.categories.controller.ts +0 -59
  117. package/demo/recursive/src/test/features/test_category_at.ts +0 -11
  118. package/demo/recursive/src/test/features/test_category_invert.ts +0 -14
  119. package/demo/recursive/src/test/features/test_category_top.ts +0 -11
  120. package/demo/recursive/src/test/index.ts +0 -24
  121. package/demo/recursive/src/test/internal/DynamicImportIterator.ts +0 -109
  122. package/demo/recursive/src/test/internal/StopWatch.ts +0 -15
  123. package/demo/recursive/swagger.json +0 -216
  124. package/demo/recursive/tsconfig.json +0 -3
  125. package/demo/safe/nestia.config.ts +0 -13
  126. package/demo/safe/src/Backend.ts +0 -27
  127. package/demo/safe/src/Configuration.ts +0 -7
  128. package/demo/safe/src/api/HttpError.ts +0 -1
  129. package/demo/safe/src/api/IConnection.ts +0 -1
  130. package/demo/safe/src/api/Primitive.ts +0 -1
  131. package/demo/safe/src/api/__internal/AesPkcs5.ts +0 -1
  132. package/demo/safe/src/api/__internal/Fetcher.ts +0 -1
  133. package/demo/safe/src/api/functional/consumers/index.ts +0 -7
  134. package/demo/safe/src/api/functional/consumers/sales/articles/comments/index.ts +0 -69
  135. package/demo/safe/src/api/functional/consumers/sales/articles/index.ts +0 -7
  136. package/demo/safe/src/api/functional/consumers/sales/index.ts +0 -7
  137. package/demo/safe/src/api/functional/index.ts +0 -7
  138. package/demo/safe/src/api/index.ts +0 -9
  139. package/demo/safe/src/api/module.ts +0 -10
  140. package/demo/safe/src/api/structures/ISaleArticleComment.ts +0 -93
  141. package/demo/safe/src/controllers/ConsumerSaleArticleCommentsController.ts +0 -63
  142. package/demo/safe/src/test/features/test_comment_store.ts +0 -23
  143. package/demo/safe/src/test/index.ts +0 -24
  144. package/demo/safe/src/test/internal/DynamicImportIterator.ts +0 -109
  145. package/demo/safe/src/test/internal/StopWatch.ts +0 -15
  146. package/demo/safe/swagger.json +0 -217
  147. package/demo/safe/tsconfig.json +0 -3
  148. package/demo/tsconfig.base.json +0 -70
  149. package/demo/union/nestia.config.ts +0 -9
  150. package/demo/union/src/Backend.ts +0 -27
  151. package/demo/union/src/Configuration.ts +0 -7
  152. package/demo/union/src/api/HttpError.ts +0 -1
  153. package/demo/union/src/api/IConnection.ts +0 -1
  154. package/demo/union/src/api/Primitive.ts +0 -1
  155. package/demo/union/src/api/__internal/AesPkcs5.ts +0 -1
  156. package/demo/union/src/api/__internal/Fetcher.ts +0 -1
  157. package/demo/union/src/api/functional/consumers/index.ts +0 -7
  158. package/demo/union/src/api/functional/consumers/sales/entire_articles/index.ts +0 -121
  159. package/demo/union/src/api/functional/consumers/sales/index.ts +0 -9
  160. package/demo/union/src/api/functional/consumers/sales/questions/index.ts +0 -57
  161. package/demo/union/src/api/functional/consumers/sales/reviews/index.ts +0 -54
  162. package/demo/union/src/api/functional/index.ts +0 -7
  163. package/demo/union/src/api/index.ts +0 -9
  164. package/demo/union/src/api/module.ts +0 -10
  165. package/demo/union/src/api/structures/IAttachmentFile.ts +0 -26
  166. package/demo/union/src/api/structures/IPage.ts +0 -80
  167. package/demo/union/src/api/structures/ISaleArticle.ts +0 -107
  168. package/demo/union/src/api/structures/ISaleEntireArticle.ts +0 -22
  169. package/demo/union/src/api/structures/ISaleInquiry.ts +0 -56
  170. package/demo/union/src/api/structures/ISaleInquiryAnswer.ts +0 -23
  171. package/demo/union/src/api/structures/ISaleQuestion.ts +0 -27
  172. package/demo/union/src/api/structures/ISaleReview.ts +0 -42
  173. package/demo/union/src/controllers/ConsumerSaleEntireArticlesController.ts +0 -109
  174. package/demo/union/src/controllers/ConsumerSaleQuestionsController.ts +0 -45
  175. package/demo/union/src/controllers/ConsumerSaleReviewsController.ts +0 -44
  176. package/demo/union/src/test/features/test_sale_entire_articles_at.ts +0 -16
  177. package/demo/union/src/test/features/test_sale_entire_articles_index.ts +0 -27
  178. package/demo/union/src/test/index.ts +0 -24
  179. package/demo/union/src/test/internal/DynamicImportIterator.ts +0 -109
  180. package/demo/union/src/test/internal/StopWatch.ts +0 -15
  181. package/demo/union/swagger.json +0 -991
  182. package/demo/union/tsconfig.json +0 -3
  183. package/preliminaries/nestia.config.ts +0 -70
  184. package/prettier.config.js +0 -7
  185. package/src/IConfiguration.ts +0 -119
  186. package/src/NestiaApplication.ts +0 -185
  187. package/src/analyses/ControllerAnalyzer.ts +0 -204
  188. package/src/analyses/GenericAnalyzer.ts +0 -53
  189. package/src/analyses/ImportAnalyzer.ts +0 -144
  190. package/src/analyses/PathAnalyzer.ts +0 -58
  191. package/src/analyses/ReflectAnalyzer.ts +0 -280
  192. package/src/analyses/SourceFinder.ts +0 -59
  193. package/src/executable/internal/CompilerOptions.ts +0 -18
  194. package/src/executable/internal/NestiaCommand.ts +0 -174
  195. package/src/executable/internal/NestiaConfig.ts +0 -36
  196. package/src/executable/internal/NestiaStarter.ts +0 -45
  197. package/src/executable/internal/nestia.config.getter.ts +0 -11
  198. package/src/executable/nestia.ts +0 -55
  199. package/src/generates/FileGenerator.ts +0 -156
  200. package/src/generates/FunctionGenerator.ts +0 -287
  201. package/src/generates/SdkGenerator.ts +0 -49
  202. package/src/generates/SwaggerGenerator.ts +0 -381
  203. package/src/index.ts +0 -2
  204. package/src/module.ts +0 -2
  205. package/src/structures/IController.ts +0 -27
  206. package/src/structures/IRoute.ts +0 -28
  207. package/src/structures/ISwagger.ts +0 -55
  208. package/src/structures/ITypeTuple.ts +0 -6
  209. package/src/structures/MethodType.ts +0 -11
  210. package/src/structures/ParamCategory.ts +0 -1
  211. package/src/structures/TypeEntry.ts +0 -22
  212. package/src/test/TestBuilder.ts +0 -49
  213. package/src/test/index.ts +0 -59
  214. package/src/test/test.builder.executor.ts +0 -11
  215. package/src/utils/ArrayUtil.ts +0 -26
  216. package/src/utils/DirectoryUtil.ts +0 -44
  217. package/src/utils/ImportDictionary.ts +0 -57
  218. package/src/utils/MapUtil.ts +0 -14
  219. package/src/utils/StripEnums.ts +0 -10
  220. package/tsconfig.json +0 -82
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nestia",
3
- "version": "3.1.1-dev.20221016",
3
+ "version": "3.1.1-dev.20221016-3",
4
4
  "description": "Automatic SDK and Document generator for the NestJS",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -63,5 +63,14 @@
63
63
  "typescript": "^4.8.4",
64
64
  "typescript-transform-paths": "^3.3.1",
65
65
  "uuid": "^8.3.2"
66
- }
66
+ },
67
+ "files": [
68
+ "README.md",
69
+ "LICENSE",
70
+ "CONTRIBUTING.md",
71
+ "CODE_OF_CONDUCT",
72
+ "template",
73
+ "bundle",
74
+ "lib"
75
+ ]
67
76
  }
package/.eslintrc.cjs DELETED
@@ -1,33 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- plugins: [
4
- "@typescript-eslint"
5
- ],
6
- extends: [
7
- "plugin:@typescript-eslint/recommended",
8
- ],
9
- parser: "@typescript-eslint/parser",
10
- parserOptions: {
11
- project: "tsconfig.json"
12
- },
13
- overrides: [
14
- {
15
- files: ["src/**/*.ts"],
16
- rules: {
17
- "@typescript-eslint/consistent-type-definitions": "off",
18
- "@typescript-eslint/no-duplicate-imports": "error",
19
- "@typescript-eslint/no-empty-function": "off",
20
- "@typescript-eslint/no-empty-interface": "off",
21
- "@typescript-eslint/no-explicit-any": "off",
22
- "@typescript-eslint/no-inferrable-types": "off",
23
- "@typescript-eslint/no-namespace": "off",
24
- "@typescript-eslint/no-inferrable-types": "off",
25
- "@typescript-eslint/no-non-null-assertion": "off",
26
- "@typescript-eslint/no-unused-vars": "off",
27
- "@typescript-eslint/no-var-requires": "off",
28
- "@typescript-eslint/no-floating-promises": "error",
29
- "@typescript-eslint/prefer-as-const": "error",
30
- }
31
- }
32
- ]
33
- };
@@ -1,3 +0,0 @@
1
- # These are supported funding model platforms
2
-
3
- open_collective: nestia
@@ -1,42 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Create a report to help us improve
4
-
5
- ---
6
-
7
- ## Bug Report
8
- Note that, the bug you're reporting may have registered in the [issues](https://github.com/samchon/nestia/search?type=issues) by another user. Even the bug you're reporting may have been fixed in the `@next` version. In such reasons, I recommend you to check the old [issues](https://github.com/samchon/nestia/search?type=issues) and reproduct your code with the `@next` version before publishing the bug reporting issue.
9
-
10
- ```bash
11
- `npm install --save-dev nestia@next`
12
- ```
13
-
14
- When the same error occurs even in the `@next` version, then please fill the below template:
15
-
16
- ### Summary
17
- Write a short summary of the bug in here.
18
-
19
- - **SDK Version**: 2.1.0-dev.20220505
20
- - **Expected behavior**:
21
- - **Actual behavior**:
22
-
23
- Write detailed description in here.
24
-
25
-
26
-
27
- ### Code occuring the bug
28
- ```typescript
29
- /* Demonstration code occuring the bug you're reporting */
30
- ```
31
-
32
- Write the demonstration code occuring the bug you're reporting.
33
-
34
- However, as the `nestia` is not a typical library who being used by the `import` statement but a executable program generating the SDK (Software Development Kit), it would be difficult to describe the bug with only the demonstration code.
35
-
36
- In that case, you'd better to make a demonstration project occuring the bug to report. After the demonstration repository composition, fill the below `bash` script section. Of course, if you can describe the bug clearly, without the demonstration project construction, just skip it. Creating the demonstration repository is not essential.
37
-
38
- ```bash
39
- git clone https://github.com/someone/nestia-bug-report-xxx
40
- cd nestia-bug-report-xxx
41
- npx nestia sdk
42
- ```
@@ -1,13 +0,0 @@
1
- ---
2
- name: Feature request
3
- about: Suggest an idea for this project
4
-
5
- ---
6
-
7
- ## Feature Request
8
- Thanks for your suggestion. Feel free to just state your idea. Writing the issue, it would better to filling the below items:
9
-
10
- - A description of the problem you're trying to solve.
11
- - An overview of the suggested solution.
12
- - Examples of how the suggestion whould work in various places.
13
- - Code examples showing the expected behavior.
@@ -1,11 +0,0 @@
1
- ---
2
- name: Question
3
- about: What do you want to know?
4
-
5
- ---
6
-
7
- ## Question
8
- I always welcome any questions about this backend proejct. However, half of questions can be solved by traveling [README.md](https://github.com/samchon/nestia) or old [issues](https://github.com/samchon/nestia/search?type=issues). Therefore, I recommend you to visit them before. If you have a question that has not been treated and you're extremely urgently, just contact me.
9
-
10
- - E-mail: samchon.github@gmail.com
11
- - Mobile: 82-10-3627-0016
@@ -1,13 +0,0 @@
1
- Before submitting a Pull Request, please test your code.
2
-
3
- If you created a new created a new feature, then create the unit test function, too.
4
-
5
- ```bash
6
- # COMPILE THE BACKEND SERVER
7
- npm run build
8
-
9
- # RUN THE TEST AUTOMATION PROGRAM
10
- npm run test
11
- ```
12
-
13
- Learn more about the [CONTRIBUTING](CONTRIBUTING.md)
@@ -1,14 +0,0 @@
1
- name: build
2
- on: [push, pull_request]
3
-
4
- jobs:
5
- Ubuntu:
6
- runs-on: ubuntu-latest
7
- steps:
8
- - uses: actions/checkout@v1
9
- - uses: actions/setup-node@v1
10
- with:
11
- node-version: 12.x
12
- - run: npm install
13
- - run: npm run build
14
- - run: npm run test
package/.prettierignore DELETED
@@ -1,5 +0,0 @@
1
- bundle
2
- lib
3
- node_modules
4
-
5
- README.md
@@ -1,10 +0,0 @@
1
- {
2
- "editor.tabSize": 4,
3
- "[typescript]": {
4
- "editor.defaultFormatter": "esbenp.prettier-vscode",
5
- "editor.formatOnSave": true,
6
- "editor.codeActionsOnSave": {
7
- "source.fixAll.eslint": true
8
- },
9
- }
10
- }
@@ -1,133 +0,0 @@
1
-
2
- # Contributor Covenant Code of Conduct
3
-
4
- ## Our Pledge
5
-
6
- We as members, contributors, and leaders pledge to make participation in our
7
- community a harassment-free experience for everyone, regardless of age, body
8
- size, visible or invisible disability, ethnicity, sex characteristics, gender
9
- identity and expression, level of experience, education, socio-economic status,
10
- nationality, personal appearance, race, caste, color, religion, or sexual identity
11
- and orientation.
12
-
13
- We pledge to act and interact in ways that contribute to an open, welcoming,
14
- diverse, inclusive, and healthy community.
15
-
16
- ## Our Standards
17
-
18
- Examples of behavior that contributes to a positive environment for our
19
- community include:
20
-
21
- * Demonstrating empathy and kindness toward other people
22
- * Being respectful of differing opinions, viewpoints, and experiences
23
- * Giving and gracefully accepting constructive feedback
24
- * Accepting responsibility and apologizing to those affected by our mistakes,
25
- and learning from the experience
26
- * Focusing on what is best not just for us as individuals, but for the
27
- overall community
28
-
29
- Examples of unacceptable behavior include:
30
-
31
- * The use of sexualized language or imagery, and sexual attention or
32
- advances of any kind
33
- * Trolling, insulting or derogatory comments, and personal or political attacks
34
- * Public or private harassment
35
- * Publishing others' private information, such as a physical or email
36
- address, without their explicit permission
37
- * Other conduct which could reasonably be considered inappropriate in a
38
- professional setting
39
-
40
- ## Enforcement Responsibilities
41
-
42
- Community leaders are responsible for clarifying and enforcing our standards of
43
- acceptable behavior and will take appropriate and fair corrective action in
44
- response to any behavior that they deem inappropriate, threatening, offensive,
45
- or harmful.
46
-
47
- Community leaders have the right and responsibility to remove, edit, or reject
48
- comments, commits, code, wiki edits, issues, and other contributions that are
49
- not aligned to this Code of Conduct, and will communicate reasons for moderation
50
- decisions when appropriate.
51
-
52
- ## Scope
53
-
54
- This Code of Conduct applies within all community spaces, and also applies when
55
- an individual is officially representing the community in public spaces.
56
- Examples of representing our community include using an official e-mail address,
57
- posting via an official social media account, or acting as an appointed
58
- representative at an online or offline event.
59
-
60
- ## Enforcement
61
-
62
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
63
- reported to the community leaders responsible for enforcement at
64
- [INSERT CONTACT METHOD].
65
- All complaints will be reviewed and investigated promptly and fairly.
66
-
67
- All community leaders are obligated to respect the privacy and security of the
68
- reporter of any incident.
69
-
70
- ## Enforcement Guidelines
71
-
72
- Community leaders will follow these Community Impact Guidelines in determining
73
- the consequences for any action they deem in violation of this Code of Conduct:
74
-
75
- ### 1. Correction
76
-
77
- **Community Impact**: Use of inappropriate language or other behavior deemed
78
- unprofessional or unwelcome in the community.
79
-
80
- **Consequence**: A private, written warning from community leaders, providing
81
- clarity around the nature of the violation and an explanation of why the
82
- behavior was inappropriate. A public apology may be requested.
83
-
84
- ### 2. Warning
85
-
86
- **Community Impact**: A violation through a single incident or series
87
- of actions.
88
-
89
- **Consequence**: A warning with consequences for continued behavior. No
90
- interaction with the people involved, including unsolicited interaction with
91
- those enforcing the Code of Conduct, for a specified period of time. This
92
- includes avoiding interactions in community spaces as well as external channels
93
- like social media. Violating these terms may lead to a temporary or
94
- permanent ban.
95
-
96
- ### 3. Temporary Ban
97
-
98
- **Community Impact**: A serious violation of community standards, including
99
- sustained inappropriate behavior.
100
-
101
- **Consequence**: A temporary ban from any sort of interaction or public
102
- communication with the community for a specified period of time. No public or
103
- private interaction with the people involved, including unsolicited interaction
104
- with those enforcing the Code of Conduct, is allowed during this period.
105
- Violating these terms may lead to a permanent ban.
106
-
107
- ### 4. Permanent Ban
108
-
109
- **Community Impact**: Demonstrating a pattern of violation of community
110
- standards, including sustained inappropriate behavior, harassment of an
111
- individual, or aggression toward or disparagement of classes of individuals.
112
-
113
- **Consequence**: A permanent ban from any sort of public interaction within
114
- the community.
115
-
116
- ## Attribution
117
-
118
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119
- version 2.0, available at
120
- [https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].
121
-
122
- Community Impact Guidelines were inspired by
123
- [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124
-
125
- For answers to common questions about this code of conduct, see the FAQ at
126
- [https://www.contributor-covenant.org/faq][FAQ]. Translations are available
127
- at [https://www.contributor-covenant.org/translations][translations].
128
-
129
- [homepage]: https://www.contributor-covenant.org
130
- [v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
131
- [Mozilla CoC]: https://github.com/mozilla/diversity
132
- [FAQ]: https://www.contributor-covenant.org/faq
133
- [translations]: https://www.contributor-covenant.org/translations
@@ -1,27 +0,0 @@
1
- import helper from "nestia-helper";
2
- import * as nest from "@nestjs/common";
3
- import { NestFactory } from "@nestjs/core";
4
- import { Configuration } from "./Configuration";
5
-
6
- export class Backend {
7
- private application_?: nest.INestApplication;
8
-
9
- public async open(): Promise<void> {
10
- this.application_ = await NestFactory.create(
11
- await helper.EncryptedModule.dynamic(
12
- __dirname + "/controllers",
13
- Configuration.ENCRYPTION_PASSWORD,
14
- ),
15
- { logger: false },
16
- );
17
- await this.application_.listen(Configuration.PORT);
18
- }
19
-
20
- public async close(): Promise<void> {
21
- if (this.application_ === undefined) return;
22
-
23
- const app = this.application_;
24
- delete this.application_;
25
- await app.close();
26
- }
27
- }
@@ -1,7 +0,0 @@
1
- export namespace Configuration {
2
- export const PORT = 12345;
3
- export const ENCRYPTION_PASSWORD = {
4
- key: "a".repeat(32),
5
- iv: "b".repeat(16),
6
- };
7
- }
@@ -1 +0,0 @@
1
- export { HttpError } from "nestia-fetcher";
@@ -1 +0,0 @@
1
- export { IConnection } from "nestia-fetcher";
@@ -1 +0,0 @@
1
- export { Primitive } from "nestia-fetcher";
@@ -1 +0,0 @@
1
- export { AesPkcs5 } from "nestia-fetcher";
@@ -1 +0,0 @@
1
- export { Fetcher } from "nestia-fetcher";
@@ -1,7 +0,0 @@
1
- /**
2
- * @packageDocumentation
3
- * @module api.functional
4
- * @nestia Generated by Nestia - https://github.com/samchon/nestia
5
- */
6
- //================================================================
7
- export * as sellers from "./sellers";
@@ -1,136 +0,0 @@
1
- /**
2
- * @packageDocumentation
3
- * @module api.functional.sellers.authenticate
4
- * @nestia Generated by Nestia - https://github.com/samchon/nestia
5
- */
6
- //================================================================
7
- import { Fetcher, Primitive } from "nestia-fetcher";
8
- import type { IConnection } from "nestia-fetcher";
9
-
10
- import type { ISeller } from "./../../../structures/ISeller";
11
-
12
- export * as password from "./password";
13
-
14
- /**
15
- * Join as a seller.
16
- *
17
- * @param connection connection Information of the remote HTTP(s) server with headers (+encryption password)
18
- * @param input Information of yours
19
- * @return Information of newly joined seller
20
- *
21
- * @controller SellerAuthenticateController.join()
22
- * @path POST /sellers/authenticate/join
23
- * @nestia Generated by Nestia - https://github.com/samchon/nestia
24
- */
25
- export function join
26
- (
27
- connection: IConnection,
28
- input: Primitive<join.Input>
29
- ): Promise<join.Output>
30
- {
31
- return Fetcher.fetch
32
- (
33
- connection,
34
- join.ENCRYPTED,
35
- join.METHOD,
36
- join.path(),
37
- input
38
- );
39
- }
40
- export namespace join
41
- {
42
- export type Input = Primitive<ISeller.IJoin>;
43
- export type Output = Primitive<ISeller>;
44
-
45
- export const METHOD = "POST" as const;
46
- export const PATH: string = "/sellers/authenticate/join";
47
- export const ENCRYPTED: Fetcher.IEncrypted = {
48
- request: true,
49
- response: true,
50
- };
51
-
52
- export function path(): string
53
- {
54
- return `/sellers/authenticate/join`;
55
- }
56
- }
57
-
58
- /**
59
- * Log-in as a seller.
60
- *
61
- * @param connection connection Information of the remote HTTP(s) server with headers (+encryption password)
62
- * @param input Email and password
63
- * @return Information of the seller
64
- *
65
- * @controller SellerAuthenticateController.login()
66
- * @path POST /sellers/authenticate/login
67
- * @nestia Generated by Nestia - https://github.com/samchon/nestia
68
- */
69
- export function login
70
- (
71
- connection: IConnection,
72
- input: Primitive<login.Input>
73
- ): Promise<login.Output>
74
- {
75
- return Fetcher.fetch
76
- (
77
- connection,
78
- login.ENCRYPTED,
79
- login.METHOD,
80
- login.path(),
81
- input
82
- );
83
- }
84
- export namespace login
85
- {
86
- export type Input = Primitive<ISeller.ILogin>;
87
- export type Output = Primitive<ISeller>;
88
-
89
- export const METHOD = "POST" as const;
90
- export const PATH: string = "/sellers/authenticate/login";
91
- export const ENCRYPTED: Fetcher.IEncrypted = {
92
- request: true,
93
- response: true,
94
- };
95
-
96
- export function path(): string
97
- {
98
- return `/sellers/authenticate/login`;
99
- }
100
- }
101
-
102
- /**
103
- * Erase the seller by itself.
104
- *
105
- * @controller SellerAuthenticateController.exit()
106
- * @path DELETE /sellers/authenticate/exit
107
- * @nestia Generated by Nestia - https://github.com/samchon/nestia
108
- */
109
- export function exit
110
- (
111
- connection: IConnection
112
- ): Promise<void>
113
- {
114
- return Fetcher.fetch
115
- (
116
- connection,
117
- exit.ENCRYPTED,
118
- exit.METHOD,
119
- exit.path()
120
- );
121
- }
122
- export namespace exit
123
- {
124
-
125
- export const METHOD = "DELETE" as const;
126
- export const PATH: string = "/sellers/authenticate/exit";
127
- export const ENCRYPTED: Fetcher.IEncrypted = {
128
- request: false,
129
- response: false,
130
- };
131
-
132
- export function path(): string
133
- {
134
- return `/sellers/authenticate/exit`;
135
- }
136
- }
@@ -1,53 +0,0 @@
1
- /**
2
- * @packageDocumentation
3
- * @module api.functional.sellers.authenticate.password
4
- * @nestia Generated by Nestia - https://github.com/samchon/nestia
5
- */
6
- //================================================================
7
- import { Fetcher, Primitive } from "nestia-fetcher";
8
- import type { IConnection } from "nestia-fetcher";
9
-
10
- import type { ISeller } from "./../../../../structures/ISeller";
11
-
12
- /**
13
- * Change password.
14
- *
15
- * @param connection connection Information of the remote HTTP(s) server with headers (+encryption password)
16
- * @param input Old and new passwords
17
- * @return Empty object
18
- *
19
- * @controller SellerAuthenticateController.change()
20
- * @path PATCH /sellers/authenticate/password/change
21
- * @nestia Generated by Nestia - https://github.com/samchon/nestia
22
- */
23
- export function change
24
- (
25
- connection: IConnection,
26
- input: Primitive<change.Input>
27
- ): Promise<void>
28
- {
29
- return Fetcher.fetch
30
- (
31
- connection,
32
- change.ENCRYPTED,
33
- change.METHOD,
34
- change.path(),
35
- input
36
- );
37
- }
38
- export namespace change
39
- {
40
- export type Input = Primitive<ISeller.IChangePassword>;
41
-
42
- export const METHOD = "PATCH" as const;
43
- export const PATH: string = "/sellers/authenticate/password/change";
44
- export const ENCRYPTED: Fetcher.IEncrypted = {
45
- request: true,
46
- response: false,
47
- };
48
-
49
- export function path(): string
50
- {
51
- return `/sellers/authenticate/password/change`;
52
- }
53
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * @packageDocumentation
3
- * @module api.functional.sellers
4
- * @nestia Generated by Nestia - https://github.com/samchon/nestia
5
- */
6
- //================================================================
7
- export * as authenticate from "./authenticate";
@@ -1,9 +0,0 @@
1
- /**
2
- * @packageDocumentation
3
- * @module api
4
- */
5
- //================================================================
6
- export * from "./module";
7
-
8
- import * as api from "./module";
9
- export default api;
@@ -1,10 +0,0 @@
1
- /**
2
- * @packageDocumentation
3
- * @module api
4
- */
5
- //================================================================
6
- export * from "./IConnection";
7
- export * from "./Primitive";
8
- export * from "./HttpError";
9
-
10
- export * as functional from "./functional";
@@ -1,56 +0,0 @@
1
- /**
2
- * Seller information.
3
- *
4
- * @author Jeongho Nam - https://github.com/samchon
5
- */
6
- export interface ISeller {
7
- /**
8
- * Primary key.
9
- */
10
- id: number;
11
-
12
- /**
13
- * Email address.
14
- */
15
- email: string;
16
-
17
- /**
18
- * Name of the seller.
19
- */
20
- name: string;
21
-
22
- /**
23
- * Mobile number of the seller.
24
- */
25
- mobile: string;
26
-
27
- /**
28
- * Belonged company name.
29
- */
30
- company: string;
31
-
32
- /**
33
- * Joined time.
34
- */
35
- created_at: string;
36
- }
37
-
38
- export namespace ISeller {
39
- export interface ILogin {
40
- email: string;
41
- password: string;
42
- }
43
-
44
- export interface IJoin {
45
- email: string;
46
- password: string;
47
- name: string;
48
- mobile: string;
49
- company: string;
50
- }
51
-
52
- export interface IChangePassword {
53
- old_password: string;
54
- new_password: string;
55
- }
56
- }