@dailydotdev/schema 0.2.29 → 0.2.31
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/daily-api/pubsub/candidate-preference-updated_pb.cjs +1 -0
- package/dist/daily-api/pubsub/candidate-preference-updated_pb.d.cts +30 -0
- package/dist/daily-api/pubsub/candidate-preference-updated_pb.d.ts +30 -0
- package/dist/daily-api/pubsub/candidate-preference-updated_pb.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/snotra/engagement/engagement_pb.cjs +1 -1
- package/dist/snotra/engagement/engagement_pb.d.cts +30 -1
- package/dist/snotra/engagement/engagement_pb.d.ts +30 -1
- package/dist/snotra/engagement/engagement_pb.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,r=Object.defineProperty,t=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,o={};((e,t)=>{for(var a in t)r(e,a,{get:t[a],enumerable:!0})})(o,{CandidatePreferenceUpdated:()=>d}),module.exports=(e=o,((e,o,i,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let d of a(o))n.call(e,d)||d===i||r(e,d,{get:()=>o[d],enumerable:!(s=t(o,d))||s.enumerable});return e})(r({},"__esModule",{value:!0}),e));var i=require("@bufbuild/protobuf"),s=require("../user-candidate-preference_pb.cjs");class d extends i.Message{userId="";payload;constructor(e){super(),i.proto3.util.initPartial(e,this)}static runtime=i.proto3;static typeName="dailydotdev.api.pubsub.candidatepreferenceupdated.CandidatePreferenceUpdated";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"payload",kind:"message",T:s.UserCandidatePreference}]));static fromBinary(e,r){return(new d).fromBinary(e,r)}static fromJson(e,r){return(new d).fromJson(e,r)}static fromJsonString(e,r){return(new d).fromJsonString(e,r)}static equals(e,r){return i.proto3.util.equals(d,e,r)}}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
import { UserCandidatePreference } from '../user-candidate-preference_pb.cjs';
|
|
3
|
+
import '../user_pb.cjs';
|
|
4
|
+
import '../opportunity_pb.cjs';
|
|
5
|
+
import '../util_pb.cjs';
|
|
6
|
+
import '../organization_pb.cjs';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @generated from message dailydotdev.api.pubsub.candidatepreferenceupdated.CandidatePreferenceUpdated
|
|
10
|
+
*/
|
|
11
|
+
declare class CandidatePreferenceUpdated extends Message<CandidatePreferenceUpdated> {
|
|
12
|
+
/**
|
|
13
|
+
* @generated from field: string user_id = 1;
|
|
14
|
+
*/
|
|
15
|
+
userId: string;
|
|
16
|
+
/**
|
|
17
|
+
* @generated from field: dailydotdev.api.usercandidatepreference.UserCandidatePreference payload = 2;
|
|
18
|
+
*/
|
|
19
|
+
payload?: UserCandidatePreference;
|
|
20
|
+
constructor(data?: PartialMessage<CandidatePreferenceUpdated>);
|
|
21
|
+
static readonly runtime: typeof proto3;
|
|
22
|
+
static readonly typeName = "dailydotdev.api.pubsub.candidatepreferenceupdated.CandidatePreferenceUpdated";
|
|
23
|
+
static readonly fields: FieldList;
|
|
24
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CandidatePreferenceUpdated;
|
|
25
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CandidatePreferenceUpdated;
|
|
26
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CandidatePreferenceUpdated;
|
|
27
|
+
static equals(a: CandidatePreferenceUpdated | PlainMessage<CandidatePreferenceUpdated> | undefined, b: CandidatePreferenceUpdated | PlainMessage<CandidatePreferenceUpdated> | undefined): boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { CandidatePreferenceUpdated };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
import { UserCandidatePreference } from '../user-candidate-preference_pb.js';
|
|
3
|
+
import '../user_pb.js';
|
|
4
|
+
import '../opportunity_pb.js';
|
|
5
|
+
import '../util_pb.js';
|
|
6
|
+
import '../organization_pb.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @generated from message dailydotdev.api.pubsub.candidatepreferenceupdated.CandidatePreferenceUpdated
|
|
10
|
+
*/
|
|
11
|
+
declare class CandidatePreferenceUpdated extends Message<CandidatePreferenceUpdated> {
|
|
12
|
+
/**
|
|
13
|
+
* @generated from field: string user_id = 1;
|
|
14
|
+
*/
|
|
15
|
+
userId: string;
|
|
16
|
+
/**
|
|
17
|
+
* @generated from field: dailydotdev.api.usercandidatepreference.UserCandidatePreference payload = 2;
|
|
18
|
+
*/
|
|
19
|
+
payload?: UserCandidatePreference;
|
|
20
|
+
constructor(data?: PartialMessage<CandidatePreferenceUpdated>);
|
|
21
|
+
static readonly runtime: typeof proto3;
|
|
22
|
+
static readonly typeName = "dailydotdev.api.pubsub.candidatepreferenceupdated.CandidatePreferenceUpdated";
|
|
23
|
+
static readonly fields: FieldList;
|
|
24
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CandidatePreferenceUpdated;
|
|
25
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CandidatePreferenceUpdated;
|
|
26
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CandidatePreferenceUpdated;
|
|
27
|
+
static equals(a: CandidatePreferenceUpdated | PlainMessage<CandidatePreferenceUpdated> | undefined, b: CandidatePreferenceUpdated | PlainMessage<CandidatePreferenceUpdated> | undefined): boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { CandidatePreferenceUpdated };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Message as e,proto3 as t}from"@bufbuild/protobuf";import{UserCandidatePreference as r}from"../user-candidate-preference_pb.ts";class a extends e{userId="";payload;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="dailydotdev.api.pubsub.candidatepreferenceupdated.CandidatePreferenceUpdated";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"payload",kind:"message",T:r}]));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,r){return t.util.equals(a,e,r)}}export{a as CandidatePreferenceUpdated};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,i=(e,i,t,u)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let a of p(i))s.call(e,a)||a===t||r(e,a,{get:()=>i[a],enumerable:!(u=o(i,a))||u.enumerable});return e},t=(e,r,o)=>(i(e,r,"default"),o&&i(o,r,"default")),u={};module.exports=(e=u,i(r({},"__esModule",{value:!0}),e)),t(u,require("./bragi/pipelines_connect.cjs"),module.exports),t(u,require("./bragi/pipelines_pb.cjs"),module.exports),t(u,require("./bragi/proxy_connect.cjs"),module.exports),t(u,require("./bragi/proxy_pb.cjs"),module.exports),t(u,require("./daily-api/opportunity-match_pb.cjs"),module.exports),t(u,require("./daily-api/opportunity_pb.cjs"),module.exports),t(u,require("./daily-api/organization_pb.cjs"),module.exports),t(u,require("./daily-api/posts_connect.cjs"),module.exports),t(u,require("./daily-api/posts_pb.cjs"),module.exports),t(u,require("./daily-api/source-requests_connect.cjs"),module.exports),t(u,require("./daily-api/source-requests_pb.cjs"),module.exports),t(u,require("./daily-api/sources_pb.cjs"),module.exports),t(u,require("./daily-api/user-candidate-preference_pb.cjs"),module.exports),t(u,require("./daily-api/user_pb.cjs"),module.exports),t(u,require("./daily-api/util_pb.cjs"),module.exports),t(u,require("./daily-api/pubsub/candidate-accepted-opportunity_pb.cjs"),module.exports),t(u,require("./daily-api/pubsub/content-updated_pb.cjs"),module.exports),t(u,require("./daily-api/pubsub/opportunity_pb.cjs"),module.exports),t(u,require("./feed/briefing/briefing_pb.cjs"),module.exports),t(u,require("./feed/personalised/personalised_pb.cjs"),module.exports),t(u,require("./feed/server_side_event/server_side_event_pb.cjs"),module.exports),t(u,require("./gondul/candidates_pb.cjs"),module.exports),t(u,require("./mimir/search/search_pb.cjs"),module.exports),t(u,require("./njord/transactions_connect.cjs"),module.exports),t(u,require("./njord/transactions_pb.cjs"),module.exports),t(u,require("./snotra/engagement/engagement_pb.cjs"),module.exports),t(u,require("./snotra/personalisation/personalisation_pb.cjs"),module.exports),t(u,require("./util/error_pb.cjs"),module.exports);
|
|
1
|
+
var e,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,i=(e,i,t,u)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let a of p(i))s.call(e,a)||a===t||r(e,a,{get:()=>i[a],enumerable:!(u=o(i,a))||u.enumerable});return e},t=(e,r,o)=>(i(e,r,"default"),o&&i(o,r,"default")),u={};module.exports=(e=u,i(r({},"__esModule",{value:!0}),e)),t(u,require("./bragi/pipelines_connect.cjs"),module.exports),t(u,require("./bragi/pipelines_pb.cjs"),module.exports),t(u,require("./bragi/proxy_connect.cjs"),module.exports),t(u,require("./bragi/proxy_pb.cjs"),module.exports),t(u,require("./daily-api/opportunity-match_pb.cjs"),module.exports),t(u,require("./daily-api/opportunity_pb.cjs"),module.exports),t(u,require("./daily-api/organization_pb.cjs"),module.exports),t(u,require("./daily-api/posts_connect.cjs"),module.exports),t(u,require("./daily-api/posts_pb.cjs"),module.exports),t(u,require("./daily-api/source-requests_connect.cjs"),module.exports),t(u,require("./daily-api/source-requests_pb.cjs"),module.exports),t(u,require("./daily-api/sources_pb.cjs"),module.exports),t(u,require("./daily-api/user-candidate-preference_pb.cjs"),module.exports),t(u,require("./daily-api/user_pb.cjs"),module.exports),t(u,require("./daily-api/util_pb.cjs"),module.exports),t(u,require("./daily-api/pubsub/candidate-accepted-opportunity_pb.cjs"),module.exports),t(u,require("./daily-api/pubsub/candidate-preference-updated_pb.cjs"),module.exports),t(u,require("./daily-api/pubsub/content-updated_pb.cjs"),module.exports),t(u,require("./daily-api/pubsub/opportunity_pb.cjs"),module.exports),t(u,require("./feed/briefing/briefing_pb.cjs"),module.exports),t(u,require("./feed/personalised/personalised_pb.cjs"),module.exports),t(u,require("./feed/server_side_event/server_side_event_pb.cjs"),module.exports),t(u,require("./gondul/candidates_pb.cjs"),module.exports),t(u,require("./mimir/search/search_pb.cjs"),module.exports),t(u,require("./njord/transactions_connect.cjs"),module.exports),t(u,require("./njord/transactions_pb.cjs"),module.exports),t(u,require("./snotra/engagement/engagement_pb.cjs"),module.exports),t(u,require("./snotra/personalisation/personalisation_pb.cjs"),module.exports),t(u,require("./util/error_pb.cjs"),module.exports);
|
package/dist/index.d.cts
CHANGED
|
@@ -14,6 +14,7 @@ export { CandidateStatus, UserCandidatePreference } from './daily-api/user-candi
|
|
|
14
14
|
export { UserCV } from './daily-api/user_pb.cjs';
|
|
15
15
|
export { Location, LocationType } from './daily-api/util_pb.cjs';
|
|
16
16
|
export { CandidateAcceptedOpportunityMessage } from './daily-api/pubsub/candidate-accepted-opportunity_pb.cjs';
|
|
17
|
+
export { CandidatePreferenceUpdated } from './daily-api/pubsub/candidate-preference-updated_pb.cjs';
|
|
17
18
|
export { ContentUpdatedMessage } from './daily-api/pubsub/content-updated_pb.cjs';
|
|
18
19
|
export { OpportunityMessage } from './daily-api/pubsub/opportunity_pb.cjs';
|
|
19
20
|
export { Briefing, BriefingItem, BriefingSection, BriefingStatistics, UserBriefingRequest } from './feed/briefing/briefing_pb.cjs';
|
|
@@ -23,7 +24,7 @@ export { MatchedCandidate } from './gondul/candidates_pb.cjs';
|
|
|
23
24
|
export { BoolFilter, Filter, Operation, Order, Quantifier, SearchRequest, SearchResponse, SearchResult, Sort, StringListFilter, TimeRangeFilter } from './mimir/search/search_pb.cjs';
|
|
24
25
|
export { Credits } from './njord/transactions_connect.cjs';
|
|
25
26
|
export { BalanceChange, Currency, EntityType, FeeResult, GetBalanceRequest, GetBalanceResponse, Transfer, TransferFee, TransferParticipant, TransferRequest, TransferResponse, TransferResult, TransferStatus, TransferType, UserAccount } from './njord/transactions_pb.cjs';
|
|
26
|
-
export { Action, Event, GetUserEventRequest, GetUserEventResponse } from './snotra/engagement/engagement_pb.cjs';
|
|
27
|
+
export { Action, Event, GetUserEventRequest, GetUserEventResponse, UserEngagementProfile } from './snotra/engagement/engagement_pb.cjs';
|
|
27
28
|
export { CreateVectorIndexMetaRequest, CreateVectorIndexMetaResponse, GetUserRankRequest, GetUserRankResponse, GetVectorIndexMetaRequest, GetVectorIndexMetaResponse, RankType, UserRank, VectorIndexMeta } from './snotra/personalisation/personalisation_pb.cjs';
|
|
28
29
|
export { Error } from './util/error_pb.cjs';
|
|
29
30
|
import '@bufbuild/protobuf';
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { CandidateStatus, UserCandidatePreference } from './daily-api/user-candi
|
|
|
14
14
|
export { UserCV } from './daily-api/user_pb.js';
|
|
15
15
|
export { Location, LocationType } from './daily-api/util_pb.js';
|
|
16
16
|
export { CandidateAcceptedOpportunityMessage } from './daily-api/pubsub/candidate-accepted-opportunity_pb.js';
|
|
17
|
+
export { CandidatePreferenceUpdated } from './daily-api/pubsub/candidate-preference-updated_pb.js';
|
|
17
18
|
export { ContentUpdatedMessage } from './daily-api/pubsub/content-updated_pb.js';
|
|
18
19
|
export { OpportunityMessage } from './daily-api/pubsub/opportunity_pb.js';
|
|
19
20
|
export { Briefing, BriefingItem, BriefingSection, BriefingStatistics, UserBriefingRequest } from './feed/briefing/briefing_pb.js';
|
|
@@ -23,7 +24,7 @@ export { MatchedCandidate } from './gondul/candidates_pb.js';
|
|
|
23
24
|
export { BoolFilter, Filter, Operation, Order, Quantifier, SearchRequest, SearchResponse, SearchResult, Sort, StringListFilter, TimeRangeFilter } from './mimir/search/search_pb.js';
|
|
24
25
|
export { Credits } from './njord/transactions_connect.js';
|
|
25
26
|
export { BalanceChange, Currency, EntityType, FeeResult, GetBalanceRequest, GetBalanceResponse, Transfer, TransferFee, TransferParticipant, TransferRequest, TransferResponse, TransferResult, TransferStatus, TransferType, UserAccount } from './njord/transactions_pb.js';
|
|
26
|
-
export { Action, Event, GetUserEventRequest, GetUserEventResponse } from './snotra/engagement/engagement_pb.js';
|
|
27
|
+
export { Action, Event, GetUserEventRequest, GetUserEventResponse, UserEngagementProfile } from './snotra/engagement/engagement_pb.js';
|
|
27
28
|
export { CreateVectorIndexMetaRequest, CreateVectorIndexMetaResponse, GetUserRankRequest, GetUserRankResponse, GetVectorIndexMetaRequest, GetVectorIndexMetaResponse, RankType, UserRank, VectorIndexMeta } from './snotra/personalisation/personalisation_pb.js';
|
|
28
29
|
export { Error } from './util/error_pb.js';
|
|
29
30
|
import '@bufbuild/protobuf';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./bragi/pipelines_connect";export*from"./bragi/pipelines_pb";export*from"./bragi/proxy_connect";export*from"./bragi/proxy_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_pb";export*from"./daily-api/user-candidate-preference_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/content-updated_pb";export*from"./daily-api/pubsub/opportunity_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/candidates_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"./snotra/personalisation/personalisation_pb";export*from"./util/error_pb";
|
|
1
|
+
export*from"./bragi/pipelines_connect";export*from"./bragi/pipelines_pb";export*from"./bragi/proxy_connect";export*from"./bragi/proxy_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_pb";export*from"./daily-api/user-candidate-preference_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/content-updated_pb";export*from"./daily-api/pubsub/opportunity_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/candidates_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"./snotra/personalisation/personalisation_pb";export*from"./util/error_pb";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,t=Object.defineProperty,
|
|
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}),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)}}
|
|
@@ -141,5 +141,34 @@ 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.UserEngagementProfile
|
|
146
|
+
*/
|
|
147
|
+
declare class UserEngagementProfile extends Message<UserEngagementProfile> {
|
|
148
|
+
/**
|
|
149
|
+
* @generated from field: string user_id = 1;
|
|
150
|
+
*/
|
|
151
|
+
userId: string;
|
|
152
|
+
/**
|
|
153
|
+
* @generated from field: string text = 2;
|
|
154
|
+
*/
|
|
155
|
+
text: string;
|
|
156
|
+
/**
|
|
157
|
+
* @generated from field: google.protobuf.Timestamp insert_at = 3;
|
|
158
|
+
*/
|
|
159
|
+
insertAt?: Timestamp;
|
|
160
|
+
/**
|
|
161
|
+
* @generated from field: google.protobuf.Timestamp update_at = 4;
|
|
162
|
+
*/
|
|
163
|
+
updateAt?: Timestamp;
|
|
164
|
+
constructor(data?: PartialMessage<UserEngagementProfile>);
|
|
165
|
+
static readonly runtime: typeof proto3;
|
|
166
|
+
static readonly typeName = "engagement.UserEngagementProfile";
|
|
167
|
+
static readonly fields: FieldList;
|
|
168
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserEngagementProfile;
|
|
169
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserEngagementProfile;
|
|
170
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserEngagementProfile;
|
|
171
|
+
static equals(a: UserEngagementProfile | PlainMessage<UserEngagementProfile> | undefined, b: UserEngagementProfile | PlainMessage<UserEngagementProfile> | undefined): boolean;
|
|
172
|
+
}
|
|
144
173
|
|
|
145
|
-
export { Action, Event, GetUserEventRequest, GetUserEventResponse };
|
|
174
|
+
export { Action, Event, GetUserEventRequest, GetUserEventResponse, UserEngagementProfile };
|
|
@@ -141,5 +141,34 @@ 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.UserEngagementProfile
|
|
146
|
+
*/
|
|
147
|
+
declare class UserEngagementProfile extends Message<UserEngagementProfile> {
|
|
148
|
+
/**
|
|
149
|
+
* @generated from field: string user_id = 1;
|
|
150
|
+
*/
|
|
151
|
+
userId: string;
|
|
152
|
+
/**
|
|
153
|
+
* @generated from field: string text = 2;
|
|
154
|
+
*/
|
|
155
|
+
text: string;
|
|
156
|
+
/**
|
|
157
|
+
* @generated from field: google.protobuf.Timestamp insert_at = 3;
|
|
158
|
+
*/
|
|
159
|
+
insertAt?: Timestamp;
|
|
160
|
+
/**
|
|
161
|
+
* @generated from field: google.protobuf.Timestamp update_at = 4;
|
|
162
|
+
*/
|
|
163
|
+
updateAt?: Timestamp;
|
|
164
|
+
constructor(data?: PartialMessage<UserEngagementProfile>);
|
|
165
|
+
static readonly runtime: typeof proto3;
|
|
166
|
+
static readonly typeName = "engagement.UserEngagementProfile";
|
|
167
|
+
static readonly fields: FieldList;
|
|
168
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserEngagementProfile;
|
|
169
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserEngagementProfile;
|
|
170
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserEngagementProfile;
|
|
171
|
+
static equals(a: UserEngagementProfile | PlainMessage<UserEngagementProfile> | undefined, b: UserEngagementProfile | PlainMessage<UserEngagementProfile> | undefined): boolean;
|
|
172
|
+
}
|
|
144
173
|
|
|
145
|
-
export { Action, Event, GetUserEventRequest, GetUserEventResponse };
|
|
174
|
+
export { Action, Event, GetUserEventRequest, GetUserEventResponse, UserEngagementProfile };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Message as e,proto3 as
|
|
1
|
+
import{Message as e,proto3 as t,Timestamp as n}from"@bufbuild/protobuf";import{Error as o}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 s 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 s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,n){return t.util.equals(s,e,n)}}class a 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 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{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:s,repeated:!0},{no:2,name:"error",kind:"message",T:o,repeated:!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 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)}}export{r as Action,s as Event,a as GetUserEventRequest,i as GetUserEventResponse,m as UserEngagementProfile};
|