@galop-solutions/autan-types 0.0.32
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/README.md +193 -0
- package/auth/auth.export.d.ts +12 -0
- package/auth/auth.export.d.ts.map +1 -0
- package/auth/auth.export.js +6 -0
- package/auth/auth.export.js.map +1 -0
- package/auth/contracts/activate.contracts.d.ts +4 -0
- package/auth/contracts/activate.contracts.d.ts.map +1 -0
- package/auth/contracts/activate.contracts.js +3 -0
- package/auth/contracts/activate.contracts.js.map +1 -0
- package/auth/contracts/admin-change-password.contract.d.ts +4 -0
- package/auth/contracts/admin-change-password.contract.d.ts.map +1 -0
- package/auth/contracts/admin-change-password.contract.js +3 -0
- package/auth/contracts/admin-change-password.contract.js.map +1 -0
- package/auth/contracts/auth-token.contract.d.ts +9 -0
- package/auth/contracts/auth-token.contract.d.ts.map +1 -0
- package/auth/contracts/auth-token.contract.js +3 -0
- package/auth/contracts/auth-token.contract.js.map +1 -0
- package/auth/contracts/change-password.contract.d.ts +5 -0
- package/auth/contracts/change-password.contract.d.ts.map +1 -0
- package/auth/contracts/change-password.contract.js +3 -0
- package/auth/contracts/change-password.contract.js.map +1 -0
- package/auth/contracts/confirm.contract.d.ts +5 -0
- package/auth/contracts/confirm.contract.d.ts.map +1 -0
- package/auth/contracts/confirm.contract.js +3 -0
- package/auth/contracts/confirm.contract.js.map +1 -0
- package/auth/contracts/login.contract.d.ts +8 -0
- package/auth/contracts/login.contract.d.ts.map +1 -0
- package/auth/contracts/login.contract.js +3 -0
- package/auth/contracts/login.contract.js.map +1 -0
- package/auth/contracts/request-password-reset.contract.d.ts +4 -0
- package/auth/contracts/request-password-reset.contract.d.ts.map +1 -0
- package/auth/contracts/request-password-reset.contract.js +3 -0
- package/auth/contracts/request-password-reset.contract.js.map +1 -0
- package/auth/contracts/resend-confirmation-code.contract.d.ts +4 -0
- package/auth/contracts/resend-confirmation-code.contract.d.ts.map +1 -0
- package/auth/contracts/resend-confirmation-code.contract.js +3 -0
- package/auth/contracts/resend-confirmation-code.contract.js.map +1 -0
- package/auth/contracts/reset-password.contract.d.ts +4 -0
- package/auth/contracts/reset-password.contract.d.ts.map +1 -0
- package/auth/contracts/reset-password.contract.js +3 -0
- package/auth/contracts/reset-password.contract.js.map +1 -0
- package/auth/contracts/signup.contract.d.ts +12 -0
- package/auth/contracts/signup.contract.d.ts.map +1 -0
- package/auth/contracts/signup.contract.js +3 -0
- package/auth/contracts/signup.contract.js.map +1 -0
- package/auth/enum/auth-token-purpose.enum.d.ts +6 -0
- package/auth/enum/auth-token-purpose.enum.d.ts.map +1 -0
- package/auth/enum/auth-token-purpose.enum.js +10 -0
- package/auth/enum/auth-token-purpose.enum.js.map +1 -0
- package/common/common.export.d.ts +4 -0
- package/common/common.export.d.ts.map +1 -0
- package/common/common.export.js +3 -0
- package/common/common.export.js.map +1 -0
- package/common/contracts/address.contract.d.ts +10 -0
- package/common/contracts/address.contract.d.ts.map +1 -0
- package/common/contracts/address.contract.js +3 -0
- package/common/contracts/address.contract.js.map +1 -0
- package/common/contracts/document.contract.d.ts +8 -0
- package/common/contracts/document.contract.d.ts.map +1 -0
- package/common/contracts/document.contract.js +3 -0
- package/common/contracts/document.contract.js.map +1 -0
- package/common/contracts/image.contract.d.ts +6 -0
- package/common/contracts/image.contract.d.ts.map +1 -0
- package/common/contracts/image.contract.js +3 -0
- package/common/contracts/image.contract.js.map +1 -0
- package/configuration/configuration.export.d.ts +4 -0
- package/configuration/configuration.export.d.ts.map +1 -0
- package/configuration/configuration.export.js +6 -0
- package/configuration/configuration.export.js.map +1 -0
- package/configuration/contracts/configuration.contract.d.ts +10 -0
- package/configuration/contracts/configuration.contract.d.ts.map +1 -0
- package/configuration/contracts/configuration.contract.js +3 -0
- package/configuration/contracts/configuration.contract.js.map +1 -0
- package/configuration/contracts/get-configuration.contract.d.ts +5 -0
- package/configuration/contracts/get-configuration.contract.d.ts.map +1 -0
- package/configuration/contracts/get-configuration.contract.js +3 -0
- package/configuration/contracts/get-configuration.contract.js.map +1 -0
- package/configuration/enums/configuration-type.enum.d.ts +18 -0
- package/configuration/enums/configuration-type.enum.d.ts.map +1 -0
- package/configuration/enums/configuration-type.enum.js +22 -0
- package/configuration/enums/configuration-type.enum.js.map +1 -0
- package/export.package.d.ts +8 -0
- package/export.package.d.ts.map +1 -0
- package/export.package.js +24 -0
- package/export.package.js.map +1 -0
- package/file/contracts/file-upload-temp.contract.d.ts +6 -0
- package/file/contracts/file-upload-temp.contract.d.ts.map +1 -0
- package/file/contracts/file-upload-temp.contract.js +3 -0
- package/file/contracts/file-upload-temp.contract.js.map +1 -0
- package/file/file.export.d.ts +2 -0
- package/file/file.export.d.ts.map +1 -0
- package/file/file.export.js +3 -0
- package/file/file.export.js.map +1 -0
- package/offering/contracts/create-offering.contract.d.ts +12 -0
- package/offering/contracts/create-offering.contract.d.ts.map +1 -0
- package/offering/contracts/create-offering.contract.js +3 -0
- package/offering/contracts/create-offering.contract.js.map +1 -0
- package/offering/contracts/get-offering.contract.d.ts +18 -0
- package/offering/contracts/get-offering.contract.d.ts.map +1 -0
- package/offering/contracts/get-offering.contract.js +3 -0
- package/offering/contracts/get-offering.contract.js.map +1 -0
- package/offering/contracts/offering-stats.contract.d.ts +6 -0
- package/offering/contracts/offering-stats.contract.d.ts.map +1 -0
- package/offering/contracts/offering-stats.contract.js +3 -0
- package/offering/contracts/offering-stats.contract.js.map +1 -0
- package/offering/contracts/offering.contract.d.ts +16 -0
- package/offering/contracts/offering.contract.d.ts.map +1 -0
- package/offering/contracts/offering.contract.js +3 -0
- package/offering/contracts/offering.contract.js.map +1 -0
- package/offering/contracts/update-offering.contract.d.ts +12 -0
- package/offering/contracts/update-offering.contract.d.ts.map +1 -0
- package/offering/contracts/update-offering.contract.js +3 -0
- package/offering/contracts/update-offering.contract.js.map +1 -0
- package/offering/offering.export.d.ts +6 -0
- package/offering/offering.export.d.ts.map +1 -0
- package/offering/offering.export.js +3 -0
- package/offering/offering.export.js.map +1 -0
- package/package.json +10 -0
- package/product/contracts/create-product.contract.d.ts +20 -0
- package/product/contracts/create-product.contract.d.ts.map +1 -0
- package/product/contracts/create-product.contract.js +3 -0
- package/product/contracts/create-product.contract.js.map +1 -0
- package/product/contracts/get-product.contract.d.ts +26 -0
- package/product/contracts/get-product.contract.d.ts.map +1 -0
- package/product/contracts/get-product.contract.js +3 -0
- package/product/contracts/get-product.contract.js.map +1 -0
- package/product/contracts/product-stats.contract.d.ts +6 -0
- package/product/contracts/product-stats.contract.d.ts.map +1 -0
- package/product/contracts/product-stats.contract.js +3 -0
- package/product/contracts/product-stats.contract.js.map +1 -0
- package/product/contracts/product.contract.d.ts +49 -0
- package/product/contracts/product.contract.d.ts.map +1 -0
- package/product/contracts/product.contract.js +3 -0
- package/product/contracts/product.contract.js.map +1 -0
- package/product/contracts/update-product.contract.d.ts +20 -0
- package/product/contracts/update-product.contract.d.ts.map +1 -0
- package/product/contracts/update-product.contract.js +3 -0
- package/product/contracts/update-product.contract.js.map +1 -0
- package/product/enum/dimension-type.enum.d.ts +8 -0
- package/product/enum/dimension-type.enum.d.ts.map +1 -0
- package/product/enum/dimension-type.enum.js +12 -0
- package/product/enum/dimension-type.enum.js.map +1 -0
- package/product/product.export.d.ts +7 -0
- package/product/product.export.d.ts.map +1 -0
- package/product/product.export.js +6 -0
- package/product/product.export.js.map +1 -0
- package/user/contracts/company.contract.d.ts +18 -0
- package/user/contracts/company.contract.d.ts.map +1 -0
- package/user/contracts/company.contract.js +3 -0
- package/user/contracts/company.contract.js.map +1 -0
- package/user/contracts/get-profile.contract.d.ts +11 -0
- package/user/contracts/get-profile.contract.d.ts.map +1 -0
- package/user/contracts/get-profile.contract.js +3 -0
- package/user/contracts/get-profile.contract.js.map +1 -0
- package/user/contracts/user.contract.d.ts +14 -0
- package/user/contracts/user.contract.d.ts.map +1 -0
- package/user/contracts/user.contract.js +3 -0
- package/user/contracts/user.contract.js.map +1 -0
- package/user/enums/company-size.enum.d.ts +8 -0
- package/user/enums/company-size.enum.d.ts.map +1 -0
- package/user/enums/company-size.enum.js +12 -0
- package/user/enums/company-size.enum.js.map +1 -0
- package/user/enums/market-type.enum.d.ts +6 -0
- package/user/enums/market-type.enum.d.ts.map +1 -0
- package/user/enums/market-type.enum.js +10 -0
- package/user/enums/market-type.enum.js.map +1 -0
- package/user/enums/user-role.enum.d.ts +7 -0
- package/user/enums/user-role.enum.d.ts.map +1 -0
- package/user/enums/user-role.enum.js +11 -0
- package/user/enums/user-role.enum.js.map +1 -0
- package/user/enums/user-status.enum.d.ts +7 -0
- package/user/enums/user-status.enum.d.ts.map +1 -0
- package/user/enums/user-status.enum.js +11 -0
- package/user/enums/user-status.enum.js.map +1 -0
- package/user/user.export.d.ts +8 -0
- package/user/user.export.d.ts.map +1 -0
- package/user/user.export.js +12 -0
- package/user/user.export.js.map +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
# Description
|
|
2
|
+
|
|
3
|
+
Backend microservice for the Autan application.
|
|
4
|
+
|
|
5
|
+
# Dependencies
|
|
6
|
+
|
|
7
|
+
- NestJS v11
|
|
8
|
+
- NodeJS v22 (LTS)
|
|
9
|
+
- Azure Functions v4
|
|
10
|
+
- Mongoose v8
|
|
11
|
+
|
|
12
|
+
# Project setup
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
$ npm install
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
# Compile and run the project
|
|
19
|
+
|
|
20
|
+
To run the function app locally, you need [azurite](https://www.npmjs.com/package/azure-functions-core-tools).
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
# Install azure function utils
|
|
24
|
+
npm i -g azure-functions-core-tools@4 --unsafe-perm true
|
|
25
|
+
|
|
26
|
+
# Run azurite locally
|
|
27
|
+
azurite --silent --location c:\azurite --debug c:\azurite\debug.log
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Run the microservice, the configuration is stored in `local.settings.json`.
|
|
31
|
+
You need to setup these variables, according to you environment :
|
|
32
|
+
|
|
33
|
+
- `NODE_ENV`: NodeJS environment, can be `dev`, `uat` or `prod`
|
|
34
|
+
- `AZURE_TENANT_ID`: Contact an admin and see [Azure documentation](https://learn.microsoft.com/en-us/azure/azure-functions/functions-develop-vs-code?tabs=node-v4%2Cpython-v2%2Cisolated-process%2Cquick-create&pivots=programming-language-javascript#run-functions-locally)
|
|
35
|
+
- `AZURE_CLIENT_ID`: Contact an admin and see [Azure documentation](https://learn.microsoft.com/en-us/azure/azure-functions/functions-develop-vs-code?tabs=node-v4%2Cpython-v2%2Cisolated-process%2Cquick-create&pivots=programming-language-javascript#run-functions-locally)
|
|
36
|
+
- `AZURE_CLIENT_SECRET`: Contact an admin and see [Azure documentation](https://learn.microsoft.com/en-us/azure/azure-functions/functions-develop-vs-code?tabs=node-v4%2Cpython-v2%2Cisolated-process%2Cquick-create&pivots=programming-language-javascript#run-functions-locally)
|
|
37
|
+
- `AZURE_VAULT_NAME`: Contact an admin and see [Azure documentation](https://learn.microsoft.com/en-us/azure/azure-functions/functions-develop-vs-code?tabs=node-v4%2Cpython-v2%2Cisolated-process%2Cquick-create&pivots=programming-language-javascript#run-functions-locally)
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
# Start the microservice as a Function App
|
|
41
|
+
$ npm run azure
|
|
42
|
+
|
|
43
|
+
# Start the microservice as a NestJS server with DEV config
|
|
44
|
+
$ npm run dev
|
|
45
|
+
|
|
46
|
+
# Start the microservice as a NestJS server with UAT config
|
|
47
|
+
$ npm run uat
|
|
48
|
+
|
|
49
|
+
# Start the microservice as a NestJS server with PROD config
|
|
50
|
+
$ npm run prod
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
# Linter and code format
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# run linter check (eslint)
|
|
57
|
+
$ npm run lint
|
|
58
|
+
|
|
59
|
+
# fix with linter (eslint)
|
|
60
|
+
$ npm run lint:fix
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
# Run tests
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
# unit tests
|
|
67
|
+
$ npm run test
|
|
68
|
+
|
|
69
|
+
# test coverage
|
|
70
|
+
$ npm run test:cov
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
# Folder architecture
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
autan-backend
|
|
77
|
+
├── dist/ # NestJS compilation files
|
|
78
|
+
├── dist_package/ # Public NPM package compilation files
|
|
79
|
+
├── main/ # Azure Function App entry point
|
|
80
|
+
├── node_modules/ # NodeJS modules dependencies
|
|
81
|
+
├── scripts/ # Utils scripts
|
|
82
|
+
├── src/ # NestJS sources
|
|
83
|
+
│ ├── [module group]/ # Module group (ex: user)
|
|
84
|
+
│ │ ├── contants/ # Contants
|
|
85
|
+
│ │ ├── contracts/ # Pure interfaces for the Frontend
|
|
86
|
+
│ │ ├── dtos/ # Data Transfer Objects
|
|
87
|
+
│ │ ├── entities/ # Business Logic Class
|
|
88
|
+
│ │ ├── enums/ # Enums
|
|
89
|
+
│ │ ├── interfaces/ # Interfaces
|
|
90
|
+
│ │ ├── modules/ # Modules that can be imported
|
|
91
|
+
│ │ │ ├── [module group]-core/ # Core module (fundamental logic)
|
|
92
|
+
│ │ │ | ├── [module group]-core.module.ts
|
|
93
|
+
│ │ │ | └── [module group]-core.service.ts
|
|
94
|
+
│ │ | ├── [module group]-database/ # Database module
|
|
95
|
+
│ │ │ | ├── schemas/ # Mongoose schemas, only this module must have schemas on the modules group
|
|
96
|
+
│ │ │ | ├── [module group]-database.module.ts
|
|
97
|
+
│ │ │ | └── [module group]-database.service.ts
|
|
98
|
+
│ │ | └── [module group]-http/ # Http module providing controllers
|
|
99
|
+
│ │ │ └── [module group]-http.controller.ts
|
|
100
|
+
│ │ │ ├── [module group]-http.module.ts
|
|
101
|
+
│ │ │ └── [module group]-http.service.ts
|
|
102
|
+
│ │ └── [module group].export.ts # Module export file for public NPM package (ex: contains dtos/enums for frontend)
|
|
103
|
+
│ ├── common/ # Common logic (middlewares, pipes, filters...)
|
|
104
|
+
│ ├── app.module.ts # Application module
|
|
105
|
+
│ ├── export.package.ts # Global export file for public npm module
|
|
106
|
+
│ └── main.azure.ts # Entry point for Azure Functions
|
|
107
|
+
├── test/ # End to end tests
|
|
108
|
+
├── .funcignore # Azure Functions ignore
|
|
109
|
+
├── .gitignore # GitHub ignore
|
|
110
|
+
├── .npmrc # Credentials for private npm packages
|
|
111
|
+
├── .prettierrc # Prettier config file
|
|
112
|
+
├── eslint.config.mjs # Eslint config file
|
|
113
|
+
├── host.json # Azure Functions host config
|
|
114
|
+
├── local.settings.json # Azure Functions local config
|
|
115
|
+
├── nest-cli.json # NestJS CLI config
|
|
116
|
+
├── package-lock.json # NodeJS package-lock file
|
|
117
|
+
├── package.json # NodeJS package file
|
|
118
|
+
├── proxies.json # Azure Functions proxy configuration
|
|
119
|
+
├── README.md # Good to see that you read this file :D
|
|
120
|
+
├── tsconfig.build.json # TypeScript build configuration
|
|
121
|
+
├── tsconfig.build.package.json # TypeScript build configuration for the public NPM package
|
|
122
|
+
└── tsconfig.json # TypeScript configuration
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
# Develop a new feature/bugfix
|
|
126
|
+
|
|
127
|
+
1. Create a new branch based **on `develop`**.
|
|
128
|
+
|
|
129
|
+
Branch naming convention is :
|
|
130
|
+
|
|
131
|
+
- bug : `bugfix/{JIRA ticket key}`, ex : `bugfix/AUT-1000`
|
|
132
|
+
- new feature : `feature/{JIRA ticket key}`, ex : `feature/AUT-1000`
|
|
133
|
+
|
|
134
|
+
2. Develop in local
|
|
135
|
+
3. Merge `bugfix/...` in `develop`
|
|
136
|
+
4. Wait for automatic deploy to DEV
|
|
137
|
+
5. When version is stable, create a version tag on `develop`
|
|
138
|
+
6. Create a branch `release/{version}.x` ex: `release/1.80.x` based on `develop` (it stay static and can be used for hotfixes)
|
|
139
|
+
7. Deploy tag manually to UAT/PROD with GitHub Actions
|
|
140
|
+
|
|
141
|
+
# Publish new package version
|
|
142
|
+
|
|
143
|
+
## Update package export
|
|
144
|
+
|
|
145
|
+
Add everything you want to export in the src/export.package.ts. Then you can deploy in one shot or doing it step by step
|
|
146
|
+
|
|
147
|
+
## Single line publishing
|
|
148
|
+
|
|
149
|
+
Use publish scripts
|
|
150
|
+
|
|
151
|
+
```
|
|
152
|
+
npm run publish:major
|
|
153
|
+
npm run publish:minor
|
|
154
|
+
npm run publish:patch
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## Step by step publishing
|
|
158
|
+
|
|
159
|
+
1. Update package version
|
|
160
|
+
|
|
161
|
+
```
|
|
162
|
+
npm version major
|
|
163
|
+
npm version minor
|
|
164
|
+
npm version patch
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
2. Compile project
|
|
168
|
+
|
|
169
|
+
```
|
|
170
|
+
npm run build:package
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
3. Publish new version
|
|
174
|
+
|
|
175
|
+
```
|
|
176
|
+
npm run publish:package
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## Update package version
|
|
180
|
+
|
|
181
|
+
Update package version in all other microservices and/or frontend
|
|
182
|
+
|
|
183
|
+
# Known issues
|
|
184
|
+
|
|
185
|
+
## Version conflict on `@nestjs/azure-func-http`
|
|
186
|
+
|
|
187
|
+
`@nestjs/azure-func-http` uses `reflect-metadata v0.1.12` but NestJS v10 uses `reflect-metadata v0.2.0`
|
|
188
|
+
|
|
189
|
+
Workaround for installation :
|
|
190
|
+
|
|
191
|
+
- Install `@nestjs/azure-func-http` with option --legacy-peer-deps
|
|
192
|
+
- Edit `package-lock.json` to change the compatibilty of `@nestjs/azure-func-http` to `reflect-metadata v0.2.0`
|
|
193
|
+
- Run `$ nest add @nestjs/azure-func-http --skip-install`
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { LoginRequest, LoginResponse } from './contracts/login.contract';
|
|
2
|
+
export { SignupRequest } from './contracts/signup.contract';
|
|
3
|
+
export { ActivateRequest } from './contracts/activate.contracts';
|
|
4
|
+
export { ConfirmRequest } from './contracts/confirm.contract';
|
|
5
|
+
export { RequestPasswordResetRequest } from './contracts/request-password-reset.contract';
|
|
6
|
+
export { ResetPasswordRequest } from './contracts/reset-password.contract';
|
|
7
|
+
export { ResendConfirmationCodeRequest } from './contracts/resend-confirmation-code.contract';
|
|
8
|
+
export { AuthToken } from './contracts/auth-token.contract';
|
|
9
|
+
export { ChangePasswordRequest } from './contracts/change-password.contract';
|
|
10
|
+
export { AdminChangePasswordRequest } from './contracts/admin-change-password.contract';
|
|
11
|
+
export { AuthTokenPurpose } from './enum/auth-token-purpose.enum';
|
|
12
|
+
//# sourceMappingURL=auth.export.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.export.d.ts","sourceRoot":"","sources":["../../src/auth/auth.export.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAGxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthTokenPurpose = void 0;
|
|
4
|
+
var auth_token_purpose_enum_1 = require("./enum/auth-token-purpose.enum");
|
|
5
|
+
Object.defineProperty(exports, "AuthTokenPurpose", { enumerable: true, get: function () { return auth_token_purpose_enum_1.AuthTokenPurpose; } });
|
|
6
|
+
//# sourceMappingURL=auth.export.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.export.js","sourceRoot":"","sources":["../../src/auth/auth.export.ts"],"names":[],"mappings":";;;AAaA,0EAAkE;AAAzD,2HAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activate.contracts.d.ts","sourceRoot":"","sources":["../../../src/auth/contracts/activate.contracts.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC/B,QAAQ,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activate.contracts.js","sourceRoot":"","sources":["../../../src/auth/contracts/activate.contracts.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-change-password.contract.d.ts","sourceRoot":"","sources":["../../../src/auth/contracts/admin-change-password.contract.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IAC1C,WAAW,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-change-password.contract.js","sourceRoot":"","sources":["../../../src/auth/contracts/admin-change-password.contract.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UserRole } from '../../user/enums/user-role.enum';
|
|
2
|
+
import { AuthTokenPurpose } from '../enum/auth-token-purpose.enum';
|
|
3
|
+
export interface AuthToken {
|
|
4
|
+
sub: string;
|
|
5
|
+
roles: UserRole[];
|
|
6
|
+
purpose?: AuthTokenPurpose;
|
|
7
|
+
exp?: number;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=auth-token.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-token.contract.d.ts","sourceRoot":"","sources":["../../../src/auth/contracts/auth-token.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,MAAM,WAAW,SAAS;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-token.contract.js","sourceRoot":"","sources":["../../../src/auth/contracts/auth-token.contract.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"change-password.contract.d.ts","sourceRoot":"","sources":["../../../src/auth/contracts/change-password.contract.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"change-password.contract.js","sourceRoot":"","sources":["../../../src/auth/contracts/change-password.contract.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirm.contract.d.ts","sourceRoot":"","sources":["../../../src/auth/contracts/confirm.contract.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirm.contract.js","sourceRoot":"","sources":["../../../src/auth/contracts/confirm.contract.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login.contract.d.ts","sourceRoot":"","sources":["../../../src/auth/contracts/login.contract.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC7B,KAAK,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login.contract.js","sourceRoot":"","sources":["../../../src/auth/contracts/login.contract.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-password-reset.contract.d.ts","sourceRoot":"","sources":["../../../src/auth/contracts/request-password-reset.contract.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC3C,KAAK,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-password-reset.contract.js","sourceRoot":"","sources":["../../../src/auth/contracts/request-password-reset.contract.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resend-confirmation-code.contract.d.ts","sourceRoot":"","sources":["../../../src/auth/contracts/resend-confirmation-code.contract.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,6BAA6B;IAC7C,KAAK,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resend-confirmation-code.contract.js","sourceRoot":"","sources":["../../../src/auth/contracts/resend-confirmation-code.contract.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset-password.contract.d.ts","sourceRoot":"","sources":["../../../src/auth/contracts/reset-password.contract.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACpC,QAAQ,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset-password.contract.js","sourceRoot":"","sources":["../../../src/auth/contracts/reset-password.contract.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Company } from '../../user/contracts/company.contract';
|
|
2
|
+
import { UserRole } from '../../user/enums/user-role.enum';
|
|
3
|
+
export interface SignupRequest {
|
|
4
|
+
roles: UserRole[];
|
|
5
|
+
firstName: string;
|
|
6
|
+
lastName: string;
|
|
7
|
+
phone: string;
|
|
8
|
+
login: string;
|
|
9
|
+
password: string;
|
|
10
|
+
company: Company;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=signup.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signup.contract.d.ts","sourceRoot":"","sources":["../../../src/auth/contracts/signup.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAE3D,MAAM,WAAW,aAAa;IAE7B,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IAGd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IAGjB,OAAO,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signup.contract.js","sourceRoot":"","sources":["../../../src/auth/contracts/signup.contract.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-token-purpose.enum.d.ts","sourceRoot":"","sources":["../../../src/auth/enum/auth-token-purpose.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC3B,IAAI,SAAS;IACb,cAAc,mBAAmB;IACjC,gBAAgB,qBAAqB;CACrC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthTokenPurpose = void 0;
|
|
4
|
+
var AuthTokenPurpose;
|
|
5
|
+
(function (AuthTokenPurpose) {
|
|
6
|
+
AuthTokenPurpose["FULL"] = "FULL";
|
|
7
|
+
AuthTokenPurpose["RESET_PASSWORD"] = "RESET_PASSWORD";
|
|
8
|
+
AuthTokenPurpose["ACTIVATE_ACCOUNT"] = "ACTIVATE_ACCOUNT";
|
|
9
|
+
})(AuthTokenPurpose || (exports.AuthTokenPurpose = AuthTokenPurpose = {}));
|
|
10
|
+
//# sourceMappingURL=auth-token-purpose.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-token-purpose.enum.js","sourceRoot":"","sources":["../../../src/auth/enum/auth-token-purpose.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC3B,iCAAa,CAAA;IACb,qDAAiC,CAAA;IACjC,yDAAqC,CAAA;AACtC,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.export.d.ts","sourceRoot":"","sources":["../../src/common/common.export.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.export.js","sourceRoot":"","sources":["../../src/common/common.export.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.contract.d.ts","sourceRoot":"","sources":["../../../src/common/contracts/address.contract.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.contract.js","sourceRoot":"","sources":["../../../src/common/contracts/address.contract.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.contract.d.ts","sourceRoot":"","sources":["../../../src/common/contracts/document.contract.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.contract.js","sourceRoot":"","sources":["../../../src/common/contracts/document.contract.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.contract.d.ts","sourceRoot":"","sources":["../../../src/common/contracts/image.contract.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;CACZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.contract.js","sourceRoot":"","sources":["../../../src/common/contracts/image.contract.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Configuration } from './contracts/configuration.contract';
|
|
2
|
+
export { GetConfigurationResponse } from './contracts/get-configuration.contract';
|
|
3
|
+
export { ConfigurationType } from './enums/configuration-type.enum';
|
|
4
|
+
//# sourceMappingURL=configuration.export.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.export.d.ts","sourceRoot":"","sources":["../../src/configuration/configuration.export.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAGlF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigurationType = void 0;
|
|
4
|
+
var configuration_type_enum_1 = require("./enums/configuration-type.enum");
|
|
5
|
+
Object.defineProperty(exports, "ConfigurationType", { enumerable: true, get: function () { return configuration_type_enum_1.ConfigurationType; } });
|
|
6
|
+
//# sourceMappingURL=configuration.export.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.export.js","sourceRoot":"","sources":["../../src/configuration/configuration.export.ts"],"names":[],"mappings":";;;AAKA,2EAAoE;AAA3D,4HAAA,iBAAiB,OAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ConfigurationType } from '../enums/configuration-type.enum';
|
|
2
|
+
export interface Configuration {
|
|
3
|
+
_id: string;
|
|
4
|
+
type: ConfigurationType;
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
image?: string;
|
|
8
|
+
parentConfiguration?: string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=configuration.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.contract.d.ts","sourceRoot":"","sources":["../../../src/configuration/contracts/configuration.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,MAAM,WAAW,aAAa;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,iBAAiB,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.contract.js","sourceRoot":"","sources":["../../../src/configuration/contracts/configuration.contract.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-configuration.contract.d.ts","sourceRoot":"","sources":["../../../src/configuration/contracts/get-configuration.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,WAAW,wBAAwB;IACxC,cAAc,EAAE,aAAa,EAAE,CAAC;CAChC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-configuration.contract.js","sourceRoot":"","sources":["../../../src/configuration/contracts/get-configuration.contract.ts"],"names":[],"mappings":""}
|