@dailydotdev/schema 0.2.25 → 0.2.27

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.
@@ -0,0 +1 @@
1
+ var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o={};((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(o,{MatchedCandidate:()=>s}),module.exports=(e=o,((e,o,i,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let c of n(o))a.call(e,c)||c===i||t(e,c,{get:()=>o[c],enumerable:!(s=r(o,c))||s.enumerable});return e})(t({},"__esModule",{value:!0}),e));var i=require("@bufbuild/protobuf");class s extends i.Message{userId="";opportunityId="";cosineDistance=0;matchScore=0;reasoning="";batchId=0;constructor(e){super(),i.proto3.util.initPartial(e,this)}static runtime=i.proto3;static typeName="gondul.candidates.MatchedCandidate";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"opportunity_id",kind:"scalar",T:9},{no:3,name:"cosine_distance",kind:"scalar",T:2},{no:4,name:"match_score",kind:"scalar",T:2},{no:5,name:"reasoning",kind:"scalar",T:9},{no:6,name:"batch_id",kind:"scalar",T:5}]));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,t){return i.proto3.util.equals(s,e,t)}}
@@ -0,0 +1,45 @@
1
+ import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
+
3
+ /**
4
+ * @generated from message gondul.candidates.MatchedCandidate
5
+ */
6
+ declare class MatchedCandidate extends Message<MatchedCandidate> {
7
+ /**
8
+ * @generated from field: string user_id = 1;
9
+ */
10
+ userId: string;
11
+ /**
12
+ * @generated from field: string opportunity_id = 2;
13
+ */
14
+ opportunityId: string;
15
+ /**
16
+ * 0..2, the smaller the better
17
+ *
18
+ * @generated from field: float cosine_distance = 3;
19
+ */
20
+ cosineDistance: number;
21
+ /**
22
+ * @generated from field: float match_score = 4;
23
+ */
24
+ matchScore: number;
25
+ /**
26
+ * @generated from field: string reasoning = 5;
27
+ */
28
+ reasoning: string;
29
+ /**
30
+ * just in case we need to differentiate between batches later, can be ignored for now
31
+ *
32
+ * @generated from field: int32 batch_id = 6;
33
+ */
34
+ batchId: number;
35
+ constructor(data?: PartialMessage<MatchedCandidate>);
36
+ static readonly runtime: typeof proto3;
37
+ static readonly typeName = "gondul.candidates.MatchedCandidate";
38
+ static readonly fields: FieldList;
39
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MatchedCandidate;
40
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MatchedCandidate;
41
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MatchedCandidate;
42
+ static equals(a: MatchedCandidate | PlainMessage<MatchedCandidate> | undefined, b: MatchedCandidate | PlainMessage<MatchedCandidate> | undefined): boolean;
43
+ }
44
+
45
+ export { MatchedCandidate };
@@ -0,0 +1,45 @@
1
+ import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
+
3
+ /**
4
+ * @generated from message gondul.candidates.MatchedCandidate
5
+ */
6
+ declare class MatchedCandidate extends Message<MatchedCandidate> {
7
+ /**
8
+ * @generated from field: string user_id = 1;
9
+ */
10
+ userId: string;
11
+ /**
12
+ * @generated from field: string opportunity_id = 2;
13
+ */
14
+ opportunityId: string;
15
+ /**
16
+ * 0..2, the smaller the better
17
+ *
18
+ * @generated from field: float cosine_distance = 3;
19
+ */
20
+ cosineDistance: number;
21
+ /**
22
+ * @generated from field: float match_score = 4;
23
+ */
24
+ matchScore: number;
25
+ /**
26
+ * @generated from field: string reasoning = 5;
27
+ */
28
+ reasoning: string;
29
+ /**
30
+ * just in case we need to differentiate between batches later, can be ignored for now
31
+ *
32
+ * @generated from field: int32 batch_id = 6;
33
+ */
34
+ batchId: number;
35
+ constructor(data?: PartialMessage<MatchedCandidate>);
36
+ static readonly runtime: typeof proto3;
37
+ static readonly typeName = "gondul.candidates.MatchedCandidate";
38
+ static readonly fields: FieldList;
39
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MatchedCandidate;
40
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MatchedCandidate;
41
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MatchedCandidate;
42
+ static equals(a: MatchedCandidate | PlainMessage<MatchedCandidate> | undefined, b: MatchedCandidate | PlainMessage<MatchedCandidate> | undefined): boolean;
43
+ }
44
+
45
+ export { MatchedCandidate };
@@ -0,0 +1 @@
1
+ import{Message as n,proto3 as t}from"@bufbuild/protobuf";class a extends n{userId="";opportunityId="";cosineDistance=0;matchScore=0;reasoning="";batchId=0;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="gondul.candidates.MatchedCandidate";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"opportunity_id",kind:"scalar",T:9},{no:3,name:"cosine_distance",kind:"scalar",T:2},{no:4,name:"match_score",kind:"scalar",T:2},{no:5,name:"reasoning",kind:"scalar",T:9},{no:6,name:"batch_id",kind:"scalar",T:5}]));static fromBinary(n,t){return(new a).fromBinary(n,t)}static fromJson(n,t){return(new a).fromJson(n,t)}static fromJsonString(n,t){return(new a).fromJsonString(n,t)}static equals(n,i){return t.util.equals(a,n,i)}}export{a as MatchedCandidate};
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- var e,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,i=(e,i,t,u)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let a of s(i))p.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_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("./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,s=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,i=(e,i,t,u)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let a of s(i))p.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_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);
package/dist/index.d.cts CHANGED
@@ -18,6 +18,7 @@ export { OpportunityMessage } from './daily-api/pubsub/opportunity_pb.cjs';
18
18
  export { Briefing, BriefingItem, BriefingSection, BriefingStatistics, UserBriefingRequest } from './feed/briefing/briefing_pb.cjs';
19
19
  export { Request, Response } from './feed/personalised/personalised_pb.cjs';
20
20
  export { EntryMetadata, ServerSideEvent } from './feed/server_side_event/server_side_event_pb.cjs';
21
+ export { MatchedCandidate } from './gondul/candidates_pb.cjs';
21
22
  export { BoolFilter, Filter, Operation, Order, Quantifier, SearchRequest, SearchResponse, SearchResult, Sort, StringListFilter, TimeRangeFilter } from './mimir/search/search_pb.cjs';
22
23
  export { Credits } from './njord/transactions_connect.cjs';
23
24
  export { BalanceChange, Currency, EntityType, FeeResult, GetBalanceRequest, GetBalanceResponse, Transfer, TransferFee, TransferParticipant, TransferRequest, TransferResponse, TransferResult, TransferStatus, TransferType, UserAccount } from './njord/transactions_pb.cjs';
package/dist/index.d.ts CHANGED
@@ -18,6 +18,7 @@ export { OpportunityMessage } from './daily-api/pubsub/opportunity_pb.js';
18
18
  export { Briefing, BriefingItem, BriefingSection, BriefingStatistics, UserBriefingRequest } from './feed/briefing/briefing_pb.js';
19
19
  export { Request, Response } from './feed/personalised/personalised_pb.js';
20
20
  export { EntryMetadata, ServerSideEvent } from './feed/server_side_event/server_side_event_pb.js';
21
+ export { MatchedCandidate } from './gondul/candidates_pb.js';
21
22
  export { BoolFilter, Filter, Operation, Order, Quantifier, SearchRequest, SearchResponse, SearchResult, Sort, StringListFilter, TimeRangeFilter } from './mimir/search/search_pb.js';
22
23
  export { Credits } from './njord/transactions_connect.js';
23
24
  export { BalanceChange, Currency, EntityType, FeeResult, GetBalanceRequest, GetBalanceResponse, Transfer, TransferFee, TransferParticipant, TransferRequest, TransferResponse, TransferResult, TransferStatus, TransferType, UserAccount } from './njord/transactions_pb.js';
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_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"./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_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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dailydotdev/schema",
3
- "version": "0.2.25",
3
+ "version": "0.2.27",
4
4
  "author": "@dailydotdev",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",