@degenerate/endpoints 0.1.2 → 0.1.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.
package/LICENSE.md CHANGED
@@ -12,4 +12,70 @@ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
12
  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
13
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
14
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
- PERFORMANCE OF THIS SOFTWARE.
15
+ PERFORMANCE OF THIS SOFTWARE.
16
+
17
+ # LICENSE
18
+
19
+ ## Open-Source License: Apache License 2.0
20
+
21
+ Copyright (c) [Year], [Your Organization or SAFE Platform Contributors]
22
+
23
+ Licensed under the Apache License, Version 2.0 (the "License");
24
+ you may not use this file except in compliance with the License.
25
+ You may obtain a copy of the License at:
26
+
27
+ isc license
28
+
29
+ [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
30
+
31
+ Unless required by applicable law or agreed to in writing, software
32
+ distributed under the License is distributed on an "AS IS" BASIS,
33
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34
+ See the License for the specific language governing permissions and
35
+ limitations under the License.
36
+
37
+ ## Additional Terms for Proprietary Extensions and Features
38
+
39
+ The SAFE Platform includes features and functionalities that may extend beyond the open-source scope of this license, including but not limited to:
40
+
41
+ 1. **Advanced Enterprise Features**:
42
+ - Modules and tools tailored for enterprise-level scalability, security, and analytics.
43
+ - Customizable AI-driven extensions designed for high-volume data processing and decision-making.
44
+ - Separate licensing agreements are required for accessing these features.
45
+
46
+ 2. **Marketplace Components**:
47
+ - Extensions, plugins, and templates available through the SAFE Marketplace may include specific licensing terms.
48
+ - Revenue-sharing agreements apply for developers contributing paid components to the Marketplace.
49
+ - Use of these components may require additional payments or subscription plans.
50
+
51
+ 3. **Partnered Integrations**:
52
+ - SAFE Platform offers pre-integrated solutions with third-party platforms such as CRM systems, payment gateways, or cloud services.
53
+ - These integrations may require accepting additional terms from the third-party providers.
54
+ - Usage is governed by both this License and the third-party terms where applicable.
55
+
56
+ 4. **Subscription-Based Analytics**:
57
+ - Advanced analytics features, including real-time data insights, AI model performance metrics, and user behavior analysis.
58
+ - These are provided through subscription services managed under proprietary agreements.
59
+ - Subscriptions may include tiered pricing based on data volume, number of users, or access levels.
60
+
61
+ 5. **Industry-Specific Solutions**:
62
+ - SAFE Platform provides pre-configured templates and rules tailored for industries such as finance, healthcare, and logistics.
63
+ - These solutions include proprietary intellectual property that is not covered by the open-source license.
64
+ - Licensing agreements specify terms for usage and redistribution of these industry-specific components.
65
+
66
+ By using the SAFE Platform, you agree to abide by these additional terms where applicable. For more details, contact [Your Organization's Contact Information].
67
+
68
+ ## Contribution and Use
69
+
70
+ 1. **Community Contributions**:
71
+ - Contributions to the SAFE Platform's open-source repository are governed by the Apache License 2.0.
72
+ - By submitting a contribution, you agree that your work will be licensed under this license.
73
+ - Contributions must adhere to the project's coding standards and submission guidelines.
74
+
75
+ 2. **Proprietary Extensions**:
76
+ - Contributions extending into proprietary areas require pre-approval by [Your Organization's Contact Information].
77
+ - These contributions may be subject to separate agreements defining revenue sharing, ownership rights, and maintenance responsibilities.
78
+
79
+ ## Notices
80
+
81
+ This license file is intended to reflect a hybrid open-source and proprietary model for the SAFE Platform. It provides clarity for both community contributors and commercial users. For specific questions or legal inquiries, contact [Your Organization's Contact Information].
@@ -1 +1 @@
1
- {"version":3,"file":"validate-incoming-request-data.d.ts","sourceRoot":"","sources":["../../../../src/cors/endpoints/helpers/validate-incoming-request-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG1D;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,SAAS,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC,SAClE,OAAO,OAAO,QAAQ,QAAQ,YAAY,UAc1D"}
1
+ {"version":3,"file":"validate-incoming-request-data.d.ts","sourceRoot":"","sources":["../../../../src/cors/endpoints/helpers/validate-incoming-request-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG1D;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,SAAS,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC,SAClE,OAAO,OAAO,QAAQ,QAAQ,YAAY,UAa1D"}
@@ -11,7 +11,6 @@ const generic_1 = require("@degenerate/generic");
11
11
  */
12
12
  function validateIncomingRequestData(schema) {
13
13
  return (req, res, next) => {
14
- console.log('req.body', req.body);
15
14
  try {
16
15
  schema.parse(req.body);
17
16
  next();
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@degenerate/endpoints",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
+ "description": "This contains the ShareData Adaptive Framework Ecosystem (SAFE) network endpoint code",
4
5
  "main": "dist/index.js",
5
6
  "types": "dist/index.d.ts",
6
7
  "devDependencies": {
@@ -39,9 +40,10 @@
39
40
  "author": "Degenerate Inc.",
40
41
  "license": "ISC",
41
42
  "dependencies": {
42
- "@degenerate/generic": "^0.2.2",
43
+ "@degenerate/endpoints": "^0.1.2",
44
+ "@degenerate/generic": "^0.2.3",
43
45
  "express": "^4.21.1",
44
46
  "zod": "^3.24.1"
45
47
  },
46
- "gitHead": "817dd46cd9c962c5b1351858acd2b3ce47582621"
48
+ "gitHead": "f398b7f373b9cd6d6092667b64512eec29ec635b"
47
49
  }
@@ -1,10 +0,0 @@
1
- import { AuthorizedAuthorities } from '@degenerate/generic';
2
- declare global {
3
- namespace Express {
4
- interface Request {
5
- authorizedAuthorities: AuthorizedAuthorities;
6
- uniqueTrackingId: string;
7
- }
8
- }
9
- }
10
- //# sourceMappingURL=jest.setup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jest.setup.d.ts","sourceRoot":"","sources":["../../src/__tests__/jest.setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,OAAO,CAAC;QACd,UAAU,OAAO;YACb,qBAAqB,EAAE,qBAAqB,CAAC;YAC7C,gBAAgB,EAAE,MAAM,CAAC;SAC5B;KACJ;CACJ"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });