@aepstore-dev/contracts 1.52.0 → 1.54.0

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/gen/activity.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.0
5
+ // protoc v7.35.1
6
6
  // source: activity.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ACTIVITY_SERVICE_NAME = exports.ACTIVITY_V1_PACKAGE_NAME = exports.ReportStatus = exports.ReportType = exports.protobufPackage = void 0;
package/gen/activity.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.0
4
+ // protoc v7.35.1
5
5
  // source: activity.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/auth.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.0
5
+ // protoc v7.35.1
6
6
  // source: auth.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.AUTH_SERVICE_NAME = exports.AUTH_V1_PACKAGE_NAME = exports.TwoFactorType = exports.protobufPackage = void 0;
package/gen/auth.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.0
4
+ // protoc v7.35.1
5
5
  // source: auth.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/mail.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.0
5
+ // protoc v7.35.1
6
6
  // source: mail.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.MAIL_SERVICE_NAME = exports.MAIL_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
package/gen/mail.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.0
4
+ // protoc v7.35.1
5
5
  // source: mail.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/payments.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.0
5
+ // protoc v7.35.1
6
6
  // source: payments.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.PAYMENTS_SERVICE_NAME = exports.PAYMENTS_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
package/gen/payments.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.0
4
+ // protoc v7.35.1
5
5
  // source: payments.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/products.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.0
5
+ // protoc v7.35.1
6
6
  // source: products.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.PRODUCTS_SERVICE_NAME = exports.PRODUCTS_V1_PACKAGE_NAME = exports.MediaType = exports.ModerationStatus = exports.ProductStatus = exports.protobufPackage = void 0;
package/gen/products.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.0
4
+ // protoc v7.35.1
5
5
  // source: products.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/support.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.0
5
+ // protoc v7.35.1
6
6
  // source: support.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.SUPPORT_SERVICE_NAME = exports.SUPPORT_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
package/gen/support.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.0
4
+ // protoc v7.35.1
5
5
  // source: support.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/taxonomy.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.0
5
+ // protoc v7.35.1
6
6
  // source: taxonomy.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.TAXONOMY_SERVICE_NAME = exports.TAXONOMY_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
package/gen/taxonomy.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.0
4
+ // protoc v7.35.1
5
5
  // source: taxonomy.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/upload.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.0
5
+ // protoc v7.35.1
6
6
  // source: upload.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.UPLOAD_SERVICE_NAME = exports.UPLOAD_V1_PACKAGE_NAME = exports.UploadKind = exports.protobufPackage = void 0;
package/gen/upload.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.0
4
+ // protoc v7.35.1
5
5
  // source: upload.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/users.d.ts CHANGED
