jr-common-micro 1.1.11 → 1.1.12

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.
@@ -12,6 +12,10 @@ export interface LoginRequest {
12
12
  export interface GoogleRequest {
13
13
  email: string;
14
14
  }
15
+ export interface AppleRequest {
16
+ identity_token: string;
17
+ email?: string | undefined;
18
+ }
15
19
  export interface LoginResponse {
16
20
  status: ResponseStatus | undefined;
17
21
  data: AccessTokenDto | undefined;
@@ -37,6 +37,18 @@ export declare class GoogleRequest extends Message<GoogleRequest> {
37
37
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GoogleRequest;
38
38
  static equals(a: GoogleRequest | PlainMessage<GoogleRequest> | undefined, b: GoogleRequest | PlainMessage<GoogleRequest> | undefined): boolean;
39
39
  }
40
+ export declare class AppleRequest extends Message<AppleRequest> {
41
+ identityToken: string;
42
+ email?: string;
43
+ constructor(data?: PartialMessage<AppleRequest>);
44
+ static readonly runtime: typeof proto3;
45
+ static readonly typeName = "micro.v1.user.AppleRequest";
46
+ static readonly fields: FieldList;
47
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AppleRequest;
48
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AppleRequest;
49
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AppleRequest;
50
+ static equals(a: AppleRequest | PlainMessage<AppleRequest> | undefined, b: AppleRequest | PlainMessage<AppleRequest> | undefined): boolean;
51
+ }
40
52
  export declare class LoginResponse extends Message<LoginResponse> {
41
53
  status?: ResponseStatus;
42
54
  data?: AccessTokenDto;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResendVerificationEmailResponse = exports.ResendVerificationEmailRequest = exports.RemoveUserDataRequest = exports.ValidationDto = exports.VerifyTokenResponse = exports.VerifyTokenRequest = exports.UserVerificationResponse = exports.UserVerificationRequest = exports.LostPasswordChangePasswordResponse = exports.LostPasswordChangePasswordRequest = exports.LostPasswordHashCheckResponse = exports.LostPasswordHashCheckRequest = exports.LostPasswordStartResponse = exports.LostPasswordStartRequest = exports.TfaResponse = exports.TfaRequest = exports.RegisterResponse = exports.RegisterRequest = exports.LoginResponse = exports.GoogleRequest = exports.LoginRequest = exports.AccessTokenDto = void 0;
3
+ exports.ResendVerificationEmailResponse = exports.ResendVerificationEmailRequest = exports.RemoveUserDataRequest = exports.ValidationDto = exports.VerifyTokenResponse = exports.VerifyTokenRequest = exports.UserVerificationResponse = exports.UserVerificationRequest = exports.LostPasswordChangePasswordResponse = exports.LostPasswordChangePasswordRequest = exports.LostPasswordHashCheckResponse = exports.LostPasswordHashCheckRequest = exports.LostPasswordStartResponse = exports.LostPasswordStartRequest = exports.TfaResponse = exports.TfaRequest = exports.RegisterResponse = exports.RegisterRequest = exports.LoginResponse = exports.AppleRequest = exports.GoogleRequest = exports.LoginRequest = exports.AccessTokenDto = void 0;
4
4
  const protobuf_1 = require("@bufbuild/protobuf");
5
5
  const user_messages_pb_js_1 = require("./user_messages_pb.js");
6
6
  const general_pb_js_1 = require("../general_pb.js");
@@ -83,6 +83,33 @@ class GoogleRequest extends protobuf_1.Message {
83
83
  }
84
84
  }
85
85
  exports.GoogleRequest = GoogleRequest;
86
+ class AppleRequest extends protobuf_1.Message {
87
+ identityToken = "";
88
+ email;
89
+ constructor(data) {
90
+ super();
91
+ protobuf_1.proto3.util.initPartial(data, this);
92
+ }
93
+ static runtime = protobuf_1.proto3;
94
+ static typeName = "micro.v1.user.AppleRequest";
95
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
96
+ { no: 1, name: "identity_token", kind: "scalar", T: 9 },
97
+ { no: 2, name: "email", kind: "scalar", T: 9, opt: true },
98
+ ]);
99
+ static fromBinary(bytes, options) {
100
+ return new AppleRequest().fromBinary(bytes, options);
101
+ }
102
+ static fromJson(jsonValue, options) {
103
+ return new AppleRequest().fromJson(jsonValue, options);
104
+ }
105
+ static fromJsonString(jsonString, options) {
106
+ return new AppleRequest().fromJsonString(jsonString, options);
107
+ }
108
+ static equals(a, b) {
109
+ return protobuf_1.proto3.util.equals(AppleRequest, a, b);
110
+ }
111
+ }
112
+ exports.AppleRequest = AppleRequest;
86
113
  class LoginResponse extends protobuf_1.Message {
87
114
  status;
88
115
  data;
@@ -1,4 +1,4 @@
1
- import { GoogleRequest, LoginRequest, LoginResponse, LostPasswordChangePasswordRequest, LostPasswordChangePasswordResponse, LostPasswordHashCheckRequest, LostPasswordHashCheckResponse, LostPasswordStartRequest, LostPasswordStartResponse, RegisterRequest, RegisterResponse, RemoveUserDataRequest, ResendVerificationEmailRequest, ResendVerificationEmailResponse, TfaRequest, TfaResponse, UserVerificationRequest, UserVerificationResponse, VerifyTokenRequest, VerifyTokenResponse } from "./auth_messages_pb.js";
1
+ import { AppleRequest, GoogleRequest, LoginRequest, LoginResponse, LostPasswordChangePasswordRequest, LostPasswordChangePasswordResponse, LostPasswordHashCheckRequest, LostPasswordHashCheckResponse, LostPasswordStartRequest, LostPasswordStartResponse, RegisterRequest, RegisterResponse, RemoveUserDataRequest, ResendVerificationEmailRequest, ResendVerificationEmailResponse, TfaRequest, TfaResponse, UserVerificationRequest, UserVerificationResponse, VerifyTokenRequest, VerifyTokenResponse } from "./auth_messages_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateFromRequest, PaginateRequest } from "../general_pb.js";
4
4
  import { BetaCodePaginateResponse, BetaCodeSingleResponse, BetaCodeStoreRequest, BetaCodeUpdateRequest, ContactPaginationResponse, ContactRequest, ContactResponse, PreviewResponse, PublicUserPreviewResponse, UpdatePasswordRequest, UserAdminStoreRequest, UserPaginationResponse, UserSingleResponse, UserUpdateRequest } from "./user_messages_pb.js";
@@ -167,6 +167,17 @@ export declare const PUserGoogleService: {
167
167
  };
168
168
  };
