@dailydotdev/schema 0.2.11 → 0.2.14
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/bragi/pipelines_connect.cjs +1 -1
- package/dist/bragi/pipelines_connect.d.cts +78 -1
- package/dist/bragi/pipelines_connect.d.ts +78 -1
- package/dist/bragi/pipelines_connect.js +1 -1
- package/dist/bragi/pipelines_pb.cjs +1 -1
- package/dist/bragi/pipelines_pb.d.cts +244 -1
- package/dist/bragi/pipelines_pb.d.ts +244 -1
- package/dist/bragi/pipelines_pb.js +1 -1
- package/dist/bragi/proxy_pb.cjs +1 -1
- package/dist/bragi/proxy_pb.d.cts +9 -1
- package/dist/bragi/proxy_pb.d.ts +9 -1
- package/dist/bragi/proxy_pb.js +1 -1
- 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/mimir/search/search_pb.cjs +1 -0
- package/dist/mimir/search/search_pb.d.cts +72 -0
- package/dist/mimir/search/search_pb.d.ts +72 -0
- package/dist/mimir/search/search_pb.js +1 -0
- package/dist/njord/transactions_pb.cjs +1 -1
- package/dist/njord/transactions_pb.d.cts +6 -0
- package/dist/njord/transactions_pb.d.ts +6 -0
- package/dist/njord/transactions_pb.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,72 @@
|
|
|
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 search.SearchRequest
|
|
6
|
+
*/
|
|
7
|
+
declare class SearchRequest extends Message<SearchRequest> {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from field: string query = 1;
|
|
10
|
+
*/
|
|
11
|
+
query: string;
|
|
12
|
+
/**
|
|
13
|
+
* @generated from field: int32 version = 2;
|
|
14
|
+
*/
|
|
15
|
+
version: number;
|
|
16
|
+
/**
|
|
17
|
+
* @generated from field: int32 offset = 3;
|
|
18
|
+
*/
|
|
19
|
+
offset: number;
|
|
20
|
+
/**
|
|
21
|
+
* @generated from field: int32 limit = 4;
|
|
22
|
+
*/
|
|
23
|
+
limit: number;
|
|
24
|
+
constructor(data?: PartialMessage<SearchRequest>);
|
|
25
|
+
static readonly runtime: typeof proto3;
|
|
26
|
+
static readonly typeName = "search.SearchRequest";
|
|
27
|
+
static readonly fields: FieldList;
|
|
28
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchRequest;
|
|
29
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchRequest;
|
|
30
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchRequest;
|
|
31
|
+
static equals(a: SearchRequest | PlainMessage<SearchRequest> | undefined, b: SearchRequest | PlainMessage<SearchRequest> | undefined): boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @generated from message search.SearchResponse
|
|
35
|
+
*/
|
|
36
|
+
declare class SearchResponse extends Message<SearchResponse> {
|
|
37
|
+
/**
|
|
38
|
+
* @generated from field: repeated search.SearchResult result = 1;
|
|
39
|
+
*/
|
|
40
|
+
result: SearchResult[];
|
|
41
|
+
/**
|
|
42
|
+
* @generated from field: repeated util.Error error = 2;
|
|
43
|
+
*/
|
|
44
|
+
error: Error[];
|
|
45
|
+
constructor(data?: PartialMessage<SearchResponse>);
|
|
46
|
+
static readonly runtime: typeof proto3;
|
|
47
|
+
static readonly typeName = "search.SearchResponse";
|
|
48
|
+
static readonly fields: FieldList;
|
|
49
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchResponse;
|
|
50
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchResponse;
|
|
51
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchResponse;
|
|
52
|
+
static equals(a: SearchResponse | PlainMessage<SearchResponse> | undefined, b: SearchResponse | PlainMessage<SearchResponse> | undefined): boolean;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @generated from message search.SearchResult
|
|
56
|
+
*/
|
|
57
|
+
declare class SearchResult extends Message<SearchResult> {
|
|
58
|
+
/**
|
|
59
|
+
* @generated from field: string post_id = 1;
|
|
60
|
+
*/
|
|
61
|
+
postId: string;
|
|
62
|
+
constructor(data?: PartialMessage<SearchResult>);
|
|
63
|
+
static readonly runtime: typeof proto3;
|
|
64
|
+
static readonly typeName = "search.SearchResult";
|
|
65
|
+
static readonly fields: FieldList;
|
|
66
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchResult;
|
|
67
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchResult;
|
|
68
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchResult;
|
|
69
|
+
static equals(a: SearchResult | PlainMessage<SearchResult> | undefined, b: SearchResult | PlainMessage<SearchResult> | undefined): boolean;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { SearchRequest, SearchResponse, SearchResult };
|
|
@@ -0,0 +1,72 @@
|
|
|
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 search.SearchRequest
|
|
6
|
+
*/
|
|
7
|
+
declare class SearchRequest extends Message<SearchRequest> {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from field: string query = 1;
|
|
10
|
+
*/
|
|
11
|
+
query: string;
|
|
12
|
+
/**
|
|
13
|
+
* @generated from field: int32 version = 2;
|
|
14
|
+
*/
|
|
15
|
+
version: number;
|
|
16
|
+
/**
|
|
17
|
+
* @generated from field: int32 offset = 3;
|
|
18
|
+
*/
|
|
19
|
+
offset: number;
|
|
20
|
+
/**
|
|
21
|
+
* @generated from field: int32 limit = 4;
|
|
22
|
+
*/
|
|
23
|
+
limit: number;
|
|
24
|
+
constructor(data?: PartialMessage<SearchRequest>);
|
|
25
|
+
static readonly runtime: typeof proto3;
|
|
26
|
+
static readonly typeName = "search.SearchRequest";
|
|
27
|
+
static readonly fields: FieldList;
|
|
28
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchRequest;
|
|
29
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchRequest;
|
|
30
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchRequest;
|
|
31
|
+
static equals(a: SearchRequest | PlainMessage<SearchRequest> | undefined, b: SearchRequest | PlainMessage<SearchRequest> | undefined): boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @generated from message search.SearchResponse
|
|
35
|
+
*/
|
|
36
|
+
declare class SearchResponse extends Message<SearchResponse> {
|
|
37
|
+
/**
|
|
38
|
+
* @generated from field: repeated search.SearchResult result = 1;
|
|
39
|
+
*/
|
|
40
|
+
result: SearchResult[];
|
|
41
|
+
/**
|
|
42
|
+
* @generated from field: repeated util.Error error = 2;
|
|
43
|
+
*/
|
|
44
|
+
error: Error[];
|
|
45
|
+
constructor(data?: PartialMessage<SearchResponse>);
|
|
46
|
+
static readonly runtime: typeof proto3;
|
|
47
|
+
static readonly typeName = "search.SearchResponse";
|
|
48
|
+
static readonly fields: FieldList;
|
|
49
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchResponse;
|
|
50
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchResponse;
|
|
51
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchResponse;
|
|
52
|
+
static equals(a: SearchResponse | PlainMessage<SearchResponse> | undefined, b: SearchResponse | PlainMessage<SearchResponse> | undefined): boolean;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @generated from message search.SearchResult
|
|
56
|
+
*/
|
|
57
|
+
declare class SearchResult extends Message<SearchResult> {
|
|
58
|
+
/**
|
|
59
|
+
* @generated from field: string post_id = 1;
|
|
60
|
+
*/
|
|
61
|
+
postId: string;
|
|
62
|
+
constructor(data?: PartialMessage<SearchResult>);
|
|
63
|
+
static readonly runtime: typeof proto3;
|
|
64
|
+
static readonly typeName = "search.SearchResult";
|
|
65
|
+
static readonly fields: FieldList;
|
|
66
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchResult;
|
|
67
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchResult;
|
|
68
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchResult;
|
|
69
|
+
static equals(a: SearchResult | PlainMessage<SearchResult> | undefined, b: SearchResult | PlainMessage<SearchResult> | undefined): boolean;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { SearchRequest, SearchResponse, SearchResult };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Message as t,proto3 as r}from"@bufbuild/protobuf";import{Error as e}from"../../util/error_pb.ts";class s extends t{query="";version=0;offset=0;limit=0;constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="search.SearchRequest";static fields=r.util.newFieldList((()=>[{no:1,name:"query",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5},{no:3,name:"offset",kind:"scalar",T:5},{no:4,name:"limit",kind:"scalar",T:5}]));static fromBinary(t,r){return(new s).fromBinary(t,r)}static fromJson(t,r){return(new s).fromJson(t,r)}static fromJsonString(t,r){return(new s).fromJsonString(t,r)}static equals(t,e){return r.util.equals(s,t,e)}}class i extends t{result=[];error=[];constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="search.SearchResponse";static fields=r.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:n,repeated:!0},{no:2,name:"error",kind:"message",T:e,repeated:!0}]));static fromBinary(t,r){return(new i).fromBinary(t,r)}static fromJson(t,r){return(new i).fromJson(t,r)}static fromJsonString(t,r){return(new i).fromJsonString(t,r)}static equals(t,e){return r.util.equals(i,t,e)}}class n extends t{postId="";constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="search.SearchResult";static fields=r.util.newFieldList((()=>[{no:1,name:"post_id",kind:"scalar",T:9}]));static fromBinary(t,r){return(new n).fromBinary(t,r)}static fromJson(t,r){return(new n).fromJson(t,r)}static fromJsonString(t,r){return(new n).fromJsonString(t,r)}static equals(t,e){return r.util.equals(n,t,e)}}export{s as SearchRequest,i as SearchResponse,n as SearchResult};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t,e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,a={};((t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})})(a,{BalanceChange:()=>T,Currency:()=>i,EntityType:()=>u,FeeResult:()=>y,GetBalanceRequest:()=>
|
|
1
|
+
var t,e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,a={};((t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})})(a,{BalanceChange:()=>T,Currency:()=>i,EntityType:()=>u,FeeResult:()=>y,GetBalanceRequest:()=>E,GetBalanceResponse:()=>J,Transfer:()=>d,TransferFee:()=>p,TransferParticipant:()=>l,TransferRequest:()=>f,TransferResponse:()=>S,TransferResult:()=>g,TransferStatus:()=>m,TransferType:()=>c,UserAccount:()=>w}),module.exports=(t=a,((t,a,o,i)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let c of r(a))s.call(t,c)||c===o||e(t,c,{get:()=>a[c],enumerable:!(i=n(a,c))||i.enumerable});return t})(e({},"__esModule",{value:!0}),t));var o=require("@bufbuild/protobuf"),i=(t=>(t[t.CORES=0]="CORES",t))(i||{});o.proto3.util.setEnumType(i,"njord.transactions.Currency",[{no:0,name:"CORES"}]);var c=(t=>(t[t.TRANSFER=0]="TRANSFER",t[t.FEE=1]="FEE",t))(c||{});o.proto3.util.setEnumType(c,"njord.transactions.TransferType",[{no:0,name:"TRANSFER"},{no:1,name:"FEE"}]);var u=(t=>(t[t.SYSTEM=0]="SYSTEM",t[t.USER=1]="USER",t))(u||{});o.proto3.util.setEnumType(u,"njord.transactions.EntityType",[{no:0,name:"SYSTEM"},{no:1,name:"USER"}]);var m=(t=>(t[t.SUCCESS=0]="SUCCESS",t[t.INSUFFICIENT_FUNDS=1]="INSUFFICIENT_FUNDS",t[t.RATE_LIMITED=2]="RATE_LIMITED",t[t.INTERNAL_ERROR=100]="INTERNAL_ERROR",t))(m||{});o.proto3.util.setEnumType(m,"njord.transactions.TransferStatus",[{no:0,name:"SUCCESS"},{no:1,name:"INSUFFICIENT_FUNDS"},{no:2,name:"RATE_LIMITED"},{no:100,name:"INTERNAL_ERROR"}]);class l extends o.Message{type=0;id="";constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="njord.transactions.TransferParticipant";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"type",kind:"enum",T:o.proto3.getEnumType(u)},{no:2,name:"id",kind:"scalar",T:9}]));static fromBinary(t,e){return(new l).fromBinary(t,e)}static fromJson(t,e){return(new l).fromJson(t,e)}static fromJsonString(t,e){return(new l).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(l,t,e)}}class p extends o.Message{percentage=0;constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="njord.transactions.TransferFee";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"percentage",kind:"scalar",T:5}]));static fromBinary(t,e){return(new p).fromBinary(t,e)}static fromJson(t,e){return(new p).fromJson(t,e)}static fromJsonString(t,e){return(new p).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(p,t,e)}}class d extends o.Message{sender;receiver;currency=0;amount=o.protoInt64.zero;transferType=0;description="";allowNegative=!1;fee;constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="njord.transactions.Transfer";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"sender",kind:"message",T:l},{no:2,name:"receiver",kind:"message",T:l},{no:3,name:"currency",kind:"enum",T:o.proto3.getEnumType(i)},{no:4,name:"amount",kind:"scalar",T:3},{no:5,name:"transfer_type",kind:"enum",T:o.proto3.getEnumType(c)},{no:6,name:"description",kind:"scalar",T:9},{no:7,name:"allow_negative",kind:"scalar",T:8},{no:8,name:"fee",kind:"message",T:p}]));static fromBinary(t,e){return(new d).fromBinary(t,e)}static fromJson(t,e){return(new d).fromJson(t,e)}static fromJsonString(t,e){return(new d).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(d,t,e)}}class f extends o.Message{idempotencyKey="";transfers=[];constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="njord.transactions.TransferRequest";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"idempotency_key",kind:"scalar",T:9},{no:2,name:"transfers",kind:"message",T:d,repeated:!0}]));static fromBinary(t,e){return(new f).fromBinary(t,e)}static fromJson(t,e){return(new f).fromJson(t,e)}static fromJsonString(t,e){return(new f).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(f,t,e)}}class T extends o.Message{previousBalance=o.protoInt64.zero;newBalance=o.protoInt64.zero;changeAmount=o.protoInt64.zero;constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="njord.transactions.BalanceChange";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"previous_balance",kind:"scalar",T:3},{no:2,name:"new_balance",kind:"scalar",T:3},{no:3,name:"change_amount",kind:"scalar",T:3}]));static fromBinary(t,e){return(new T).fromBinary(t,e)}static fromJson(t,e){return(new T).fromJson(t,e)}static fromJsonString(t,e){return(new T).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(T,t,e)}}class y extends o.Message{calculatedFee=o.protoInt64.zero;originFee;constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="njord.transactions.FeeResult";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"calculated_fee",kind:"scalar",T:3},{no:2,name:"origin_fee",kind:"message",T:p}]));static fromBinary(t,e){return(new y).fromBinary(t,e)}static fromJson(t,e){return(new y).fromJson(t,e)}static fromJsonString(t,e){return(new y).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(y,t,e)}}class g extends o.Message{id="";senderId="";receiverId="";currency=0;senderBalance;receiverBalance;transferType=0;description="";fee;constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="njord.transactions.TransferResult";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"sender_id",kind:"scalar",T:9},{no:3,name:"receiver_id",kind:"scalar",T:9},{no:4,name:"currency",kind:"enum",T:o.proto3.getEnumType(i)},{no:5,name:"sender_balance",kind:"message",T:T},{no:6,name:"receiver_balance",kind:"message",T:T},{no:7,name:"transfer_type",kind:"enum",T:o.proto3.getEnumType(c)},{no:8,name:"description",kind:"scalar",T:9},{no:9,name:"fee",kind:"message",T:y}]));static fromBinary(t,e){return(new g).fromBinary(t,e)}static fromJson(t,e){return(new g).fromJson(t,e)}static fromJsonString(t,e){return(new g).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(g,t,e)}}class S extends o.Message{idempotencyKey="";status=0;errorMessage="";results=[];timestamp=o.protoInt64.zero;constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="njord.transactions.TransferResponse";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"idempotency_key",kind:"scalar",T:9},{no:2,name:"status",kind:"enum",T:o.proto3.getEnumType(m)},{no:3,name:"error_message",kind:"scalar",T:9},{no:4,name:"results",kind:"message",T:g,repeated:!0},{no:5,name:"timestamp",kind:"scalar",T:3}]));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,e){return o.proto3.util.equals(S,t,e)}}class w extends o.Message{userId="";currency=0;constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="njord.transactions.UserAccount";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"currency",kind:"enum",T:o.proto3.getEnumType(i)}]));static fromBinary(t,e){return(new w).fromBinary(t,e)}static fromJson(t,e){return(new w).fromJson(t,e)}static fromJsonString(t,e){return(new w).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(w,t,e)}}class E extends o.Message{account;constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="njord.transactions.GetBalanceRequest";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"account",kind:"message",T:w}]));static fromBinary(t,e){return(new E).fromBinary(t,e)}static fromJson(t,e){return(new E).fromJson(t,e)}static fromJsonString(t,e){return(new E).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(E,t,e)}}class J extends o.Message{amount=o.protoInt64.zero;constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="njord.transactions.GetBalanceResponse";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"amount",kind:"scalar",T:3}]));static fromBinary(t,e){return(new J).fromBinary(t,e)}static fromJson(t,e){return(new J).fromJson(t,e)}static fromJsonString(t,e){return(new J).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(J,t,e)}}
|
|
@@ -55,6 +55,12 @@ declare enum TransferStatus {
|
|
|
55
55
|
* @generated from enum value: INSUFFICIENT_FUNDS = 1;
|
|
56
56
|
*/
|
|
57
57
|
INSUFFICIENT_FUNDS = 1,
|
|
58
|
+
/**
|
|
59
|
+
* limited by max amount or amount per time period
|
|
60
|
+
*
|
|
61
|
+
* @generated from enum value: RATE_LIMITED = 2;
|
|
62
|
+
*/
|
|
63
|
+
RATE_LIMITED = 2,
|
|
58
64
|
/**
|
|
59
65
|
* Technical failures
|
|
60
66
|
*
|
|
@@ -55,6 +55,12 @@ declare enum TransferStatus {
|
|
|
55
55
|
* @generated from enum value: INSUFFICIENT_FUNDS = 1;
|
|
56
56
|
*/
|
|
57
57
|
INSUFFICIENT_FUNDS = 1,
|
|
58
|
+
/**
|
|
59
|
+
* limited by max amount or amount per time period
|
|
60
|
+
*
|
|
61
|
+
* @generated from enum value: RATE_LIMITED = 2;
|
|
62
|
+
*/
|
|
63
|
+
RATE_LIMITED = 2,
|
|
58
64
|
/**
|
|
59
65
|
* Technical failures
|
|
60
66
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Message as n,proto3 as t,protoInt64 as e}from"@bufbuild/protobuf";var r=(n=>(n[n.CORES=0]="CORES",n))(r||{});t.util.setEnumType(r,"njord.transactions.Currency",[{no:0,name:"CORES"}]);var a=(n=>(n[n.TRANSFER=0]="TRANSFER",n[n.FEE=1]="FEE",n))(a||{});t.util.setEnumType(a,"njord.transactions.TransferType",[{no:0,name:"TRANSFER"},{no:1,name:"FEE"}]);var s=(n=>(n[n.SYSTEM=0]="SYSTEM",n[n.USER=1]="USER",n))(s||{});t.util.setEnumType(s,"njord.transactions.EntityType",[{no:0,name:"SYSTEM"},{no:1,name:"USER"}]);var i=(n=>(n[n.SUCCESS=0]="SUCCESS",n[n.INSUFFICIENT_FUNDS=1]="INSUFFICIENT_FUNDS",n[n.INTERNAL_ERROR=100]="INTERNAL_ERROR",n))(i||{});t.util.setEnumType(i,"njord.transactions.TransferStatus",[{no:0,name:"SUCCESS"},{no:1,name:"INSUFFICIENT_FUNDS"},{no:100,name:"INTERNAL_ERROR"}]);class o extends n{type=0;id="";constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.TransferParticipant";static fields=t.util.newFieldList((()=>[{no:1,name:"type",kind:"enum",T:t.getEnumType(s)},{no:2,name:"id",kind:"scalar",T:9}]));static fromBinary(n,t){return(new o).fromBinary(n,t)}static fromJson(n,t){return(new o).fromJson(n,t)}static fromJsonString(n,t){return(new o).fromJsonString(n,t)}static equals(n,e){return t.util.equals(o,n,e)}}class c extends n{percentage=0;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.TransferFee";static fields=t.util.newFieldList((()=>[{no:1,name:"percentage",kind:"scalar",T:5}]));static fromBinary(n,t){return(new c).fromBinary(n,t)}static fromJson(n,t){return(new c).fromJson(n,t)}static fromJsonString(n,t){return(new c).fromJsonString(n,t)}static equals(n,e){return t.util.equals(c,n,e)}}class u extends n{sender;receiver;currency=0;amount=e.zero;transferType=0;description="";allowNegative=!1;fee;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.Transfer";static fields=t.util.newFieldList((()=>[{no:1,name:"sender",kind:"message",T:o},{no:2,name:"receiver",kind:"message",T:o},{no:3,name:"currency",kind:"enum",T:t.getEnumType(r)},{no:4,name:"amount",kind:"scalar",T:3},{no:5,name:"transfer_type",kind:"enum",T:t.getEnumType(a)},{no:6,name:"description",kind:"scalar",T:9},{no:7,name:"allow_negative",kind:"scalar",T:8},{no:8,name:"fee",kind:"message",T:c}]));static fromBinary(n,t){return(new u).fromBinary(n,t)}static fromJson(n,t){return(new u).fromJson(n,t)}static fromJsonString(n,t){return(new u).fromJsonString(n,t)}static equals(n,e){return t.util.equals(u,n,e)}}class m extends n{idempotencyKey="";transfers=[];constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.TransferRequest";static fields=t.util.newFieldList((()=>[{no:1,name:"idempotency_key",kind:"scalar",T:9},{no:2,name:"transfers",kind:"message",T:u,repeated:!0}]));static fromBinary(n,t){return(new m).fromBinary(n,t)}static fromJson(n,t){return(new m).fromJson(n,t)}static fromJsonString(n,t){return(new m).fromJsonString(n,t)}static equals(n,e){return t.util.equals(m,n,e)}}class l extends n{previousBalance=e.zero;newBalance=e.zero;changeAmount=e.zero;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.BalanceChange";static fields=t.util.newFieldList((()=>[{no:1,name:"previous_balance",kind:"scalar",T:3},{no:2,name:"new_balance",kind:"scalar",T:3},{no:3,name:"change_amount",kind:"scalar",T:3}]));static fromBinary(n,t){return(new l).fromBinary(n,t)}static fromJson(n,t){return(new l).fromJson(n,t)}static fromJsonString(n,t){return(new l).fromJsonString(n,t)}static equals(n,e){return t.util.equals(l,n,e)}}class d extends n{calculatedFee=e.zero;originFee;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.FeeResult";static fields=t.util.newFieldList((()=>[{no:1,name:"calculated_fee",kind:"scalar",T:3},{no:2,name:"origin_fee",kind:"message",T:c}]));static fromBinary(n,t){return(new d).fromBinary(n,t)}static fromJson(n,t){return(new d).fromJson(n,t)}static fromJsonString(n,t){return(new d).fromJsonString(n,t)}static equals(n,e){return t.util.equals(d,n,e)}}class f extends n{id="";senderId="";receiverId="";currency=0;senderBalance;receiverBalance;transferType=0;description="";fee;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.TransferResult";static fields=t.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"sender_id",kind:"scalar",T:9},{no:3,name:"receiver_id",kind:"scalar",T:9},{no:4,name:"currency",kind:"enum",T:t.getEnumType(r)},{no:5,name:"sender_balance",kind:"message",T:l},{no:6,name:"receiver_balance",kind:"message",T:l},{no:7,name:"transfer_type",kind:"enum",T:t.getEnumType(a)},{no:8,name:"description",kind:"scalar",T:9},{no:9,name:"fee",kind:"message",T:d}]));static fromBinary(n,t){return(new f).fromBinary(n,t)}static fromJson(n,t){return(new f).fromJson(n,t)}static fromJsonString(n,t){return(new f).fromJsonString(n,t)}static equals(n,e){return t.util.equals(f,n,e)}}class T extends n{idempotencyKey="";status=0;errorMessage="";results=[];timestamp=e.zero;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.TransferResponse";static fields=t.util.newFieldList((()=>[{no:1,name:"idempotency_key",kind:"scalar",T:9},{no:2,name:"status",kind:"enum",T:t.getEnumType(i)},{no:3,name:"error_message",kind:"scalar",T:9},{no:4,name:"results",kind:"message",T:f,repeated:!0},{no:5,name:"timestamp",kind:"scalar",T:3}]));static fromBinary(n,t){return(new T).fromBinary(n,t)}static fromJson(n,t){return(new T).fromJson(n,t)}static fromJsonString(n,t){return(new T).fromJsonString(n,t)}static equals(n,e){return t.util.equals(T,n,e)}}class y extends n{userId="";currency=0;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.UserAccount";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"currency",kind:"enum",T:t.getEnumType(r)}]));static fromBinary(n,t){return(new y).fromBinary(n,t)}static fromJson(n,t){return(new y).fromJson(n,t)}static fromJsonString(n,t){return(new y).fromJsonString(n,t)}static equals(n,e){return t.util.equals(y,n,e)}}class p extends n{account;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.GetBalanceRequest";static fields=t.util.newFieldList((()=>[{no:1,name:"account",kind:"message",T:y}]));static fromBinary(n,t){return(new p).fromBinary(n,t)}static fromJson(n,t){return(new p).fromJson(n,t)}static fromJsonString(n,t){return(new p).fromJsonString(n,t)}static equals(n,e){return t.util.equals(p,n,e)}}class S extends n{amount=e.zero;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.GetBalanceResponse";static fields=t.util.newFieldList((()=>[{no:1,name:"amount",kind:"scalar",T:3}]));static fromBinary(n,t){return(new S).fromBinary(n,t)}static fromJson(n,t){return(new S).fromJson(n,t)}static fromJsonString(n,t){return(new S).fromJsonString(n,t)}static equals(n,e){return t.util.equals(S,n,e)}}export{l as BalanceChange,r as Currency,s as EntityType,d as FeeResult,p as GetBalanceRequest,S as GetBalanceResponse,u as Transfer,c as TransferFee,o as TransferParticipant,m as TransferRequest,T as TransferResponse,f as TransferResult,i as TransferStatus,a as TransferType,y as UserAccount};
|
|
1
|
+
import{Message as n,proto3 as t,protoInt64 as e}from"@bufbuild/protobuf";var r=(n=>(n[n.CORES=0]="CORES",n))(r||{});t.util.setEnumType(r,"njord.transactions.Currency",[{no:0,name:"CORES"}]);var a=(n=>(n[n.TRANSFER=0]="TRANSFER",n[n.FEE=1]="FEE",n))(a||{});t.util.setEnumType(a,"njord.transactions.TransferType",[{no:0,name:"TRANSFER"},{no:1,name:"FEE"}]);var s=(n=>(n[n.SYSTEM=0]="SYSTEM",n[n.USER=1]="USER",n))(s||{});t.util.setEnumType(s,"njord.transactions.EntityType",[{no:0,name:"SYSTEM"},{no:1,name:"USER"}]);var i=(n=>(n[n.SUCCESS=0]="SUCCESS",n[n.INSUFFICIENT_FUNDS=1]="INSUFFICIENT_FUNDS",n[n.RATE_LIMITED=2]="RATE_LIMITED",n[n.INTERNAL_ERROR=100]="INTERNAL_ERROR",n))(i||{});t.util.setEnumType(i,"njord.transactions.TransferStatus",[{no:0,name:"SUCCESS"},{no:1,name:"INSUFFICIENT_FUNDS"},{no:2,name:"RATE_LIMITED"},{no:100,name:"INTERNAL_ERROR"}]);class o extends n{type=0;id="";constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.TransferParticipant";static fields=t.util.newFieldList((()=>[{no:1,name:"type",kind:"enum",T:t.getEnumType(s)},{no:2,name:"id",kind:"scalar",T:9}]));static fromBinary(n,t){return(new o).fromBinary(n,t)}static fromJson(n,t){return(new o).fromJson(n,t)}static fromJsonString(n,t){return(new o).fromJsonString(n,t)}static equals(n,e){return t.util.equals(o,n,e)}}class c extends n{percentage=0;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.TransferFee";static fields=t.util.newFieldList((()=>[{no:1,name:"percentage",kind:"scalar",T:5}]));static fromBinary(n,t){return(new c).fromBinary(n,t)}static fromJson(n,t){return(new c).fromJson(n,t)}static fromJsonString(n,t){return(new c).fromJsonString(n,t)}static equals(n,e){return t.util.equals(c,n,e)}}class u extends n{sender;receiver;currency=0;amount=e.zero;transferType=0;description="";allowNegative=!1;fee;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.Transfer";static fields=t.util.newFieldList((()=>[{no:1,name:"sender",kind:"message",T:o},{no:2,name:"receiver",kind:"message",T:o},{no:3,name:"currency",kind:"enum",T:t.getEnumType(r)},{no:4,name:"amount",kind:"scalar",T:3},{no:5,name:"transfer_type",kind:"enum",T:t.getEnumType(a)},{no:6,name:"description",kind:"scalar",T:9},{no:7,name:"allow_negative",kind:"scalar",T:8},{no:8,name:"fee",kind:"message",T:c}]));static fromBinary(n,t){return(new u).fromBinary(n,t)}static fromJson(n,t){return(new u).fromJson(n,t)}static fromJsonString(n,t){return(new u).fromJsonString(n,t)}static equals(n,e){return t.util.equals(u,n,e)}}class m extends n{idempotencyKey="";transfers=[];constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.TransferRequest";static fields=t.util.newFieldList((()=>[{no:1,name:"idempotency_key",kind:"scalar",T:9},{no:2,name:"transfers",kind:"message",T:u,repeated:!0}]));static fromBinary(n,t){return(new m).fromBinary(n,t)}static fromJson(n,t){return(new m).fromJson(n,t)}static fromJsonString(n,t){return(new m).fromJsonString(n,t)}static equals(n,e){return t.util.equals(m,n,e)}}class l extends n{previousBalance=e.zero;newBalance=e.zero;changeAmount=e.zero;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.BalanceChange";static fields=t.util.newFieldList((()=>[{no:1,name:"previous_balance",kind:"scalar",T:3},{no:2,name:"new_balance",kind:"scalar",T:3},{no:3,name:"change_amount",kind:"scalar",T:3}]));static fromBinary(n,t){return(new l).fromBinary(n,t)}static fromJson(n,t){return(new l).fromJson(n,t)}static fromJsonString(n,t){return(new l).fromJsonString(n,t)}static equals(n,e){return t.util.equals(l,n,e)}}class d extends n{calculatedFee=e.zero;originFee;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.FeeResult";static fields=t.util.newFieldList((()=>[{no:1,name:"calculated_fee",kind:"scalar",T:3},{no:2,name:"origin_fee",kind:"message",T:c}]));static fromBinary(n,t){return(new d).fromBinary(n,t)}static fromJson(n,t){return(new d).fromJson(n,t)}static fromJsonString(n,t){return(new d).fromJsonString(n,t)}static equals(n,e){return t.util.equals(d,n,e)}}class f extends n{id="";senderId="";receiverId="";currency=0;senderBalance;receiverBalance;transferType=0;description="";fee;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.TransferResult";static fields=t.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"sender_id",kind:"scalar",T:9},{no:3,name:"receiver_id",kind:"scalar",T:9},{no:4,name:"currency",kind:"enum",T:t.getEnumType(r)},{no:5,name:"sender_balance",kind:"message",T:l},{no:6,name:"receiver_balance",kind:"message",T:l},{no:7,name:"transfer_type",kind:"enum",T:t.getEnumType(a)},{no:8,name:"description",kind:"scalar",T:9},{no:9,name:"fee",kind:"message",T:d}]));static fromBinary(n,t){return(new f).fromBinary(n,t)}static fromJson(n,t){return(new f).fromJson(n,t)}static fromJsonString(n,t){return(new f).fromJsonString(n,t)}static equals(n,e){return t.util.equals(f,n,e)}}class T extends n{idempotencyKey="";status=0;errorMessage="";results=[];timestamp=e.zero;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.TransferResponse";static fields=t.util.newFieldList((()=>[{no:1,name:"idempotency_key",kind:"scalar",T:9},{no:2,name:"status",kind:"enum",T:t.getEnumType(i)},{no:3,name:"error_message",kind:"scalar",T:9},{no:4,name:"results",kind:"message",T:f,repeated:!0},{no:5,name:"timestamp",kind:"scalar",T:3}]));static fromBinary(n,t){return(new T).fromBinary(n,t)}static fromJson(n,t){return(new T).fromJson(n,t)}static fromJsonString(n,t){return(new T).fromJsonString(n,t)}static equals(n,e){return t.util.equals(T,n,e)}}class y extends n{userId="";currency=0;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.UserAccount";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"currency",kind:"enum",T:t.getEnumType(r)}]));static fromBinary(n,t){return(new y).fromBinary(n,t)}static fromJson(n,t){return(new y).fromJson(n,t)}static fromJsonString(n,t){return(new y).fromJsonString(n,t)}static equals(n,e){return t.util.equals(y,n,e)}}class p extends n{account;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.GetBalanceRequest";static fields=t.util.newFieldList((()=>[{no:1,name:"account",kind:"message",T:y}]));static fromBinary(n,t){return(new p).fromBinary(n,t)}static fromJson(n,t){return(new p).fromJson(n,t)}static fromJsonString(n,t){return(new p).fromJsonString(n,t)}static equals(n,e){return t.util.equals(p,n,e)}}class S extends n{amount=e.zero;constructor(n){super(),t.util.initPartial(n,this)}static runtime=t;static typeName="njord.transactions.GetBalanceResponse";static fields=t.util.newFieldList((()=>[{no:1,name:"amount",kind:"scalar",T:3}]));static fromBinary(n,t){return(new S).fromBinary(n,t)}static fromJson(n,t){return(new S).fromJson(n,t)}static fromJsonString(n,t){return(new S).fromJsonString(n,t)}static equals(n,e){return t.util.equals(S,n,e)}}export{l as BalanceChange,r as Currency,s as EntityType,d as FeeResult,p as GetBalanceRequest,S as GetBalanceResponse,u as Transfer,c as TransferFee,o as TransferParticipant,m as TransferRequest,T as TransferResponse,f as TransferResult,i as TransferStatus,a as TransferType,y as UserAccount};
|