@togatherlabs/event-sdk 1.0.23 → 1.0.25

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.
@@ -1,5 +1,5 @@
1
1
  // @generated by protoc-gen-es v2.10.0 with parameter "target=js+dts,import_extension=none"
2
- // @generated from file admin/v1/admin_account_created.proto (package admin.v1, syntax proto3)
2
+ // @generated from file admin/v1/admin_created.proto (package admin.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
5
  import type { GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
@@ -7,14 +7,14 @@ import type { Message } from "@bufbuild/protobuf";
7
7
  import type { FieldOptions } from "@bufbuild/protobuf/wkt";
8
8
 
9
9
  /**
10
- * Describes the file admin/v1/admin_account_created.proto.
10
+ * Describes the file admin/v1/admin_created.proto.
11
11
  */
12
- export declare const file_admin_v1_admin_account_created: GenFile;
12
+ export declare const file_admin_v1_admin_created: GenFile;
13
13
 
14
14
  /**
15
- * @generated from message admin.v1.AdminAccountCreatedPayload
15
+ * @generated from message admin.v1.Payload
16
16
  */
17
- export declare type AdminAccountCreatedPayload = Message<"admin.v1.AdminAccountCreatedPayload"> & {
17
+ export declare type Payload = Message<"admin.v1.Payload"> & {
18
18
  /**
19
19
  * @generated from field: string id = 10;
20
20
  */
@@ -42,10 +42,10 @@ export declare type AdminAccountCreatedPayload = Message<"admin.v1.AdminAccountC
42
42
  };
43
43
 
44
44
  /**
45
- * Describes the message admin.v1.AdminAccountCreatedPayload.
46
- * Use `create(AdminAccountCreatedPayloadSchema)` to create a new message.
45
+ * Describes the message admin.v1.Payload.
46
+ * Use `create(PayloadSchema)` to create a new message.
47
47
  */
48
- export declare const AdminAccountCreatedPayloadSchema: GenMessage<AdminAccountCreatedPayload>;
48
+ export declare const PayloadSchema: GenMessage<Payload>;
49
49
 
50
50
  /**
51
51
  * @generated from message admin.v1.AdminAccountCreated
@@ -72,14 +72,14 @@ export declare type AdminAccountCreated = Message<"admin.v1.AdminAccountCreated"
72
72
  timestamp: bigint;
73
73
 
74
74
  /**
75
- * @generated from field: optional string trace_id = 5;
75
+ * @generated from field: string trace_id = 5;
76
76
  */
77
- traceId?: string;
77
+ traceId: string;
78
78
 
79
79
  /**
80
- * @generated from field: admin.v1.AdminAccountCreatedPayload payload = 9;
80
+ * @generated from field: admin.v1.Payload payload = 9;
81
81
  */
82
- payload?: AdminAccountCreatedPayload;
82
+ payload?: Payload;
83
83
  };
84
84
 
85
85
  /**
@@ -0,0 +1,33 @@
1
+ // @generated by protoc-gen-es v2.10.0 with parameter "target=js+dts,import_extension=none"
2
+ // @generated from file admin/v1/admin_created.proto (package admin.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import { extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
+ import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
7
+
8
+ /**
9
+ * Describes the file admin/v1/admin_created.proto.
10
+ */
11
+ export const file_admin_v1_admin_created = /*@__PURE__*/
12
+ fileDesc("ChxhZG1pbi92MS9hZG1pbl9jcmVhdGVkLnByb3RvEghhZG1pbi52MSJfCgdQYXlsb2FkEgoKAmlkGAogASgJEg0KBWVtYWlsGAsgASgJEhIKCmZpcnN0X25hbWUYDCABKAkSEQoJbGFzdF9uYW1lGA0gASgJEhIKCmNyZWF0ZWRfYXQYDiABKAMiwQEKE0FkbWluQWNjb3VudENyZWF0ZWQSLQoKZXZlbnRfbmFtZRgBIAEoCUIZirUYFWFkbWluLmFjY291bnQuY3JlYXRlZBIcCg1ldmVudF92ZXJzaW9uGAIgASgFQgWKtRgBMRIUCgxhZ2dyZWdhdGVfaWQYAyABKAkSEQoJdGltZXN0YW1wGAQgASgDEhAKCHRyYWNlX2lkGAUgASgJEiIKB3BheWxvYWQYCSABKAsyES5hZG1pbi52MS5QYXlsb2FkOkAKC2ZpeGVkX3ZhbHVlEh0uZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucxjRhgMgASgJUgpmaXhlZFZhbHVlQmIKDGNvbS5hZG1pbi52MUIRQWRtaW5DcmVhdGVkUHJvdG9QAaICA0FYWKoCCEFkbWluLlYxygIIQWRtaW5cVjHiAhRBZG1pblxWMVxHUEJNZXRhZGF0YeoCCUFkbWluOjpWMWIGcHJvdG8z", [file_google_protobuf_descriptor]);
13
+
14
+ /**
15
+ * Describes the message admin.v1.Payload.
16
+ * Use `create(PayloadSchema)` to create a new message.
17
+ */
18
+ export const PayloadSchema = /*@__PURE__*/
19
+ messageDesc(file_admin_v1_admin_created, 0);
20
+
21
+ /**
22
+ * Describes the message admin.v1.AdminAccountCreated.
23
+ * Use `create(AdminAccountCreatedSchema)` to create a new message.
24
+ */
25
+ export const AdminAccountCreatedSchema = /*@__PURE__*/
26
+ messageDesc(file_admin_v1_admin_created, 1);
27
+
28
+ /**
29
+ * @generated from extension: string fixed_value = 50001;
30
+ */
31
+ export const fixed_value = /*@__PURE__*/
32
+ extDesc(file_admin_v1_admin_created, 0);
33
+
@@ -1,2 +1 @@
1
- export * from './admin_account_created_pb';
2
- export * from './admin_emai_verification_requested_pb';
1
+ export * from './admin_created_pb';
@@ -1,2 +1 @@
1
- export * from './admin_account_created_pb';
2
- export * from './admin_emai_verification_requested_pb';
1
+ export * from './admin_created_pb';
package/gen/ts/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './admin/v1';
2
+ export * from './partner/v1';
2
3
  export * from './user/v1';
package/gen/ts/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './admin/v1';
2
+ export * from './partner/v1';
2
3
  export * from './user/v1';
@@ -0,0 +1 @@
1
+ export * from './parter_account_created_pb';
@@ -0,0 +1 @@
1
+ export * from './parter_account_created_pb';
@@ -0,0 +1,90 @@
1
+ // @generated by protoc-gen-es v2.10.0 with parameter "target=js+dts,import_extension=none"
2
+ // @generated from file partner/v1/parter_account_created.proto (package partner.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
+ import type { Message } from "@bufbuild/protobuf";
7
+ import type { FieldOptions } from "@bufbuild/protobuf/wkt";
8
+
9
+ /**
10
+ * Describes the file partner/v1/parter_account_created.proto.
11
+ */
12
+ export declare const file_partner_v1_parter_account_created: GenFile;
13
+
14
+ /**
15
+ * @generated from message partner.v1.Payload
16
+ */
17
+ export declare type Payload = Message<"partner.v1.Payload"> & {
18
+ /**
19
+ * @generated from field: string id = 10;
20
+ */
21
+ id: string;
22
+
23
+ /**
24
+ * @generated from field: string email = 11;
25
+ */
26
+ email: string;
27
+
28
+ /**
29
+ * @generated from field: string name = 12;
30
+ */
31
+ name: string;
32
+
33
+ /**
34
+ * @generated from field: int64 created_at = 14;
35
+ */
36
+ createdAt: bigint;
37
+ };
38
+
39
+ /**
40
+ * Describes the message partner.v1.Payload.
41
+ * Use `create(PayloadSchema)` to create a new message.
42
+ */
43
+ export declare const PayloadSchema: GenMessage<Payload>;
44
+
45
+ /**
46
+ * @generated from message partner.v1.PartnerAccountCreated
47
+ */
48
+ export declare type PartnerAccountCreated = Message<"partner.v1.PartnerAccountCreated"> & {
49
+ /**
50
+ * @generated from field: string event_name = 1;
51
+ */
52
+ eventName: string;
53
+
54
+ /**
55
+ * @generated from field: int32 event_version = 2;
56
+ */
57
+ eventVersion: number;
58
+
59
+ /**
60
+ * @generated from field: string aggregate_id = 3;
61
+ */
62
+ aggregateId: string;
63
+
64
+ /**
65
+ * @generated from field: int64 timestamp = 4;
66
+ */
67
+ timestamp: bigint;
68
+
69
+ /**
70
+ * @generated from field: string trace_id = 5;
71
+ */
72
+ traceId: string;
73
+
74
+ /**
75
+ * @generated from field: partner.v1.Payload payload = 9;
76
+ */
77
+ payload?: Payload;
78
+ };
79
+
80
+ /**
81
+ * Describes the message partner.v1.PartnerAccountCreated.
82
+ * Use `create(PartnerAccountCreatedSchema)` to create a new message.
83
+ */
84
+ export declare const PartnerAccountCreatedSchema: GenMessage<PartnerAccountCreated>;
85
+
86
+ /**
87
+ * @generated from extension: string fixed_value = 50002;
88
+ */
89
+ export declare const fixed_value: GenExtension<FieldOptions, string>;
90
+
@@ -0,0 +1,33 @@
1
+ // @generated by protoc-gen-es v2.10.0 with parameter "target=js+dts,import_extension=none"
2
+ // @generated from file partner/v1/parter_account_created.proto (package partner.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import { extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
+ import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
7
+
8
+ /**
9
+ * Describes the file partner/v1/parter_account_created.proto.
10
+ */
11
+ export const file_partner_v1_parter_account_created = /*@__PURE__*/
12
+ fileDesc("CidwYXJ0bmVyL3YxL3BhcnRlcl9hY2NvdW50X2NyZWF0ZWQucHJvdG8SCnBhcnRuZXIudjEiRgoHUGF5bG9hZBIKCgJpZBgKIAEoCRINCgVlbWFpbBgLIAEoCRIMCgRuYW1lGAwgASgJEhIKCmNyZWF0ZWRfYXQYDiABKAMixgEKFVBhcnRuZXJBY2NvdW50Q3JlYXRlZBIuCgpldmVudF9uYW1lGAEgASgJQhqStRgWcGFydGVyLmFjY291bnQuY3JlYXRlZBIcCg1ldmVudF92ZXJzaW9uGAIgASgFQgWStRgBMRIUCgxhZ2dyZWdhdGVfaWQYAyABKAkSEQoJdGltZXN0YW1wGAQgASgDEhAKCHRyYWNlX2lkGAUgASgJEiQKB3BheWxvYWQYCSABKAsyEy5wYXJ0bmVyLnYxLlBheWxvYWQ6QAoLZml4ZWRfdmFsdWUSHS5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zGNKGAyABKAlSCmZpeGVkVmFsdWVCdAoOY29tLnBhcnRuZXIudjFCGVBhcnRlckFjY291bnRDcmVhdGVkUHJvdG9QAaICA1BYWKoCClBhcnRuZXIuVjHKAgpQYXJ0bmVyXFYx4gIWUGFydG5lclxWMVxHUEJNZXRhZGF0YeoCC1BhcnRuZXI6OlYxYgZwcm90bzM", [file_google_protobuf_descriptor]);
13
+
14
+ /**
15
+ * Describes the message partner.v1.Payload.
16
+ * Use `create(PayloadSchema)` to create a new message.
17
+ */
18
+ export const PayloadSchema = /*@__PURE__*/
19
+ messageDesc(file_partner_v1_parter_account_created, 0);
20
+
21
+ /**
22
+ * Describes the message partner.v1.PartnerAccountCreated.
23
+ * Use `create(PartnerAccountCreatedSchema)` to create a new message.
24
+ */
25
+ export const PartnerAccountCreatedSchema = /*@__PURE__*/
26
+ messageDesc(file_partner_v1_parter_account_created, 1);
27
+
28
+ /**
29
+ * @generated from extension: string fixed_value = 50002;
30
+ */
31
+ export const fixed_value = /*@__PURE__*/
32
+ extDesc(file_partner_v1_parter_account_created, 0);
33
+
package/package.json CHANGED
@@ -1,14 +1,8 @@
1
1
  {
2
2
  "name": "@togatherlabs/event-sdk",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "Shared Protobuf event schemas and generated code for toGather microservices",
5
5
  "exports": {
6
- "./admin/v1": {
7
- "types": "./gen/ts/admin/v1/index.d.ts",
8
- "import": "./gen/ts/admin/v1/index.js",
9
- "require": "./gen/ts/admin/v1/index.js",
10
- "default": "./gen/ts/admin/v1/index.js"
11
- },
12
6
  "./user/v1": {
13
7
  "types": "./gen/ts/user/v1/index.d.ts",
14
8
  "import": "./gen/ts/user/v1/index.js",
@@ -1,33 +0,0 @@
1
- // @generated by protoc-gen-es v2.10.0 with parameter "target=js+dts,import_extension=none"
2
- // @generated from file admin/v1/admin_account_created.proto (package admin.v1, syntax proto3)
3
- /* eslint-disable */
4
-
5
- import { extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
- import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
7
-
8
- /**
9
- * Describes the file admin/v1/admin_account_created.proto.
10
- */
11
- export const file_admin_v1_admin_account_created = /*@__PURE__*/
12
- fileDesc("CiRhZG1pbi92MS9hZG1pbl9hY2NvdW50X2NyZWF0ZWQucHJvdG8SCGFkbWluLnYxInIKGkFkbWluQWNjb3VudENyZWF0ZWRQYXlsb2FkEgoKAmlkGAogASgJEg0KBWVtYWlsGAsgASgJEhIKCmZpcnN0X25hbWUYDCABKAkSEQoJbGFzdF9uYW1lGA0gASgJEhIKCmNyZWF0ZWRfYXQYDiABKAMi5gEKE0FkbWluQWNjb3VudENyZWF0ZWQSLQoKZXZlbnRfbmFtZRgBIAEoCUIZirUYFWFkbWluLmFjY291bnQuY3JlYXRlZBIcCg1ldmVudF92ZXJzaW9uGAIgASgFQgWKtRgBMRIUCgxhZ2dyZWdhdGVfaWQYAyABKAkSEQoJdGltZXN0YW1wGAQgASgDEhUKCHRyYWNlX2lkGAUgASgJSACIAQESNQoHcGF5bG9hZBgJIAEoCzIkLmFkbWluLnYxLkFkbWluQWNjb3VudENyZWF0ZWRQYXlsb2FkQgsKCV90cmFjZV9pZDpACgtmaXhlZF92YWx1ZRIdLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMY0YYDIAEoCVIKZml4ZWRWYWx1ZUJpCgxjb20uYWRtaW4udjFCGEFkbWluQWNjb3VudENyZWF0ZWRQcm90b1ABogIDQVhYqgIIQWRtaW4uVjHKAghBZG1pblxWMeICFEFkbWluXFYxXEdQQk1ldGFkYXRh6gIJQWRtaW46OlYxYgZwcm90bzM", [file_google_protobuf_descriptor]);
13
-
14
- /**
15
- * Describes the message admin.v1.AdminAccountCreatedPayload.
16
- * Use `create(AdminAccountCreatedPayloadSchema)` to create a new message.
17
- */
18
- export const AdminAccountCreatedPayloadSchema = /*@__PURE__*/
19
- messageDesc(file_admin_v1_admin_account_created, 0);
20
-
21
- /**
22
- * Describes the message admin.v1.AdminAccountCreated.
23
- * Use `create(AdminAccountCreatedSchema)` to create a new message.
24
- */
25
- export const AdminAccountCreatedSchema = /*@__PURE__*/
26
- messageDesc(file_admin_v1_admin_account_created, 1);
27
-
28
- /**
29
- * @generated from extension: string fixed_value = 50001;
30
- */
31
- export const fixed_value = /*@__PURE__*/
32
- extDesc(file_admin_v1_admin_account_created, 0);
33
-
@@ -1,89 +0,0 @@
1
- // @generated by protoc-gen-es v2.10.0 with parameter "target=js+dts,import_extension=none"
2
- // @generated from file admin/v1/admin_emai_verification_requested.proto (package admin.v1, syntax proto3)
3
- /* eslint-disable */
4
-
5
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
- import type { Message } from "@bufbuild/protobuf";
7
-
8
- /**
9
- * Describes the file admin/v1/admin_emai_verification_requested.proto.
10
- */
11
- export declare const file_admin_v1_admin_emai_verification_requested: GenFile;
12
-
13
- /**
14
- * @generated from message admin.v1.AdminEmailVerificationRequestedPayload
15
- */
16
- export declare type AdminEmailVerificationRequestedPayload = Message<"admin.v1.AdminEmailVerificationRequestedPayload"> & {
17
- /**
18
- * @generated from field: string id = 10;
19
- */
20
- id: string;
21
-
22
- /**
23
- * @generated from field: string email = 11;
24
- */
25
- email: string;
26
-
27
- /**
28
- * @generated from field: optional string first_name = 12;
29
- */
30
- firstName?: string;
31
-
32
- /**
33
- * @generated from field: optional string last_name = 13;
34
- */
35
- lastName?: string;
36
-
37
- /**
38
- * @generated from field: int64 created_at = 14;
39
- */
40
- createdAt: bigint;
41
- };
42
-
43
- /**
44
- * Describes the message admin.v1.AdminEmailVerificationRequestedPayload.
45
- * Use `create(AdminEmailVerificationRequestedPayloadSchema)` to create a new message.
46
- */
47
- export declare const AdminEmailVerificationRequestedPayloadSchema: GenMessage<AdminEmailVerificationRequestedPayload>;
48
-
49
- /**
50
- * @generated from message admin.v1.AdminEmailVerificationRequested
51
- */
52
- export declare type AdminEmailVerificationRequested = Message<"admin.v1.AdminEmailVerificationRequested"> & {
53
- /**
54
- * @generated from field: string event_name = 1;
55
- */
56
- eventName: string;
57
-
58
- /**
59
- * @generated from field: int32 event_version = 2;
60
- */
61
- eventVersion: number;
62
-
63
- /**
64
- * @generated from field: string aggregate_id = 3;
65
- */
66
- aggregateId: string;
67
-
68
- /**
69
- * @generated from field: int64 timestamp = 4;
70
- */
71
- timestamp: bigint;
72
-
73
- /**
74
- * @generated from field: optional string trace_id = 5;
75
- */
76
- traceId?: string;
77
-
78
- /**
79
- * @generated from field: admin.v1.AdminEmailVerificationRequestedPayload payload = 9;
80
- */
81
- payload?: AdminEmailVerificationRequestedPayload;
82
- };
83
-
84
- /**
85
- * Describes the message admin.v1.AdminEmailVerificationRequested.
86
- * Use `create(AdminEmailVerificationRequestedSchema)` to create a new message.
87
- */
88
- export declare const AdminEmailVerificationRequestedSchema: GenMessage<AdminEmailVerificationRequested>;
89
-
@@ -1,26 +0,0 @@
1
- // @generated by protoc-gen-es v2.10.0 with parameter "target=js+dts,import_extension=none"
2
- // @generated from file admin/v1/admin_emai_verification_requested.proto (package admin.v1, syntax proto3)
3
- /* eslint-disable */
4
-
5
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
-
7
- /**
8
- * Describes the file admin/v1/admin_emai_verification_requested.proto.
9
- */
10
- export const file_admin_v1_admin_emai_verification_requested = /*@__PURE__*/
11
- fileDesc("CjBhZG1pbi92MS9hZG1pbl9lbWFpX3ZlcmlmaWNhdGlvbl9yZXF1ZXN0ZWQucHJvdG8SCGFkbWluLnYxIqUBCiZBZG1pbkVtYWlsVmVyaWZpY2F0aW9uUmVxdWVzdGVkUGF5bG9hZBIKCgJpZBgKIAEoCRINCgVlbWFpbBgLIAEoCRIXCgpmaXJzdF9uYW1lGAwgASgJSACIAQESFgoJbGFzdF9uYW1lGA0gASgJSAGIAQESEgoKY3JlYXRlZF9hdBgOIAEoA0INCgtfZmlyc3RfbmFtZUIMCgpfbGFzdF9uYW1lItwBCh9BZG1pbkVtYWlsVmVyaWZpY2F0aW9uUmVxdWVzdGVkEhIKCmV2ZW50X25hbWUYASABKAkSFQoNZXZlbnRfdmVyc2lvbhgCIAEoBRIUCgxhZ2dyZWdhdGVfaWQYAyABKAkSEQoJdGltZXN0YW1wGAQgASgDEhUKCHRyYWNlX2lkGAUgASgJSACIAQESQQoHcGF5bG9hZBgJIAEoCzIwLmFkbWluLnYxLkFkbWluRW1haWxWZXJpZmljYXRpb25SZXF1ZXN0ZWRQYXlsb2FkQgsKCV90cmFjZV9pZEJ0Cgxjb20uYWRtaW4udjFCI0FkbWluRW1haVZlcmlmaWNhdGlvblJlcXVlc3RlZFByb3RvUAGiAgNBWFiqAghBZG1pbi5WMcoCCEFkbWluXFYx4gIUQWRtaW5cVjFcR1BCTWV0YWRhdGHqAglBZG1pbjo6VjFiBnByb3RvMw");
12
-
13
- /**
14
- * Describes the message admin.v1.AdminEmailVerificationRequestedPayload.
15
- * Use `create(AdminEmailVerificationRequestedPayloadSchema)` to create a new message.
16
- */
17
- export const AdminEmailVerificationRequestedPayloadSchema = /*@__PURE__*/
18
- messageDesc(file_admin_v1_admin_emai_verification_requested, 0);
19
-
20
- /**
21
- * Describes the message admin.v1.AdminEmailVerificationRequested.
22
- * Use `create(AdminEmailVerificationRequestedSchema)` to create a new message.
23
- */
24
- export const AdminEmailVerificationRequestedSchema = /*@__PURE__*/
25
- messageDesc(file_admin_v1_admin_emai_verification_requested, 1);
26
-