@fatehan/tsrp 1.1.6 → 1.1.8
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/dist/api.d.ts +5 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +46 -0
- package/dist/api.test.js +10 -4
- package/dist/fatehan/activities/workflow.d.ts +117 -0
- package/dist/fatehan/activities/workflow.d.ts.map +1 -0
- package/dist/fatehan/activities/workflow.js +1286 -0
- package/dist/fatehan/devices/devices.d.ts +0 -32
- package/dist/fatehan/devices/devices.d.ts.map +1 -1
- package/dist/fatehan/devices/devices.js +1 -108
- package/dist/fatehan/packets/dataModel.d.ts +4 -1
- package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
- package/dist/fatehan/packets/dataModel.js +35 -5
- package/dist/fatehan/services/api.d.ts +32 -1
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +426 -5
- package/package.json +1 -1
- package/readme.md +1 -1
|
@@ -8,16 +8,421 @@ 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.FilterScope = exports.FilterConditions = exports.AreaIndexResponse = exports.AreaIndexRequest = exports.MeResponse = exports.MeRequest = exports.DeviceResponse = exports.DeviceRequest_QueryFilterEntry = exports.DeviceRequest = exports.ConfigResponse = exports.ConfigRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.FilterScope = exports.FilterConditions = exports.AreaIndexResponse = exports.AreaIndexRequest = exports.MeResponse = exports.MeRequest = exports.DeviceResponse = exports.DeviceRequest_QueryFilterEntry = exports.DeviceRequest = exports.ConfigResponse = exports.ConfigRequest = exports.WorkflowRequest_QueryFilterEntry = exports.WorkflowRequest = exports.WorkflowResponse = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
14
14
|
const long_1 = __importDefault(require("long"));
|
|
15
|
+
const workflow_1 = require("../activities/workflow");
|
|
15
16
|
const area_1 = require("../areas/area");
|
|
16
17
|
const financial_1 = require("../financial/financial");
|
|
17
18
|
const identities_1 = require("../identities/identities");
|
|
18
19
|
const models_1 = require("../models/models");
|
|
19
20
|
const repositories_1 = require("./repositories");
|
|
20
21
|
exports.protobufPackage = "com.fatehan.services";
|
|
22
|
+
function createBaseWorkflowResponse() {
|
|
23
|
+
return { currentPage: 0, from: 0, to: 0, lastPage: 0, perPage: 0, cost: long_1.default.ZERO, total: 0, data: [] };
|
|
24
|
+
}
|
|
25
|
+
exports.WorkflowResponse = {
|
|
26
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
27
|
+
if (message.currentPage !== 0) {
|
|
28
|
+
writer.uint32(8).uint32(message.currentPage);
|
|
29
|
+
}
|
|
30
|
+
if (message.from !== 0) {
|
|
31
|
+
writer.uint32(16).uint32(message.from);
|
|
32
|
+
}
|
|
33
|
+
if (message.to !== 0) {
|
|
34
|
+
writer.uint32(24).uint32(message.to);
|
|
35
|
+
}
|
|
36
|
+
if (message.lastPage !== 0) {
|
|
37
|
+
writer.uint32(32).uint32(message.lastPage);
|
|
38
|
+
}
|
|
39
|
+
if (message.perPage !== 0) {
|
|
40
|
+
writer.uint32(40).uint32(message.perPage);
|
|
41
|
+
}
|
|
42
|
+
if (!message.cost.equals(long_1.default.ZERO)) {
|
|
43
|
+
writer.uint32(48).sint64(message.cost.toString());
|
|
44
|
+
}
|
|
45
|
+
if (message.total !== 0) {
|
|
46
|
+
writer.uint32(56).uint32(message.total);
|
|
47
|
+
}
|
|
48
|
+
for (const v of message.data) {
|
|
49
|
+
workflow_1.Workflow.encode(v, writer.uint32(66).fork()).join();
|
|
50
|
+
}
|
|
51
|
+
return writer;
|
|
52
|
+
},
|
|
53
|
+
decode(input, length) {
|
|
54
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
55
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
56
|
+
const message = createBaseWorkflowResponse();
|
|
57
|
+
while (reader.pos < end) {
|
|
58
|
+
const tag = reader.uint32();
|
|
59
|
+
switch (tag >>> 3) {
|
|
60
|
+
case 1: {
|
|
61
|
+
if (tag !== 8) {
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
message.currentPage = reader.uint32();
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
case 2: {
|
|
68
|
+
if (tag !== 16) {
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
message.from = reader.uint32();
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
case 3: {
|
|
75
|
+
if (tag !== 24) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
message.to = reader.uint32();
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
case 4: {
|
|
82
|
+
if (tag !== 32) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
message.lastPage = reader.uint32();
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
case 5: {
|
|
89
|
+
if (tag !== 40) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
message.perPage = reader.uint32();
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
case 6: {
|
|
96
|
+
if (tag !== 48) {
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
message.cost = long_1.default.fromString(reader.sint64().toString());
|
|
100
|
+
continue;
|
|
101
|
+
}
|
|
102
|
+
case 7: {
|
|
103
|
+
if (tag !== 56) {
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
message.total = reader.uint32();
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
case 8: {
|
|
110
|
+
if (tag !== 66) {
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
message.data.push(workflow_1.Workflow.decode(reader, reader.uint32()));
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
reader.skip(tag & 7);
|
|
121
|
+
}
|
|
122
|
+
return message;
|
|
123
|
+
},
|
|
124
|
+
fromJSON(object) {
|
|
125
|
+
return {
|
|
126
|
+
currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
|
|
127
|
+
from: isSet(object.from) ? globalThis.Number(object.from) : 0,
|
|
128
|
+
to: isSet(object.to) ? globalThis.Number(object.to) : 0,
|
|
129
|
+
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
130
|
+
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
131
|
+
cost: isSet(object.cost) ? long_1.default.fromValue(object.cost) : long_1.default.ZERO,
|
|
132
|
+
total: isSet(object.total) ? globalThis.Number(object.total) : 0,
|
|
133
|
+
data: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.data) ? object.data.map((e) => workflow_1.Workflow.fromJSON(e)) : [],
|
|
134
|
+
};
|
|
135
|
+
},
|
|
136
|
+
toJSON(message) {
|
|
137
|
+
var _a;
|
|
138
|
+
const obj = {};
|
|
139
|
+
if (message.currentPage !== 0) {
|
|
140
|
+
obj.current_page = Math.round(message.currentPage);
|
|
141
|
+
}
|
|
142
|
+
if (message.from !== 0) {
|
|
143
|
+
obj.from = Math.round(message.from);
|
|
144
|
+
}
|
|
145
|
+
if (message.to !== 0) {
|
|
146
|
+
obj.to = Math.round(message.to);
|
|
147
|
+
}
|
|
148
|
+
if (message.lastPage !== 0) {
|
|
149
|
+
obj.last_page = Math.round(message.lastPage);
|
|
150
|
+
}
|
|
151
|
+
if (message.perPage !== 0) {
|
|
152
|
+
obj.per_page = Math.round(message.perPage);
|
|
153
|
+
}
|
|
154
|
+
if (!message.cost.equals(long_1.default.ZERO)) {
|
|
155
|
+
obj.cost = (message.cost || long_1.default.ZERO).toString();
|
|
156
|
+
}
|
|
157
|
+
if (message.total !== 0) {
|
|
158
|
+
obj.total = Math.round(message.total);
|
|
159
|
+
}
|
|
160
|
+
if ((_a = message.data) === null || _a === void 0 ? void 0 : _a.length) {
|
|
161
|
+
obj.data = message.data.map((e) => workflow_1.Workflow.toJSON(e));
|
|
162
|
+
}
|
|
163
|
+
return obj;
|
|
164
|
+
},
|
|
165
|
+
create(base) {
|
|
166
|
+
return exports.WorkflowResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
167
|
+
},
|
|
168
|
+
fromPartial(object) {
|
|
169
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
170
|
+
const message = createBaseWorkflowResponse();
|
|
171
|
+
message.currentPage = (_a = object.currentPage) !== null && _a !== void 0 ? _a : 0;
|
|
172
|
+
message.from = (_b = object.from) !== null && _b !== void 0 ? _b : 0;
|
|
173
|
+
message.to = (_c = object.to) !== null && _c !== void 0 ? _c : 0;
|
|
174
|
+
message.lastPage = (_d = object.lastPage) !== null && _d !== void 0 ? _d : 0;
|
|
175
|
+
message.perPage = (_e = object.perPage) !== null && _e !== void 0 ? _e : 0;
|
|
176
|
+
message.cost = (object.cost !== undefined && object.cost !== null) ? long_1.default.fromValue(object.cost) : long_1.default.ZERO;
|
|
177
|
+
message.total = (_f = object.total) !== null && _f !== void 0 ? _f : 0;
|
|
178
|
+
message.data = ((_g = object.data) === null || _g === void 0 ? void 0 : _g.map((e) => workflow_1.Workflow.fromPartial(e))) || [];
|
|
179
|
+
return message;
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
function createBaseWorkflowRequest() {
|
|
183
|
+
return {
|
|
184
|
+
disablePagination: false,
|
|
185
|
+
page: undefined,
|
|
186
|
+
pageSize: undefined,
|
|
187
|
+
organizationId: undefined,
|
|
188
|
+
queryFilter: {},
|
|
189
|
+
sort: undefined,
|
|
190
|
+
order: undefined,
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
exports.WorkflowRequest = {
|
|
194
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
195
|
+
if (message.disablePagination !== false) {
|
|
196
|
+
writer.uint32(8).bool(message.disablePagination);
|
|
197
|
+
}
|
|
198
|
+
if (message.page !== undefined) {
|
|
199
|
+
writer.uint32(16).uint32(message.page);
|
|
200
|
+
}
|
|
201
|
+
if (message.pageSize !== undefined) {
|
|
202
|
+
writer.uint32(24).uint32(message.pageSize);
|
|
203
|
+
}
|
|
204
|
+
if (message.organizationId !== undefined) {
|
|
205
|
+
writer.uint32(32).uint64(message.organizationId.toString());
|
|
206
|
+
}
|
|
207
|
+
Object.entries(message.queryFilter).forEach(([key, value]) => {
|
|
208
|
+
exports.WorkflowRequest_QueryFilterEntry.encode({ key: key, value }, writer.uint32(66).fork()).join();
|
|
209
|
+
});
|
|
210
|
+
if (message.sort !== undefined) {
|
|
211
|
+
writer.uint32(74).string(message.sort);
|
|
212
|
+
}
|
|
213
|
+
if (message.order !== undefined) {
|
|
214
|
+
writer.uint32(82).string(message.order);
|
|
215
|
+
}
|
|
216
|
+
return writer;
|
|
217
|
+
},
|
|
218
|
+
decode(input, length) {
|
|
219
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
220
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
221
|
+
const message = createBaseWorkflowRequest();
|
|
222
|
+
while (reader.pos < end) {
|
|
223
|
+
const tag = reader.uint32();
|
|
224
|
+
switch (tag >>> 3) {
|
|
225
|
+
case 1: {
|
|
226
|
+
if (tag !== 8) {
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
message.disablePagination = reader.bool();
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
case 2: {
|
|
233
|
+
if (tag !== 16) {
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
message.page = reader.uint32();
|
|
237
|
+
continue;
|
|
238
|
+
}
|
|
239
|
+
case 3: {
|
|
240
|
+
if (tag !== 24) {
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
message.pageSize = reader.uint32();
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
case 4: {
|
|
247
|
+
if (tag !== 32) {
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
message.organizationId = long_1.default.fromString(reader.uint64().toString(), true);
|
|
251
|
+
continue;
|
|
252
|
+
}
|
|
253
|
+
case 8: {
|
|
254
|
+
if (tag !== 66) {
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
const entry8 = exports.WorkflowRequest_QueryFilterEntry.decode(reader, reader.uint32());
|
|
258
|
+
if (entry8.value !== undefined) {
|
|
259
|
+
message.queryFilter[entry8.key] = entry8.value;
|
|
260
|
+
}
|
|
261
|
+
continue;
|
|
262
|
+
}
|
|
263
|
+
case 9: {
|
|
264
|
+
if (tag !== 74) {
|
|
265
|
+
break;
|
|
266
|
+
}
|
|
267
|
+
message.sort = reader.string();
|
|
268
|
+
continue;
|
|
269
|
+
}
|
|
270
|
+
case 10: {
|
|
271
|
+
if (tag !== 82) {
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
message.order = reader.string();
|
|
275
|
+
continue;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
reader.skip(tag & 7);
|
|
282
|
+
}
|
|
283
|
+
return message;
|
|
284
|
+
},
|
|
285
|
+
fromJSON(object) {
|
|
286
|
+
return {
|
|
287
|
+
disablePagination: isSet(object.disable_pagination) ? globalThis.Boolean(object.disable_pagination) : false,
|
|
288
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : undefined,
|
|
289
|
+
pageSize: isSet(object.page_size) ? globalThis.Number(object.page_size) : undefined,
|
|
290
|
+
organizationId: isSet(object.organization_id) ? long_1.default.fromValue(object.organization_id) : undefined,
|
|
291
|
+
queryFilter: isObject(object.query_filter)
|
|
292
|
+
? Object.entries(object.query_filter).reduce((acc, [key, value]) => {
|
|
293
|
+
acc[key] = exports.FilterScope.fromJSON(value);
|
|
294
|
+
return acc;
|
|
295
|
+
}, {})
|
|
296
|
+
: {},
|
|
297
|
+
sort: isSet(object.sort) ? globalThis.String(object.sort) : undefined,
|
|
298
|
+
order: isSet(object.order) ? globalThis.String(object.order) : undefined,
|
|
299
|
+
};
|
|
300
|
+
},
|
|
301
|
+
toJSON(message) {
|
|
302
|
+
const obj = {};
|
|
303
|
+
if (message.disablePagination !== false) {
|
|
304
|
+
obj.disable_pagination = message.disablePagination;
|
|
305
|
+
}
|
|
306
|
+
if (message.page !== undefined) {
|
|
307
|
+
obj.page = Math.round(message.page);
|
|
308
|
+
}
|
|
309
|
+
if (message.pageSize !== undefined) {
|
|
310
|
+
obj.page_size = Math.round(message.pageSize);
|
|
311
|
+
}
|
|
312
|
+
if (message.organizationId !== undefined) {
|
|
313
|
+
obj.organization_id = (message.organizationId || long_1.default.UZERO).toString();
|
|
314
|
+
}
|
|
315
|
+
if (message.queryFilter) {
|
|
316
|
+
const entries = Object.entries(message.queryFilter);
|
|
317
|
+
if (entries.length > 0) {
|
|
318
|
+
obj.query_filter = {};
|
|
319
|
+
entries.forEach(([k, v]) => {
|
|
320
|
+
obj.query_filter[k] = exports.FilterScope.toJSON(v);
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
if (message.sort !== undefined) {
|
|
325
|
+
obj.sort = message.sort;
|
|
326
|
+
}
|
|
327
|
+
if (message.order !== undefined) {
|
|
328
|
+
obj.order = message.order;
|
|
329
|
+
}
|
|
330
|
+
return obj;
|
|
331
|
+
},
|
|
332
|
+
create(base) {
|
|
333
|
+
return exports.WorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
334
|
+
},
|
|
335
|
+
fromPartial(object) {
|
|
336
|
+
var _a, _b, _c, _d, _e, _f;
|
|
337
|
+
const message = createBaseWorkflowRequest();
|
|
338
|
+
message.disablePagination = (_a = object.disablePagination) !== null && _a !== void 0 ? _a : false;
|
|
339
|
+
message.page = (_b = object.page) !== null && _b !== void 0 ? _b : undefined;
|
|
340
|
+
message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : undefined;
|
|
341
|
+
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
342
|
+
? long_1.default.fromValue(object.organizationId)
|
|
343
|
+
: undefined;
|
|
344
|
+
message.queryFilter = Object.entries((_d = object.queryFilter) !== null && _d !== void 0 ? _d : {}).reduce((acc, [key, value]) => {
|
|
345
|
+
if (value !== undefined) {
|
|
346
|
+
acc[key] = exports.FilterScope.fromPartial(value);
|
|
347
|
+
}
|
|
348
|
+
return acc;
|
|
349
|
+
}, {});
|
|
350
|
+
message.sort = (_e = object.sort) !== null && _e !== void 0 ? _e : undefined;
|
|
351
|
+
message.order = (_f = object.order) !== null && _f !== void 0 ? _f : undefined;
|
|
352
|
+
return message;
|
|
353
|
+
},
|
|
354
|
+
};
|
|
355
|
+
function createBaseWorkflowRequest_QueryFilterEntry() {
|
|
356
|
+
return { key: "", value: undefined };
|
|
357
|
+
}
|
|
358
|
+
exports.WorkflowRequest_QueryFilterEntry = {
|
|
359
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
360
|
+
if (message.key !== "") {
|
|
361
|
+
writer.uint32(10).string(message.key);
|
|
362
|
+
}
|
|
363
|
+
if (message.value !== undefined) {
|
|
364
|
+
exports.FilterScope.encode(message.value, writer.uint32(18).fork()).join();
|
|
365
|
+
}
|
|
366
|
+
return writer;
|
|
367
|
+
},
|
|
368
|
+
decode(input, length) {
|
|
369
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
370
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
371
|
+
const message = createBaseWorkflowRequest_QueryFilterEntry();
|
|
372
|
+
while (reader.pos < end) {
|
|
373
|
+
const tag = reader.uint32();
|
|
374
|
+
switch (tag >>> 3) {
|
|
375
|
+
case 1: {
|
|
376
|
+
if (tag !== 10) {
|
|
377
|
+
break;
|
|
378
|
+
}
|
|
379
|
+
message.key = reader.string();
|
|
380
|
+
continue;
|
|
381
|
+
}
|
|
382
|
+
case 2: {
|
|
383
|
+
if (tag !== 18) {
|
|
384
|
+
break;
|
|
385
|
+
}
|
|
386
|
+
message.value = exports.FilterScope.decode(reader, reader.uint32());
|
|
387
|
+
continue;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
391
|
+
break;
|
|
392
|
+
}
|
|
393
|
+
reader.skip(tag & 7);
|
|
394
|
+
}
|
|
395
|
+
return message;
|
|
396
|
+
},
|
|
397
|
+
fromJSON(object) {
|
|
398
|
+
return {
|
|
399
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
400
|
+
value: isSet(object.value) ? exports.FilterScope.fromJSON(object.value) : undefined,
|
|
401
|
+
};
|
|
402
|
+
},
|
|
403
|
+
toJSON(message) {
|
|
404
|
+
const obj = {};
|
|
405
|
+
if (message.key !== "") {
|
|
406
|
+
obj.key = message.key;
|
|
407
|
+
}
|
|
408
|
+
if (message.value !== undefined) {
|
|
409
|
+
obj.value = exports.FilterScope.toJSON(message.value);
|
|
410
|
+
}
|
|
411
|
+
return obj;
|
|
412
|
+
},
|
|
413
|
+
create(base) {
|
|
414
|
+
return exports.WorkflowRequest_QueryFilterEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
415
|
+
},
|
|
416
|
+
fromPartial(object) {
|
|
417
|
+
var _a;
|
|
418
|
+
const message = createBaseWorkflowRequest_QueryFilterEntry();
|
|
419
|
+
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
420
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
421
|
+
? exports.FilterScope.fromPartial(object.value)
|
|
422
|
+
: undefined;
|
|
423
|
+
return message;
|
|
424
|
+
},
|
|
425
|
+
};
|
|
21
426
|
function createBaseConfigRequest() {
|
|
22
427
|
return { domain: undefined, partnerId: undefined };
|
|
23
428
|
}
|
|
@@ -1226,6 +1631,7 @@ function createBaseFilterScope() {
|
|
|
1226
1631
|
filterType: "",
|
|
1227
1632
|
operator: undefined,
|
|
1228
1633
|
conditions: [],
|
|
1634
|
+
filter: undefined,
|
|
1229
1635
|
dateFrom: undefined,
|
|
1230
1636
|
dateTo: undefined,
|
|
1231
1637
|
type: undefined,
|
|
@@ -1242,6 +1648,9 @@ exports.FilterScope = {
|
|
|
1242
1648
|
for (const v of message.conditions) {
|
|
1243
1649
|
exports.FilterConditions.encode(v, writer.uint32(26).fork()).join();
|
|
1244
1650
|
}
|
|
1651
|
+
if (message.filter !== undefined) {
|
|
1652
|
+
writer.uint32(58).string(message.filter);
|
|
1653
|
+
}
|
|
1245
1654
|
if (message.dateFrom !== undefined) {
|
|
1246
1655
|
writer.uint32(34).string(message.dateFrom);
|
|
1247
1656
|
}
|
|
@@ -1281,6 +1690,13 @@ exports.FilterScope = {
|
|
|
1281
1690
|
message.conditions.push(exports.FilterConditions.decode(reader, reader.uint32()));
|
|
1282
1691
|
continue;
|
|
1283
1692
|
}
|
|
1693
|
+
case 7: {
|
|
1694
|
+
if (tag !== 58) {
|
|
1695
|
+
break;
|
|
1696
|
+
}
|
|
1697
|
+
message.filter = reader.string();
|
|
1698
|
+
continue;
|
|
1699
|
+
}
|
|
1284
1700
|
case 4: {
|
|
1285
1701
|
if (tag !== 34) {
|
|
1286
1702
|
break;
|
|
@@ -1317,6 +1733,7 @@ exports.FilterScope = {
|
|
|
1317
1733
|
conditions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.conditions)
|
|
1318
1734
|
? object.conditions.map((e) => exports.FilterConditions.fromJSON(e))
|
|
1319
1735
|
: [],
|
|
1736
|
+
filter: isSet(object.filter) ? globalThis.String(object.filter) : undefined,
|
|
1320
1737
|
dateFrom: isSet(object.dateFrom) ? globalThis.String(object.dateFrom) : undefined,
|
|
1321
1738
|
dateTo: isSet(object.dateTo) ? globalThis.String(object.dateTo) : undefined,
|
|
1322
1739
|
type: isSet(object.type) ? globalThis.String(object.type) : undefined,
|
|
@@ -1334,6 +1751,9 @@ exports.FilterScope = {
|
|
|
1334
1751
|
if ((_a = message.conditions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1335
1752
|
obj.conditions = message.conditions.map((e) => exports.FilterConditions.toJSON(e));
|
|
1336
1753
|
}
|
|
1754
|
+
if (message.filter !== undefined) {
|
|
1755
|
+
obj.filter = message.filter;
|
|
1756
|
+
}
|
|
1337
1757
|
if (message.dateFrom !== undefined) {
|
|
1338
1758
|
obj.dateFrom = message.dateFrom;
|
|
1339
1759
|
}
|
|
@@ -1349,14 +1769,15 @@ exports.FilterScope = {
|
|
|
1349
1769
|
return exports.FilterScope.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1350
1770
|
},
|
|
1351
1771
|
fromPartial(object) {
|
|
1352
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1772
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1353
1773
|
const message = createBaseFilterScope();
|
|
1354
1774
|
message.filterType = (_a = object.filterType) !== null && _a !== void 0 ? _a : "";
|
|
1355
1775
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : undefined;
|
|
1356
1776
|
message.conditions = ((_c = object.conditions) === null || _c === void 0 ? void 0 : _c.map((e) => exports.FilterConditions.fromPartial(e))) || [];
|
|
1357
|
-
message.
|
|
1358
|
-
message.
|
|
1359
|
-
message.
|
|
1777
|
+
message.filter = (_d = object.filter) !== null && _d !== void 0 ? _d : undefined;
|
|
1778
|
+
message.dateFrom = (_e = object.dateFrom) !== null && _e !== void 0 ? _e : undefined;
|
|
1779
|
+
message.dateTo = (_f = object.dateTo) !== null && _f !== void 0 ? _f : undefined;
|
|
1780
|
+
message.type = (_g = object.type) !== null && _g !== void 0 ? _g : undefined;
|
|
1360
1781
|
return message;
|
|
1361
1782
|
},
|
|
1362
1783
|
};
|
package/package.json
CHANGED