itlab-internal-services 2.16.26 → 2.16.27
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/dist/modules/services/providers/pass/dtos/create-events-host-pass.dto.v1.d.ts +32 -0
- package/dist/modules/services/providers/pass/dtos/{create-tech-scout-pass.dto.v1.d.ts → create-tech-radar-tech-scout-pass.dto.v1.d.ts} +2 -2
- package/dist/modules/services/providers/pass/dtos/create-tech-radar-tech-scout-pass.dto.v1.js +2 -0
- package/dist/modules/services/providers/pass/dtos/index.d.ts +2 -1
- package/dist/modules/services/providers/pass/dtos/index.js +2 -1
- package/dist/modules/services/providers/pass/pass-types.d.ts +5 -4
- package/dist/modules/services/providers/pass/pass-types.js +4 -3
- package/dist/modules/services/providers/pass/pass.service.d.ts +21 -11
- package/dist/modules/services/providers/pass/pass.service.js +33 -16
- package/package.json +1 -1
- /package/dist/modules/services/providers/pass/dtos/{create-tech-scout-pass.dto.v1.js → create-events-host-pass.dto.v1.js} +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateEventsHostPassDtoV1
|
|
3
|
+
*
|
|
4
|
+
* Data structure used to generate a digital Apple Wallet pass for a Event Host.
|
|
5
|
+
* Captures personal identity and membership history.
|
|
6
|
+
*/
|
|
7
|
+
export type CreateEventsHostPassDtoV1 = {
|
|
8
|
+
/**
|
|
9
|
+
* MongoDB ObjectId uniquely identifying the host.
|
|
10
|
+
*
|
|
11
|
+
* @example '507f1f77bcf86cd799439011'
|
|
12
|
+
*/
|
|
13
|
+
hostId: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional: Blobname of the host's avatar.
|
|
16
|
+
*
|
|
17
|
+
* @example 'avatar/507f1f77bcf86cd799439022'
|
|
18
|
+
*/
|
|
19
|
+
avatarBlob?: `${'avatar' | 'file'}/${string}`;
|
|
20
|
+
/**
|
|
21
|
+
* Full name of the member as it should appear on the digital pass.
|
|
22
|
+
*
|
|
23
|
+
* @example 'Jane Doe'
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* Email address used to identify and contact the host.
|
|
28
|
+
*
|
|
29
|
+
* @example 'jane.doe@example.com'
|
|
30
|
+
*/
|
|
31
|
+
email: string;
|
|
32
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* CreateTechRadarTechScoutPassDtoV1
|
|
3
3
|
*
|
|
4
4
|
* Data structure used to generate a digital Apple Wallet pass for a Tech Scout.
|
|
5
5
|
* Captures personal identity and membership history.
|
|
6
6
|
*/
|
|
7
|
-
export type
|
|
7
|
+
export type CreateTechRadarTechScoutPassDtoV1 = {
|
|
8
8
|
/**
|
|
9
9
|
* MongoDB ObjectId uniquely identifying the tech scout.
|
|
10
10
|
*
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./create-events-host-pass.dto.v1"), exports);
|
|
17
18
|
__exportStar(require("./create-team-member-pass.dto.v1"), exports);
|
|
18
|
-
__exportStar(require("./create-tech-scout-pass.dto.v1"), exports);
|
|
19
|
+
__exportStar(require("./create-tech-radar-tech-scout-pass.dto.v1"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CreateTeamMemberPassDtoV1,
|
|
1
|
+
import { CreateEventsHostPassDtoV1, CreateTeamMemberPassDtoV1, CreateTechRadarTechScoutPassDtoV1 } from './dtos';
|
|
2
2
|
/**
|
|
3
3
|
* Constant list of supported digital pass types.
|
|
4
4
|
*/
|
|
5
|
-
declare const supportedPassTypes: readonly ["v1.
|
|
5
|
+
declare const supportedPassTypes: readonly ["v1.events.host", "v1.tech-radar.tech-scout", "v1.team.member"];
|
|
6
6
|
/**
|
|
7
7
|
* Union type representing valid pass types.
|
|
8
8
|
*/
|
|
@@ -12,8 +12,9 @@ export type PassType = (typeof supportedPassTypes)[number];
|
|
|
12
12
|
* This enables type-safe payload handling when creating passes.
|
|
13
13
|
*/
|
|
14
14
|
export type PassTypeDtoMap = {
|
|
15
|
-
'v1.
|
|
16
|
-
'v1.tech-scout':
|
|
15
|
+
'v1.events.host': CreateEventsHostPassDtoV1;
|
|
16
|
+
'v1.tech-radar.tech-scout': CreateTechRadarTechScoutPassDtoV1;
|
|
17
|
+
'v1.team.member': CreateTeamMemberPassDtoV1;
|
|
17
18
|
};
|
|
18
19
|
export declare const PassTypeEndpointMap: Record<PassType, string>;
|
|
19
20
|
export {};
|
|
@@ -5,8 +5,9 @@ exports.PassTypeEndpointMap = void 0;
|
|
|
5
5
|
* Constant list of supported digital pass types.
|
|
6
6
|
*/
|
|
7
7
|
// eslint-disable-next-line
|
|
8
|
-
const supportedPassTypes = ['v1.
|
|
8
|
+
const supportedPassTypes = ['v1.events.host', 'v1.tech-radar.tech-scout', 'v1.team.member'];
|
|
9
9
|
exports.PassTypeEndpointMap = {
|
|
10
|
-
'v1.
|
|
11
|
-
'v1.tech-scout': 'v1/internal/tech-scout',
|
|
10
|
+
'v1.events.host': 'v1/internal/events/host',
|
|
11
|
+
'v1.tech-radar.tech-scout': 'v1/internal/tech-radar/tech-scout',
|
|
12
|
+
'v1.team.member': 'v1/internal/team/member',
|
|
12
13
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConfigService } from '@nestjs/config';
|
|
2
2
|
import { AuthenticationModuleOptions } from '../../../authentication';
|
|
3
3
|
import { BaseHttpService } from '../../base-http.service';
|
|
4
|
-
import { CreateTeamMemberPassDtoV1,
|
|
4
|
+
import { CreateEventsHostPassDtoV1, CreateTeamMemberPassDtoV1, CreateTechRadarTechScoutPassDtoV1 } from './dtos';
|
|
5
5
|
/**
|
|
6
6
|
* PassService
|
|
7
7
|
*
|
|
@@ -32,23 +32,33 @@ export declare class PassService extends BaseHttpService {
|
|
|
32
32
|
*/
|
|
33
33
|
private deletePass;
|
|
34
34
|
/**
|
|
35
|
-
* Creates a
|
|
36
|
-
* @param {
|
|
35
|
+
* Creates a events host pass
|
|
36
|
+
* @param {CreateEventsHostPassDtoV1} payload - DTO containing relevant data
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
createEventsHostPassV1(payload: CreateEventsHostPassDtoV1): void;
|
|
39
39
|
/**
|
|
40
|
-
* Deletes a
|
|
40
|
+
* Deletes a events host pass
|
|
41
41
|
* @param {string} passId - The ID of the pass to delete
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
deleteEventsHostPassV1(passId: string): void;
|
|
44
44
|
/**
|
|
45
|
-
* Creates a tech-scout pass
|
|
46
|
-
* @param {
|
|
45
|
+
* Creates a tech-radar tech-scout pass
|
|
46
|
+
* @param {CreateTechRadarTechScoutPassDtoV1} payload - DTO containing relevant data
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
createTechRadarTechScoutPassV1(payload: CreateTechRadarTechScoutPassDtoV1): void;
|
|
49
49
|
/**
|
|
50
|
-
* Deletes a tech-scout pass
|
|
50
|
+
* Deletes a tech-radar tech-scout pass
|
|
51
51
|
* @param {string} passId - The ID of the pass to delete
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
deleteTechRadarTechScoutPassV1(passId: string): void;
|
|
54
|
+
/**
|
|
55
|
+
* Creates a team member pass
|
|
56
|
+
* @param {CreateTeamMemberPassDtoV1} payload - DTO containing relevant data
|
|
57
|
+
*/
|
|
58
|
+
createTeamMemberPassV1(payload: CreateTeamMemberPassDtoV1): void;
|
|
59
|
+
/**
|
|
60
|
+
* Deletes a team member pass
|
|
61
|
+
* @param {string} passId - The ID of the pass to delete
|
|
62
|
+
*/
|
|
63
|
+
deleteTeamMemberPassV1(passId: string): void;
|
|
54
64
|
}
|
|
@@ -73,38 +73,55 @@ let PassService = class PassService extends base_http_service_1.BaseHttpService
|
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
// ─────────────────────────────────────────────
|
|
76
|
-
//
|
|
76
|
+
// Events
|
|
77
77
|
// ─────────────────────────────────────────────
|
|
78
78
|
/**
|
|
79
|
-
* Creates a
|
|
80
|
-
* @param {
|
|
79
|
+
* Creates a events host pass
|
|
80
|
+
* @param {CreateEventsHostPassDtoV1} payload - DTO containing relevant data
|
|
81
81
|
*/
|
|
82
|
-
|
|
83
|
-
this.createPass('v1.
|
|
82
|
+
createEventsHostPassV1(payload) {
|
|
83
|
+
this.createPass('v1.events.host', payload);
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
|
-
* Deletes a
|
|
86
|
+
* Deletes a events host pass
|
|
87
87
|
* @param {string} passId - The ID of the pass to delete
|
|
88
88
|
*/
|
|
89
|
-
|
|
90
|
-
this.deletePass('v1.
|
|
89
|
+
deleteEventsHostPassV1(passId) {
|
|
90
|
+
this.deletePass('v1.events.host', passId);
|
|
91
91
|
}
|
|
92
92
|
// ─────────────────────────────────────────────
|
|
93
|
-
// Tech
|
|
93
|
+
// Tech Radar
|
|
94
94
|
// ─────────────────────────────────────────────
|
|
95
95
|
/**
|
|
96
|
-
* Creates a tech-scout pass
|
|
97
|
-
* @param {
|
|
96
|
+
* Creates a tech-radar tech-scout pass
|
|
97
|
+
* @param {CreateTechRadarTechScoutPassDtoV1} payload - DTO containing relevant data
|
|
98
98
|
*/
|
|
99
|
-
|
|
100
|
-
this.createPass('v1.tech-scout', payload);
|
|
99
|
+
createTechRadarTechScoutPassV1(payload) {
|
|
100
|
+
this.createPass('v1.tech-radar.tech-scout', payload);
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
|
-
* Deletes a tech-scout pass
|
|
103
|
+
* Deletes a tech-radar tech-scout pass
|
|
104
104
|
* @param {string} passId - The ID of the pass to delete
|
|
105
105
|
*/
|
|
106
|
-
|
|
107
|
-
this.deletePass('v1.tech-scout', passId);
|
|
106
|
+
deleteTechRadarTechScoutPassV1(passId) {
|
|
107
|
+
this.deletePass('v1.tech-radar.tech-scout', passId);
|
|
108
|
+
}
|
|
109
|
+
// ─────────────────────────────────────────────
|
|
110
|
+
// Team
|
|
111
|
+
// ─────────────────────────────────────────────
|
|
112
|
+
/**
|
|
113
|
+
* Creates a team member pass
|
|
114
|
+
* @param {CreateTeamMemberPassDtoV1} payload - DTO containing relevant data
|
|
115
|
+
*/
|
|
116
|
+
createTeamMemberPassV1(payload) {
|
|
117
|
+
this.createPass('v1.team.member', payload);
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Deletes a team member pass
|
|
121
|
+
* @param {string} passId - The ID of the pass to delete
|
|
122
|
+
*/
|
|
123
|
+
deleteTeamMemberPassV1(passId) {
|
|
124
|
+
this.deletePass('v1.team.member', passId);
|
|
108
125
|
}
|
|
109
126
|
};
|
|
110
127
|
exports.PassService = PassService;
|
package/package.json
CHANGED