@stashfin/grpc 1.2.751 → 1.2.752

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.
@@ -0,0 +1,37 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "eqxcustomers.getlandingtoken";
3
+ export interface getlandingTokenRequest {
4
+ authorization: string;
5
+ mobile_number: string;
6
+ }
7
+ export interface getlandingTokenResponse {
8
+ customer_id: string;
9
+ token: string;
10
+ }
11
+ export declare const getlandingTokenRequest: {
12
+ encode(message: getlandingTokenRequest, writer?: _m0.Writer): _m0.Writer;
13
+ decode(input: _m0.Reader | Uint8Array, length?: number): getlandingTokenRequest;
14
+ fromJSON(object: any): getlandingTokenRequest;
15
+ toJSON(message: getlandingTokenRequest): unknown;
16
+ create<I extends Exact<DeepPartial<getlandingTokenRequest>, I>>(base?: I): getlandingTokenRequest;
17
+ fromPartial<I extends Exact<DeepPartial<getlandingTokenRequest>, I>>(object: I): getlandingTokenRequest;
18
+ };
19
+ export declare const getlandingTokenResponse: {
20
+ encode(message: getlandingTokenResponse, writer?: _m0.Writer): _m0.Writer;
21
+ decode(input: _m0.Reader | Uint8Array, length?: number): getlandingTokenResponse;
22
+ fromJSON(object: any): getlandingTokenResponse;
23
+ toJSON(message: getlandingTokenResponse): unknown;
24
+ create<I extends Exact<DeepPartial<getlandingTokenResponse>, I>>(base?: I): getlandingTokenResponse;
25
+ fromPartial<I extends Exact<DeepPartial<getlandingTokenResponse>, I>>(object: I): getlandingTokenResponse;
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,149 @@
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: eqxcustomers/getlandingtoken.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.getlandingTokenResponse = exports.getlandingTokenRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "eqxcustomers.getlandingtoken";
15
+ function createBasegetlandingTokenRequest() {
16
+ return { authorization: "", mobile_number: "" };
17
+ }
18
+ exports.getlandingTokenRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.authorization !== "") {
21
+ writer.uint32(10).string(message.authorization);
22
+ }
23
+ if (message.mobile_number !== "") {
24
+ writer.uint32(18).string(message.mobile_number);
25
+ }
26
+ return writer;
27
+ },
28
+ decode(input, length) {
29
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
30
+ let end = length === undefined ? reader.len : reader.pos + length;
31
+ const message = createBasegetlandingTokenRequest();
32
+ while (reader.pos < end) {
33
+ const tag = reader.uint32();
34
+ switch (tag >>> 3) {
35
+ case 1:
36
+ if (tag !== 10) {
37
+ break;
38
+ }
39
+ message.authorization = reader.string();
40
+ continue;
41
+ case 2:
42
+ if (tag !== 18) {
43
+ break;
44
+ }
45
+ message.mobile_number = reader.string();
46
+ continue;
47
+ }
48
+ if ((tag & 7) === 4 || tag === 0) {
49
+ break;
50
+ }
51
+ reader.skipType(tag & 7);
52
+ }
53
+ return message;
54
+ },
55
+ fromJSON(object) {
56
+ return {
57
+ authorization: isSet(object.authorization) ? globalThis.String(object.authorization) : "",
58
+ mobile_number: isSet(object.mobile_number) ? globalThis.String(object.mobile_number) : "",
59
+ };
60
+ },
61
+ toJSON(message) {
62
+ const obj = {};
63
+ if (message.authorization !== "") {
64
+ obj.authorization = message.authorization;
65
+ }
66
+ if (message.mobile_number !== "") {
67
+ obj.mobile_number = message.mobile_number;
68
+ }
69
+ return obj;
70
+ },
71
+ create(base) {
72
+ return exports.getlandingTokenRequest.fromPartial(base ?? {});
73
+ },
74
+ fromPartial(object) {
75
+ const message = createBasegetlandingTokenRequest();
76
+ message.authorization = object.authorization ?? "";
77
+ message.mobile_number = object.mobile_number ?? "";
78
+ return message;
79
+ },
80
+ };
81
+ function createBasegetlandingTokenResponse() {
82
+ return { customer_id: "", token: "" };
83
+ }
84
+ exports.getlandingTokenResponse = {
85
+ encode(message, writer = minimal_1.default.Writer.create()) {
86
+ if (message.customer_id !== "") {
87
+ writer.uint32(10).string(message.customer_id);
88
+ }
89
+ if (message.token !== "") {
90
+ writer.uint32(18).string(message.token);
91
+ }
92
+ return writer;
93
+ },
94
+ decode(input, length) {
95
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
96
+ let end = length === undefined ? reader.len : reader.pos + length;
97
+ const message = createBasegetlandingTokenResponse();
98
+ while (reader.pos < end) {
99
+ const tag = reader.uint32();
100
+ switch (tag >>> 3) {
101
+ case 1:
102
+ if (tag !== 10) {
103
+ break;
104
+ }
105
+ message.customer_id = reader.string();
106
+ continue;
107
+ case 2:
108
+ if (tag !== 18) {
109
+ break;
110
+ }
111
+ message.token = reader.string();
112
+ continue;
113
+ }
114
+ if ((tag & 7) === 4 || tag === 0) {
115
+ break;
116
+ }
117
+ reader.skipType(tag & 7);
118
+ }
119
+ return message;
120
+ },
121
+ fromJSON(object) {
122
+ return {
123
+ customer_id: isSet(object.customer_id) ? globalThis.String(object.customer_id) : "",
124
+ token: isSet(object.token) ? globalThis.String(object.token) : "",
125
+ };
126
+ },
127
+ toJSON(message) {
128
+ const obj = {};
129
+ if (message.customer_id !== "") {
130
+ obj.customer_id = message.customer_id;
131
+ }
132
+ if (message.token !== "") {
133
+ obj.token = message.token;
134
+ }
135
+ return obj;
136
+ },
137
+ create(base) {
138
+ return exports.getlandingTokenResponse.fromPartial(base ?? {});
139
+ },
140
+ fromPartial(object) {
141
+ const message = createBasegetlandingTokenResponse();
142
+ message.customer_id = object.customer_id ?? "";
143
+ message.token = object.token ?? "";
144
+ return message;
145
+ },
146
+ };
147
+ function isSet(value) {
148
+ return value !== null && value !== undefined;
149
+ }
@@ -0,0 +1,108 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "eqxcustomers.registerlandingcustomer";
3
+ export declare enum Source {
4
+ android = 0,
5
+ ios = 1,
6
+ web = 2,
7
+ UNRECOGNIZED = -1
8
+ }
9
+ export declare function sourceFromJSON(object: any): Source;
10
+ export declare function sourceToJSON(object: Source): string;
11
+ export interface registerlandingCustomerRequest {
12
+ mobile_number: string;
13
+ apps: AppInfo[];
14
+ positions: Position[];
15
+ device_id?: string | undefined;
16
+ source: Source;
17
+ device_version?: string | undefined;
18
+ device_info?: DeviceInfo | undefined;
19
+ }
20
+ export interface AppInfo {
21
+ appName?: string | undefined;
22
+ packageName?: string | undefined;
23
+ versionName?: string | undefined;
24
+ versionCode?: string | undefined;
25
+ installation_date?: string | undefined;
26
+ lastUsed?: string | undefined;
27
+ }
28
+ export interface Position {
29
+ lati?: number | undefined;
30
+ longi?: number | undefined;
31
+ created_date?: string | undefined;
32
+ distance?: string | undefined;
33
+ accuracy?: number | undefined;
34
+ is_mock?: string | undefined;
35
+ mock_app?: string | undefined;
36
+ }
37
+ export interface DeviceInfo {
38
+ used_ram?: string | undefined;
39
+ product?: string | undefined;
40
+ device_id?: string | undefined;
41
+ app_version?: string | undefined;
42
+ manufacture?: string | undefined;
43
+ osVersion?: string | undefined;
44
+ device_hash?: string | undefined;
45
+ kernelVersion?: string | undefined;
46
+ is_rooted?: string | undefined;
47
+ device_storage?: string | undefined;
48
+ model?: string | undefined;
49
+ device?: string | undefined;
50
+ brand?: string | undefined;
51
+ hardware?: string | undefined;
52
+ total_ram?: string | undefined;
53
+ }
54
+ export interface registerlandingCustomerResponse {
55
+ customer_id: string;
56
+ token: string;
57
+ }
58
+ export declare const registerlandingCustomerRequest: {
59
+ encode(message: registerlandingCustomerRequest, writer?: _m0.Writer): _m0.Writer;
60
+ decode(input: _m0.Reader | Uint8Array, length?: number): registerlandingCustomerRequest;
61
+ fromJSON(object: any): registerlandingCustomerRequest;
62
+ toJSON(message: registerlandingCustomerRequest): unknown;
63
+ create<I extends Exact<DeepPartial<registerlandingCustomerRequest>, I>>(base?: I): registerlandingCustomerRequest;
64
+ fromPartial<I extends Exact<DeepPartial<registerlandingCustomerRequest>, I>>(object: I): registerlandingCustomerRequest;
65
+ };
66
+ export declare const AppInfo: {
67
+ encode(message: AppInfo, writer?: _m0.Writer): _m0.Writer;
68
+ decode(input: _m0.Reader | Uint8Array, length?: number): AppInfo;
69
+ fromJSON(object: any): AppInfo;
70
+ toJSON(message: AppInfo): unknown;
71
+ create<I extends Exact<DeepPartial<AppInfo>, I>>(base?: I): AppInfo;
72
+ fromPartial<I extends Exact<DeepPartial<AppInfo>, I>>(object: I): AppInfo;
73
+ };
74
+ export declare const Position: {
75
+ encode(message: Position, writer?: _m0.Writer): _m0.Writer;
76
+ decode(input: _m0.Reader | Uint8Array, length?: number): Position;
77
+ fromJSON(object: any): Position;
78
+ toJSON(message: Position): unknown;
79
+ create<I extends Exact<DeepPartial<Position>, I>>(base?: I): Position;
80
+ fromPartial<I extends Exact<DeepPartial<Position>, I>>(object: I): Position;
81
+ };
82
+ export declare const DeviceInfo: {
83
+ encode(message: DeviceInfo, writer?: _m0.Writer): _m0.Writer;
84
+ decode(input: _m0.Reader | Uint8Array, length?: number): DeviceInfo;
85
+ fromJSON(object: any): DeviceInfo;
86
+ toJSON(message: DeviceInfo): unknown;
87
+ create<I extends Exact<DeepPartial<DeviceInfo>, I>>(base?: I): DeviceInfo;
88
+ fromPartial<I extends Exact<DeepPartial<DeviceInfo>, I>>(object: I): DeviceInfo;
89
+ };
90
+ export declare const registerlandingCustomerResponse: {
91
+ encode(message: registerlandingCustomerResponse, writer?: _m0.Writer): _m0.Writer;
92
+ decode(input: _m0.Reader | Uint8Array, length?: number): registerlandingCustomerResponse;
93
+ fromJSON(object: any): registerlandingCustomerResponse;
94
+ toJSON(message: registerlandingCustomerResponse): unknown;
95
+ create<I extends Exact<DeepPartial<registerlandingCustomerResponse>, I>>(base?: I): registerlandingCustomerResponse;
96
+ fromPartial<I extends Exact<DeepPartial<registerlandingCustomerResponse>, I>>(object: I): registerlandingCustomerResponse;
97
+ };
98
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
99
+ 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 {} ? {
100
+ [K in keyof T]?: DeepPartial<T[K]>;
101
+ } : Partial<T>;
102
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
103
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
104
+ [K in keyof P]: Exact<P[K], I[K]>;
105
+ } & {
106
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
107
+ };
108
+ export {};