@trash-streamers/contracts 1.0.5 → 1.1.1
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/events/auth/index.d.ts +1 -0
- package/dist/events/auth/index.js +17 -0
- package/dist/events/auth/otp-requested.interface.d.ts +5 -0
- package/dist/events/auth/otp-requested.interface.js +2 -0
- package/dist/events/index.d.ts +1 -0
- package/dist/events/index.js +17 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/gen/ts/account.ts +1 -1
- package/gen/ts/auth.ts +9 -3
- package/package.json +1 -1
- package/proto/auth.proto +7 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './otp-requested.interface';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./otp-requested.interface"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './auth';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./auth"), exports);
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/gen/ts/account.ts
CHANGED
package/gen/ts/auth.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.
|
|
3
|
+
// protoc-gen-ts_proto v2.11.0
|
|
4
4
|
// protoc v3.21.12
|
|
5
5
|
// source: auth.proto
|
|
6
6
|
|
|
@@ -10,9 +10,15 @@ import { Observable } from "rxjs";
|
|
|
10
10
|
|
|
11
11
|
export const protobufPackage = "auth.v1";
|
|
12
12
|
|
|
13
|
+
export enum AuthType {
|
|
14
|
+
PHONE = 0,
|
|
15
|
+
EMAIL = 1,
|
|
16
|
+
UNRECOGNIZED = -1,
|
|
17
|
+
}
|
|
18
|
+
|
|
13
19
|
export interface SendOtpRequest {
|
|
14
20
|
identifier: string;
|
|
15
|
-
type:
|
|
21
|
+
type: AuthType;
|
|
16
22
|
}
|
|
17
23
|
|
|
18
24
|
export interface SendOtpResponse {
|
|
@@ -21,7 +27,7 @@ export interface SendOtpResponse {
|
|
|
21
27
|
|
|
22
28
|
export interface VerifyOtpRequest {
|
|
23
29
|
identifier: string;
|
|
24
|
-
type:
|
|
30
|
+
type: AuthType;
|
|
25
31
|
code: string;
|
|
26
32
|
}
|
|
27
33
|
|
package/package.json
CHANGED
package/proto/auth.proto
CHANGED
|
@@ -10,7 +10,7 @@ service AuthService {
|
|
|
10
10
|
|
|
11
11
|
message SendOtpRequest{
|
|
12
12
|
string identifier = 1;
|
|
13
|
-
|
|
13
|
+
AuthType type = 2;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
message SendOtpResponse {
|
|
@@ -19,7 +19,7 @@ message SendOtpResponse {
|
|
|
19
19
|
|
|
20
20
|
message VerifyOtpRequest {
|
|
21
21
|
string identifier = 1;
|
|
22
|
-
|
|
22
|
+
AuthType type = 2;
|
|
23
23
|
string code = 3;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -35,4 +35,9 @@ message RefreshRequest {
|
|
|
35
35
|
message RefreshResponse {
|
|
36
36
|
string access_token = 1;
|
|
37
37
|
string refresh_token = 2;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
enum AuthType {
|
|
41
|
+
PHONE = 0;
|
|
42
|
+
EMAIL = 1;
|
|
38
43
|
}
|