@stashfin/grpc 1.2.719 → 1.2.720
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/getchrsubscriptionplan.d.ts +37 -0
- package/ts/growth/getchrsubscriptionplan.js +148 -0
- package/ts/growth.d.ts +14 -0
- package/ts/growth.js +10 -0
package/package.json
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "growth.getchrsubscriptionplan";
|
|
3
|
+
export interface chrSubscriptionPlanRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface chrSubscriptionPlanResponse {
|
|
6
|
+
amount: number;
|
|
7
|
+
discount: number;
|
|
8
|
+
discounted_price: number;
|
|
9
|
+
gst_amount: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const chrSubscriptionPlanRequest: {
|
|
12
|
+
encode(_: chrSubscriptionPlanRequest, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): chrSubscriptionPlanRequest;
|
|
14
|
+
fromJSON(_: any): chrSubscriptionPlanRequest;
|
|
15
|
+
toJSON(_: chrSubscriptionPlanRequest): unknown;
|
|
16
|
+
create<I extends Exact<DeepPartial<chrSubscriptionPlanRequest>, I>>(base?: I): chrSubscriptionPlanRequest;
|
|
17
|
+
fromPartial<I extends Exact<DeepPartial<chrSubscriptionPlanRequest>, I>>(_: I): chrSubscriptionPlanRequest;
|
|
18
|
+
};
|
|
19
|
+
export declare const chrSubscriptionPlanResponse: {
|
|
20
|
+
encode(message: chrSubscriptionPlanResponse, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): chrSubscriptionPlanResponse;
|
|
22
|
+
fromJSON(object: any): chrSubscriptionPlanResponse;
|
|
23
|
+
toJSON(message: chrSubscriptionPlanResponse): unknown;
|
|
24
|
+
create<I extends Exact<DeepPartial<chrSubscriptionPlanResponse>, I>>(base?: I): chrSubscriptionPlanResponse;
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<chrSubscriptionPlanResponse>, I>>(object: I): chrSubscriptionPlanResponse;
|
|
26
|
+
};
|
|
27
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
|
+
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 {} ? {
|
|
29
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
30
|
+
} : Partial<T>;
|
|
31
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
32
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
33
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
34
|
+
} & {
|
|
35
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,148 @@
|
|
|
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/getchrsubscriptionplan.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.chrSubscriptionPlanResponse = exports.chrSubscriptionPlanRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "growth.getchrsubscriptionplan";
|
|
15
|
+
function createBasechrSubscriptionPlanRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.chrSubscriptionPlanRequest = {
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBasechrSubscriptionPlanRequest();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
}
|
|
30
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
reader.skipType(tag & 7);
|
|
34
|
+
}
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
39
|
+
},
|
|
40
|
+
toJSON(_) {
|
|
41
|
+
const obj = {};
|
|
42
|
+
return obj;
|
|
43
|
+
},
|
|
44
|
+
create(base) {
|
|
45
|
+
return exports.chrSubscriptionPlanRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasechrSubscriptionPlanRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasechrSubscriptionPlanResponse() {
|
|
53
|
+
return { amount: 0, discount: 0, discounted_price: 0, gst_amount: 0 };
|
|
54
|
+
}
|
|
55
|
+
exports.chrSubscriptionPlanResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.amount !== 0) {
|
|
58
|
+
writer.uint32(9).double(message.amount);
|
|
59
|
+
}
|
|
60
|
+
if (message.discount !== 0) {
|
|
61
|
+
writer.uint32(17).double(message.discount);
|
|
62
|
+
}
|
|
63
|
+
if (message.discounted_price !== 0) {
|
|
64
|
+
writer.uint32(25).double(message.discounted_price);
|
|
65
|
+
}
|
|
66
|
+
if (message.gst_amount !== 0) {
|
|
67
|
+
writer.uint32(33).double(message.gst_amount);
|
|
68
|
+
}
|
|
69
|
+
return writer;
|
|
70
|
+
},
|
|
71
|
+
decode(input, length) {
|
|
72
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
73
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
74
|
+
const message = createBasechrSubscriptionPlanResponse();
|
|
75
|
+
while (reader.pos < end) {
|
|
76
|
+
const tag = reader.uint32();
|
|
77
|
+
switch (tag >>> 3) {
|
|
78
|
+
case 1:
|
|
79
|
+
if (tag !== 9) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.amount = reader.double();
|
|
83
|
+
continue;
|
|
84
|
+
case 2:
|
|
85
|
+
if (tag !== 17) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
message.discount = reader.double();
|
|
89
|
+
continue;
|
|
90
|
+
case 3:
|
|
91
|
+
if (tag !== 25) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
message.discounted_price = reader.double();
|
|
95
|
+
continue;
|
|
96
|
+
case 4:
|
|
97
|
+
if (tag !== 33) {
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
message.gst_amount = reader.double();
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
reader.skipType(tag & 7);
|
|
107
|
+
}
|
|
108
|
+
return message;
|
|
109
|
+
},
|
|
110
|
+
fromJSON(object) {
|
|
111
|
+
return {
|
|
112
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
113
|
+
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
114
|
+
discounted_price: isSet(object.discounted_price) ? globalThis.Number(object.discounted_price) : 0,
|
|
115
|
+
gst_amount: isSet(object.gst_amount) ? globalThis.Number(object.gst_amount) : 0,
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
toJSON(message) {
|
|
119
|
+
const obj = {};
|
|
120
|
+
if (message.amount !== 0) {
|
|
121
|
+
obj.amount = message.amount;
|
|
122
|
+
}
|
|
123
|
+
if (message.discount !== 0) {
|
|
124
|
+
obj.discount = message.discount;
|
|
125
|
+
}
|
|
126
|
+
if (message.discounted_price !== 0) {
|
|
127
|
+
obj.discounted_price = message.discounted_price;
|
|
128
|
+
}
|
|
129
|
+
if (message.gst_amount !== 0) {
|
|
130
|
+
obj.gst_amount = message.gst_amount;
|
|
131
|
+
}
|
|
132
|
+
return obj;
|
|
133
|
+
},
|
|
134
|
+
create(base) {
|
|
135
|
+
return exports.chrSubscriptionPlanResponse.fromPartial(base ?? {});
|
|
136
|
+
},
|
|
137
|
+
fromPartial(object) {
|
|
138
|
+
const message = createBasechrSubscriptionPlanResponse();
|
|
139
|
+
message.amount = object.amount ?? 0;
|
|
140
|
+
message.discount = object.discount ?? 0;
|
|
141
|
+
message.discounted_price = object.discounted_price ?? 0;
|
|
142
|
+
message.gst_amount = object.gst_amount ?? 0;
|
|
143
|
+
return message;
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
function isSet(value) {
|
|
147
|
+
return value !== null && value !== undefined;
|
|
148
|
+
}
|
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 { chrSubscriptionPlanRequest, chrSubscriptionPlanResponse } from "./growth/getchrsubscriptionplan";
|
|
4
5
|
import { chrVideoUrlResponse, chrVideoUrlReuest } from "./growth/getchrvideourl";
|
|
5
6
|
export declare const protobufPackage = "service";
|
|
6
7
|
export type growthService = typeof growthService;
|
|
@@ -32,11 +33,21 @@ export declare const growthService: {
|
|
|
32
33
|
readonly responseSerialize: (value: chrVideoUrlResponse) => Buffer<ArrayBuffer>;
|
|
33
34
|
readonly responseDeserialize: (value: Buffer) => chrVideoUrlResponse;
|
|
34
35
|
};
|
|
36
|
+
readonly getChrSubscriptionPlan: {
|
|
37
|
+
readonly path: "/service.growth/getChrSubscriptionPlan";
|
|
38
|
+
readonly requestStream: false;
|
|
39
|
+
readonly responseStream: false;
|
|
40
|
+
readonly requestSerialize: (value: chrSubscriptionPlanRequest) => Buffer<ArrayBuffer>;
|
|
41
|
+
readonly requestDeserialize: (value: Buffer) => chrSubscriptionPlanRequest;
|
|
42
|
+
readonly responseSerialize: (value: chrSubscriptionPlanResponse) => Buffer<ArrayBuffer>;
|
|
43
|
+
readonly responseDeserialize: (value: Buffer) => chrSubscriptionPlanResponse;
|
|
44
|
+
};
|
|
35
45
|
};
|
|
36
46
|
export interface growthServer extends UntypedServiceImplementation {
|
|
37
47
|
getChrReport: handleUnaryCall<chrReportDataRequest, chrReportDataResponse>;
|
|
38
48
|
getChrPdfUrl: handleUnaryCall<chrPdfUrlRequest, chrPdfUrlResponse>;
|
|
39
49
|
getChrVideoUrl: handleUnaryCall<chrVideoUrlReuest, chrVideoUrlResponse>;
|
|
50
|
+
getChrSubscriptionPlan: handleUnaryCall<chrSubscriptionPlanRequest, chrSubscriptionPlanResponse>;
|
|
40
51
|
}
|
|
41
52
|
export interface growthClient extends Client {
|
|
42
53
|
getChrReport(request: chrReportDataRequest, callback: (error: ServiceError | null, response: chrReportDataResponse) => void): ClientUnaryCall;
|
|
@@ -48,6 +59,9 @@ export interface growthClient extends Client {
|
|
|
48
59
|
getChrVideoUrl(request: chrVideoUrlReuest, callback: (error: ServiceError | null, response: chrVideoUrlResponse) => void): ClientUnaryCall;
|
|
49
60
|
getChrVideoUrl(request: chrVideoUrlReuest, metadata: Metadata, callback: (error: ServiceError | null, response: chrVideoUrlResponse) => void): ClientUnaryCall;
|
|
50
61
|
getChrVideoUrl(request: chrVideoUrlReuest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: chrVideoUrlResponse) => void): ClientUnaryCall;
|
|
62
|
+
getChrSubscriptionPlan(request: chrSubscriptionPlanRequest, callback: (error: ServiceError | null, response: chrSubscriptionPlanResponse) => void): ClientUnaryCall;
|
|
63
|
+
getChrSubscriptionPlan(request: chrSubscriptionPlanRequest, metadata: Metadata, callback: (error: ServiceError | null, response: chrSubscriptionPlanResponse) => void): ClientUnaryCall;
|
|
64
|
+
getChrSubscriptionPlan(request: chrSubscriptionPlanRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: chrSubscriptionPlanResponse) => void): ClientUnaryCall;
|
|
51
65
|
}
|
|
52
66
|
export declare const growthClient: {
|
|
53
67
|
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 getchrsubscriptionplan_1 = require("./growth/getchrsubscriptionplan");
|
|
13
14
|
const getchrvideourl_1 = require("./growth/getchrvideourl");
|
|
14
15
|
exports.protobufPackage = "service";
|
|
15
16
|
exports.growthService = {
|
|
@@ -40,5 +41,14 @@ exports.growthService = {
|
|
|
40
41
|
responseSerialize: (value) => Buffer.from(getchrvideourl_1.chrVideoUrlResponse.encode(value).finish()),
|
|
41
42
|
responseDeserialize: (value) => getchrvideourl_1.chrVideoUrlResponse.decode(value),
|
|
42
43
|
},
|
|
44
|
+
getChrSubscriptionPlan: {
|
|
45
|
+
path: "/service.growth/getChrSubscriptionPlan",
|
|
46
|
+
requestStream: false,
|
|
47
|
+
responseStream: false,
|
|
48
|
+
requestSerialize: (value) => Buffer.from(getchrsubscriptionplan_1.chrSubscriptionPlanRequest.encode(value).finish()),
|
|
49
|
+
requestDeserialize: (value) => getchrsubscriptionplan_1.chrSubscriptionPlanRequest.decode(value),
|
|
50
|
+
responseSerialize: (value) => Buffer.from(getchrsubscriptionplan_1.chrSubscriptionPlanResponse.encode(value).finish()),
|
|
51
|
+
responseDeserialize: (value) => getchrsubscriptionplan_1.chrSubscriptionPlanResponse.decode(value),
|
|
52
|
+
},
|
|
43
53
|
};
|
|
44
54
|
exports.growthClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.growthService, "service.growth");
|