@dailydotdev/schema 0.3.3 → 0.3.7

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/index.js CHANGED
@@ -1 +1 @@
1
- export*from"./bragi/feedback_pb";export*from"./bragi/pipelines_connect";export*from"./bragi/pipelines_pb";export*from"./bragi/proxy_connect";export*from"./bragi/proxy_pb";export*from"./brokkr/brokkr_connect";export*from"./brokkr/brokkr_pb";export*from"./daily-api/job_connect";export*from"./daily-api/job_pb";export*from"./daily-api/opportunity-match_pb";export*from"./daily-api/opportunity_pb";export*from"./daily-api/organization_pb";export*from"./daily-api/posts_connect";export*from"./daily-api/posts_pb";export*from"./daily-api/source-requests_connect";export*from"./daily-api/source-requests_pb";export*from"./daily-api/sources_connect";export*from"./daily-api/sources_pb";export*from"./daily-api/user-candidate-preference_pb";export*from"./daily-api/user-experience_pb";export*from"./daily-api/user_pb";export*from"./daily-api/util_pb";export*from"./daily-api/pubsub/candidate-accepted-opportunity_pb";export*from"./daily-api/pubsub/candidate-preference-updated_pb";export*from"./daily-api/pubsub/candidate-rejected-opportunity_pb";export*from"./daily-api/pubsub/content-updated_pb";export*from"./daily-api/pubsub/opportunity_pb";export*from"./daily-api/pubsub/recruiter-accepted-candidate-match_pb";export*from"./daily-api/pubsub/user-profile-updated_pb";export*from"./feed/briefing/briefing_pb";export*from"./feed/personalised/personalised_pb";export*from"./feed/server_side_event/server_side_event_pb";export*from"./gondul/application-services_connect";export*from"./gondul/candidates_pb";export*from"./gondul/opportunity-service_connect";export*from"./gondul/opportunity-service_pb";export*from"./mimir/search/search_pb";export*from"./njord/transactions_connect";export*from"./njord/transactions_pb";export*from"./snotra/engagement/engagement_pb";export*from"./tei/embedding_connect";export*from"./tei/embedding_pb";export*from"./util/error_pb";
1
+ export*from"./bragi/feedback_pb";export*from"./bragi/pipelines_connect";export*from"./bragi/pipelines_pb";export*from"./bragi/proxy_connect";export*from"./bragi/proxy_pb";export*from"./brokkr/brokkr_connect";export*from"./brokkr/brokkr_pb";export*from"./daily-api/job_connect";export*from"./daily-api/job_pb";export*from"./daily-api/opportunity-match_pb";export*from"./daily-api/opportunity_pb";export*from"./daily-api/organization_pb";export*from"./daily-api/posts_connect";export*from"./daily-api/posts_pb";export*from"./daily-api/source-requests_connect";export*from"./daily-api/source-requests_pb";export*from"./daily-api/sources_connect";export*from"./daily-api/sources_pb";export*from"./daily-api/user-candidate-preference_pb";export*from"./daily-api/user-experience_pb";export*from"./daily-api/user_pb";export*from"./daily-api/util_pb";export*from"./daily-api/pubsub/candidate-accepted-opportunity_pb";export*from"./daily-api/pubsub/candidate-preference-updated_pb";export*from"./daily-api/pubsub/candidate-rejected-opportunity_pb";export*from"./daily-api/pubsub/content-updated_pb";export*from"./daily-api/pubsub/opportunity_pb";export*from"./daily-api/pubsub/post-highlighted_pb";export*from"./daily-api/pubsub/recruiter-accepted-candidate-match_pb";export*from"./daily-api/pubsub/user-profile-updated_pb";export*from"./feed/briefing/briefing_pb";export*from"./feed/personalised/personalised_pb";export*from"./feed/server_side_event/server_side_event_pb";export*from"./gondul/application-services_connect";export*from"./gondul/candidates_pb";export*from"./gondul/opportunity-service_connect";export*from"./gondul/opportunity-service_pb";export*from"./mfserve/recommend/recommend_pb";export*from"./mimir/search/search_pb";export*from"./njord/transactions_connect";export*from"./njord/transactions_pb";export*from"./snotra/engagement/engagement_pb";export*from"./tei/embedding_connect";export*from"./tei/embedding_pb";export*from"./util/error_pb";
@@ -0,0 +1 @@
1
+ var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,s={};((e,r)=>{for(var o in r)t(e,o,{get:r[o],enumerable:!0})})(s,{BatchRecommendRequest:()=>l,BatchRecommendResponse:()=>d,RecommendRequest:()=>m,RecommendResponse:()=>u,Recommendation:()=>c}),module.exports=(e=s,((e,s,i,a)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let m of o(s))n.call(e,m)||m===i||t(e,m,{get:()=>s[m],enumerable:!(a=r(s,m))||a.enumerable});return e})(t({},"__esModule",{value:!0}),e));var i=require("@bufbuild/protobuf"),a=require("../../util/error_pb.cjs");class m extends i.Message{seedPostIds=[];n=0;constructor(e){super(),i.proto3.util.initPartial(e,this)}static runtime=i.proto3;static typeName="recommend.RecommendRequest";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"seed_post_ids",kind:"scalar",T:9,repeated:!0},{no:2,name:"n",kind:"scalar",T:13}]));static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return i.proto3.util.equals(m,e,t)}}class c extends i.Message{postId="";score=0;constructor(e){super(),i.proto3.util.initPartial(e,this)}static runtime=i.proto3;static typeName="recommend.Recommendation";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"post_id",kind:"scalar",T:9},{no:2,name:"score",kind:"scalar",T:2}]));static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return i.proto3.util.equals(c,e,t)}}class u extends i.Message{recommendations=[];modelVersion="";error=[];constructor(e){super(),i.proto3.util.initPartial(e,this)}static runtime=i.proto3;static typeName="recommend.RecommendResponse";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"recommendations",kind:"message",T:c,repeated:!0},{no:2,name:"model_version",kind:"scalar",T:9},{no:3,name:"error",kind:"message",T:a.Error,repeated:!0}]));static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return i.proto3.util.equals(u,e,t)}}class l extends i.Message{requests=[];constructor(e){super(),i.proto3.util.initPartial(e,this)}static runtime=i.proto3;static typeName="recommend.BatchRecommendRequest";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"requests",kind:"message",T:m,repeated:!0}]));static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return i.proto3.util.equals(l,e,t)}}class d extends i.Message{responses=[];error=[];constructor(e){super(),i.proto3.util.initPartial(e,this)}static runtime=i.proto3;static typeName="recommend.BatchRecommendResponse";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"responses",kind:"message",T:u,repeated:!0},{no:2,name:"error",kind:"message",T:a.Error,repeated:!0}]));static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return i.proto3.util.equals(d,e,t)}}
@@ -0,0 +1,110 @@
1
+ import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
+ import { Error } from '../../util/error_pb.cjs';
3
+
4
+ /**
5
+ * @generated from message recommend.RecommendRequest
6
+ */
7
+ declare class RecommendRequest extends Message<RecommendRequest> {
8
+ /**
9
+ * @generated from field: repeated string seed_post_ids = 1;
10
+ */
11
+ seedPostIds: string[];
12
+ /**
13
+ * @generated from field: uint32 n = 2;
14
+ */
15
+ n: number;
16
+ constructor(data?: PartialMessage<RecommendRequest>);
17
+ static readonly runtime: typeof proto3;
18
+ static readonly typeName = "recommend.RecommendRequest";
19
+ static readonly fields: FieldList;
20
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RecommendRequest;
21
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RecommendRequest;
22
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RecommendRequest;
23
+ static equals(a: RecommendRequest | PlainMessage<RecommendRequest> | undefined, b: RecommendRequest | PlainMessage<RecommendRequest> | undefined): boolean;
24
+ }
25
+ /**
26
+ * @generated from message recommend.Recommendation
27
+ */
28
+ declare class Recommendation extends Message<Recommendation> {
29
+ /**
30
+ * @generated from field: string post_id = 1;
31
+ */
32
+ postId: string;
33
+ /**
34
+ * @generated from field: float score = 2;
35
+ */
36
+ score: number;
37
+ constructor(data?: PartialMessage<Recommendation>);
38
+ static readonly runtime: typeof proto3;
39
+ static readonly typeName = "recommend.Recommendation";
40
+ static readonly fields: FieldList;
41
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Recommendation;
42
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Recommendation;
43
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Recommendation;
44
+ static equals(a: Recommendation | PlainMessage<Recommendation> | undefined, b: Recommendation | PlainMessage<Recommendation> | undefined): boolean;
45
+ }
46
+ /**
47
+ * @generated from message recommend.RecommendResponse
48
+ */
49
+ declare class RecommendResponse extends Message<RecommendResponse> {
50
+ /**
51
+ * @generated from field: repeated recommend.Recommendation recommendations = 1;
52
+ */
53
+ recommendations: Recommendation[];
54
+ /**
55
+ * @generated from field: string model_version = 2;
56
+ */
57
+ modelVersion: string;
58
+ /**
59
+ * @generated from field: repeated util.Error error = 3;
60
+ */
61
+ error: Error[];
62
+ constructor(data?: PartialMessage<RecommendResponse>);
63
+ static readonly runtime: typeof proto3;
64
+ static readonly typeName = "recommend.RecommendResponse";
65
+ static readonly fields: FieldList;
66
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RecommendResponse;
67
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RecommendResponse;
68
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RecommendResponse;
69
+ static equals(a: RecommendResponse | PlainMessage<RecommendResponse> | undefined, b: RecommendResponse | PlainMessage<RecommendResponse> | undefined): boolean;
70
+ }
71
+ /**
72
+ * @generated from message recommend.BatchRecommendRequest
73
+ */
74
+ declare class BatchRecommendRequest extends Message<BatchRecommendRequest> {
75
+ /**
76
+ * @generated from field: repeated recommend.RecommendRequest requests = 1;
77
+ */
78
+ requests: RecommendRequest[];
79
+ constructor(data?: PartialMessage<BatchRecommendRequest>);
80
+ static readonly runtime: typeof proto3;
81
+ static readonly typeName = "recommend.BatchRecommendRequest";
82
+ static readonly fields: FieldList;
83
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BatchRecommendRequest;
84
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BatchRecommendRequest;
85
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BatchRecommendRequest;
86
+ static equals(a: BatchRecommendRequest | PlainMessage<BatchRecommendRequest> | undefined, b: BatchRecommendRequest | PlainMessage<BatchRecommendRequest> | undefined): boolean;
87
+ }
88
+ /**
89
+ * @generated from message recommend.BatchRecommendResponse
90
+ */
91
+ declare class BatchRecommendResponse extends Message<BatchRecommendResponse> {
92
+ /**
93
+ * @generated from field: repeated recommend.RecommendResponse responses = 1;
94
+ */
95
+ responses: RecommendResponse[];
96
+ /**
97
+ * @generated from field: repeated util.Error error = 2;
98
+ */
99
+ error: Error[];
100
+ constructor(data?: PartialMessage<BatchRecommendResponse>);
101
+ static readonly runtime: typeof proto3;
102
+ static readonly typeName = "recommend.BatchRecommendResponse";
103
+ static readonly fields: FieldList;
104
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BatchRecommendResponse;
105
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BatchRecommendResponse;
106
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BatchRecommendResponse;
107
+ static equals(a: BatchRecommendResponse | PlainMessage<BatchRecommendResponse> | undefined, b: BatchRecommendResponse | PlainMessage<BatchRecommendResponse> | undefined): boolean;
108
+ }
109
+
110
+ export { BatchRecommendRequest, BatchRecommendResponse, RecommendRequest, RecommendResponse, Recommendation };
@@ -0,0 +1,110 @@
1
+ import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
+ import { Error } from '../../util/error_pb.js';
3
+
4
+ /**
5
+ * @generated from message recommend.RecommendRequest
6
+ */
7
+ declare class RecommendRequest extends Message<RecommendRequest> {
8
+ /**
9
+ * @generated from field: repeated string seed_post_ids = 1;
10
+ */
11
+ seedPostIds: string[];
12
+ /**
13
+ * @generated from field: uint32 n = 2;
14
+ */
15
+ n: number;
16
+ constructor(data?: PartialMessage<RecommendRequest>);
17
+ static readonly runtime: typeof proto3;
18
+ static readonly typeName = "recommend.RecommendRequest";
19
+ static readonly fields: FieldList;
20
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RecommendRequest;
21
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RecommendRequest;
22
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RecommendRequest;
23
+ static equals(a: RecommendRequest | PlainMessage<RecommendRequest> | undefined, b: RecommendRequest | PlainMessage<RecommendRequest> | undefined): boolean;
24
+ }
25
+ /**
26
+ * @generated from message recommend.Recommendation
27
+ */
28
+ declare class Recommendation extends Message<Recommendation> {
29
+ /**
30
+ * @generated from field: string post_id = 1;
31
+ */
32
+ postId: string;
33
+ /**
34
+ * @generated from field: float score = 2;
35
+ */
36
+ score: number;
37
+ constructor(data?: PartialMessage<Recommendation>);
38
+ static readonly runtime: typeof proto3;
39
+ static readonly typeName = "recommend.Recommendation";
40
+ static readonly fields: FieldList;
41
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Recommendation;
42
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Recommendation;
43
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Recommendation;
44
+ static equals(a: Recommendation | PlainMessage<Recommendation> | undefined, b: Recommendation | PlainMessage<Recommendation> | undefined): boolean;
45
+ }
46
+ /**
47
+ * @generated from message recommend.RecommendResponse
48
+ */
49
+ declare class RecommendResponse extends Message<RecommendResponse> {
50
+ /**
51
+ * @generated from field: repeated recommend.Recommendation recommendations = 1;
52
+ */
53
+ recommendations: Recommendation[];
54
+ /**
55
+ * @generated from field: string model_version = 2;
56
+ */
57
+ modelVersion: string;
58
+ /**
59
+ * @generated from field: repeated util.Error error = 3;
60
+ */
61
+ error: Error[];
62
+ constructor(data?: PartialMessage<RecommendResponse>);
63
+ static readonly runtime: typeof proto3;
64
+ static readonly typeName = "recommend.RecommendResponse";
65
+ static readonly fields: FieldList;
66
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RecommendResponse;
67
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RecommendResponse;
68
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RecommendResponse;
69
+ static equals(a: RecommendResponse | PlainMessage<RecommendResponse> | undefined, b: RecommendResponse | PlainMessage<RecommendResponse> | undefined): boolean;
70
+ }
71
+ /**
72
+ * @generated from message recommend.BatchRecommendRequest
73
+ */
74
+ declare class BatchRecommendRequest extends Message<BatchRecommendRequest> {
75
+ /**
76
+ * @generated from field: repeated recommend.RecommendRequest requests = 1;
77
+ */
78
+ requests: RecommendRequest[];
79
+ constructor(data?: PartialMessage<BatchRecommendRequest>);
80
+ static readonly runtime: typeof proto3;
81
+ static readonly typeName = "recommend.BatchRecommendRequest";
82
+ static readonly fields: FieldList;
83
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BatchRecommendRequest;
84
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BatchRecommendRequest;
85
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BatchRecommendRequest;
86
+ static equals(a: BatchRecommendRequest | PlainMessage<BatchRecommendRequest> | undefined, b: BatchRecommendRequest | PlainMessage<BatchRecommendRequest> | undefined): boolean;
87
+ }
88
+ /**
89
+ * @generated from message recommend.BatchRecommendResponse
90
+ */
91
+ declare class BatchRecommendResponse extends Message<BatchRecommendResponse> {
92
+ /**
93
+ * @generated from field: repeated recommend.RecommendResponse responses = 1;
94
+ */
95
+ responses: RecommendResponse[];
96
+ /**
97
+ * @generated from field: repeated util.Error error = 2;
98
+ */
99
+ error: Error[];
100
+ constructor(data?: PartialMessage<BatchRecommendResponse>);
101
+ static readonly runtime: typeof proto3;
102
+ static readonly typeName = "recommend.BatchRecommendResponse";
103
+ static readonly fields: FieldList;
104
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BatchRecommendResponse;
105
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BatchRecommendResponse;
106
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BatchRecommendResponse;
107
+ static equals(a: BatchRecommendResponse | PlainMessage<BatchRecommendResponse> | undefined, b: BatchRecommendResponse | PlainMessage<BatchRecommendResponse> | undefined): boolean;
108
+ }
109
+
110
+ export { BatchRecommendRequest, BatchRecommendResponse, RecommendRequest, RecommendResponse, Recommendation };
@@ -0,0 +1 @@
1
+ import{Message as t,proto3 as e}from"@bufbuild/protobuf";import{Error as r}from"../../util/error_pb.ts";class n extends t{seedPostIds=[];n=0;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="recommend.RecommendRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"seed_post_ids",kind:"scalar",T:9,repeated:!0},{no:2,name:"n",kind:"scalar",T:13}]));static fromBinary(t,e){return(new n).fromBinary(t,e)}static fromJson(t,e){return(new n).fromJson(t,e)}static fromJsonString(t,e){return(new n).fromJsonString(t,e)}static equals(t,r){return e.util.equals(n,t,r)}}class s extends t{postId="";score=0;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="recommend.Recommendation";static fields=e.util.newFieldList((()=>[{no:1,name:"post_id",kind:"scalar",T:9},{no:2,name:"score",kind:"scalar",T:2}]));static fromBinary(t,e){return(new s).fromBinary(t,e)}static fromJson(t,e){return(new s).fromJson(t,e)}static fromJsonString(t,e){return(new s).fromJsonString(t,e)}static equals(t,r){return e.util.equals(s,t,r)}}class i extends t{recommendations=[];modelVersion="";error=[];constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="recommend.RecommendResponse";static fields=e.util.newFieldList((()=>[{no:1,name:"recommendations",kind:"message",T:s,repeated:!0},{no:2,name:"model_version",kind:"scalar",T:9},{no:3,name:"error",kind:"message",T:r,repeated:!0}]));static fromBinary(t,e){return(new i).fromBinary(t,e)}static fromJson(t,e){return(new i).fromJson(t,e)}static fromJsonString(t,e){return(new i).fromJsonString(t,e)}static equals(t,r){return e.util.equals(i,t,r)}}class a extends t{requests=[];constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="recommend.BatchRecommendRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"requests",kind:"message",T:n,repeated:!0}]));static fromBinary(t,e){return(new a).fromBinary(t,e)}static fromJson(t,e){return(new a).fromJson(t,e)}static fromJsonString(t,e){return(new a).fromJsonString(t,e)}static equals(t,r){return e.util.equals(a,t,r)}}class o extends t{responses=[];error=[];constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="recommend.BatchRecommendResponse";static fields=e.util.newFieldList((()=>[{no:1,name:"responses",kind:"message",T:i,repeated:!0},{no:2,name:"error",kind:"message",T:r,repeated:!0}]));static fromBinary(t,e){return(new o).fromBinary(t,e)}static fromJson(t,e){return(new o).fromJson(t,e)}static fromJsonString(t,e){return(new o).fromJsonString(t,e)}static equals(t,r){return e.util.equals(o,t,r)}}export{a as BatchRecommendRequest,o as BatchRecommendResponse,n as RecommendRequest,i as RecommendResponse,s as Recommendation};
@@ -1 +1 @@
1
- var e,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,s={};((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})(s,{Action:()=>m,Event:()=>u,GetUserEventRequest:()=>c,GetUserEventResponse:()=>d,UserEngagementProfile:()=>p,UserPostEngagementCounts:()=>l}),module.exports=(e=s,((e,s,a,i)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let m of o(s))r.call(e,m)||m===a||t(e,m,{get:()=>s[m],enumerable:!(i=n(s,m))||i.enumerable});return e})(t({},"__esModule",{value:!0}),e));var a=require("@bufbuild/protobuf"),i=require("../../util/error_pb.cjs"),m=(e=>(e[e.View=0]="View",e[e.Click=1]="Click",e[e.Comment=2]="Comment",e[e.UpVote=3]="UpVote",e[e.DownVote=4]="DownVote",e[e.RemoveUpVote=5]="RemoveUpVote",e[e.RemoveDownVote=6]="RemoveDownVote",e[e.FeedbackRequested=7]="FeedbackRequested",e[e.FeedbackReceived=8]="FeedbackReceived",e[e.BookmarkAdded=9]="BookmarkAdded",e[e.BookmarkDeleted=10]="BookmarkDeleted",e[e.BookmarkViewed=11]="BookmarkViewed",e[e.TwoImpressions=12]="TwoImpressions",e[e.ThreeImpressions=13]="ThreeImpressions",e))(m||{});a.proto3.util.setEnumType(m,"engagement.Action",[{no:0,name:"View"},{no:1,name:"Click"},{no:2,name:"Comment"},{no:3,name:"UpVote"},{no:4,name:"DownVote"},{no:5,name:"RemoveUpVote"},{no:6,name:"RemoveDownVote"},{no:7,name:"FeedbackRequested"},{no:8,name:"FeedbackReceived"},{no:9,name:"BookmarkAdded"},{no:10,name:"BookmarkDeleted"},{no:11,name:"BookmarkViewed"},{no:12,name:"TwoImpressions"},{no:13,name:"ThreeImpressions"}]);class u extends a.Message{userId="";postId="";action=0;options=new Uint8Array(0);dInsert;constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.Event";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"post_id",kind:"scalar",T:9},{no:3,name:"action",kind:"enum",T:a.proto3.getEnumType(m)},{no:4,name:"options",kind:"scalar",T:12},{no:5,name:"d_insert",kind:"message",T:a.Timestamp}]));static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(u,e,t)}}class c extends a.Message{userId="";actions=[];days;constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.GetUserEventRequest";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"actions",kind:"enum",T:a.proto3.getEnumType(m),repeated:!0},{no:3,name:"days",kind:"scalar",T:13,opt:!0}]));static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(c,e,t)}}class d extends a.Message{result=[];error=[];constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.GetUserEventResponse";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:u,repeated:!0},{no:2,name:"error",kind:"message",T:i.Error,repeated:!0}]));static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(d,e,t)}}class p extends a.Message{userId="";text="";insertAt;updateAt;constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.UserEngagementProfile";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"insert_at",kind:"message",T:a.Timestamp},{no:4,name:"update_at",kind:"message",T:a.Timestamp}]));static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(p,e,t)}}class l extends a.Message{userId="";postId="";impressions=0;constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.UserPostEngagementCounts";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"post_id",kind:"scalar",T:9},{no:3,name:"impressions",kind:"scalar",T:13}]));static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(l,e,t)}}
1
+ var e,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(s,{Action:()=>m,Event:()=>u,GetUserEngagedPostIdsRequest:()=>p,GetUserEngagedPostIdsResponse:()=>l,GetUserEventRequest:()=>c,GetUserEventResponse:()=>d,UserEngagementProfile:()=>g,UserPostEngagementCounts:()=>f}),module.exports=(e=s,((e,s,a,i)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let m of r(s))o.call(e,m)||m===a||t(e,m,{get:()=>s[m],enumerable:!(i=n(s,m))||i.enumerable});return e})(t({},"__esModule",{value:!0}),e));var a=require("@bufbuild/protobuf"),i=require("../../util/error_pb.cjs"),m=(e=>(e[e.View=0]="View",e[e.Click=1]="Click",e[e.Comment=2]="Comment",e[e.UpVote=3]="UpVote",e[e.DownVote=4]="DownVote",e[e.RemoveUpVote=5]="RemoveUpVote",e[e.RemoveDownVote=6]="RemoveDownVote",e[e.FeedbackRequested=7]="FeedbackRequested",e[e.FeedbackReceived=8]="FeedbackReceived",e[e.BookmarkAdded=9]="BookmarkAdded",e[e.BookmarkDeleted=10]="BookmarkDeleted",e[e.BookmarkViewed=11]="BookmarkViewed",e[e.TwoImpressions=12]="TwoImpressions",e[e.ThreeImpressions=13]="ThreeImpressions",e))(m||{});a.proto3.util.setEnumType(m,"engagement.Action",[{no:0,name:"View"},{no:1,name:"Click"},{no:2,name:"Comment"},{no:3,name:"UpVote"},{no:4,name:"DownVote"},{no:5,name:"RemoveUpVote"},{no:6,name:"RemoveDownVote"},{no:7,name:"FeedbackRequested"},{no:8,name:"FeedbackReceived"},{no:9,name:"BookmarkAdded"},{no:10,name:"BookmarkDeleted"},{no:11,name:"BookmarkViewed"},{no:12,name:"TwoImpressions"},{no:13,name:"ThreeImpressions"}]);class u extends a.Message{userId="";postId="";action=0;options=new Uint8Array(0);dInsert;constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.Event";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"post_id",kind:"scalar",T:9},{no:3,name:"action",kind:"enum",T:a.proto3.getEnumType(m)},{no:4,name:"options",kind:"scalar",T:12},{no:5,name:"d_insert",kind:"message",T:a.Timestamp}]));static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(u,e,t)}}class c extends a.Message{userId="";actions=[];days;constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.GetUserEventRequest";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"actions",kind:"enum",T:a.proto3.getEnumType(m),repeated:!0},{no:3,name:"days",kind:"scalar",T:13,opt:!0}]));static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(c,e,t)}}class d extends a.Message{result=[];error=[];constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.GetUserEventResponse";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:u,repeated:!0},{no:2,name:"error",kind:"message",T:i.Error,repeated:!0}]));static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(d,e,t)}}class p extends a.Message{userId="";actions=[];days;pageSize;cursor;constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.GetUserEngagedPostIdsRequest";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"actions",kind:"enum",T:a.proto3.getEnumType(m),repeated:!0},{no:3,name:"days",kind:"scalar",T:13,opt:!0},{no:4,name:"page_size",kind:"scalar",T:13,opt:!0},{no:5,name:"cursor",kind:"scalar",T:9,opt:!0}]));static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(p,e,t)}}class l extends a.Message{postIds=[];nextCursor;error=[];constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.GetUserEngagedPostIdsResponse";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"post_ids",kind:"scalar",T:9,repeated:!0},{no:2,name:"next_cursor",kind:"scalar",T:9,opt:!0},{no:3,name:"error",kind:"message",T:i.Error,repeated:!0}]));static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(l,e,t)}}class g extends a.Message{userId="";text="";insertAt;updateAt;constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.UserEngagementProfile";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"insert_at",kind:"message",T:a.Timestamp},{no:4,name:"update_at",kind:"message",T:a.Timestamp}]));static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(g,e,t)}}class f extends a.Message{userId="";postId="";impressions=0;constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.UserPostEngagementCounts";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"post_id",kind:"scalar",T:9},{no:3,name:"impressions",kind:"scalar",T:13}]));static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(f,e,t)}}
@@ -141,6 +141,64 @@ declare class GetUserEventResponse extends Message<GetUserEventResponse> {
141
141
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserEventResponse;
142
142
  static equals(a: GetUserEventResponse | PlainMessage<GetUserEventResponse> | undefined, b: GetUserEventResponse | PlainMessage<GetUserEventResponse> | undefined): boolean;
143
143
  }
144
+ /**
145
+ * @generated from message engagement.GetUserEngagedPostIdsRequest
146
+ */
147
+ declare class GetUserEngagedPostIdsRequest extends Message<GetUserEngagedPostIdsRequest> {
148
+ /**
149
+ * @generated from field: string user_id = 1;
150
+ */
151
+ userId: string;
152
+ /**
153
+ * @generated from field: repeated engagement.Action actions = 2;
154
+ */
155
+ actions: Action[];
156
+ /**
157
+ * @generated from field: optional uint32 days = 3;
158
+ */
159
+ days?: number;
160
+ /**
161
+ * @generated from field: optional uint32 page_size = 4;
162
+ */
163
+ pageSize?: number;
164
+ /**
165
+ * @generated from field: optional string cursor = 5;
166
+ */
167
+ cursor?: string;
168
+ constructor(data?: PartialMessage<GetUserEngagedPostIdsRequest>);
169
+ static readonly runtime: typeof proto3;
170
+ static readonly typeName = "engagement.GetUserEngagedPostIdsRequest";
171
+ static readonly fields: FieldList;
172
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserEngagedPostIdsRequest;
173
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserEngagedPostIdsRequest;
174
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserEngagedPostIdsRequest;
175
+ static equals(a: GetUserEngagedPostIdsRequest | PlainMessage<GetUserEngagedPostIdsRequest> | undefined, b: GetUserEngagedPostIdsRequest | PlainMessage<GetUserEngagedPostIdsRequest> | undefined): boolean;
176
+ }
177
+ /**
178
+ * @generated from message engagement.GetUserEngagedPostIdsResponse
179
+ */
180
+ declare class GetUserEngagedPostIdsResponse extends Message<GetUserEngagedPostIdsResponse> {
181
+ /**
182
+ * @generated from field: repeated string post_ids = 1;
183
+ */
184
+ postIds: string[];
185
+ /**
186
+ * @generated from field: optional string next_cursor = 2;
187
+ */
188
+ nextCursor?: string;
189
+ /**
190
+ * @generated from field: repeated util.Error error = 3;
191
+ */
192
+ error: Error[];
193
+ constructor(data?: PartialMessage<GetUserEngagedPostIdsResponse>);
194
+ static readonly runtime: typeof proto3;
195
+ static readonly typeName = "engagement.GetUserEngagedPostIdsResponse";
196
+ static readonly fields: FieldList;
197
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserEngagedPostIdsResponse;
198
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserEngagedPostIdsResponse;
199
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserEngagedPostIdsResponse;
200
+ static equals(a: GetUserEngagedPostIdsResponse | PlainMessage<GetUserEngagedPostIdsResponse> | undefined, b: GetUserEngagedPostIdsResponse | PlainMessage<GetUserEngagedPostIdsResponse> | undefined): boolean;
201
+ }
144
202
  /**
145
203
  * @generated from message engagement.UserEngagementProfile
146
204
  */
@@ -196,4 +254,4 @@ declare class UserPostEngagementCounts extends Message<UserPostEngagementCounts>
196
254
  static equals(a: UserPostEngagementCounts | PlainMessage<UserPostEngagementCounts> | undefined, b: UserPostEngagementCounts | PlainMessage<UserPostEngagementCounts> | undefined): boolean;
197
255
  }
