@stashfin/grpc 1.2.709 → 1.2.710
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/package.json +1 -1
- package/ts/growth/getchrreportdata.d.ts +1 -0
- package/ts/growth/getchrreportdata.js +15 -0
- package/ts/growth/getchrvideourl.d.ts +35 -0
- package/ts/growth/getchrvideourl.js +117 -0
- package/ts/growth.d.ts +14 -0
- package/ts/growth.js +10 -0
package/package.json
CHANGED
|
@@ -73,6 +73,7 @@ export interface chrReportDataResponse {
|
|
|
73
73
|
enquiries_data: EnquiriesData[];
|
|
74
74
|
enquiries?: Enquiries | undefined;
|
|
75
75
|
oldest_credit_card?: TradeLineData | undefined;
|
|
76
|
+
pull_date?: string | undefined;
|
|
76
77
|
}
|
|
77
78
|
export declare const chrReportDataRequest: {
|
|
78
79
|
encode(message: chrReportDataRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -1046,6 +1046,7 @@ function createBasechrReportDataResponse() {
|
|
|
1046
1046
|
enquiries_data: [],
|
|
1047
1047
|
enquiries: undefined,
|
|
1048
1048
|
oldest_credit_card: undefined,
|
|
1049
|
+
pull_date: undefined,
|
|
1049
1050
|
};
|
|
1050
1051
|
}
|
|
1051
1052
|
exports.chrReportDataResponse = {
|
|
@@ -1071,6 +1072,9 @@ exports.chrReportDataResponse = {
|
|
|
1071
1072
|
if (message.oldest_credit_card !== undefined) {
|
|
1072
1073
|
exports.TradeLineData.encode(message.oldest_credit_card, writer.uint32(58).fork()).ldelim();
|
|
1073
1074
|
}
|
|
1075
|
+
if (message.pull_date !== undefined) {
|
|
1076
|
+
writer.uint32(66).string(message.pull_date);
|
|
1077
|
+
}
|
|
1074
1078
|
return writer;
|
|
1075
1079
|
},
|
|
1076
1080
|
decode(input, length) {
|
|
@@ -1122,6 +1126,12 @@ exports.chrReportDataResponse = {
|
|
|
1122
1126
|
}
|
|
1123
1127
|
message.oldest_credit_card = exports.TradeLineData.decode(reader, reader.uint32());
|
|
1124
1128
|
continue;
|
|
1129
|
+
case 8:
|
|
1130
|
+
if (tag !== 66) {
|
|
1131
|
+
break;
|
|
1132
|
+
}
|
|
1133
|
+
message.pull_date = reader.string();
|
|
1134
|
+
continue;
|
|
1125
1135
|
}
|
|
1126
1136
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1127
1137
|
break;
|
|
@@ -1147,6 +1157,7 @@ exports.chrReportDataResponse = {
|
|
|
1147
1157
|
oldest_credit_card: isSet(object.oldest_credit_card)
|
|
1148
1158
|
? exports.TradeLineData.fromJSON(object.oldest_credit_card)
|
|
1149
1159
|
: undefined,
|
|
1160
|
+
pull_date: isSet(object.pull_date) ? globalThis.String(object.pull_date) : undefined,
|
|
1150
1161
|
};
|
|
1151
1162
|
},
|
|
1152
1163
|
toJSON(message) {
|
|
@@ -1172,6 +1183,9 @@ exports.chrReportDataResponse = {
|
|
|
1172
1183
|
if (message.oldest_credit_card !== undefined) {
|
|
1173
1184
|
obj.oldest_credit_card = exports.TradeLineData.toJSON(message.oldest_credit_card);
|
|
1174
1185
|
}
|
|
1186
|
+
if (message.pull_date !== undefined) {
|
|
1187
|
+
obj.pull_date = message.pull_date;
|
|
1188
|
+
}
|
|
1175
1189
|
return obj;
|
|
1176
1190
|
},
|
|
1177
1191
|
create(base) {
|
|
@@ -1190,6 +1204,7 @@ exports.chrReportDataResponse = {
|
|
|
1190
1204
|
message.oldest_credit_card = (object.oldest_credit_card !== undefined && object.oldest_credit_card !== null)
|
|
1191
1205
|
? exports.TradeLineData.fromPartial(object.oldest_credit_card)
|
|
1192
1206
|
: undefined;
|
|
1207
|
+
message.pull_date = object.pull_date ?? undefined;
|
|
1193
1208
|
return message;
|
|
1194
1209
|
},
|
|
1195
1210
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "growth.getchrvideourl";
|
|
3
|
+
export interface chrVideoUrlReuest {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
}
|
|
6
|
+
export interface chrVideoUrlResponse {
|
|
7
|
+
video_url: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const chrVideoUrlReuest: {
|
|
10
|
+
encode(message: chrVideoUrlReuest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): chrVideoUrlReuest;
|
|
12
|
+
fromJSON(object: any): chrVideoUrlReuest;
|
|
13
|
+
toJSON(message: chrVideoUrlReuest): unknown;
|
|
14
|
+
create<I extends Exact<DeepPartial<chrVideoUrlReuest>, I>>(base?: I): chrVideoUrlReuest;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<chrVideoUrlReuest>, I>>(object: I): chrVideoUrlReuest;
|
|
16
|
+
};
|
|
17
|
+
export declare const chrVideoUrlResponse: {
|
|
18
|
+
encode(message: chrVideoUrlResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): chrVideoUrlResponse;
|
|
20
|
+
fromJSON(object: any): chrVideoUrlResponse;
|
|
21
|
+
toJSON(message: chrVideoUrlResponse): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<chrVideoUrlResponse>, I>>(base?: I): chrVideoUrlResponse;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<chrVideoUrlResponse>, I>>(object: I): chrVideoUrlResponse;
|
|
24
|
+
};
|
|
25
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
26
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
27
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
28
|
+
} : Partial<T>;
|
|
29
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
30
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
31
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
32
|
+
} & {
|
|
33
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.2
|
|
5
|
+
// protoc v5.29.3
|
|
6
|
+
// source: growth/getchrvideourl.proto
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.chrVideoUrlResponse = exports.chrVideoUrlReuest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "growth.getchrvideourl";
|
|
15
|
+
function createBasechrVideoUrlReuest() {
|
|
16
|
+
return { customer_id: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.chrVideoUrlReuest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.customer_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.customer_id);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBasechrVideoUrlReuest();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 8) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.customer_id = reader.int32();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
reader.skipType(tag & 7);
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0 };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.customer_id !== 0) {
|
|
52
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.chrVideoUrlReuest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBasechrVideoUrlReuest();
|
|
61
|
+
message.customer_id = object.customer_id ?? 0;
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBasechrVideoUrlResponse() {
|
|
66
|
+
return { video_url: "" };
|
|
67
|
+
}
|
|
68
|
+
exports.chrVideoUrlResponse = {
|
|
69
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
+
if (message.video_url !== "") {
|
|
71
|
+
writer.uint32(10).string(message.video_url);
|
|
72
|
+
}
|
|
73
|
+
return writer;
|
|
74
|
+
},
|
|
75
|
+
decode(input, length) {
|
|
76
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
+
const message = createBasechrVideoUrlResponse();
|
|
79
|
+
while (reader.pos < end) {
|
|
80
|
+
const tag = reader.uint32();
|
|
81
|
+
switch (tag >>> 3) {
|
|
82
|
+
case 1:
|
|
83
|
+
if (tag !== 10) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.video_url = reader.string();
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
reader.skipType(tag & 7);
|
|
93
|
+
}
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
fromJSON(object) {
|
|
97
|
+
return { video_url: isSet(object.video_url) ? globalThis.String(object.video_url) : "" };
|
|
98
|
+
},
|
|
99
|
+
toJSON(message) {
|
|
100
|
+
const obj = {};
|
|
101
|
+
if (message.video_url !== "") {
|
|
102
|
+
obj.video_url = message.video_url;
|
|
103
|
+
}
|
|
104
|
+
return obj;
|
|
105
|
+
},
|
|
106
|
+
create(base) {
|
|
107
|
+
return exports.chrVideoUrlResponse.fromPartial(base ?? {});
|
|
108
|
+
},
|
|
109
|
+
fromPartial(object) {
|
|
110
|
+
const message = createBasechrVideoUrlResponse();
|
|
111
|
+
message.video_url = object.video_url ?? "";
|
|
112
|
+
return message;
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
function isSet(value) {
|
|
116
|
+
return value !== null && value !== undefined;
|
|
117
|
+
}
|
package/ts/growth.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
2
|
import { chrPdfUrlRequest, chrPdfUrlResponse } from "./growth/getchrpdfurl";
|
|
3
3
|
import { chrReportDataRequest, chrReportDataResponse } from "./growth/getchrreportdata";
|
|
4
|
+
import { chrVideoUrlResponse, chrVideoUrlReuest } from "./growth/getchrvideourl";
|
|
4
5
|
export declare const protobufPackage = "service";
|
|
5
6
|
export type growthService = typeof growthService;
|
|
6
7
|
export declare const growthService: {
|
|
@@ -22,10 +23,20 @@ export declare const growthService: {
|
|
|
22
23
|
readonly responseSerialize: (value: chrPdfUrlResponse) => Buffer<ArrayBuffer>;
|
|
23
24
|
readonly responseDeserialize: (value: Buffer) => chrPdfUrlResponse;
|
|
24
25
|
};
|
|
26
|
+
readonly getChrVideoUrl: {
|
|
27
|
+
readonly path: "/service.growth/getChrVideoUrl";
|
|
28
|
+
readonly requestStream: false;
|
|
29
|
+
readonly responseStream: false;
|
|
30
|
+
readonly requestSerialize: (value: chrVideoUrlReuest) => Buffer<ArrayBuffer>;
|
|
31
|
+
readonly requestDeserialize: (value: Buffer) => chrVideoUrlReuest;
|
|
32
|
+
readonly responseSerialize: (value: chrVideoUrlResponse) => Buffer<ArrayBuffer>;
|
|
33
|
+
readonly responseDeserialize: (value: Buffer) => chrVideoUrlResponse;
|
|
34
|
+
};
|
|
25
35
|
};
|
|
26
36
|
export interface growthServer extends UntypedServiceImplementation {
|
|
27
37
|
getChrReport: handleUnaryCall<chrReportDataRequest, chrReportDataResponse>;
|
|
28
38
|
getChrPdfUrl: handleUnaryCall<chrPdfUrlRequest, chrPdfUrlResponse>;
|
|
39
|
+
getChrVideoUrl: handleUnaryCall<chrVideoUrlReuest, chrVideoUrlResponse>;
|
|
29
40
|
}
|
|
30
41
|
export interface growthClient extends Client {
|
|
31
42
|
getChrReport(request: chrReportDataRequest, callback: (error: ServiceError | null, response: chrReportDataResponse) => void): ClientUnaryCall;
|
|
@@ -34,6 +45,9 @@ export interface growthClient extends Client {
|
|
|
34
45
|
getChrPdfUrl(request: chrPdfUrlRequest, callback: (error: ServiceError | null, response: chrPdfUrlResponse) => void): ClientUnaryCall;
|
|
35
46
|
getChrPdfUrl(request: chrPdfUrlRequest, metadata: Metadata, callback: (error: ServiceError | null, response: chrPdfUrlResponse) => void): ClientUnaryCall;
|
|
36
47
|
getChrPdfUrl(request: chrPdfUrlRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: chrPdfUrlResponse) => void): ClientUnaryCall;
|
|
48
|
+
getChrVideoUrl(request: chrVideoUrlReuest, callback: (error: ServiceError | null, response: chrVideoUrlResponse) => void): ClientUnaryCall;
|
|
49
|
+
getChrVideoUrl(request: chrVideoUrlReuest, metadata: Metadata, callback: (error: ServiceError | null, response: chrVideoUrlResponse) => void): ClientUnaryCall;
|
|
50
|
+
getChrVideoUrl(request: chrVideoUrlReuest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: chrVideoUrlResponse) => void): ClientUnaryCall;
|
|
37
51
|
}
|
|
38
52
|
export declare const growthClient: {
|
|
39
53
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): growthClient;
|
package/ts/growth.js
CHANGED
|
@@ -10,6 +10,7 @@ exports.growthClient = exports.growthService = exports.protobufPackage = void 0;
|
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
11
|
const getchrpdfurl_1 = require("./growth/getchrpdfurl");
|
|
12
12
|
const getchrreportdata_1 = require("./growth/getchrreportdata");
|
|
13
|
+
const getchrvideourl_1 = require("./growth/getchrvideourl");
|
|
13
14
|
exports.protobufPackage = "service";
|
|
14
15
|
exports.growthService = {
|
|
15
16
|
getChrReport: {
|
|
@@ -30,5 +31,14 @@ exports.growthService = {
|
|
|
30
31
|
responseSerialize: (value) => Buffer.from(getchrpdfurl_1.chrPdfUrlResponse.encode(value).finish()),
|
|
31
32
|
responseDeserialize: (value) => getchrpdfurl_1.chrPdfUrlResponse.decode(value),
|
|
32
33
|
},
|
|
34
|
+
getChrVideoUrl: {
|
|
35
|
+
path: "/service.growth/getChrVideoUrl",
|
|
36
|
+
requestStream: false,
|
|
37
|
+
responseStream: false,
|
|
38
|
+
requestSerialize: (value) => Buffer.from(getchrvideourl_1.chrVideoUrlReuest.encode(value).finish()),
|
|
39
|
+
requestDeserialize: (value) => getchrvideourl_1.chrVideoUrlReuest.decode(value),
|
|
40
|
+
responseSerialize: (value) => Buffer.from(getchrvideourl_1.chrVideoUrlResponse.encode(value).finish()),
|
|
41
|
+
responseDeserialize: (value) => getchrvideourl_1.chrVideoUrlResponse.decode(value),
|
|
42
|
+
},
|
|
33
43
|
};
|
|
34
44
|
exports.growthClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.growthService, "service.growth");
|