@@ -55,11 +55,17 @@ export interface Country {
55
55
  export interface SocialMedia {
56
56
  id: string;
57
57
  platform: string;
58
+ /** full link (built from username on read; empty for discord) */
58
59
  url: string;
60
+ /** handle for handle-based platforms; empty for website */
61
+ username: string;
59
62
  }
60
63
  export interface CreateSocialMedia {
61
64
  platform: string;
65
+ /** only for platform="website" */
62
66
  url: string;
67
+ /** handle for all other platforms */
68
+ username: string;
63
69
  }
64
70
  export interface ProductUser {
65
71
  id: string;
@@ -202,6 +208,28 @@ export interface UpdateUserRequest {
202
208
  export interface UserResponse {
203
209
  user: User | undefined;
204
210
  }
211
+ /**
212
+ * Lightweight uniqueness probe for signup / account-settings forms. Called
213
+ * often (per keystroke/blur) — backed by a single indexed query, no writes.
214
+ * Mirrors the exact-match uniqueness check in UpdateUser so availability never
215
+ * disagrees with the real collision at submit time.
216
+ */
217
+ export interface CheckAvailabilityRequest {
218
+ /** empty = skip this field */
219
+ username: string;
220
+ /** empty = skip this field */
221
+ email: string;
222
+ /** empty = none; set to current user so editing */
223
+ excludeUserId: string;
224
+ }
225
+ export interface CheckAvailabilityResponse {
226
+ /** false = username wasn't part of the query */
227
+ usernameChecked: boolean;
228
+ usernameAvailable: boolean;
229
+ /** false = email wasn't part of the query */
230
+ emailChecked: boolean;
231
+ emailAvailable: boolean;
232
+ }
205
233
  export interface UpdateUserRoleRequest {
206
234
  adminId: string;
207
235
  userId: string;
@@ -530,6 +558,7 @@ export interface UsersServiceClient {
530
558
  getPublicProfile(request: GetPublicProfileRequest): Observable<PublicProfileResponse>;
531
559
  updateProfile(request: UpdateProfileRequest): Observable<PublicProfileResponse>;
532
560
  updateUser(request: UpdateUserRequest): Observable<UserResponse>;
561
+ checkAvailability(request: CheckAvailabilityRequest): Observable<CheckAvailabilityResponse>;
533
562
  updateUserRole(request: UpdateUserRoleRequest): Observable<UserResponse>;
534
563
  getUsers(request: GetUsersRequest): Observable<GetUsersResponse>;
535
564
  getActiveDevices(request: GetActiveDevicesRequest): Observable<GetActiveDevicesResponse>;
@@ -595,6 +624,7 @@ export interface UsersServiceController {
595
624
  getPublicProfile(request: GetPublicProfileRequest): Promise<PublicProfileResponse> | Observable<PublicProfileResponse> | PublicProfileResponse;
596
625
  updateProfile(request: UpdateProfileRequest): Promise<PublicProfileResponse> | Observable<PublicProfileResponse> | PublicProfileResponse;
597
626
  updateUser(request: UpdateUserRequest): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
627
+ checkAvailability(request: CheckAvailabilityRequest): Promise<CheckAvailabilityResponse> | Observable<CheckAvailabilityResponse> | CheckAvailabilityResponse;
598
628
  updateUserRole(request: UpdateUserRoleRequest): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
599
629
  getUsers(request: GetUsersRequest): Promise<GetUsersResponse> | Observable<GetUsersResponse> | GetUsersResponse;
600
630
  getActiveDevices(request: GetActiveDevicesRequest): Promise<GetActiveDevicesResponse> | Observable<GetActiveDevicesResponse> | GetActiveDevicesResponse;
package/gen/users.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.0
5
+ // protoc v7.35.1
6
6
  // source: users.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.USERS_SERVICE_NAME = exports.USERS_V1_PACKAGE_NAME = exports.PremiumPeriod = exports.UserFieldsType = exports.protobufPackage = void 0;
@@ -36,6 +36,7 @@ function UsersServiceControllerMethods() {
36
36
  "getPublicProfile",
37
37
  "updateProfile",
38
38
  "updateUser",
39
+ "checkAvailability",
39
40
  "updateUserRole",
40
41
  "getUsers",
41
42
  "getActiveDevices",
package/gen/users.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.0
4
+ // protoc v7.35.1
5
5
  // source: users.proto
6
6
 
7
7
  /* eslint-disable */
@@ -72,12 +72,18 @@ export interface Country {
72
72
  export interface SocialMedia {
73
73
  id: string;
74
74
  platform: string;
75
+ /** full link (built from username on read; empty for discord) */
75
76
  url: string;
77
+ /** handle for handle-based platforms; empty for website */
78
+ username: string;
76
79
  }
77
80
 
78
81
  export interface CreateSocialMedia {
79
82
  platform: string;
83
+ /** only for platform="website" */
80
84
  url: string;
85
+ /** handle for all other platforms */
86
+ username: string;
81
87
  }
82
88
 
83
89
  export interface ProductUser {
@@ -235,6 +241,30 @@ export interface UserResponse {
235
241
  user: User | undefined;
236
242
  }
237
243
 
244
+ /**
245
+ * Lightweight uniqueness probe for signup / account-settings forms. Called
246
+ * often (per keystroke/blur) — backed by a single indexed query, no writes.
247
+ * Mirrors the exact-match uniqueness check in UpdateUser so availability never
248
+ * disagrees with the real collision at submit time.
249
+ */
250
+ export interface CheckAvailabilityRequest {
251
+ /** empty = skip this field */
252
+ username: string;
253
+ /** empty = skip this field */
254
+ email: string;
255
+ /** empty = none; set to current user so editing */
256
+ excludeUserId: string;
257
+ }
258
+
259
+ export interface CheckAvailabilityResponse {
260
+ /** false = username wasn't part of the query */
261
+ usernameChecked: boolean;
262
+ usernameAvailable: boolean;
263
+ /** false = email wasn't part of the query */
264
+ emailChecked: boolean;
265
+ emailAvailable: boolean;
266
+ }
267
+
238
268
  export interface UpdateUserRoleRequest {
239
269
  adminId: string;
240
270
  userId: string;
@@ -618,6 +648,8 @@ export interface UsersServiceClient {
618
648
 
619
649
  updateUser(request: UpdateUserRequest): Observable<UserResponse>;
620
650
 
651
+ checkAvailability(request: CheckAvailabilityRequest): Observable<CheckAvailabilityResponse>;
652
+
621
653
  updateUserRole(request: UpdateUserRoleRequest): Observable<UserResponse>;
622
654
 
623
655
  getUsers(request: GetUsersRequest): Observable<GetUsersResponse>;
@@ -738,6 +770,10 @@ export interface UsersServiceController {
738
770
 
739
771
  updateUser(request: UpdateUserRequest): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
740
772
 
773
+ checkAvailability(
774
+ request: CheckAvailabilityRequest,
775
+ ): Promise<CheckAvailabilityResponse> | Observable<CheckAvailabilityResponse> | CheckAvailabilityResponse;
776
+
741
777
  updateUserRole(request: UpdateUserRoleRequest): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
742
778
 
743
779
  getUsers(request: GetUsersRequest): Promise<GetUsersResponse> | Observable<GetUsersResponse> | GetUsersResponse;
@@ -903,6 +939,7 @@ export function UsersServiceControllerMethods() {
903
939
  "getPublicProfile",
904
940
  "updateProfile",
905
941
  "updateUser",
942
+ "checkAvailability",
906
943
  "updateUserRole",
907
944
  "getUsers",
908
945
  "getActiveDevices",
package/package.json CHANGED
@@ -1,35 +1,35 @@
1
- {
2
- "name": "@aepstore-dev/contracts",
3
- "version": "1.52.0",
4
- "description": "Protobuf definitions for aepstore microservices",
5
- "main": "./dist/index.js",
6
- "types": "./dist/index.d.ts",
7
- "scripts": {
8
- "generate": "node scripts/generate.cjs",
9
- "build": "tsc -p tsconfig.build.json && tsc -p tsconfig.gen.json"
10
- },
11
- "files": [
12
- "dist",
13
- "proto",
14
- "gen"
15
- ],
16
- "publishConfig": {
17
- "access": "public"
18
- },
19
- "author": {
20
- "name": "torroixq",
21
- "email": "cato.ixq@gmail.com"
22
- },
23
- "peerDependencies": {
24
- "@nestjs/microservices": "^11.1.11",
25
- "rxjs": "^7.8.2"
26
- },
27
- "devDependencies": {
28
- "@nestjs/microservices": "^11.1.11",
29
- "@protobuf-ts/protoc": "^2.9.4",
30
- "@types/node": "^25.0.3",
31
- "rxjs": "^7.8.2",
32
- "ts-proto": "^2.10.1",
33
- "typescript": "^5.9.3"
34
- }
35
- }
1
+ {
2
+ "name": "@aepstore-dev/contracts",
3
+ "version": "1.54.0",
4
+ "description": "Protobuf definitions for aepstore microservices",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "scripts": {
8
+ "generate": "node scripts/generate.cjs",
9
+ "build": "tsc -p tsconfig.build.json && tsc -p tsconfig.gen.json"
10
+ },
11
+ "files": [
12
+ "dist",
13
+ "proto",
14
+ "gen"
15
+ ],
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "author": {
20
+ "name": "torroixq",
21
+ "email": "cato.ixq@gmail.com"
22
+ },
23
+ "peerDependencies": {
24
+ "@nestjs/microservices": "^11.1.11",
25
+ "rxjs": "^7.8.2"
26
+ },
27
+ "devDependencies": {
28
+ "@nestjs/microservices": "^11.1.11",
29
+ "@protobuf-ts/protoc": "^2.9.4",
30
+ "@types/node": "^25.0.3",
31
+ "rxjs": "^7.8.2",
32
+ "ts-proto": "^2.10.1",
33
+ "typescript": "^5.9.3"
34
+ }
35
+ }