198
256
 
199
- export { Action, Event, GetUserEventRequest, GetUserEventResponse, UserEngagementProfile, UserPostEngagementCounts };
257
+ export { Action, Event, GetUserEngagedPostIdsRequest, GetUserEngagedPostIdsResponse, GetUserEventRequest, GetUserEventResponse, UserEngagementProfile, UserPostEngagementCounts };
@@ -141,6 +141,64 @@ declare class GetUserEventResponse extends Message<GetUserEventResponse> {
141
141
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserEventResponse;
142
142
  static equals(a: GetUserEventResponse | PlainMessage<GetUserEventResponse> | undefined, b: GetUserEventResponse | PlainMessage<GetUserEventResponse> | undefined): boolean;
143
143
  }
144
+ /**
145
+ * @generated from message engagement.GetUserEngagedPostIdsRequest
146
+ */
147
+ declare class GetUserEngagedPostIdsRequest extends Message<GetUserEngagedPostIdsRequest> {
148
+ /**
149
+ * @generated from field: string user_id = 1;
150
+ */
151
+ userId: string;
152
+ /**
153
+ * @generated from field: repeated engagement.Action actions = 2;
154
+ */
155
+ actions: Action[];
156
+ /**
157
+ * @generated from field: optional uint32 days = 3;
158
+ */
159
+ days?: number;
160
+ /**
161
+ * @generated from field: optional uint32 page_size = 4;
162
+ */
163
+ pageSize?: number;
164
+ /**
165
+ * @generated from field: optional string cursor = 5;
166
+ */
167
+ cursor?: string;
168
+ constructor(data?: PartialMessage<GetUserEngagedPostIdsRequest>);
169
+ static readonly runtime: typeof proto3;
170
+ static readonly typeName = "engagement.GetUserEngagedPostIdsRequest";
171
+ static readonly fields: FieldList;
172
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserEngagedPostIdsRequest;
173
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserEngagedPostIdsRequest;
174
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserEngagedPostIdsRequest;
175
+ static equals(a: GetUserEngagedPostIdsRequest | PlainMessage<GetUserEngagedPostIdsRequest> | undefined, b: GetUserEngagedPostIdsRequest | PlainMessage<GetUserEngagedPostIdsRequest> | undefined): boolean;
176
+ }
177
+ /**
178
+ * @generated from message engagement.GetUserEngagedPostIdsResponse
179
+ */
180
+ declare class GetUserEngagedPostIdsResponse extends Message<GetUserEngagedPostIdsResponse> {
181
+ /**
182
+ * @generated from field: repeated string post_ids = 1;
183
+ */
184
+ postIds: string[];
185
+ /**
186
+ * @generated from field: optional string next_cursor = 2;
187
+ */
188
+ nextCursor?: string;
189
+ /**
190
+ * @generated from field: repeated util.Error error = 3;
191
+ */
192
+ error: Error[];
193
+ constructor(data?: PartialMessage<GetUserEngagedPostIdsResponse>);
194
+ static readonly runtime: typeof proto3;
195
+ static readonly typeName = "engagement.GetUserEngagedPostIdsResponse";
196
+ static readonly fields: FieldList;
197
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserEngagedPostIdsResponse;
198
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserEngagedPostIdsResponse;
199
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserEngagedPostIdsResponse;
200
+ static equals(a: GetUserEngagedPostIdsResponse | PlainMessage<GetUserEngagedPostIdsResponse> | undefined, b: GetUserEngagedPostIdsResponse | PlainMessage<GetUserEngagedPostIdsResponse> | undefined): boolean;
201
+ }
144
202
  /**
145
203
  * @generated from message engagement.UserEngagementProfile
146
204
  */
