@stashfin/grpc 1.2.153 → 1.2.155
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/customers/getcompanyaccdetails.d.ts +37 -0
- package/ts/customers/getcompanyaccdetails.js +148 -0
- package/ts/customers/getdocuments.d.ts +13 -3
- package/ts/customers/getdocuments.js +72 -32
- package/ts/customers/logout.d.ts +34 -0
- package/ts/customers/logout.js +104 -0
- package/ts/customers/updatecustomerbyid.d.ts +48 -0
- package/ts/customers/updatecustomerbyid.js +201 -0
- package/ts/customers/uploaddocuments.d.ts +37 -0
- package/ts/customers/uploaddocuments.js +172 -0
- package/ts/customers.d.ts +56 -0
- package/ts/customers.js +40 -0
- package/ts/loans/approveloan.d.ts +13 -0
- package/ts/loans/approveloan.js +96 -14
- package/ts/loans/getnextdueamount.d.ts +34 -0
- package/ts/loans/getnextdueamount.js +104 -0
- package/ts/loans/loansummary.js +12 -12
- package/ts/loans/paymentallocation.d.ts +1 -0
- package/ts/loans/paymentallocation.js +15 -1
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +10 -0
package/package.json
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.getcompanyaccdetails";
|
|
3
|
+
export interface getCompanyAccDetailsRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getCompanyAccDetailsResponse {
|
|
6
|
+
account_number: string;
|
|
7
|
+
account_name: string;
|
|
8
|
+
ifsc_code: string;
|
|
9
|
+
bank_name: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const getCompanyAccDetailsRequest: {
|
|
12
|
+
encode(_: getCompanyAccDetailsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCompanyAccDetailsRequest;
|
|
14
|
+
fromJSON(_: any): getCompanyAccDetailsRequest;
|
|
15
|
+
toJSON(_: getCompanyAccDetailsRequest): unknown;
|
|
16
|
+
create<I extends Exact<DeepPartial<getCompanyAccDetailsRequest>, I>>(base?: I): getCompanyAccDetailsRequest;
|
|
17
|
+
fromPartial<I extends Exact<DeepPartial<getCompanyAccDetailsRequest>, I>>(_: I): getCompanyAccDetailsRequest;
|
|
18
|
+
};
|
|
19
|
+
export declare const getCompanyAccDetailsResponse: {
|
|
20
|
+
encode(message: getCompanyAccDetailsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCompanyAccDetailsResponse;
|
|
22
|
+
fromJSON(object: any): getCompanyAccDetailsResponse;
|
|
23
|
+
toJSON(message: getCompanyAccDetailsResponse): unknown;
|
|
24
|
+
create<I extends Exact<DeepPartial<getCompanyAccDetailsResponse>, I>>(base?: I): getCompanyAccDetailsResponse;
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<getCompanyAccDetailsResponse>, I>>(object: I): getCompanyAccDetailsResponse;
|
|
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.0
|
|
5
|
+
// protoc v5.27.3
|
|
6
|
+
// source: customers/getcompanyaccdetails.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.getCompanyAccDetailsResponse = exports.getCompanyAccDetailsRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.getcompanyaccdetails";
|
|
15
|
+
function createBasegetCompanyAccDetailsRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getCompanyAccDetailsRequest = {
|
|
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 = createBasegetCompanyAccDetailsRequest();
|
|
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.getCompanyAccDetailsRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetCompanyAccDetailsRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasegetCompanyAccDetailsResponse() {
|
|
53
|
+
return { account_number: "", account_name: "", ifsc_code: "", bank_name: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.getCompanyAccDetailsResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.account_number !== "") {
|
|
58
|
+
writer.uint32(10).string(message.account_number);
|
|
59
|
+
}
|
|
60
|
+
if (message.account_name !== "") {
|
|
61
|
+
writer.uint32(18).string(message.account_name);
|
|
62
|
+
}
|
|
63
|
+
if (message.ifsc_code !== "") {
|
|
64
|
+
writer.uint32(26).string(message.ifsc_code);
|
|
65
|
+
}
|
|
66
|
+
if (message.bank_name !== "") {
|
|
67
|
+
writer.uint32(34).string(message.bank_name);
|
|
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 = createBasegetCompanyAccDetailsResponse();
|
|
75
|
+
while (reader.pos < end) {
|
|
76
|
+
const tag = reader.uint32();
|
|
77
|
+
switch (tag >>> 3) {
|
|
78
|
+
case 1:
|
|
79
|
+
if (tag !== 10) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.account_number = reader.string();
|
|
83
|
+
continue;
|
|
84
|
+
case 2:
|
|
85
|
+
if (tag !== 18) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
message.account_name = reader.string();
|
|
89
|
+
continue;
|
|
90
|
+
case 3:
|
|
91
|
+
if (tag !== 26) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
message.ifsc_code = reader.string();
|
|
95
|
+
continue;
|
|
96
|
+
case 4:
|
|
97
|
+
if (tag !== 34) {
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
message.bank_name = reader.string();
|
|
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
|
+
account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "",
|
|
113
|
+
account_name: isSet(object.account_name) ? globalThis.String(object.account_name) : "",
|
|
114
|
+
ifsc_code: isSet(object.ifsc_code) ? globalThis.String(object.ifsc_code) : "",
|
|
115
|
+
bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : "",
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
toJSON(message) {
|
|
119
|
+
const obj = {};
|
|
120
|
+
if (message.account_number !== "") {
|
|
121
|
+
obj.account_number = message.account_number;
|
|
122
|
+
}
|
|
123
|
+
if (message.account_name !== "") {
|
|
124
|
+
obj.account_name = message.account_name;
|
|
125
|
+
}
|
|
126
|
+
if (message.ifsc_code !== "") {
|
|
127
|
+
obj.ifsc_code = message.ifsc_code;
|
|
128
|
+
}
|
|
129
|
+
if (message.bank_name !== "") {
|
|
130
|
+
obj.bank_name = message.bank_name;
|
|
131
|
+
}
|
|
132
|
+
return obj;
|
|
133
|
+
},
|
|
134
|
+
create(base) {
|
|
135
|
+
return exports.getCompanyAccDetailsResponse.fromPartial(base ?? {});
|
|
136
|
+
},
|
|
137
|
+
fromPartial(object) {
|
|
138
|
+
const message = createBasegetCompanyAccDetailsResponse();
|
|
139
|
+
message.account_number = object.account_number ?? "";
|
|
140
|
+
message.account_name = object.account_name ?? "";
|
|
141
|
+
message.ifsc_code = object.ifsc_code ?? "";
|
|
142
|
+
message.bank_name = object.bank_name ?? "";
|
|
143
|
+
return message;
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
function isSet(value) {
|
|
147
|
+
return value !== null && value !== undefined;
|
|
148
|
+
}
|
|
@@ -3,9 +3,11 @@ export declare const protobufPackage = "customers.getdocuments";
|
|
|
3
3
|
export interface getDocumentsRequest {
|
|
4
4
|
}
|
|
5
5
|
export interface getDocumentsResponse {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
documents: Document[];
|
|
7
|
+
}
|
|
8
|
+
export interface Document {
|
|
9
|
+
name: string;
|
|
10
|
+
doc_url: string;
|
|
9
11
|
}
|
|
10
12
|
export declare const getDocumentsRequest: {
|
|
11
13
|
encode(_: getDocumentsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -23,6 +25,14 @@ export declare const getDocumentsResponse: {
|
|
|
23
25
|
create<I extends Exact<DeepPartial<getDocumentsResponse>, I>>(base?: I): getDocumentsResponse;
|
|
24
26
|
fromPartial<I extends Exact<DeepPartial<getDocumentsResponse>, I>>(object: I): getDocumentsResponse;
|
|
25
27
|
};
|
|
28
|
+
export declare const Document: {
|
|
29
|
+
encode(message: Document, writer?: _m0.Writer): _m0.Writer;
|
|
30
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Document;
|
|
31
|
+
fromJSON(object: any): Document;
|
|
32
|
+
toJSON(message: Document): unknown;
|
|
33
|
+
create<I extends Exact<DeepPartial<Document>, I>>(base?: I): Document;
|
|
34
|
+
fromPartial<I extends Exact<DeepPartial<Document>, I>>(object: I): Document;
|
|
35
|
+
};
|
|
26
36
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
27
37
|
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
38
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.getDocumentsResponse = exports.getDocumentsRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.Document = exports.getDocumentsResponse = exports.getDocumentsRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.getdocuments";
|
|
@@ -50,18 +50,12 @@ exports.getDocumentsRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetDocumentsResponse() {
|
|
53
|
-
return {
|
|
53
|
+
return { documents: [] };
|
|
54
54
|
}
|
|
55
55
|
exports.getDocumentsResponse = {
|
|
56
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
-
|
|
58
|
-
writer.uint32(10).
|
|
59
|
-
}
|
|
60
|
-
if (message.address_proof_url !== "") {
|
|
61
|
-
writer.uint32(18).string(message.address_proof_url);
|
|
62
|
-
}
|
|
63
|
-
if (message.pan_url !== "") {
|
|
64
|
-
writer.uint32(26).string(message.pan_url);
|
|
57
|
+
for (const v of message.documents) {
|
|
58
|
+
exports.Document.encode(v, writer.uint32(10).fork()).ldelim();
|
|
65
59
|
}
|
|
66
60
|
return writer;
|
|
67
61
|
},
|
|
@@ -76,19 +70,70 @@ exports.getDocumentsResponse = {
|
|
|
76
70
|
if (tag !== 10) {
|
|
77
71
|
break;
|
|
78
72
|
}
|
|
79
|
-
message.
|
|
73
|
+
message.documents.push(exports.Document.decode(reader, reader.uint32()));
|
|
80
74
|
continue;
|
|
81
|
-
|
|
82
|
-
|
|
75
|
+
}
|
|
76
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
reader.skipType(tag & 7);
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
fromJSON(object) {
|
|
84
|
+
return {
|
|
85
|
+
documents: globalThis.Array.isArray(object?.documents)
|
|
86
|
+
? object.documents.map((e) => exports.Document.fromJSON(e))
|
|
87
|
+
: [],
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
toJSON(message) {
|
|
91
|
+
const obj = {};
|
|
92
|
+
if (message.documents?.length) {
|
|
93
|
+
obj.documents = message.documents.map((e) => exports.Document.toJSON(e));
|
|
94
|
+
}
|
|
95
|
+
return obj;
|
|
96
|
+
},
|
|
97
|
+
create(base) {
|
|
98
|
+
return exports.getDocumentsResponse.fromPartial(base ?? {});
|
|
99
|
+
},
|
|
100
|
+
fromPartial(object) {
|
|
101
|
+
const message = createBasegetDocumentsResponse();
|
|
102
|
+
message.documents = object.documents?.map((e) => exports.Document.fromPartial(e)) || [];
|
|
103
|
+
return message;
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
function createBaseDocument() {
|
|
107
|
+
return { name: "", doc_url: "" };
|
|
108
|
+
}
|
|
109
|
+
exports.Document = {
|
|
110
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
111
|
+
if (message.name !== "") {
|
|
112
|
+
writer.uint32(10).string(message.name);
|
|
113
|
+
}
|
|
114
|
+
if (message.doc_url !== "") {
|
|
115
|
+
writer.uint32(18).string(message.doc_url);
|
|
116
|
+
}
|
|
117
|
+
return writer;
|
|
118
|
+
},
|
|
119
|
+
decode(input, length) {
|
|
120
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
121
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
122
|
+
const message = createBaseDocument();
|
|
123
|
+
while (reader.pos < end) {
|
|
124
|
+
const tag = reader.uint32();
|
|
125
|
+
switch (tag >>> 3) {
|
|
126
|
+
case 1:
|
|
127
|
+
if (tag !== 10) {
|
|
83
128
|
break;
|
|
84
129
|
}
|
|
85
|
-
message.
|
|
130
|
+
message.name = reader.string();
|
|
86
131
|
continue;
|
|
87
|
-
case
|
|
88
|
-
if (tag !==
|
|
132
|
+
case 2:
|
|
133
|
+
if (tag !== 18) {
|
|
89
134
|
break;
|
|
90
135
|
}
|
|
91
|
-
message.
|
|
136
|
+
message.doc_url = reader.string();
|
|
92
137
|
continue;
|
|
93
138
|
}
|
|
94
139
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -100,32 +145,27 @@ exports.getDocumentsResponse = {
|
|
|
100
145
|
},
|
|
101
146
|
fromJSON(object) {
|
|
102
147
|
return {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
pan_url: isSet(object.pan_url) ? globalThis.String(object.pan_url) : "",
|
|
148
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
149
|
+
doc_url: isSet(object.doc_url) ? globalThis.String(object.doc_url) : "",
|
|
106
150
|
};
|
|
107
151
|
},
|
|
108
152
|
toJSON(message) {
|
|
109
153
|
const obj = {};
|
|
110
|
-
if (message.
|
|
111
|
-
obj.
|
|
154
|
+
if (message.name !== "") {
|
|
155
|
+
obj.name = message.name;
|
|
112
156
|
}
|
|
113
|
-
if (message.
|
|
114
|
-
obj.
|
|
115
|
-
}
|
|
116
|
-
if (message.pan_url !== "") {
|
|
117
|
-
obj.pan_url = message.pan_url;
|
|
157
|
+
if (message.doc_url !== "") {
|
|
158
|
+
obj.doc_url = message.doc_url;
|
|
118
159
|
}
|
|
119
160
|
return obj;
|
|
120
161
|
},
|
|
121
162
|
create(base) {
|
|
122
|
-
return exports.
|
|
163
|
+
return exports.Document.fromPartial(base ?? {});
|
|
123
164
|
},
|
|
124
165
|
fromPartial(object) {
|
|
125
|
-
const message =
|
|
126
|
-
message.
|
|
127
|
-
message.
|
|
128
|
-
message.pan_url = object.pan_url ?? "";
|
|
166
|
+
const message = createBaseDocument();
|
|
167
|
+
message.name = object.name ?? "";
|
|
168
|
+
message.doc_url = object.doc_url ?? "";
|
|
129
169
|
return message;
|
|
130
170
|
},
|
|
131
171
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.logout";
|
|
3
|
+
export interface logoutRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface logoutResponse {
|
|
6
|
+
status: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const logoutRequest: {
|
|
9
|
+
encode(_: logoutRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): logoutRequest;
|
|
11
|
+
fromJSON(_: any): logoutRequest;
|
|
12
|
+
toJSON(_: logoutRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<logoutRequest>, I>>(base?: I): logoutRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<logoutRequest>, I>>(_: I): logoutRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const logoutResponse: {
|
|
17
|
+
encode(message: logoutResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): logoutResponse;
|
|
19
|
+
fromJSON(object: any): logoutResponse;
|
|
20
|
+
toJSON(message: logoutResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<logoutResponse>, I>>(base?: I): logoutResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<logoutResponse>, I>>(object: I): logoutResponse;
|
|
23
|
+
};
|
|
24
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25
|
+
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 {} ? {
|
|
26
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
27
|
+
} : Partial<T>;
|
|
28
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
29
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
30
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
31
|
+
} & {
|
|
32
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.27.3
|
|
6
|
+
// source: customers/logout.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.logoutResponse = exports.logoutRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.logout";
|
|
15
|
+
function createBaselogoutRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.logoutRequest = {
|
|
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 = createBaselogoutRequest();
|
|
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.logoutRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBaselogoutRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBaselogoutResponse() {
|
|
53
|
+
return { status: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.logoutResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.status !== "") {
|
|
58
|
+
writer.uint32(10).string(message.status);
|
|
59
|
+
}
|
|
60
|
+
return writer;
|
|
61
|
+
},
|
|
62
|
+
decode(input, length) {
|
|
63
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
64
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
65
|
+
const message = createBaselogoutResponse();
|
|
66
|
+
while (reader.pos < end) {
|
|
67
|
+
const tag = reader.uint32();
|
|
68
|
+
switch (tag >>> 3) {
|
|
69
|
+
case 1:
|
|
70
|
+
if (tag !== 10) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.status = reader.string();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
reader.skipType(tag & 7);
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
fromJSON(object) {
|
|
84
|
+
return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
85
|
+
},
|
|
86
|
+
toJSON(message) {
|
|
87
|
+
const obj = {};
|
|
88
|
+
if (message.status !== "") {
|
|
89
|
+
obj.status = message.status;
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.logoutResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBaselogoutResponse();
|
|
98
|
+
message.status = object.status ?? "";
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== undefined;
|
|
104
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.updatecustomerbyid";
|
|
3
|
+
export interface updateCustomerByIdRequest {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
updatedata: UpdateField[];
|
|
6
|
+
}
|
|
7
|
+
export interface UpdateField {
|
|
8
|
+
key: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}
|
|
11
|
+
export interface updateCustomerByIdResponse {
|
|
12
|
+
status: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const updateCustomerByIdRequest: {
|
|
15
|
+
encode(message: updateCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
|
|
16
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCustomerByIdRequest;
|
|
17
|
+
fromJSON(object: any): updateCustomerByIdRequest;
|
|
18
|
+
toJSON(message: updateCustomerByIdRequest): unknown;
|
|
19
|
+
create<I extends Exact<DeepPartial<updateCustomerByIdRequest>, I>>(base?: I): updateCustomerByIdRequest;
|
|
20
|
+
fromPartial<I extends Exact<DeepPartial<updateCustomerByIdRequest>, I>>(object: I): updateCustomerByIdRequest;
|
|
21
|
+
};
|
|
22
|
+
export declare const UpdateField: {
|
|
23
|
+
encode(message: UpdateField, writer?: _m0.Writer): _m0.Writer;
|
|
24
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateField;
|
|
25
|
+
fromJSON(object: any): UpdateField;
|
|
26
|
+
toJSON(message: UpdateField): unknown;
|
|
27
|
+
create<I extends Exact<DeepPartial<UpdateField>, I>>(base?: I): UpdateField;
|
|
28
|
+
fromPartial<I extends Exact<DeepPartial<UpdateField>, I>>(object: I): UpdateField;
|
|
29
|
+
};
|
|
30
|
+
export declare const updateCustomerByIdResponse: {
|
|
31
|
+
encode(message: updateCustomerByIdResponse, writer?: _m0.Writer): _m0.Writer;
|
|
32
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCustomerByIdResponse;
|
|
33
|
+
fromJSON(object: any): updateCustomerByIdResponse;
|
|
34
|
+
toJSON(message: updateCustomerByIdResponse): unknown;
|
|
35
|
+
create<I extends Exact<DeepPartial<updateCustomerByIdResponse>, I>>(base?: I): updateCustomerByIdResponse;
|
|
36
|
+
fromPartial<I extends Exact<DeepPartial<updateCustomerByIdResponse>, I>>(object: I): updateCustomerByIdResponse;
|
|
37
|
+
};
|
|
38
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
39
|
+
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 {} ? {
|
|
40
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
41
|
+
} : Partial<T>;
|
|
42
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
43
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
44
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
45
|
+
} & {
|
|
46
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
47
|
+
};
|
|
48
|
+
export {};
|