@vertikalx/vtx-backend-client 1.0.0-dev-max.65 → 1.0.0-dev-daniel.249

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
@@ -1,12 +1,12 @@
1
- THIS IS A PRIVATE USE LICENSE.
2
- THIS IS NOT AN OPEN SOURCE LICENSE.
3
-
4
- USE IS ONLY ALLOWED FOR PROJECTS PRODUCED BY:
5
- VERTIKAL X, INC.
6
-
7
- ALL OTHER USES MUST FIRST OBTAIN WRITTEN PERMISSION OF EITHER OF THE ABOVE COMPANIES.
8
-
9
- FOR FURTHER INFORMATION CONTACT
10
- José Carlos Sarmiento - c@vtxathlete.com
11
- or
1
+ THIS IS A PRIVATE USE LICENSE.
2
+ THIS IS NOT AN OPEN SOURCE LICENSE.
3
+
4
+ USE IS ONLY ALLOWED FOR PROJECTS PRODUCED BY:
5
+ VERTIKAL X, INC.
6
+
7
+ ALL OTHER USES MUST FIRST OBTAIN WRITTEN PERMISSION OF EITHER OF THE ABOVE COMPANIES.
8
+
9
+ FOR FURTHER INFORMATION CONTACT
10
+ José Carlos Sarmiento - c@vtxathlete.com
11
+ or
12
12
  Daniel Castañeda - daniel@vtxathlete.com
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
- {
2
- "name": "@vertikalx/vtx-backend-client",
3
- "version": "1.0.0-dev-max.65",
4
- "description": "GraphQL API generated client for VTX",
5
- "types": "src/index.d.ts",
6
- "main": "src/index.js",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1"
9
- },
10
- "keywords": [
11
- "GraphQL",
12
- "VTX"
13
- ],
14
- "author": "Daniel Castañeda <daniel@vtxathlete.com>",
15
- "license": "SEE LICENSE IN LICENSE.md"
16
- }
1
+ {
2
+ "name": "@vertikalx/vtx-backend-client",
3
+ "version": "1.0.0-dev-daniel.249",
4
+ "description": "GraphQL API generated client for VTX",
5
+ "types": "src/index.d.ts",
6
+ "main": "src/index.js",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
+ },
10
+ "keywords": [
11
+ "GraphQL",
12
+ "VTX"
13
+ ],
14
+ "author": "Daniel Castañeda <daniel@vtxathlete.com>",
15
+ "license": "SEE LICENSE IN LICENSE.md"
16
+ }
@@ -7,10 +7,7 @@ const api_call_headers_1 = require("./api-call-headers");
7
7
  const response_builder_1 = require("./response-builder");
8
8
  const domains_1 = require("./domains");
9
9
  const vtx_core_common_1 = require("@vertikalx/vtx-core-common");
10
- const DEFAULT_PROD_URL = 'https://backend.vtxapp.net:443';
11
- const DEFAULT_PREPROD_URL = 'https://backend.vtxapp.net:443';
12
- const DEFAULT_DEV_REMOTE_URL = 'https://backend.vtxpp.net:443';
13
- const DEFAULT_DEV_LOCAL_URL = 'http://localhost:3010';
10
+ const BACKEND_URL = 'http://localhost:3010';
14
11
  class VTXBaseAPI {
15
12
  constructor(headers, backendUrl) {
16
13
  this.headers = headers ?? api_call_headers_1.DEFAULT_HEADERS;
@@ -23,25 +20,7 @@ class VTXBaseAPI {
23
20
  this.headers[key] = value;
24
21
  }
25
22
  static getDefaultBackendUrl() {
26
- let retValue = DEFAULT_PROD_URL;
27
- switch (process.env?.NODE_ENV) {
28
- case 'production':
29
- retValue = DEFAULT_PROD_URL;
30
- break;
31
- case 'preprod':
32
- retValue = DEFAULT_PREPROD_URL;
33
- break;
34
- case 'development':
35
- case 'devlocal':
36
- retValue = DEFAULT_DEV_LOCAL_URL;
37
- break;
38
- case 'devremote':
39
- retValue = DEFAULT_DEV_REMOTE_URL;
40
- break;
41
- default:
42
- retValue = DEFAULT_PROD_URL;
43
- break;
44
- }
23
+ let retValue = BACKEND_URL;
45
24
  return retValue;
46
25
  }
47
26
  static getVersion() {
@@ -2776,13 +2755,6 @@ class VTXBaseAPI {
2776
2755
  preferences: {
2777
2756
  _id: true,
2778
2757
  showProfileHelper: true
2779
- },
2780
- userDomain: {
2781
- user: {
2782
- _id: true,
2783
- suspended: true,
2784
- loginEmail: true,
2785
- }
2786
2758
  }
2787
2759
  };
2788
2760
  let retValue;
@@ -4017,6 +3989,11 @@ class VTXBaseAPI {
4017
3989
  outcome: true,
4018
3990
  totalParticipants: true,
4019
3991
  adversary: true,
3992
+ genderPosition: true,
3993
+ genderParticipants: true,
3994
+ categoryPosition: true,
3995
+ categoryParticipants: true,
3996
+ categoryName: true
4020
3997
  },
4021
3998
  fundRaisingCampaignIds: true,
4022
3999
  budget: {