@vertikalx/vtx-backend-client 1.0.0-dev.6 → 1.0.0-dev.61

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertikalx/vtx-backend-client",
3
- "version": "1.0.0-dev.6",
3
+ "version": "1.0.0-dev.61",
4
4
  "description": "GraphQL API generated client for VTX",
5
5
  "types": "src/index.d.ts",
6
6
  "main": "src/index.js",
@@ -9,8 +9,8 @@ export declare const DEFAULT_APP_KEY_HEADER = "io-stackbus-app-key";
9
9
  export declare const DEFAULT_SYSTEM_USER_TOKEN_HEADER = "io-stackbus-cms-system-user-token";
10
10
  export declare const DEFAULT_API_KEY_ID_HEADER = "io-stackbus-cms-api-key-id";
11
11
  export declare const DEFAULT_API_KEY_VALUE_HEADER = "io-stackbus-cms-api-key-value";
12
- export declare const DEFAULT_PROD_URL = "https://backend.vtxathlete.com";
13
- export declare const DEFAULT_PREPROD_URL = "https://backend.vtxdev.kwantec.com";
14
- export declare const DEFAULT_DEV_REMOTE_URL = "https://backend.vtxremote.kwantec.com";
12
+ export declare const DEFAULT_PROD_URL = "https://backend.vtxapp.net:3010";
13
+ export declare const DEFAULT_PREPROD_URL = "https://backend.vtxapp.net:3010";
14
+ export declare const DEFAULT_DEV_REMOTE_URL = "https://backend.vtxapp.net:3010";
15
15
  export declare const DEFAULT_DEV_LOCAL_URL = "http://localhost:3010";
16
16
  export declare const DEFAULT_HEADERS: APICallHeaders;
@@ -9,9 +9,9 @@ exports.DEFAULT_APP_KEY_HEADER = 'io-stackbus-app-key';
9
9
  exports.DEFAULT_SYSTEM_USER_TOKEN_HEADER = 'io-stackbus-cms-system-user-token';
10
10
  exports.DEFAULT_API_KEY_ID_HEADER = 'io-stackbus-cms-api-key-id';
11
11
  exports.DEFAULT_API_KEY_VALUE_HEADER = 'io-stackbus-cms-api-key-value';
12
- exports.DEFAULT_PROD_URL = 'https://backend.vtxathlete.com';
13
- exports.DEFAULT_PREPROD_URL = 'https://backend.vtxdev.kwantec.com';
14
- exports.DEFAULT_DEV_REMOTE_URL = 'https://backend.vtxremote.kwantec.com';
12
+ exports.DEFAULT_PROD_URL = 'https://backend.vtxapp.net:3010';
13
+ exports.DEFAULT_PREPROD_URL = 'https://backend.vtxapp.net:3010';
14
+ exports.DEFAULT_DEV_REMOTE_URL = 'https://backend.vtxapp.net:3010';
15
15
  exports.DEFAULT_DEV_LOCAL_URL = 'http://localhost:3010';
