@togatherlabs/event-sdk 1.0.9 → 1.0.10

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 CHANGED
@@ -38,7 +38,7 @@ proto/
38
38
  Example:
39
39
 
40
40
  ```
41
- proto/user/create/v1/user.proto
41
+ proto/user/v1/UserCreated.proto
42
42
  ```
43
43
 
44
44
  > This structure ensures forward-compatibility and makes schema evolution manageable.
@@ -124,7 +124,7 @@ pnpm add @bufbuild/protobuf@^2.9.0
124
124
  **Example usage:**
125
125
 
126
126
  ```ts
127
- import { UserCreated, UserCreatedSchema } from '<path>/user/create/v1/user_pb';
127
+ import { UserCreated, UserCreatedSchema } from '@<lib>/user/v1';
128
128
  import { create, toBinary, fromBinary, toJson } from '@bufbuild/protobuf';
129
129
 
130
130
  // Create a new message
@@ -0,0 +1,2 @@
1
+ export * from './partner/v1';
2
+ export * from './user/v1';
@@ -0,0 +1,2 @@
1
+ export * from './partner/v1';
2
+ export * from './user/v1';
@@ -0,0 +1 @@
1
+ export * from './parter_created_pb';
@@ -0,0 +1 @@
1
+ export * from './parter_created_pb';
@@ -1,28 +1,28 @@
1
1
  // @generated by protoc-gen-es v2.9.0 with parameter "target=js+dts,import_extension=none"
2
- // @generated from file partner/create/v1/parter.proto (package partner.create.v1, syntax proto3)
2
+ // @generated from file partner/v1/parter_created.proto (package partner.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
5
  import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
6
  import type { Message } from "@bufbuild/protobuf";
7
7
 
8
8
  /**
9
- * Describes the file partner/create/v1/parter.proto.
9
+ * Describes the file partner/v1/parter_created.proto.
10
10
  */
11
- export declare const file_partner_create_v1_parter: GenFile;
11
+ export declare const file_partner_v1_parter_created: GenFile;
12
12
 
13
13
  /**
14
- * @generated from message partner.create.v1.ParterCreated
14
+ * @generated from message partner.v1.ParterCreated
15
15
  */
16
- export declare type ParterCreated = Message<"partner.create.v1.ParterCreated"> & {
16
+ export declare type ParterCreated = Message<"partner.v1.ParterCreated"> & {
17
17
  /**
18
18
  * @generated from field: string id = 1;
19
19
  */
20
20
  id: string;
21
21
 
22
22
  /**
23
- * @generated from field: string orgname = 4;
23
+ * @generated from field: string org_name = 4;
24
24
  */
25
- orgname: string;
25
+ orgName: string;
26
26
 
27
27
  /**
28
28
  * @generated from field: string email = 2;
@@ -36,7 +36,7 @@ export declare type ParterCreated = Message<"partner.create.v1.ParterCreated"> &
36
36
  };
37
37
 
38
38
  /**
39
- * Describes the message partner.create.v1.ParterCreated.
39
+ * Describes the message partner.v1.ParterCreated.
40
40
  * Use `create(ParterCreatedSchema)` to create a new message.
41
41
  */
42
42
  export declare const ParterCreatedSchema: GenMessage<ParterCreated>;
@@ -0,0 +1,19 @@
1
+ // @generated by protoc-gen-es v2.9.0 with parameter "target=js+dts,import_extension=none"
2
+ // @generated from file partner/v1/parter_created.proto (package partner.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
+
7
+ /**
8
+ * Describes the file partner/v1/parter_created.proto.
9
+ */
10
+ export const file_partner_v1_parter_created = /*@__PURE__*/
11
+ fileDesc("Ch9wYXJ0bmVyL3YxL3BhcnRlcl9jcmVhdGVkLnByb3RvEgpwYXJ0bmVyLnYxIlAKDVBhcnRlckNyZWF0ZWQSCgoCaWQYASABKAkSEAoIb3JnX25hbWUYBCABKAkSDQoFZW1haWwYAiABKAkSEgoKY3JlYXRlZF9hdBgDIAEoA0JtCg5jb20ucGFydG5lci52MUISUGFydGVyQ3JlYXRlZFByb3RvUAGiAgNQWFiqAgpQYXJ0bmVyLlYxygIKUGFydG5lclxWMeICFlBhcnRuZXJcVjFcR1BCTWV0YWRhdGHqAgtQYXJ0bmVyOjpWMWIGcHJvdG8z");
12
+
13
+ /**
14
+ * Describes the message partner.v1.ParterCreated.
15
+ * Use `create(ParterCreatedSchema)` to create a new message.
16
+ */
17
+ export const ParterCreatedSchema = /*@__PURE__*/
18
+ messageDesc(file_partner_v1_parter_created, 0);
19
+
@@ -0,0 +1 @@
1
+ export * from './user_created_pb';
@@ -0,0 +1 @@
1
+ export * from './user_created_pb';
@@ -1,19 +1,19 @@
1
1
  // @generated by protoc-gen-es v2.9.0 with parameter "target=js+dts,import_extension=none"
2
- // @generated from file user/create/v1/user.proto (package user.create.v1, syntax proto3)
2
+ // @generated from file user/v1/user_created.proto (package user.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
5
  import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
6
  import type { Message } from "@bufbuild/protobuf";
7
7
 
8
8
  /**
9
- * Describes the file user/create/v1/user.proto.
9
+ * Describes the file user/v1/user_created.proto.
10
10
  */
11
- export declare const file_user_create_v1_user: GenFile;
11
+ export declare const file_user_v1_user_created: GenFile;
12
12
 
13
13
  /**
14
- * @generated from message user.create.v1.UserCreated
14
+ * @generated from message user.v1.UserCreated
15
15
  */
16
- export declare type UserCreated = Message<"user.create.v1.UserCreated"> & {
16
+ export declare type UserCreated = Message<"user.v1.UserCreated"> & {
17
17
  /**
18
18
  * @generated from field: string id = 1;
19
19
  */
@@ -31,7 +31,7 @@ export declare type UserCreated = Message<"user.create.v1.UserCreated"> & {
31
31
  };
32
32
 
33
33
  /**
34
- * Describes the message user.create.v1.UserCreated.
34
+ * Describes the message user.v1.UserCreated.
35
35
  * Use `create(UserCreatedSchema)` to create a new message.
36
36
  */
37
37
  export declare const UserCreatedSchema: GenMessage<UserCreated>;
@@ -0,0 +1,19 @@
1
+ // @generated by protoc-gen-es v2.9.0 with parameter "target=js+dts,import_extension=none"
2
+ // @generated from file user/v1/user_created.proto (package user.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
+
7
+ /**
8
+ * Describes the file user/v1/user_created.proto.
9
+ */
10
+ export const file_user_v1_user_created = /*@__PURE__*/
11
+ fileDesc("Chp1c2VyL3YxL3VzZXJfY3JlYXRlZC5wcm90bxIHdXNlci52MSI8CgtVc2VyQ3JlYXRlZBIKCgJpZBgBIAEoCRINCgVlbWFpbBgCIAEoCRISCgpjcmVhdGVkX2F0GAMgASgDQlwKC2NvbS51c2VyLnYxQhBVc2VyQ3JlYXRlZFByb3RvUAGiAgNVWFiqAgdVc2VyLlYxygIHVXNlclxWMeICE1VzZXJcVjFcR1BCTWV0YWRhdGHqAghVc2VyOjpWMWIGcHJvdG8z");
12
+
13
+ /**
14
+ * Describes the message user.v1.UserCreated.
15
+ * Use `create(UserCreatedSchema)` to create a new message.
16
+ */
17
+ export const UserCreatedSchema = /*@__PURE__*/
18
+ messageDesc(file_user_v1_user_created, 0);
19
+
package/package.json CHANGED
@@ -1,9 +1,21 @@
1
1
  {
2
2
  "name": "@togatherlabs/event-sdk",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Shared Protobuf event schemas and generated code for toGather microservices",
5
- "main": "./gen/ts/index.js",
6
- "types": "./gen/ts/index.d.ts",
5
+ "exports": {
6
+ ".": {
7
+ "import": "./gen/ts/index.js",
8
+ "types": "./gen/ts/index.d.ts"
9
+ },
10
+ "./user/v1": {
11
+ "import": "./gen/ts/user/v1/index.js",
12
+ "types": "./gen/ts/user/v1/index.d.ts"
13
+ },
14
+ "./parter/v1": {
15
+ "import": "./gen/ts/parter/v1/index.js",
16
+ "types": "./gen/ts/parter/v1/index.d.ts"
17
+ }
18
+ },
7
19
  "files": [
8
20
  "gen/ts"
9
21
  ],
@@ -17,7 +29,8 @@
17
29
  "@commitlint/cz-commitlint": "^20.1.0",
18
30
  "commitizen": "^4.3.1",
19
31
  "husky": "^9.1.7",
20
- "inquirer": "^9.3.8"
32
+ "inquirer": "^9.3.8",
33
+ "typescript": "^5.9.3"
21
34
  },
22
35
  "config": {
23
36
  "commitizen": {
@@ -1 +0,0 @@
1
- export * from './parter_pb';
@@ -1 +0,0 @@
1
- export * from './parter_pb';
@@ -1,19 +0,0 @@
1
- // @generated by protoc-gen-es v2.9.0 with parameter "target=js+dts,import_extension=none"
2
- // @generated from file partner/create/v1/parter.proto (package partner.create.v1, syntax proto3)
3
- /* eslint-disable */
4
-
5
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
-
7
- /**
8
- * Describes the file partner/create/v1/parter.proto.
9
- */
10
- export const file_partner_create_v1_parter = /*@__PURE__*/
11
- fileDesc("Ch5wYXJ0bmVyL2NyZWF0ZS92MS9wYXJ0ZXIucHJvdG8SEXBhcnRuZXIuY3JlYXRlLnYxIk8KDVBhcnRlckNyZWF0ZWQSCgoCaWQYASABKAkSDwoHb3JnbmFtZRgEIAEoCRINCgVlbWFpbBgCIAEoCRISCgpjcmVhdGVkX2F0GAMgASgDQooBChVjb20ucGFydG5lci5jcmVhdGUudjFCC1BhcnRlclByb3RvUAGiAgNQQ1iqAhFQYXJ0bmVyLkNyZWF0ZS5WMcoCEVBhcnRuZXJcQ3JlYXRlXFYx4gIdUGFydG5lclxDcmVhdGVcVjFcR1BCTWV0YWRhdGHqAhNQYXJ0bmVyOjpDcmVhdGU6OlYxYgZwcm90bzM");
12
-
13
- /**
14
- * Describes the message partner.create.v1.ParterCreated.
15
- * Use `create(ParterCreatedSchema)` to create a new message.
16
- */
17
- export const ParterCreatedSchema = /*@__PURE__*/
18
- messageDesc(file_partner_create_v1_parter, 0);
19
-
@@ -1 +0,0 @@
1
- export * from './user_pb';
@@ -1 +0,0 @@
1
- export * from './user_pb';
@@ -1,19 +0,0 @@
1
- // @generated by protoc-gen-es v2.9.0 with parameter "target=js+dts,import_extension=none"
2
- // @generated from file user/create/v1/user.proto (package user.create.v1, syntax proto3)
3
- /* eslint-disable */
4
-
5
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
-
7
- /**
8
- * Describes the file user/create/v1/user.proto.
9
- */
10
- export const file_user_create_v1_user = /*@__PURE__*/
11
- fileDesc("Chl1c2VyL2NyZWF0ZS92MS91c2VyLnByb3RvEg51c2VyLmNyZWF0ZS52MSI8CgtVc2VyQ3JlYXRlZBIKCgJpZBgBIAEoCRINCgVlbWFpbBgCIAEoCRISCgpjcmVhdGVkX2F0GAMgASgDQnkKEmNvbS51c2VyLmNyZWF0ZS52MUIJVXNlclByb3RvUAGiAgNVQ1iqAg5Vc2VyLkNyZWF0ZS5WMcoCDlVzZXJcQ3JlYXRlXFYx4gIaVXNlclxDcmVhdGVcVjFcR1BCTWV0YWRhdGHqAhBVc2VyOjpDcmVhdGU6OlYxYgZwcm90bzM");
12
-
13
- /**
14
- * Describes the message user.create.v1.UserCreated.
15
- * Use `create(UserCreatedSchema)` to create a new message.
16
- */
17
- export const UserCreatedSchema = /*@__PURE__*/
18
- messageDesc(file_user_create_v1_user, 0);
19
-