169
169
  };
170
+ export declare const PUserAppleService: {
171
+ readonly typeName: "micro.v1.user.PUserAppleService";
172
+ readonly methods: {
173
+ readonly apple: {
174
+ readonly name: "Apple";
175
+ readonly I: typeof AppleRequest;
176
+ readonly O: typeof LoginResponse;
177
+ readonly kind: MethodKind.ServerStreaming;
178
+ };
179
+ };
180
+ };
170
181
  export declare const PUserExistService: {
171
182
  readonly typeName: "micro.v1.user.PUserExistService";
172
183
  readonly methods: {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PBetaCodeAdminService = exports.PRoleAdminService = exports.PUserAdminService = exports.PUserExistService = exports.PUserGoogleService = exports.PSiteSettingsService = exports.PRoleService = exports.PUserService = exports.PAuthService = void 0;
3
+ exports.PBetaCodeAdminService = exports.PRoleAdminService = exports.PUserAdminService = exports.PUserExistService = exports.PUserAppleService = exports.PUserGoogleService = exports.PSiteSettingsService = exports.PRoleService = exports.PUserService = exports.PAuthService = void 0;
4
4
  const auth_messages_pb_js_1 = require("./auth_messages_pb.js");
5
5
  const protobuf_1 = require("@bufbuild/protobuf");
6
6
  const general_pb_js_1 = require("../general_pb.js");
@@ -170,6 +170,17 @@ exports.PUserGoogleService = {
170
170
  },
171
171
  }
172
172
  };