@@ -196,4 +254,4 @@ declare class UserPostEngagementCounts extends Message<UserPostEngagementCounts>
196
254
  static equals(a: UserPostEngagementCounts | PlainMessage<UserPostEngagementCounts> | undefined, b: UserPostEngagementCounts | PlainMessage<UserPostEngagementCounts> | undefined): boolean;
197
255
  }
198
256
 
199
- export { Action, Event, GetUserEventRequest, GetUserEventResponse, UserEngagementProfile, UserPostEngagementCounts };
257
+ export { Action, Event, GetUserEngagedPostIdsRequest, GetUserEngagedPostIdsResponse, GetUserEventRequest, GetUserEventResponse, UserEngagementProfile, UserPostEngagementCounts };
@@ -1 +1 @@
1
- import{Message as e,proto3 as t,Timestamp as n}from"@bufbuild/protobuf";import{Error as s}from"../../util/error_pb.ts";var r=(e=>(e[e.View=0]="View",e[e.Click=1]="Click",e[e.Comment=2]="Comment",e[e.UpVote=3]="UpVote",e[e.DownVote=4]="DownVote",e[e.RemoveUpVote=5]="RemoveUpVote",e[e.RemoveDownVote=6]="RemoveDownVote",e[e.FeedbackRequested=7]="FeedbackRequested",e[e.FeedbackReceived=8]="FeedbackReceived",e[e.BookmarkAdded=9]="BookmarkAdded",e[e.BookmarkDeleted=10]="BookmarkDeleted",e[e.BookmarkViewed=11]="BookmarkViewed",e[e.TwoImpressions=12]="TwoImpressions",e[e.ThreeImpressions=13]="ThreeImpressions",e))(r||{});t.util.setEnumType(r,"engagement.Action",[{no:0,name:"View"},{no:1,name:"Click"},{no:2,name:"Comment"},{no:3,name:"UpVote"},{no:4,name:"DownVote"},{no:5,name:"RemoveUpVote"},{no:6,name:"RemoveDownVote"},{no:7,name:"FeedbackRequested"},{no:8,name:"FeedbackReceived"},{no:9,name:"BookmarkAdded"},{no:10,name:"BookmarkDeleted"},{no:11,name:"BookmarkViewed"},{no:12,name:"TwoImpressions"},{no:13,name:"ThreeImpressions"}]);class o extends e{userId="";postId="";action=0;options=new Uint8Array(0);dInsert;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.Event";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"post_id",kind:"scalar",T:9},{no:3,name:"action",kind:"enum",T:t.getEnumType(r)},{no:4,name:"options",kind:"scalar",T:12},{no:5,name:"d_insert",kind:"message",T:n}]));static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,n){return t.util.equals(o,e,n)}}class i extends e{userId="";actions=[];days;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.GetUserEventRequest";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"actions",kind:"enum",T:t.getEnumType(r),repeated:!0},{no:3,name:"days",kind:"scalar",T:13,opt:!0}]));static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,n){return t.util.equals(i,e,n)}}class a extends e{result=[];error=[];constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.GetUserEventResponse";static fields=t.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:o,repeated:!0},{no:2,name:"error",kind:"message",T:s,repeated:!0}]));static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,n){return t.util.equals(a,e,n)}}class m extends e{userId="";text="";insertAt;updateAt;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.UserEngagementProfile";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"insert_at",kind:"message",T:n},{no:4,name:"update_at",kind:"message",T:n}]));static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,n){return t.util.equals(m,e,n)}}class u extends e{userId="";postId="";impressions=0;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.UserPostEngagementCounts";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"post_id",kind:"scalar",T:9},{no:3,name:"impressions",kind:"scalar",T:13}]));static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,n){return t.util.equals(u,e,n)}}export{r as Action,o as Event,i as GetUserEventRequest,a as GetUserEventResponse,m as UserEngagementProfile,u as UserPostEngagementCounts};
1
+ import{Message as e,proto3 as t,Timestamp as n}from"@bufbuild/protobuf";import{Error as s}from"../../util/error_pb.ts";var r=(e=>(e[e.View=0]="View",e[e.Click=1]="Click",e[e.Comment=2]="Comment",e[e.UpVote=3]="UpVote",e[e.DownVote=4]="DownVote",e[e.RemoveUpVote=5]="RemoveUpVote",e[e.RemoveDownVote=6]="RemoveDownVote",e[e.FeedbackRequested=7]="FeedbackRequested",e[e.FeedbackReceived=8]="FeedbackReceived",e[e.BookmarkAdded=9]="BookmarkAdded",e[e.BookmarkDeleted=10]="BookmarkDeleted",e[e.BookmarkViewed=11]="BookmarkViewed",e[e.TwoImpressions=12]="TwoImpressions",e[e.ThreeImpressions=13]="ThreeImpressions",e))(r||{});t.util.setEnumType(r,"engagement.Action",[{no:0,name:"View"},{no:1,name:"Click"},{no:2,name:"Comment"},{no:3,name:"UpVote"},{no:4,name:"DownVote"},{no:5,name:"RemoveUpVote"},{no:6,name:"RemoveDownVote"},{no:7,name:"FeedbackRequested"},{no:8,name:"FeedbackReceived"},{no:9,name:"BookmarkAdded"},{no:10,name:"BookmarkDeleted"},{no:11,name:"BookmarkViewed"},{no:12,name:"TwoImpressions"},{no:13,name:"ThreeImpressions"}]);class a extends e{userId="";postId="";action=0;options=new Uint8Array(0);dInsert;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.Event";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"post_id",kind:"scalar",T:9},{no:3,name:"action",kind:"enum",T:t.getEnumType(r)},{no:4,name:"options",kind:"scalar",T:12},{no:5,name:"d_insert",kind:"message",T:n}]));static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,n){return t.util.equals(a,e,n)}}class i extends e{userId="";actions=[];days;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.GetUserEventRequest";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"actions",kind:"enum",T:t.getEnumType(r),repeated:!0},{no:3,name:"days",kind:"scalar",T:13,opt:!0}]));static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,n){return t.util.equals(i,e,n)}}class o extends e{result=[];error=[];constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.GetUserEventResponse";static fields=t.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:a,repeated:!0},{no:2,name:"error",kind:"message",T:s,repeated:!0}]));static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,n){return t.util.equals(o,e,n)}}class m extends e{userId="";actions=[];days;pageSize;cursor;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.GetUserEngagedPostIdsRequest";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"actions",kind:"enum",T:t.getEnumType(r),repeated:!0},{no:3,name:"days",kind:"scalar",T:13,opt:!0},{no:4,name:"page_size",kind:"scalar",T:13,opt:!0},{no:5,name:"cursor",kind:"scalar",T:9,opt:!0}]));static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,n){return t.util.equals(m,e,n)}}class u extends e{postIds=[];nextCursor;error=[];constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.GetUserEngagedPostIdsResponse";static fields=t.util.newFieldList((()=>[{no:1,name:"post_ids",kind:"scalar",T:9,repeated:!0},{no:2,name:"next_cursor",kind:"scalar",T:9,opt:!0},{no:3,name:"error",kind:"message",T:s,repeated:!0}]));static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,n){return t.util.equals(u,e,n)}}class c extends e{userId="";text="";insertAt;updateAt;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.UserEngagementProfile";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"insert_at",kind:"message",T:n},{no:4,name:"update_at",kind:"message",T:n}]));static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,n){return t.util.equals(c,e,n)}}class d extends e{userId="";postId="";impressions=0;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.UserPostEngagementCounts";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"post_id",kind:"scalar",T:9},{no:3,name:"impressions",kind:"scalar",T:13}]));static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,n){return t.util.equals(d,e,n)}}export{r as Action,a as Event,m as GetUserEngagedPostIdsRequest,u as GetUserEngagedPostIdsResponse,i as GetUserEventRequest,o as GetUserEventResponse,c as UserEngagementProfile,d as UserPostEngagementCounts};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dailydotdev/schema",
3
- "version": "0.3.3",
3
+ "version": "0.3.7",
4
4
  "author": "@dailydotdev",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",