@stashfin/grpc 1.2.709 → 1.2.711

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.709",
3
+ "version": "1.2.711",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -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,36 @@
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
+ status: string;
9
+ }
10
+ export declare const chrVideoUrlReuest: {
11
+ encode(message: chrVideoUrlReuest, writer?: _m0.Writer): _m0.Writer;
12
+ decode(input: _m0.Reader | Uint8Array, length?: number): chrVideoUrlReuest;
13
+ fromJSON(object: any): chrVideoUrlReuest;
14
+ toJSON(message: chrVideoUrlReuest): unknown;
15
+ create<I extends Exact<DeepPartial<chrVideoUrlReuest>, I>>(base?: I): chrVideoUrlReuest;
16
+ fromPartial<I extends Exact<DeepPartial<chrVideoUrlReuest>, I>>(object: I): chrVideoUrlReuest;
17
+ };
18
+ export declare const chrVideoUrlResponse: {
19
+ encode(message: chrVideoUrlResponse, writer?: _m0.Writer): _m0.Writer;
20
+ decode(input: _m0.Reader | Uint8Array, length?: number): chrVideoUrlResponse;
21
+ fromJSON(object: any): chrVideoUrlResponse;
22
+ toJSON(message: chrVideoUrlResponse): unknown;
23
+ create<I extends Exact<DeepPartial<chrVideoUrlResponse>, I>>(base?: I): chrVideoUrlResponse;
24
+ fromPartial<I extends Exact<DeepPartial<chrVideoUrlResponse>, I>>(object: I): chrVideoUrlResponse;
25
+ };
26
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
27
+ 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 {} ? {
28
+ [K in keyof T]?: DeepPartial<T[K]>;
29
+ } : Partial<T>;
30
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
31
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
32
+ [K in keyof P]: Exact<P[K], I[K]>;
33
+ } & {
34
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
35
+ };
36
+ export {};
@@ -0,0 +1,133 @@
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: "", status: "" };
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
+ if (message.status !== "") {
74
+ writer.uint32(18).string(message.status);
75
+ }
76
+ return writer;
77
+ },
78
+ decode(input, length) {
79
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
80
+ let end = length === undefined ? reader.len : reader.pos + length;
81
+ const message = createBasechrVideoUrlResponse();
82
+ while (reader.pos < end) {
83
+ const tag = reader.uint32();
84
+ switch (tag >>> 3) {
85
+ case 1:
86
+ if (tag !== 10) {
87
+ break;
88
+ }
89
+ message.video_url = reader.string();
90
+ continue;
91
+ case 2:
92
+ if (tag !== 18) {
93
+ break;
94
+ }
95
+ message.status = reader.string();
96
+ continue;
97
+ }
98
+ if ((tag & 7) === 4 || tag === 0) {
99
+ break;
100
+ }
101
+ reader.skipType(tag & 7);
102
+ }
103
+ return message;
104
+ },
105
+ fromJSON(object) {
106
+ return {
107
+ video_url: isSet(object.video_url) ? globalThis.String(object.video_url) : "",
108
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
109
+ };
110
+ },
111
+ toJSON(message) {
112
+ const obj = {};
113
+ if (message.video_url !== "") {
114
+ obj.video_url = message.video_url;
115
+ }
116
+ if (message.status !== "") {
117
+ obj.status = message.status;
118
+ }
119
+ return obj;
120
+ },
121
+ create(base) {
122
+ return exports.chrVideoUrlResponse.fromPartial(base ?? {});
123
+ },
124
+ fromPartial(object) {
125
+ const message = createBasechrVideoUrlResponse();
126
+ message.video_url = object.video_url ?? "";
127
+ message.status = object.status ?? "";
128
+ return message;
129
+ },
130
+ };
131
+ function isSet(value) {
132
+ return value !== null && value !== undefined;
133
+ }
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");