173
+ exports.PUserAppleService = {
174
+ typeName: "micro.v1.user.PUserAppleService",
175
+ methods: {
176
+ apple: {
177
+ name: "Apple",
178
+ I: auth_messages_pb_js_1.AppleRequest,
179
+ O: auth_messages_pb_js_1.LoginResponse,
180
+ kind: protobuf_1.MethodKind.ServerStreaming,
181
+ },
182
+ }
183
+ };
173
184
  exports.PUserExistService = {
174
185
  typeName: "micro.v1.user.PUserExistService",
175
186
  methods: {
@@ -1,7 +1,7 @@
1
1
  import type { Metadata } from "@grpc/grpc-js";
2
2
  import { Observable } from "rxjs";
3
3
  import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateFromRequest, PaginateRequest } from "../general_nest";
4
- import { GoogleRequest, LoginRequest, LoginResponse, LostPasswordChangePasswordRequest, LostPasswordChangePasswordResponse, LostPasswordHashCheckRequest, LostPasswordHashCheckResponse, LostPasswordStartRequest, LostPasswordStartResponse, RegisterRequest, RegisterResponse, RemoveUserDataRequest, ResendVerificationEmailRequest, ResendVerificationEmailResponse, TfaRequest, TfaResponse, UserVerificationRequest, UserVerificationResponse, VerifyTokenRequest, VerifyTokenResponse } from "./auth_messages_nest";
4
+ import { AppleRequest, GoogleRequest, LoginRequest, LoginResponse, LostPasswordChangePasswordRequest, LostPasswordChangePasswordResponse, LostPasswordHashCheckRequest, LostPasswordHashCheckResponse, LostPasswordStartRequest, LostPasswordStartResponse, RegisterRequest, RegisterResponse, RemoveUserDataRequest, ResendVerificationEmailRequest, ResendVerificationEmailResponse, TfaRequest, TfaResponse, UserVerificationRequest, UserVerificationResponse, VerifyTokenRequest, VerifyTokenResponse } from "./auth_messages_nest";
5
5
  import { RoleAdminStoreRequest, RoleAdminUpdateRequest, RolePaginationResponse, RoleSingleResponse } from "./authorization_messages_nest";
6
6
  import { SiteSettingsRequest, SiteSettingsResponse } from "./site_settings_messages_nest";
7
7
  import { BetaCodePaginateResponse, BetaCodeSingleResponse, BetaCodeStoreRequest, BetaCodeUpdateRequest, ContactPaginationResponse, ContactRequest, ContactResponse, PreviewResponse, PublicUserPreviewResponse, UpdatePasswordRequest, UserAdminStoreRequest, UserPaginationResponse, UserSingleResponse, UserUpdateRequest } from "./user_messages_nest";
@@ -83,6 +83,14 @@ export interface PUserGoogleServiceController {
83
83
  }
84
84
  export declare function PUserGoogleServiceControllerMethods(): (constructor: Function) => void;
85
85
  export declare const P_USER_GOOGLE_SERVICE_NAME = "PUserGoogleService";
86
+ export interface PUserAppleServiceClient {
87
+ apple(request: AppleRequest, metadata?: Metadata): Observable<LoginResponse>;
88
+ }
89
+ export interface PUserAppleServiceController {
90
+ apple(request: AppleRequest, metadata?: Metadata): Observable<LoginResponse>;
91
+ }
92
+ export declare function PUserAppleServiceControllerMethods(): (constructor: Function) => void;
93
+ export declare const P_USER_APPLE_SERVICE_NAME = "PUserAppleService";
86
94
  export interface PUserExistServiceClient {
87
95
  checkUserExist(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
88
96
  }
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.P_BETA_CODE_ADMIN_SERVICE_NAME = exports.P_ROLE_ADMIN_SERVICE_NAME = exports.P_USER_ADMIN_SERVICE_NAME = exports.P_USER_EXIST_SERVICE_NAME = exports.P_USER_GOOGLE_SERVICE_NAME = exports.P_SITE_SETTINGS_SERVICE_NAME = exports.P_ROLE_SERVICE_NAME = exports.P_USER_SERVICE_NAME = exports.P_AUTH_SERVICE_NAME = exports.MICRO_V1_USER_PACKAGE_NAME = exports.protobufPackage = void 0;
3
+ exports.P_BETA_CODE_ADMIN_SERVICE_NAME = exports.P_ROLE_ADMIN_SERVICE_NAME = exports.P_USER_ADMIN_SERVICE_NAME = exports.P_USER_EXIST_SERVICE_NAME = exports.P_USER_APPLE_SERVICE_NAME = exports.P_USER_GOOGLE_SERVICE_NAME = exports.P_SITE_SETTINGS_SERVICE_NAME = exports.P_ROLE_SERVICE_NAME = exports.P_USER_SERVICE_NAME = exports.P_AUTH_SERVICE_NAME = exports.MICRO_V1_USER_PACKAGE_NAME = exports.protobufPackage = void 0;
4
4
  exports.PAuthServiceControllerMethods = PAuthServiceControllerMethods;
5
5
  exports.PUserServiceControllerMethods = PUserServiceControllerMethods;
6
6
  exports.PRoleServiceControllerMethods = PRoleServiceControllerMethods;
7
7
  exports.PSiteSettingsServiceControllerMethods = PSiteSettingsServiceControllerMethods;
8
8
  exports.PUserGoogleServiceControllerMethods = PUserGoogleServiceControllerMethods;
9
+ exports.PUserAppleServiceControllerMethods = PUserAppleServiceControllerMethods;
9
10
  exports.PUserExistServiceControllerMethods = PUserExistServiceControllerMethods;
10
11
  exports.PUserAdminServiceControllerMethods = PUserAdminServiceControllerMethods;
11
12
  exports.PRoleAdminServiceControllerMethods = PRoleAdminServiceControllerMethods;
@@ -100,6 +101,21 @@ function PUserGoogleServiceControllerMethods() {
100
101
  };
101
102
  }
102
103
  exports.P_USER_GOOGLE_SERVICE_NAME = "PUserGoogleService";
104
+ function PUserAppleServiceControllerMethods() {
105
+ return function (constructor) {
106
+ const grpcMethods = ["apple"];
107
+ for (const method of grpcMethods) {
108
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
109
+ (0, microservices_1.GrpcMethod)("PUserAppleService", method)(constructor.prototype[method], method, descriptor);
110
+ }
111
+ const grpcStreamMethods = [];
112
+ for (const method of grpcStreamMethods) {
113
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
114
+ (0, microservices_1.GrpcStreamMethod)("PUserAppleService", method)(constructor.prototype[method], method, descriptor);
115
+ }
116
+ };
117
+ }
118
+ exports.P_USER_APPLE_SERVICE_NAME = "PUserAppleService";
103
119
  function PUserExistServiceControllerMethods() {
104
120
  return function (constructor) {
105
121
  const grpcMethods = ["checkUserExist"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -20,6 +20,11 @@ message GoogleRequest {
20
20
  string email = 1;
21
21
  }
22
22
 
23
+ message AppleRequest {
24
+ string identity_token = 1;
25
+ optional string email = 2;
26
+ }
27
+
23
28
  message LoginResponse {
24
29
  ResponseStatus status = 1;
25
30
  AccessTokenDto data = 2;
@@ -50,6 +50,10 @@ service PUserGoogleService {
50
50
  rpc Google(GoogleRequest) returns(stream LoginResponse) {}
51
51
  }
52
52
 
53
+ service PUserAppleService {
54
+ rpc Apple(AppleRequest) returns(stream LoginResponse) {}
55
+ }
56
+
53
57
  service PUserExistService {
54
58
  rpc CheckUserExist(ByIdRequest) returns(stream EmptyResponse) {}
55
59
  }