16
16
  exports.DEFAULT_HEADERS = {
17
17
  ["Content-Type"]: "application/json",
@@ -1 +1 @@
1
- {"version":3,"file":"api-call-headers.js","sourceRoot":"","sources":["../../../../../libs/vtx-backend-client/src/api/api-call-headers.ts"],"names":[],"mappings":";;;AAOa,QAAA,iBAAiB,GAAG,KAAK,CAAC;AAG1B,QAAA,wBAAwB,GAAG,2BAA2B,CAAC;AAGvD,QAAA,8BAA8B,GAAG,iCAAiC,CAAC;AAGnE,QAAA,+BAA+B,GAAG,kCAAkC,CAAC;AAGrE,QAAA,sBAAsB,GAAG,qBAAqB,CAAC;AAG/C,QAAA,gCAAgC,GAAG,mCAAmC,CAAC;AAGvE,QAAA,yBAAyB,GAAG,4BAA4B,CAAC;AAGzD,QAAA,4BAA4B,GAAG,+BAA+B,CAAC;AAG/D,QAAA,gBAAgB,GAAG,gCAAgC,CAAC;AACpD,QAAA,mBAAmB,GAAG,oCAAoC,CAAC;AAC3D,QAAA,sBAAsB,GAAG,uCAAuC,CAAC;AACjE,QAAA,qBAAqB,GAAG,uBAAuB,CAAC;AAEhD,QAAA,eAAe,GAAkB;IAC1C,CAAC,cAAc,CAAC,EAAC,kBAAkB;IACnC,CAAC,gCAAwB,CAAC,EAAC,yBAAiB;CAC/C,CAAC"}
1
+ {"version":3,"file":"api-call-headers.js","sourceRoot":"","sources":["../../../../../libs/vtx-backend-client/src/api/api-call-headers.ts"],"names":[],"mappings":";;;AAOa,QAAA,iBAAiB,GAAG,KAAK,CAAC;AAG1B,QAAA,wBAAwB,GAAG,2BAA2B,CAAC;AAGvD,QAAA,8BAA8B,GAAG,iCAAiC,CAAC;AAGnE,QAAA,+BAA+B,GAAG,kCAAkC,CAAC;AAGrE,QAAA,sBAAsB,GAAG,qBAAqB,CAAC;AAG/C,QAAA,gCAAgC,GAAG,mCAAmC,CAAC;AAGvE,QAAA,yBAAyB,GAAG,4BAA4B,CAAC;AAGzD,QAAA,4BAA4B,GAAG,+BAA+B,CAAC;AAS/D,QAAA,gBAAgB,GAAG,iCAAiC,CAAC;AACrD,QAAA,mBAAmB,GAAG,iCAAiC,CAAC;AACxD,QAAA,sBAAsB,GAAG,iCAAiC,CAAC;AAC3D,QAAA,qBAAqB,GAAG,uBAAuB,CAAC;AAGhD,QAAA,eAAe,GAAkB;IAC1C,CAAC,cAAc,CAAC,EAAC,kBAAkB;IACnC,CAAC,gCAAwB,CAAC,EAAC,yBAAiB;CAC/C,CAAC"}
@@ -1,4 +1,10 @@
1
+ export interface BackendError {
2
+ httpStatus: number;
3
+ code: number;
4
+ message: string;
5
+ }
1
6
  export interface ITypedBackendResponse<T> {
2
7
  data?: T;
3
- errors?: any[];
8
+ error?: BackendError;
9
+ rawErrors?: any[];
4
10
  }
@@ -0,0 +1,3 @@
1
+ export declare const DOMAIN_ATHLETE: string;
2
+ export declare const DOMAIN_SPONSOR: string;
3
+ export declare const DOMAIN_TEAM: string;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DOMAIN_TEAM = exports.DOMAIN_SPONSOR = exports.DOMAIN_ATHLETE = void 0;
4
+ exports.DOMAIN_ATHLETE = "ATHLETE";
5
+ exports.DOMAIN_SPONSOR = "SPONSOR";
6
+ exports.DOMAIN_TEAM = "TEAM";
7
+ //# sourceMappingURL=domains.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domains.js","sourceRoot":"","sources":["../../../../../libs/vtx-backend-client/src/api/domains.ts"],"names":[],"mappings":";;;AACa,QAAA,cAAc,GAAU,SAAS,CAAC;AAClC,QAAA,cAAc,GAAU,SAAS,CAAC;AAClC,QAAA,WAAW,GAAU,MAAM,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ITypedBackendResponse } from "./backend-response";
2
+ export type checkerFn = (response: any) => boolean;
3
+ export declare function buildResponse<T>(response: any, rootProperty: string, checker: checkerFn): ITypedBackendResponse<T>;
4
+ export declare function buildErrorResponse<T>(error: any): ITypedBackendResponse<T>;
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildResponse = buildResponse;
4
+ exports.buildErrorResponse = buildErrorResponse;
5
+ const vtx_core_common_1 = require("@vertikalx/vtx-core-common");
6
+ function buildResponse(response, rootProperty, checker) {
7
+ const retValue = {};
8
+ if (checker(response)) {
9
+ console.log('checker 1');
10
+ try {
11
+ retValue.data = response[rootProperty];
12
+ }
13
+ catch (casterr) {
14
+ console.log('Error trying to cast to return type');
15
+ retValue.error = {
16
+ httpStatus: 500,
17
+ code: vtx_core_common_1.VTX_ERRORS.VTX_SERVER_ERROR.code,
18
+ message: "Error: Obtained incorrect data from Backend"
19
+ };
20
+ retValue.rawErrors = [
21
+ {
22
+ data: response,
23
+ error: casterr
24
+ }
25
+ ];
26
+ }
27
+ }
28
+ else if (response?.errors) {
29
+ console.log('checker 2');
30
+ if (Array.isArray(response.errors)) {
31
+ retValue.rawErrors = response.errors;
32
+ }
33
+ else {
34
+ retValue.rawErrors = [response.errors];
35
+ }
36
+ }
37
+ else if (response?.error) {
38
+ console.log('checker 3');
39
+ if (Array.isArray(response.error)) {
40
+ retValue.rawErrors = response.error;
41
+ }
42
+ else {
43
+ retValue.rawErrors = [response.error];
44
+ }
45
+ }
46
+ else if (checker(response?.data)) {
47
+ console.log('checker 4');
48
+ try {
49
+ retValue.data = response.data[rootProperty];
50
+ }
51
+ catch (casterr) {
52
+ console.log('Error trying to cast to return type');
53
+ retValue.error = {
54
+ httpStatus: 500,
55
+ code: vtx_core_common_1.VTX_ERRORS.VTX_SERVER_ERROR.code,
56
+ message: "Error: Obtained incorrect data from Backend"
57
+ };
58
+ retValue.rawErrors = [
59
+ {
60
+ data: response.data,
61
+ error: casterr
62
+ }
63
+ ];
64
+ }
65
+ }
66
+ else {
67
+ console.log('checker 5');
68
+ retValue.error = {
69
+ httpStatus: 500,
70
+ code: vtx_core_common_1.VTX_ERRORS.VTX_SERVER_ERROR.code,
71
+ message: "Error: Obtained incorrect data from Backend"
72
+ };
73
+ retValue.rawErrors = ['Error: Obtained incorrect data from Backend'];
74
+ }
75
+ console.log('buildResponse retValue:');
76
+ console.log(JSON.stringify(retValue, null, 2));
77
+ return retValue;
78
+ }
79
+ function buildErrorResponse(error) {
80
+ const retValue = {};
81
+ if (error.errors) {
82
+ if (Array.isArray(error.errors)) {
83
+ retValue.rawErrors = error.errors;
84
+ }
85
+ else {
86
+ retValue.rawErrors = [error.errors];
87
+ }
88
+ }
89
+ else {
90
+ if (Array.isArray(error)) {
91
+ retValue.rawErrors = error;
92
+ }
93
+ else {
94
+ retValue.rawErrors = [error];
95
+ }
96
+ }
97
+ retValue.error = extractError(retValue.rawErrors);
98
+ return retValue;
99
+ }
100
+ function extractError(rawErrors) {
101
+ let retValue = {
102
+ httpStatus: 500,
103
+ code: vtx_core_common_1.VTX_ERRORS.VTX_SERVER_ERROR.code,
104
+ message: vtx_core_common_1.VTX_ERRORS.VTX_SERVER_ERROR.description
105
+ };
106
+ if (!rawErrors || rawErrors.length <= 0) {
107
+ return retValue;
108
+ }
109
+ let theError = rawErrors.find(e => {
110
+ if (e.extensions && e.extensions.type === "VtxError") {
111
+ return true;
112
+ }
113
+ return false;
114
+ });
115
+ if (theError) {
116
+ retValue = {
117
+ httpStatus: theError?.extensions?.httpStatus ?? 500,
118
+ code: theError?.extensions?.vtxError?.code ?? vtx_core_common_1.VTX_ERRORS.VTX_SERVER_ERROR.code,
119
+ message: theError?.extensions?.vtxError?.description ?? vtx_core_common_1.VTX_ERRORS.VTX_SERVER_ERROR.description
120
+ };
121
+ }
122
+ return retValue;
123
+ }
124
+ //# sourceMappingURL=response-builder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-builder.js","sourceRoot":"","sources":["../../../../../libs/vtx-backend-client/src/api/response-builder.ts"],"names":[],"mappings":";;AAOA,sCAkFC;AACD,gDAmCC;AA3HD,gEAAwD;AAKxD,SAAgB,aAAa,CAAI,QAAY,EAAE,YAAmB,EAAE,OAAkB;IAClF,MAAM,QAAQ,GAA4B,EAAE,CAAA;IAO1C,IAAI,OAAO,CAAC,QAAQ,CAAC,EAAC,CAAC;QAErB,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACzB,IAAI,CAAC;YACH,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,YAAY,CAAM,CAAC;QAC9C,CAAC;QAAC,OAAO,OAAO,EAAE,CAAC;YACjB,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;YACnD,QAAQ,CAAC,KAAK,GAAG;gBACf,UAAU,EAAC,GAAG;gBACd,IAAI,EAAC,4BAAU,CAAC,gBAAgB,CAAC,IAAI;gBACrC,OAAO,EAAC,6CAA6C;aACtD,CAAC;YACF,QAAQ,CAAC,SAAS,GAAG;gBACnB;oBACE,IAAI,EAAC,QAAQ;oBACb,KAAK,EAAC,OAAO;iBACd;aACF,CAAC;QACJ,CAAC;IAEH,CAAC;SAAM,IAAI,QAAQ,EAAE,MAAM,EAAE,CAAC;QAE5B,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACzB,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;YACnC,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC;QACvC,CAAC;aAAM,CAAC;YACN,QAAQ,CAAC,SAAS,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;Q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,CAAC,EAAE;QAEnC,IAAI,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,UAAU,CAAC,IAAI,KAAK,UAAU,EAAC,CAAC;YACpD,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC,CAAC,CAAC;IAEH,IAAI,QAAQ,EAAC,CAAC;QACZ,QAAQ,GAAG;YACT,UAAU,EAAC,QAAQ,EAAE,UAAU,EAAE,UAAU,IAAI,GAAG;YAClD,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,IAAI,4BAAU,CAAC,gBAAgB,CAAC,IAAI;YAC9E,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,IAAK,4BAAU,CAAC,gBAAgB,CAAC,WAAW;SACjG,CAAA;IACH,CAAC;IAED,OAAO,QAAQ,CAAC;AAGlB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { QualificationDto, AgeQualificationDto, GenderQualificationDto, ScoreQualificationDto, LocationQualificationDto, NationalityQualificationDto, DistanceQualificationDto, SportsQualificationDto, SportsLevelQualificationDto } from "../client";
2
+ export type QualificationDtoUnion = QualificationDto | AgeQualificationDto | GenderQualificationDto | ScoreQualificationDto | LocationQualificationDto | NationalityQualificationDto | DistanceQualificationDto | SportsQualificationDto | SportsLevelQualificationDto;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../libs/vtx-backend-client/src/api/types.ts"],"names":[],"mappings":""}
@@ -1,14 +1,56 @@
1
- import { User, UserToken, UserWithToken } from '../client';
1
+ import { User, UserToken, UserWithToken, Athlete, RegisterAthleteDto, Brand, CreateBrandDto, BrandGenqlSelection, AWSS3UploadUrl, AWSS3GetUploadDto, CreateTenantInput, Tenant, TenantWithUserLogin, RegisterUserToDomainFromEmailInput, DecodedToken, Sponsorship, SponsorshipGenqlSelection, CreateSponsorshipDto, SponsorAthleteInvitation, InviteAthletesDto, RegisterUserDto, VerificationCode, VerifyCodeDto, FindSponsorAthleteInvitationDto, FindVtxUserDto, City, SportLevel, Sport, UserImages, EditValueResponse } from '../client';
2
2
  import { ITypedBackendResponse } from './backend-response';
3
3
  import { APICallHeaders } from './api-call-headers';
4
4
  export declare class VTXBaseAPI {
5
5
  protected headers: APICallHeaders;
6
6
  protected backendUrl: string;
7
+ protected static Logger: {
8
+ debug: (str: string) => void;
9
+ log: (str: string) => void;
10
+ warn: (str: string) => void;
11
+ error: (str: string) => void;
12
+ };
7
13
  constructor(headers?: APICallHeaders, backendUrl?: string);
14
+ setHeader(key: string, value: string): void;
8
15
  static getDefaultBackendUrl(): string;
9
16
  static getVersion(): string;
10
17
  static isBrowser(): boolean;
11
- findNonTenantedUserByEmail(email: string): Promise<ITypedBackendResponse<User>>;
12
- createBackendToken_NT(loginEmail: string): Promise<ITypedBackendResponse<UserToken>>;
13
- registerNewUser_NT(loginEmail: string): Promise<ITypedBackendResponse<UserWithToken>>;
18
+ findUserByEmail(email: string): Promise<ITypedBackendResponse<User>>;
19
+ loginUserFromEmail(loginEmail: string, loginMethod?: string): Promise<ITypedBackendResponse<UserToken>>;
20
+ createUserAndLogin(loginEmail: string): Promise<ITypedBackendResponse<UserWithToken>>;
21
+ registerAthlete(payload: RegisterAthleteDto): Promise<ITypedBackendResponse<Athlete>>;
22
+ findBrandByName(name: string, translations?: boolean): Promise<ITypedBackendResponse<Brand>>;
23
+ createBrand(dto: CreateBrandDto, desiredFields?: BrandGenqlSelection): Promise<ITypedBackendResponse<Brand>>;
24
+ createSponsorship(dto: CreateSponsorshipDto, desiredFields?: SponsorshipGenqlSelection): Promise<ITypedBackendResponse<Sponsorship>>;
25
+ getS3UploadUrl(dto: AWSS3GetUploadDto): Promise<ITypedBackendResponse<AWSS3UploadUrl>>;
26
+ refreshToken(currentToken: string, refreshToken: string): Promise<ITypedBackendResponse<UserToken>>;
27
+ registerNewDomainTenant(input: CreateTenantInput): Promise<ITypedBackendResponse<Tenant>>;
28
+ registerNewDomainTenantWithLogin(input: CreateTenantInput): Promise<ITypedBackendResponse<TenantWithUserLogin>>;
29
+ registerUserToDomainFromEmail(input: RegisterUserToDomainFromEmailInput): Promise<ITypedBackendResponse<User>>;
30
+ getPublicSponsorships(): Promise<ITypedBackendResponse<Sponsorship[]>>;
31
+ getTenantSponsorshipsFromUri(tenantUri: string, token: DecodedToken): Promise<ITypedBackendResponse<Sponsorship[]>>;
32
+ getTenantSponsorships(tenantId: string): Promise<ITypedBackendResponse<Sponsorship[]>>;
33
+ sendAthleteInvitations(input: InviteAthletesDto): Promise<ITypedBackendResponse<SponsorAthleteInvitation[]>>;
34
+ registerSponsorUser(input: RegisterUserDto): Promise<ITypedBackendResponse<User>>;
35
+ registerAthleteUser(input: RegisterUserDto): Promise<ITypedBackendResponse<User>>;
36
+ preRegisterAthleteUser(input: RegisterUserDto): Promise<ITypedBackendResponse<VerificationCode>>;
37
+ confirmAthleteUserRegistrationAndLogin(input: VerifyCodeDto): Promise<ITypedBackendResponse<UserWithToken>>;
38
+ confirmAthleteUserRegistration(input: VerifyCodeDto): Promise<ITypedBackendResponse<User>>;
39
+ findSponsorAthleteInvitation(dto: FindSponsorAthleteInvitationDto): Promise<ITypedBackendResponse<SponsorAthleteInvitation>>;
40
+ findVtxUser(dto: FindVtxUserDto): Promise<ITypedBackendResponse<User>>;
41
+ findCitiesStartingWith(pattern: string): Promise<ITypedBackendResponse<City[]>>;
42
+ findCityById(cityId: string): Promise<ITypedBackendResponse<City>>;
43
+ getSportLevels(): Promise<ITypedBackendResponse<SportLevel[]>>;
44
+ getSports(): Promise<ITypedBackendResponse<Sport[]>>;
45
+ loginUserFromCredentialsVtx(username: string, password: string): Promise<ITypedBackendResponse<UserWithToken>>;
46
+ validateUserCredentialsVtx(username: string, password: string): Promise<ITypedBackendResponse<User>>;
47
+ findAthleteForUser(loginEmail: string): Promise<ITypedBackendResponse<Athlete>>;
48
+ getBrands(): Promise<ITypedBackendResponse<Brand[]>>;
49
+ getAthletes(): Promise<ITypedBackendResponse<Athlete[]>>;
50
+ searchAthletes(searchString: string): Promise<ITypedBackendResponse<Athlete[]>>;
51
+ getRecommendedAthletes(loginEmail: string): Promise<ITypedBackendResponse<Athlete[]>>;
52
+ getSponsorAthletesForTenant(): Promise<ITypedBackendResponse<Athlete[]>>;
53
+ getUserImagesFromEmail(loginEmail: string): Promise<ITypedBackendResponse<UserImages>>;
54
+ editAboutMe(newValue: string): Promise<ITypedBackendResponse<EditValueResponse>>;
55
+ editProfileValue(newValue: string, field: string): Promise<ITypedBackendResponse<EditValueResponse>>;
14
56
  }