@togatherlabs/shared-protos 1.0.20 → 1.0.22
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/README.md +62 -45
- package/dist/experienceservice/experience/v1/experience_pb.d.ts +170 -0
- package/dist/experienceservice/experience/v1/experience_pb.d.ts.map +1 -0
- package/dist/experienceservice/experience/v1/experience_pb.js +38 -0
- package/dist/experienceservice/experience/v1/experience_pb.js.map +1 -0
- package/dist/experienceservice/experience/v1/index.d.ts +1 -0
- package/dist/experienceservice/experience/v1/index.js +1 -0
- package/dist/userservice/user/v1/user_pb.d.ts +16 -2
- package/dist/userservice/user/v1/user_pb.d.ts.map +1 -1
- package/dist/userservice/user/v1/user_pb.js +7 -2
- package/dist/userservice/user/v1/user_pb.js.map +1 -1
- package/package.json +7 -1
package/README.md
CHANGED
|
@@ -1,73 +1,90 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @togatherlabs/shared-protos
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
TypeScript bindings for ToGather shared protocol buffer definitions.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This package provides type-safe gRPC and ConnectRPC interfaces generated from `.proto` files, ensuring consistency across all ToGather microservices.
|
|
6
6
|
|
|
7
|
-
##
|
|
8
|
-
|
|
9
|
-
This package is published to the **ToGather NPM organization** under:
|
|
7
|
+
## Installation
|
|
10
8
|
|
|
11
9
|
```bash
|
|
12
|
-
@
|
|
10
|
+
pnpm add @togatherlabs/shared-protos
|
|
13
11
|
```
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
## Usage
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
Import the generated types and services in your application:
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
pnpm add @togatherr/togather-shared-protos
|
|
17
|
+
```typescript
|
|
18
|
+
import { AdminService } from "@togatherlabs/shared-protos/authservice/admin/v1";
|
|
19
|
+
import { UserService } from "@togatherlabs/shared-protos/userservice/user/v1";
|
|
23
20
|
```
|
|
24
21
|
|
|
25
|
-
|
|
22
|
+
### Available Modules
|
|
26
23
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
```
|
|
24
|
+
- `authservice/admin/v1` - Admin authentication service definitions
|
|
25
|
+
- `userservice/user/v1` - User service definitions
|
|
30
26
|
|
|
31
|
-
##
|
|
27
|
+
## Package Structure
|
|
32
28
|
|
|
33
|
-
|
|
29
|
+
```
|
|
30
|
+
dist/
|
|
31
|
+
├── authservice/
|
|
32
|
+
│ └── admin/
|
|
33
|
+
│ └── v1/
|
|
34
|
+
│ ├── admin_pb.d.ts
|
|
35
|
+
│ ├── admin_pb.js
|
|
36
|
+
│ └── index.js
|
|
37
|
+
└── userservice/
|
|
38
|
+
└── user/
|
|
39
|
+
└── v1/
|
|
40
|
+
├── user_pb.d.ts
|
|
41
|
+
├── user_pb.js
|
|
42
|
+
└── index.js
|
|
43
|
+
```
|
|
34
44
|
|
|
35
|
-
|
|
36
|
-
| ----------- | ------------------- | -------------------------------------------- |
|
|
37
|
-
| **Patch** | `npm version patch` | Fixes or small improvements (no API changes) |
|
|
38
|
-
| **Minor** | `npm version minor` | Adds backward-compatible features |
|
|
39
|
-
| **Major** | `npm version major` | Breaking changes (API or behavior changes) |
|
|
45
|
+
### Examples
|
|
40
46
|
|
|
41
|
-
|
|
47
|
+
- Added new optional field to proto → **Minor**
|
|
48
|
+
- Fixed type definition error → **Patch**
|
|
49
|
+
- Removed or renamed existing field → **Major**
|
|
42
50
|
|
|
43
|
-
|
|
44
|
-
- Fixed type mismatch in existing interface → **patch**
|
|
45
|
-
- Renamed or removed a field/function → **major**
|
|
51
|
+
## Development
|
|
46
52
|
|
|
47
|
-
|
|
53
|
+
This package is auto-generated from proto definitions. Do not edit the generated files manually.
|
|
48
54
|
|
|
49
|
-
|
|
55
|
+
To regenerate:
|
|
50
56
|
|
|
51
57
|
```bash
|
|
52
|
-
#
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
# Step 2: Publish
|
|
56
|
-
npm publish
|
|
58
|
+
# In the root repository
|
|
59
|
+
pnpm generate
|
|
57
60
|
```
|
|
58
61
|
|
|
59
|
-
|
|
62
|
+
## Publishing
|
|
63
|
+
|
|
64
|
+
This package is automatically published via the root repository's publish script.
|
|
65
|
+
|
|
66
|
+
See the [main repository README](../../README.md) for publishing instructions.
|
|
67
|
+
|
|
68
|
+
## Dependencies
|
|
69
|
+
|
|
70
|
+
**Peer Dependencies:**
|
|
71
|
+
|
|
72
|
+
- `@bufbuild/protobuf` ^2.9.0
|
|
73
|
+
- `@connectrpc/connect` ^2.1.0
|
|
74
|
+
|
|
75
|
+
Make sure these are installed in your consuming application.
|
|
76
|
+
|
|
77
|
+
## Best Practices
|
|
78
|
+
|
|
79
|
+
1. **Always use the latest version** - Keep this package updated across all services
|
|
80
|
+
2. **Import from specific paths** - Use deep imports for better tree-shaking
|
|
81
|
+
3. **Handle breaking changes carefully** - Review changelog before major version updates
|
|
82
|
+
4. **Type safety** - Leverage TypeScript's type checking with these definitions
|
|
60
83
|
|
|
61
|
-
##
|
|
84
|
+
## Support
|
|
62
85
|
|
|
63
|
-
|
|
64
|
-
2. **Always bump versions** when a change affects consumers.
|
|
65
|
-
3. **Keep exports minimal** – expose only what’s needed.
|
|
66
|
-
4. **Ensure backward compatibility** where possible.
|
|
67
|
-
5. **Document breaking changes** in PR descriptions.
|
|
68
|
-
6. **Verify builds locally** before publishing.
|
|
86
|
+
For issues or questions, please refer to the [main repository](https://github.com/CrossroadsAcademy/togather-shared-protos).
|
|
69
87
|
|
|
70
88
|
---
|
|
71
89
|
|
|
72
|
-
|
|
73
|
-
Please follow the contribution guide and coding standards before submitting PRs.
|
|
90
|
+
Maintained by the ToGather Engineering Team
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file experienceservice/experience/v1/experience.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_experienceservice_experience_v1_experience: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* @generated from message experienceservice.experience.v1.GetExperienceRequest
|
|
9
|
+
*/
|
|
10
|
+
export type GetExperienceRequest = Message<"experienceservice.experience.v1.GetExperienceRequest"> & {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from field: string id = 1;
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Describes the message experienceservice.experience.v1.GetExperienceRequest.
|
|
18
|
+
* Use `create(GetExperienceRequestSchema)` to create a new message.
|
|
19
|
+
*/
|
|
20
|
+
export declare const GetExperienceRequestSchema: GenMessage<GetExperienceRequest>;
|
|
21
|
+
/**
|
|
22
|
+
* @generated from message experienceservice.experience.v1.GetExperienceResponse
|
|
23
|
+
*/
|
|
24
|
+
export type GetExperienceResponse = Message<"experienceservice.experience.v1.GetExperienceResponse"> & {
|
|
25
|
+
/**
|
|
26
|
+
* @generated from field: experienceservice.experience.v1.Experience experience = 1;
|
|
27
|
+
*/
|
|
28
|
+
experience?: Experience;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message experienceservice.experience.v1.GetExperienceResponse.
|
|
32
|
+
* Use `create(GetExperienceResponseSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
export declare const GetExperienceResponseSchema: GenMessage<GetExperienceResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from message experienceservice.experience.v1.GetExperiencesRequest
|
|
37
|
+
*/
|
|
38
|
+
export type GetExperiencesRequest = Message<"experienceservice.experience.v1.GetExperiencesRequest"> & {
|
|
39
|
+
/**
|
|
40
|
+
* @generated from field: string id = 1;
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Describes the message experienceservice.experience.v1.GetExperiencesRequest.
|
|
46
|
+
* Use `create(GetExperiencesRequestSchema)` to create a new message.
|
|
47
|
+
*/
|
|
48
|
+
export declare const GetExperiencesRequestSchema: GenMessage<GetExperiencesRequest>;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from message experienceservice.experience.v1.GetExperiencesResponse
|
|
51
|
+
*/
|
|
52
|
+
export type GetExperiencesResponse = Message<"experienceservice.experience.v1.GetExperiencesResponse"> & {
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: experienceservice.experience.v1.Experience experience = 1;
|
|
55
|
+
*/
|
|
56
|
+
experience?: Experience;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Describes the message experienceservice.experience.v1.GetExperiencesResponse.
|
|
60
|
+
* Use `create(GetExperiencesResponseSchema)` to create a new message.
|
|
61
|
+
*/
|
|
62
|
+
export declare const GetExperiencesResponseSchema: GenMessage<GetExperiencesResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* @generated from message experienceservice.experience.v1.Experience
|
|
65
|
+
*/
|
|
66
|
+
export type Experience = Message<"experienceservice.experience.v1.Experience"> & {
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: string id = 1;
|
|
69
|
+
*/
|
|
70
|
+
id: string;
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: string title = 2;
|
|
73
|
+
*/
|
|
74
|
+
title: string;
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: string description = 3;
|
|
77
|
+
*/
|
|
78
|
+
description: string;
|
|
79
|
+
/**
|
|
80
|
+
* @generated from field: int32 category_id = 4;
|
|
81
|
+
*/
|
|
82
|
+
categoryId: number;
|
|
83
|
+
/**
|
|
84
|
+
* @generated from field: repeated string tags = 5;
|
|
85
|
+
*/
|
|
86
|
+
tags: string[];
|
|
87
|
+
/**
|
|
88
|
+
* @generated from field: repeated string images = 6;
|
|
89
|
+
*/
|
|
90
|
+
images: string[];
|
|
91
|
+
/**
|
|
92
|
+
* @generated from field: int32 amount = 7;
|
|
93
|
+
*/
|
|
94
|
+
amount: number;
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: string currency = 8;
|
|
97
|
+
*/
|
|
98
|
+
currency: string;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: string start_at = 9;
|
|
101
|
+
*/
|
|
102
|
+
startAt: string;
|
|
103
|
+
/**
|
|
104
|
+
* @generated from field: string end_at = 10;
|
|
105
|
+
*/
|
|
106
|
+
endAt: string;
|
|
107
|
+
/**
|
|
108
|
+
* @generated from field: bool blocked = 11;
|
|
109
|
+
*/
|
|
110
|
+
blocked: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* @generated from field: string booking_expires_at = 12;
|
|
113
|
+
*/
|
|
114
|
+
bookingExpiresAt: string;
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: string status = 13;
|
|
117
|
+
*/
|
|
118
|
+
status: string;
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: string type = 14;
|
|
121
|
+
*/
|
|
122
|
+
type: string;
|
|
123
|
+
/**
|
|
124
|
+
* @generated from field: string created_by = 15;
|
|
125
|
+
*/
|
|
126
|
+
createdBy: string;
|
|
127
|
+
/**
|
|
128
|
+
* @generated from field: string location = 16;
|
|
129
|
+
*/
|
|
130
|
+
location: string;
|
|
131
|
+
/**
|
|
132
|
+
* @generated from field: string address = 17;
|
|
133
|
+
*/
|
|
134
|
+
address: string;
|
|
135
|
+
/**
|
|
136
|
+
* @generated from field: int32 total_tokens = 18;
|
|
137
|
+
*/
|
|
138
|
+
totalTokens: number;
|
|
139
|
+
/**
|
|
140
|
+
* @generated from field: string created_at = 19;
|
|
141
|
+
*/
|
|
142
|
+
createdAt: string;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Describes the message experienceservice.experience.v1.Experience.
|
|
146
|
+
* Use `create(ExperienceSchema)` to create a new message.
|
|
147
|
+
*/
|
|
148
|
+
export declare const ExperienceSchema: GenMessage<Experience>;
|
|
149
|
+
/**
|
|
150
|
+
* @generated from service experienceservice.experience.v1.ExperienceService
|
|
151
|
+
*/
|
|
152
|
+
export declare const ExperienceService: GenService<{
|
|
153
|
+
/**
|
|
154
|
+
* @generated from rpc experienceservice.experience.v1.ExperienceService.GetExperience
|
|
155
|
+
*/
|
|
156
|
+
getExperience: {
|
|
157
|
+
methodKind: "unary";
|
|
158
|
+
input: typeof GetExperienceRequestSchema;
|
|
159
|
+
output: typeof GetExperienceResponseSchema;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* @generated from rpc experienceservice.experience.v1.ExperienceService.GetExperiences
|
|
163
|
+
*/
|
|
164
|
+
getExperiences: {
|
|
165
|
+
methodKind: "unary";
|
|
166
|
+
input: typeof GetExperiencesRequestSchema;
|
|
167
|
+
output: typeof GetExperiencesResponseSchema;
|
|
168
|
+
};
|
|
169
|
+
}>;
|
|
170
|
+
//# sourceMappingURL=experience_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experience_pb.d.ts","sourceRoot":"","sources":["../../../../src/experienceservice/experience/v1/experience_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEpF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,+CAA+C,EAAE,OAC4uC,CAAC;AAE3yC;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,sDAAsD,CAAC,GAAG;IACnG;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,UAAU,CAAC,oBAAoB,CACP,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC,uDAAuD,CAAC,GAAG;IACrG;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,CAAC;AAEF;;;GAG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IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,UAAU,CACa,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC;IACzC;;OAEG;IACH,aAAa,EAAE;QACb,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,0BAA0B,CAAC;QACzC,MAAM,EAAE,OAAO,2BAA2B,CAAC;KAC5C,CAAC;IACF;;OAEG;IACH,cAAc,EAAE;QACd,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,2BAA2B,CAAC;QAC1C,MAAM,EAAE,OAAO,4BAA4B,CAAC;KAC7C,CAAC;CACH,CACgE,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.9.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file experienceservice/experience/v1/experience.proto (package experienceservice.experience.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file experienceservice/experience/v1/experience.proto.
|
|
7
|
+
*/
|
|
8
|
+
export const file_experienceservice_experience_v1_experience = /*@__PURE__*/ fileDesc("CjBleHBlcmllbmNlc2VydmljZS9leHBlcmllbmNlL3YxL2V4cGVyaWVuY2UucHJvdG8SH2V4cGVyaWVuY2VzZXJ2aWNlLmV4cGVyaWVuY2UudjEiIgoUR2V0RXhwZXJpZW5jZVJlcXVlc3QSCgoCaWQYASABKAkiWAoVR2V0RXhwZXJpZW5jZVJlc3BvbnNlEj8KCmV4cGVyaWVuY2UYASABKAsyKy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25zZWIGcHJvdG8z");
|
|
9
|
+
/**
|
|
10
|
+
* Describes the message experienceservice.experience.v1.GetExperienceRequest.
|
|
11
|
+
* Use `create(GetExperienceRequestSchema)` to create a new message.
|
|
12
|
+
*/
|
|
13
|
+
export const GetExperienceRequestSchema = /*@__PURE__*/ messageDesc(file_experienceservice_experience_v1_experience, 0);
|
|
14
|
+
/**
|
|
15
|
+
* Describes the message experienceservice.experience.v1.GetExperienceResponse.
|
|
16
|
+
* Use `create(GetExperienceResponseSchema)` to create a new message.
|
|
17
|
+
*/
|
|
18
|
+
export const GetExperienceResponseSchema = /*@__PURE__*/ messageDesc(file_experienceservice_experience_v1_experience, 1);
|
|
19
|
+
/**
|
|
20
|
+
* Describes the message experienceservice.experience.v1.GetExperiencesRequest.
|
|
21
|
+
* Use `create(GetExperiencesRequestSchema)` to create a new message.
|
|
22
|
+
*/
|
|
23
|
+
export const GetExperiencesRequestSchema = /*@__PURE__*/ messageDesc(file_experienceservice_experience_v1_experience, 2);
|
|
24
|
+
/**
|
|
25
|
+
* Describes the message experienceservice.experience.v1.GetExperiencesResponse.
|
|
26
|
+
* Use `create(GetExperiencesResponseSchema)` to create a new message.
|
|
27
|
+
*/
|
|
28
|
+
export const GetExperiencesResponseSchema = /*@__PURE__*/ messageDesc(file_experienceservice_experience_v1_experience, 3);
|
|
29
|
+
/**
|
|
30
|
+
* Describes the message experienceservice.experience.v1.Experience.
|
|
31
|
+
* Use `create(ExperienceSchema)` to create a new message.
|
|
32
|
+
*/
|
|
33
|
+
export const ExperienceSchema = /*@__PURE__*/ messageDesc(file_experienceservice_experience_v1_experience, 4);
|
|
34
|
+
/**
|
|
35
|
+
* @generated from service experienceservice.experience.v1.ExperienceService
|
|
36
|
+
*/
|
|
37
|
+
export const ExperienceService = /*@__PURE__*/ serviceDesc(file_experienceservice_experience_v1_experience, 0);
|
|
38
|
+
//# sourceMappingURL=experience_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experience_pb.js","sourceRoot":"","sources":["../../../../src/experienceservice/experience/v1/experience_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,iIAAiI;AACjI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGlF;;GAEG;AACH,MAAM,CAAC,MAAM,+CAA+C,GAAY,aAAa,CACnF,QAAQ,CAAC,8xCAA8xC,CAAC,CAAC;AAY3yC;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAqC,aAAa,CACvF,WAAW,CAAC,+CAA+C,EAAE,CAAC,CAAC,CAAC;AAYlE;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAsC,aAAa,CACzF,WAAW,CAAC,+CAA+C,EAAE,CAAC,CAAC,CAAC;AAYlE;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAsC,aAAa,CACzF,WAAW,CAAC,+CAA+C,EAAE,CAAC,CAAC,CAAC;AAYlE;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAuC,aAAa,CAC3F,WAAW,CAAC,+CAA+C,EAAE,CAAC,CAAC,CAAC;AAsGlE;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA2B,aAAa,CACnE,WAAW,CAAC,+CAA+C,EAAE,CAAC,CAAC,CAAC;AAElE;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAiBzB,aAAa,CAChB,WAAW,CAAC,+CAA+C,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './experience_pb.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './experience_pb.js';
|
|
@@ -19,9 +19,9 @@ export type GetProfileRequest = Message<"userservice.user.v1.GetProfileRequest">
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const GetProfileRequestSchema: GenMessage<GetProfileRequest>;
|
|
21
21
|
/**
|
|
22
|
-
* @generated from message userservice.user.v1.
|
|
22
|
+
* @generated from message userservice.user.v1.User
|
|
23
23
|
*/
|
|
24
|
-
export type
|
|
24
|
+
export type User = Message<"userservice.user.v1.User"> & {
|
|
25
25
|
/**
|
|
26
26
|
* @generated from field: string id = 1;
|
|
27
27
|
*/
|
|
@@ -51,6 +51,20 @@ export type GetProfileResponse = Message<"userservice.user.v1.GetProfileResponse
|
|
|
51
51
|
*/
|
|
52
52
|
updatedAt: string;
|
|
53
53
|
};
|
|
54
|
+
/**
|
|
55
|
+
* Describes the message userservice.user.v1.User.
|
|
56
|
+
* Use `create(UserSchema)` to create a new message.
|
|
57
|
+
*/
|
|
58
|
+
export declare const UserSchema: GenMessage<User>;
|
|
59
|
+
/**
|
|
60
|
+
* @generated from message userservice.user.v1.GetProfileResponse
|
|
61
|
+
*/
|
|
62
|
+
export type GetProfileResponse = Message<"userservice.user.v1.GetProfileResponse"> & {
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: userservice.user.v1.User user = 1;
|
|
65
|
+
*/
|
|
66
|
+
user?: User;
|
|
67
|
+
};
|
|
54
68
|
/**
|
|
55
69
|
* Describes the message userservice.user.v1.GetProfileResponse.
|
|
56
70
|
* Use `create(GetProfileResponseSchema)` to create a new message.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user_pb.d.ts","sourceRoot":"","sources":["../../../../src/userservice/user/v1/user_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEpF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,6BAA6B,EAAE,
|
|
1
|
+
{"version":3,"file":"user_pb.d.ts","sourceRoot":"","sources":["../../../../src/userservice/user/v1/user_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA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
|
@@ -5,17 +5,22 @@ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2
|
|
|
5
5
|
/**
|
|
6
6
|
* Describes the file userservice/user/v1/user.proto.
|
|
7
7
|
*/
|
|
8
|
-
export const file_userservice_user_v1_user = /*@__PURE__*/ fileDesc("
|
|
8
|
+
export const file_userservice_user_v1_user = /*@__PURE__*/ fileDesc("Ch51c2Vyc2VydmljZS91c2VyL3YxL3VzZXIucHJvdG8SE3VzZXJzZXJ2aWNlLnVzZXIudjEiHwoRR2V0UHJvZmlsZVJlcXVlc3QSCgoCaWQYASABKAkidAoEVXNlchIKCgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJEg0KBWVtYWlsGAMgASgJEgsKA2RvYhgEIAEoCRIOCgZnZW5kZXIYBSABKAkSEgoKY3JlYXRlZF9hdBgGIAEoCRISCgp1cGRhdGVkX2F0GAcgASgJIj0KEkdldFByb2ZpbGVSZXNwb25zZRInCgR1c2VyGAEgASgLMhkudXNlcnNlcnZpY2UudXNlci52MS5Vc2VyMmwKC1VzZXJTZXJ2aWNlEl0KCkdldFByb2ZpbGUSJi51c2Vyc2VydmljZS51c2VyLnYxLkdldFByb2ZpbGVSZXF1ZXN0GicudXNlcnNlcnZpY2UudXNlci52MS5HZXRQcm9maWxlUmVzcG9uc2ViBnByb3RvMw");
|
|
9
9
|
/**
|
|
10
10
|
* Describes the message userservice.user.v1.GetProfileRequest.
|
|
11
11
|
* Use `create(GetProfileRequestSchema)` to create a new message.
|
|
12
12
|
*/
|
|
13
13
|
export const GetProfileRequestSchema = /*@__PURE__*/ messageDesc(file_userservice_user_v1_user, 0);
|
|
14
|
+
/**
|
|
15
|
+
* Describes the message userservice.user.v1.User.
|
|
16
|
+
* Use `create(UserSchema)` to create a new message.
|
|
17
|
+
*/
|
|
18
|
+
export const UserSchema = /*@__PURE__*/ messageDesc(file_userservice_user_v1_user, 1);
|
|
14
19
|
/**
|
|
15
20
|
* Describes the message userservice.user.v1.GetProfileResponse.
|
|
16
21
|
* Use `create(GetProfileResponseSchema)` to create a new message.
|
|
17
22
|
*/
|
|
18
|
-
export const GetProfileResponseSchema = /*@__PURE__*/ messageDesc(file_userservice_user_v1_user,
|
|
23
|
+
export const GetProfileResponseSchema = /*@__PURE__*/ messageDesc(file_userservice_user_v1_user, 2);
|
|
19
24
|
/**
|
|
20
25
|
* @generated from service userservice.user.v1.UserService
|
|
21
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user_pb.js","sourceRoot":"","sources":["../../../../src/userservice/user/v1/user_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,mGAAmG;AACnG,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGlF;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAY,aAAa,CACjE,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"user_pb.js","sourceRoot":"","sources":["../../../../src/userservice/user/v1/user_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,mGAAmG;AACnG,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGlF;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAY,aAAa,CACjE,QAAQ,CAAC,ogBAAogB,CAAC,CAAC;AAYjhB;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAkC,aAAa,CACjF,WAAW,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC;AA0ChD;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAqB,aAAa,CACvD,WAAW,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC;AAYhD;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAmC,aAAa,CACnF,WAAW,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC;AAEhD;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GASnB,aAAa,CAChB,WAAW,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@togatherlabs/shared-protos",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
4
4
|
"description": "Generated TypeScript gRPC definitions for Togather shared protos",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -21,6 +21,12 @@
|
|
|
21
21
|
"require": "./dist/authservice/admin/v1/index.js",
|
|
22
22
|
"default": "./dist/authservice/admin/v1/index.js"
|
|
23
23
|
},
|
|
24
|
+
"./experienceservice/experience/v1": {
|
|
25
|
+
"types": "./dist/experienceservice/experience/v1/index.d.ts",
|
|
26
|
+
"import": "./dist/experienceservice/experience/v1/index.js",
|
|
27
|
+
"require": "./dist/experienceservice/experience/v1/index.js",
|
|
28
|
+
"default": "./dist/experienceservice/experience/v1/index.js"
|
|
29
|
+
},
|
|
24
30
|
"./userservice/user/v1": {
|
|
25
31
|
"types": "./dist/userservice/user/v1/index.d.ts",
|
|
26
32
|
"import": "./dist/userservice/user/v1/index.js",
|