@fatehan/tsrp 1.4.44 → 1.4.46
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/fatehan/activities/camera.d.ts +0 -2
- package/dist/fatehan/activities/camera.d.ts.map +1 -1
- package/dist/fatehan/activities/camera.js +0 -257
- package/dist/fatehan/activities/workflow.d.ts +20 -30
- package/dist/fatehan/activities/workflow.d.ts.map +1 -1
- package/dist/fatehan/activities/workflow.js +0 -718
- package/dist/fatehan/apis/client.d.ts +10 -12
- package/dist/fatehan/apis/client.d.ts.map +1 -1
- package/dist/fatehan/apis/client.js +23 -1015
- package/dist/fatehan/areas/area.d.ts +11 -15
- package/dist/fatehan/areas/area.d.ts.map +1 -1
- package/dist/fatehan/areas/area.js +0 -271
- package/dist/fatehan/devices/devices.d.ts +3 -7
- package/dist/fatehan/devices/devices.d.ts.map +1 -1
- package/dist/fatehan/devices/devices.js +0 -911
- package/dist/fatehan/devices/maintenance.d.ts +3 -7
- package/dist/fatehan/devices/maintenance.d.ts.map +1 -1
- package/dist/fatehan/devices/maintenance.js +0 -189
- package/dist/fatehan/financial/financial.d.ts +14 -16
- package/dist/fatehan/financial/financial.d.ts.map +1 -1
- package/dist/fatehan/financial/financial.js +0 -538
- package/dist/fatehan/google/protobuf/descriptor.d.ts +0 -42
- package/dist/fatehan/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/descriptor.js +0 -1864
- package/dist/fatehan/google/protobuf/duration.d.ts +0 -2
- package/dist/fatehan/google/protobuf/duration.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/duration.js +0 -19
- package/dist/fatehan/google/protobuf/field_mask.d.ts +0 -2
- package/dist/fatehan/google/protobuf/field_mask.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/field_mask.js +0 -12
- package/dist/fatehan/google/protobuf/timestamp.d.ts +0 -2
- package/dist/fatehan/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/timestamp.js +0 -19
- package/dist/fatehan/identities/authentication.d.ts +13 -15
- package/dist/fatehan/identities/authentication.d.ts.map +1 -1
- package/dist/fatehan/identities/authentication.js +0 -339
- package/dist/fatehan/identities/identities.d.ts +6 -12
- package/dist/fatehan/identities/identities.d.ts.map +1 -1
- package/dist/fatehan/identities/identities.js +0 -4069
- package/dist/fatehan/models/fusion.d.ts +5 -7
- package/dist/fatehan/models/fusion.d.ts.map +1 -1
- package/dist/fatehan/models/fusion.js +0 -494
- package/dist/fatehan/models/models.d.ts +6 -10
- package/dist/fatehan/models/models.d.ts.map +1 -1
- package/dist/fatehan/models/models.js +1 -554
- package/dist/fatehan/notifies/notify.d.ts +10 -24
- package/dist/fatehan/notifies/notify.d.ts.map +1 -1
- package/dist/fatehan/notifies/notify.js +0 -1096
- package/dist/fatehan/packets/dataModel.d.ts +18 -48
- package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
- package/dist/fatehan/packets/dataModel.js +34 -7015
- package/dist/fatehan/packets/dataModule.d.ts +2 -6
- package/dist/fatehan/packets/dataModule.d.ts.map +1 -1
- package/dist/fatehan/packets/dataModule.js +0 -167
- package/dist/fatehan/packets/messages.d.ts +5 -9
- package/dist/fatehan/packets/messages.d.ts.map +1 -1
- package/dist/fatehan/packets/messages.js +0 -280
- package/dist/fatehan/reports/report.d.ts +87 -115
- package/dist/fatehan/reports/report.d.ts.map +1 -1
- package/dist/fatehan/reports/report.js +3 -3112
- package/dist/fatehan/services/api.d.ts +14 -14
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +29 -1254
- package/dist/fatehan/services/repositories.d.ts +6 -8
- package/dist/fatehan/services/repositories.d.ts.map +1 -1
- package/dist/fatehan/services/repositories.js +0 -191
- package/dist/fatehan/trips/trip.d.ts +18 -30
- package/dist/fatehan/trips/trip.d.ts.map +1 -1
- package/dist/fatehan/trips/trip.js +0 -1662
- package/dist/fatehan/utils/buf/validate/validate.d.ts +0 -6
- package/dist/fatehan/utils/buf/validate/validate.d.ts.map +1 -1
- package/dist/fatehan/utils/buf/validate/validate.js +0 -1318
- package/package.json +1 -1
|
@@ -109,42 +109,6 @@ export const Wallet = {
|
|
|
109
109
|
}
|
|
110
110
|
return message;
|
|
111
111
|
},
|
|
112
|
-
fromJSON(object) {
|
|
113
|
-
return {
|
|
114
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
115
|
-
userId: isSet(object.user_id) ? Long.fromValue(object.user_id) : undefined,
|
|
116
|
-
organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : undefined,
|
|
117
|
-
currencyId: isSet(object.currency_id) ? Long.fromValue(object.currency_id) : Long.UZERO,
|
|
118
|
-
remaining: isSet(object.remaining) ? globalThis.Number(object.remaining) : 0,
|
|
119
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
120
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
121
|
-
};
|
|
122
|
-
},
|
|
123
|
-
toJSON(message) {
|
|
124
|
-
const obj = {};
|
|
125
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
126
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
127
|
-
}
|
|
128
|
-
if (message.userId !== undefined) {
|
|
129
|
-
obj.user_id = (message.userId || Long.UZERO).toString();
|
|
130
|
-
}
|
|
131
|
-
if (message.organizationId !== undefined) {
|
|
132
|
-
obj.organization_id = (message.organizationId || Long.UZERO).toString();
|
|
133
|
-
}
|
|
134
|
-
if (!message.currencyId.equals(Long.UZERO)) {
|
|
135
|
-
obj.currency_id = (message.currencyId || Long.UZERO).toString();
|
|
136
|
-
}
|
|
137
|
-
if (message.remaining !== 0) {
|
|
138
|
-
obj.remaining = message.remaining;
|
|
139
|
-
}
|
|
140
|
-
if (message.createdAt !== undefined) {
|
|
141
|
-
obj.created_at = message.createdAt.toISOString();
|
|
142
|
-
}
|
|
143
|
-
if (message.updatedAt !== undefined) {
|
|
144
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
145
|
-
}
|
|
146
|
-
return obj;
|
|
147
|
-
},
|
|
148
112
|
create(base) {
|
|
149
113
|
return Wallet.fromPartial(base ?? {});
|
|
150
114
|
},
|
|
@@ -288,50 +252,6 @@ export const Currency = {
|
|
|
288
252
|
}
|
|
289
253
|
return message;
|
|
290
254
|
},
|
|
291
|
-
fromJSON(object) {
|
|
292
|
-
return {
|
|
293
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
294
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
295
|
-
code: isSet(object.code) ? globalThis.String(object.code) : undefined,
|
|
296
|
-
leftSign: isSet(object.left_sign) ? globalThis.String(object.left_sign) : undefined,
|
|
297
|
-
rightSign: isSet(object.right_sign) ? globalThis.String(object.right_sign) : undefined,
|
|
298
|
-
default: isSet(object.default) ? globalThis.Number(object.default) : 0,
|
|
299
|
-
ratioToDefault: isSet(object.ratio_to_default) ? globalThis.Number(object.ratio_to_default) : 0,
|
|
300
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
301
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
302
|
-
};
|
|
303
|
-
},
|
|
304
|
-
toJSON(message) {
|
|
305
|
-
const obj = {};
|
|
306
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
307
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
308
|
-
}
|
|
309
|
-
if (message.name !== "") {
|
|
310
|
-
obj.name = message.name;
|
|
311
|
-
}
|
|
312
|
-
if (message.code !== undefined) {
|
|
313
|
-
obj.code = message.code;
|
|
314
|
-
}
|
|
315
|
-
if (message.leftSign !== undefined) {
|
|
316
|
-
obj.left_sign = message.leftSign;
|
|
317
|
-
}
|
|
318
|
-
if (message.rightSign !== undefined) {
|
|
319
|
-
obj.right_sign = message.rightSign;
|
|
320
|
-
}
|
|
321
|
-
if (message.default !== 0) {
|
|
322
|
-
obj.default = Math.round(message.default);
|
|
323
|
-
}
|
|
324
|
-
if (message.ratioToDefault !== 0) {
|
|
325
|
-
obj.ratio_to_default = Math.round(message.ratioToDefault);
|
|
326
|
-
}
|
|
327
|
-
if (message.createdAt !== undefined) {
|
|
328
|
-
obj.created_at = message.createdAt.toISOString();
|
|
329
|
-
}
|
|
330
|
-
if (message.updatedAt !== undefined) {
|
|
331
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
332
|
-
}
|
|
333
|
-
return obj;
|
|
334
|
-
},
|
|
335
255
|
create(base) {
|
|
336
256
|
return Currency.fromPartial(base ?? {});
|
|
337
257
|
},
|
|
@@ -401,26 +321,6 @@ export const Partner = {
|
|
|
401
321
|
}
|
|
402
322
|
return message;
|
|
403
323
|
},
|
|
404
|
-
fromJSON(object) {
|
|
405
|
-
return {
|
|
406
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
407
|
-
name: isSet(object.name) ? globalThis.String(object.name) : undefined,
|
|
408
|
-
domains: globalThis.Array.isArray(object?.domains) ? object.domains.map((e) => globalThis.String(e)) : [],
|
|
409
|
-
};
|
|
410
|
-
},
|
|
411
|
-
toJSON(message) {
|
|
412
|
-
const obj = {};
|
|
413
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
414
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
415
|
-
}
|
|
416
|
-
if (message.name !== undefined) {
|
|
417
|
-
obj.name = message.name;
|
|
418
|
-
}
|
|
419
|
-
if (message.domains?.length) {
|
|
420
|
-
obj.domains = message.domains;
|
|
421
|
-
}
|
|
422
|
-
return obj;
|
|
423
|
-
},
|
|
424
324
|
create(base) {
|
|
425
325
|
return Partner.fromPartial(base ?? {});
|
|
426
326
|
},
|
|
@@ -565,54 +465,6 @@ export const ProductType = {
|
|
|
565
465
|
}
|
|
566
466
|
return message;
|
|
567
467
|
},
|
|
568
|
-
fromJSON(object) {
|
|
569
|
-
return {
|
|
570
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
571
|
-
name: isSet(object.name) ? globalThis.String(object.name) : undefined,
|
|
572
|
-
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
573
|
-
months: isSet(object.months) ? globalThis.Number(object.months) : undefined,
|
|
574
|
-
keyType: isSet(object.key_type) ? globalThis.String(object.key_type) : "",
|
|
575
|
-
picture: isSet(object.picture) ? globalThis.String(object.picture) : undefined,
|
|
576
|
-
createdBy: isSet(object.created_by) ? Long.fromValue(object.created_by) : undefined,
|
|
577
|
-
updatedBy: isSet(object.updated_by) ? Long.fromValue(object.updated_by) : undefined,
|
|
578
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
579
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
580
|
-
};
|
|
581
|
-
},
|
|
582
|
-
toJSON(message) {
|
|
583
|
-
const obj = {};
|
|
584
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
585
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
586
|
-
}
|
|
587
|
-
if (message.name !== undefined) {
|
|
588
|
-
obj.name = message.name;
|
|
589
|
-
}
|
|
590
|
-
if (message.description !== undefined) {
|
|
591
|
-
obj.description = message.description;
|
|
592
|
-
}
|
|
593
|
-
if (message.months !== undefined) {
|
|
594
|
-
obj.months = Math.round(message.months);
|
|
595
|
-
}
|
|
596
|
-
if (message.keyType !== "") {
|
|
597
|
-
obj.key_type = message.keyType;
|
|
598
|
-
}
|
|
599
|
-
if (message.picture !== undefined) {
|
|
600
|
-
obj.picture = message.picture;
|
|
601
|
-
}
|
|
602
|
-
if (message.createdBy !== undefined) {
|
|
603
|
-
obj.created_by = (message.createdBy || Long.UZERO).toString();
|
|
604
|
-
}
|
|
605
|
-
if (message.updatedBy !== undefined) {
|
|
606
|
-
obj.updated_by = (message.updatedBy || Long.UZERO).toString();
|
|
607
|
-
}
|
|
608
|
-
if (message.createdAt !== undefined) {
|
|
609
|
-
obj.created_at = message.createdAt.toISOString();
|
|
610
|
-
}
|
|
611
|
-
if (message.updatedAt !== undefined) {
|
|
612
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
613
|
-
}
|
|
614
|
-
return obj;
|
|
615
|
-
},
|
|
616
468
|
create(base) {
|
|
617
469
|
return ProductType.fromPartial(base ?? {});
|
|
618
470
|
},
|
|
@@ -845,82 +697,6 @@ export const Product = {
|
|
|
845
697
|
}
|
|
846
698
|
return message;
|
|
847
699
|
},
|
|
848
|
-
fromJSON(object) {
|
|
849
|
-
return {
|
|
850
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
851
|
-
organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : undefined,
|
|
852
|
-
productTypeId: isSet(object.product_type_id) ? Long.fromValue(object.product_type_id) : undefined,
|
|
853
|
-
createdBy: isSet(object.created_by) ? Long.fromValue(object.created_by) : undefined,
|
|
854
|
-
updatedBy: isSet(object.updated_by) ? Long.fromValue(object.updated_by) : undefined,
|
|
855
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
856
|
-
displayName: isSet(object.display_name) ? globalThis.String(object.display_name) : undefined,
|
|
857
|
-
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
858
|
-
picture: isSet(object.picture) ? globalThis.String(object.picture) : undefined,
|
|
859
|
-
slug: isSet(object.slug) ? globalThis.String(object.slug) : undefined,
|
|
860
|
-
uuid: isSet(object.uuid) ? globalThis.String(object.uuid) : undefined,
|
|
861
|
-
objectType: isSet(object.object_type) ? globalThis.String(object.object_type) : undefined,
|
|
862
|
-
objectId: isSet(object.object_id) ? Long.fromValue(object.object_id) : undefined,
|
|
863
|
-
currencyId: isSet(object.currency_id) ? Long.fromValue(object.currency_id) : Long.UZERO,
|
|
864
|
-
price: isSet(object.price) ? globalThis.Number(object.price) : 0,
|
|
865
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
866
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
867
|
-
};
|
|
868
|
-
},
|
|
869
|
-
toJSON(message) {
|
|
870
|
-
const obj = {};
|
|
871
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
872
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
873
|
-
}
|
|
874
|
-
if (message.organizationId !== undefined) {
|
|
875
|
-
obj.organization_id = (message.organizationId || Long.UZERO).toString();
|
|
876
|
-
}
|
|
877
|
-
if (message.productTypeId !== undefined) {
|
|
878
|
-
obj.product_type_id = (message.productTypeId || Long.UZERO).toString();
|
|
879
|
-
}
|
|
880
|
-
if (message.createdBy !== undefined) {
|
|
881
|
-
obj.created_by = (message.createdBy || Long.UZERO).toString();
|
|
882
|
-
}
|
|
883
|
-
if (message.updatedBy !== undefined) {
|
|
884
|
-
obj.updated_by = (message.updatedBy || Long.UZERO).toString();
|
|
885
|
-
}
|
|
886
|
-
if (message.name !== "") {
|
|
887
|
-
obj.name = message.name;
|
|
888
|
-
}
|
|
889
|
-
if (message.displayName !== undefined) {
|
|
890
|
-
obj.display_name = message.displayName;
|
|
891
|
-
}
|
|
892
|
-
if (message.description !== undefined) {
|
|
893
|
-
obj.description = message.description;
|
|
894
|
-
}
|
|
895
|
-
if (message.picture !== undefined) {
|
|
896
|
-
obj.picture = message.picture;
|
|
897
|
-
}
|
|
898
|
-
if (message.slug !== undefined) {
|
|
899
|
-
obj.slug = message.slug;
|
|
900
|
-
}
|
|
901
|
-
if (message.uuid !== undefined) {
|
|
902
|
-
obj.uuid = message.uuid;
|
|
903
|
-
}
|
|
904
|
-
if (message.objectType !== undefined) {
|
|
905
|
-
obj.object_type = message.objectType;
|
|
906
|
-
}
|
|
907
|
-
if (message.objectId !== undefined) {
|
|
908
|
-
obj.object_id = (message.objectId || Long.UZERO).toString();
|
|
909
|
-
}
|
|
910
|
-
if (!message.currencyId.equals(Long.UZERO)) {
|
|
911
|
-
obj.currency_id = (message.currencyId || Long.UZERO).toString();
|
|
912
|
-
}
|
|
913
|
-
if (message.price !== 0) {
|
|
914
|
-
obj.price = message.price;
|
|
915
|
-
}
|
|
916
|
-
if (message.createdAt !== undefined) {
|
|
917
|
-
obj.created_at = message.createdAt.toISOString();
|
|
918
|
-
}
|
|
919
|
-
if (message.updatedAt !== undefined) {
|
|
920
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
921
|
-
}
|
|
922
|
-
return obj;
|
|
923
|
-
},
|
|
924
700
|
create(base) {
|
|
925
701
|
return Product.fromPartial(base ?? {});
|
|
926
702
|
},
|
|
@@ -1102,60 +878,6 @@ export const PaymentGateway = {
|
|
|
1102
878
|
}
|
|
1103
879
|
return message;
|
|
1104
880
|
},
|
|
1105
|
-
fromJSON(object) {
|
|
1106
|
-
return {
|
|
1107
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
1108
|
-
organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : Long.UZERO,
|
|
1109
|
-
createdBy: isSet(object.created_by) ? Long.fromValue(object.created_by) : undefined,
|
|
1110
|
-
updatedBy: isSet(object.updated_by) ? Long.fromValue(object.updated_by) : undefined,
|
|
1111
|
-
gateway: isSet(object.gateway) ? globalThis.String(object.gateway) : "",
|
|
1112
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1113
|
-
default: isSet(object.default) ? globalThis.Boolean(object.default) : false,
|
|
1114
|
-
status: isSet(object.status) ? globalThis.Boolean(object.status) : false,
|
|
1115
|
-
config: globalThis.Array.isArray(object?.config)
|
|
1116
|
-
? object.config.map((e) => PaymentGateway_Config.fromJSON(e))
|
|
1117
|
-
: [],
|
|
1118
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
1119
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
1120
|
-
};
|
|
1121
|
-
},
|
|
1122
|
-
toJSON(message) {
|
|
1123
|
-
const obj = {};
|
|
1124
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
1125
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
1126
|
-
}
|
|
1127
|
-
if (!message.organizationId.equals(Long.UZERO)) {
|
|
1128
|
-
obj.organization_id = (message.organizationId || Long.UZERO).toString();
|
|
1129
|
-
}
|
|
1130
|
-
if (message.createdBy !== undefined) {
|
|
1131
|
-
obj.created_by = (message.createdBy || Long.UZERO).toString();
|
|
1132
|
-
}
|
|
1133
|
-
if (message.updatedBy !== undefined) {
|
|
1134
|
-
obj.updated_by = (message.updatedBy || Long.UZERO).toString();
|
|
1135
|
-
}
|
|
1136
|
-
if (message.gateway !== "") {
|
|
1137
|
-
obj.gateway = message.gateway;
|
|
1138
|
-
}
|
|
1139
|
-
if (message.name !== "") {
|
|
1140
|
-
obj.name = message.name;
|
|
1141
|
-
}
|
|
1142
|
-
if (message.default !== false) {
|
|
1143
|
-
obj.default = message.default;
|
|
1144
|
-
}
|
|
1145
|
-
if (message.status !== false) {
|
|
1146
|
-
obj.status = message.status;
|
|
1147
|
-
}
|
|
1148
|
-
if (message.config?.length) {
|
|
1149
|
-
obj.config = message.config.map((e) => PaymentGateway_Config.toJSON(e));
|
|
1150
|
-
}
|
|
1151
|
-
if (message.createdAt !== undefined) {
|
|
1152
|
-
obj.created_at = message.createdAt.toISOString();
|
|
1153
|
-
}
|
|
1154
|
-
if (message.updatedAt !== undefined) {
|
|
1155
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
1156
|
-
}
|
|
1157
|
-
return obj;
|
|
1158
|
-
},
|
|
1159
881
|
create(base) {
|
|
1160
882
|
return PaymentGateway.fromPartial(base ?? {});
|
|
1161
883
|
},
|
|
@@ -1223,22 +945,6 @@ export const PaymentGateway_Config = {
|
|
|
1223
945
|
}
|
|
1224
946
|
return message;
|
|
1225
947
|
},
|
|
1226
|
-
fromJSON(object) {
|
|
1227
|
-
return {
|
|
1228
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
1229
|
-
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
1230
|
-
};
|
|
1231
|
-
},
|
|
1232
|
-
toJSON(message) {
|
|
1233
|
-
const obj = {};
|
|
1234
|
-
if (message.key !== "") {
|
|
1235
|
-
obj.key = message.key;
|
|
1236
|
-
}
|
|
1237
|
-
if (message.value !== "") {
|
|
1238
|
-
obj.value = message.value;
|
|
1239
|
-
}
|
|
1240
|
-
return obj;
|
|
1241
|
-
},
|
|
1242
948
|
create(base) {
|
|
1243
949
|
return PaymentGateway_Config.fromPartial(base ?? {});
|
|
1244
950
|
},
|
|
@@ -1393,58 +1099,6 @@ export const OrderPagination = {
|
|
|
1393
1099
|
}
|
|
1394
1100
|
return message;
|
|
1395
1101
|
},
|
|
1396
|
-
fromJSON(object) {
|
|
1397
|
-
return {
|
|
1398
|
-
currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
|
|
1399
|
-
firstPageUrl: isSet(object.first_page_url) ? globalThis.String(object.first_page_url) : "",
|
|
1400
|
-
lastPageUrl: isSet(object.last_page_url) ? globalThis.String(object.last_page_url) : "",
|
|
1401
|
-
nextPageUrl: isSet(object.next_page_url) ? globalThis.String(object.next_page_url) : "",
|
|
1402
|
-
prevPageUrl: isSet(object.prev_page_url) ? globalThis.String(object.prev_page_url) : "",
|
|
1403
|
-
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
1404
|
-
from: isSet(object.from) ? globalThis.Number(object.from) : 0,
|
|
1405
|
-
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
1406
|
-
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
1407
|
-
to: isSet(object.to) ? globalThis.Number(object.to) : 0,
|
|
1408
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => Order.fromJSON(e)) : [],
|
|
1409
|
-
};
|
|
1410
|
-
},
|
|
1411
|
-
toJSON(message) {
|
|
1412
|
-
const obj = {};
|
|
1413
|
-
if (message.currentPage !== 0) {
|
|
1414
|
-
obj.current_page = Math.round(message.currentPage);
|
|
1415
|
-
}
|
|
1416
|
-
if (message.firstPageUrl !== "") {
|
|
1417
|
-
obj.first_page_url = message.firstPageUrl;
|
|
1418
|
-
}
|
|
1419
|
-
if (message.lastPageUrl !== "") {
|
|
1420
|
-
obj.last_page_url = message.lastPageUrl;
|
|
1421
|
-
}
|
|
1422
|
-
if (message.nextPageUrl !== "") {
|
|
1423
|
-
obj.next_page_url = message.nextPageUrl;
|
|
1424
|
-
}
|
|
1425
|
-
if (message.prevPageUrl !== "") {
|
|
1426
|
-
obj.prev_page_url = message.prevPageUrl;
|
|
1427
|
-
}
|
|
1428
|
-
if (message.path !== "") {
|
|
1429
|
-
obj.path = message.path;
|
|
1430
|
-
}
|
|
1431
|
-
if (message.from !== 0) {
|
|
1432
|
-
obj.from = Math.round(message.from);
|
|
1433
|
-
}
|
|
1434
|
-
if (message.lastPage !== 0) {
|
|
1435
|
-
obj.last_page = Math.round(message.lastPage);
|
|
1436
|
-
}
|
|
1437
|
-
if (message.perPage !== 0) {
|
|
1438
|
-
obj.per_page = Math.round(message.perPage);
|
|
1439
|
-
}
|
|
1440
|
-
if (message.to !== 0) {
|
|
1441
|
-
obj.to = Math.round(message.to);
|
|
1442
|
-
}
|
|
1443
|
-
if (message.data?.length) {
|
|
1444
|
-
obj.data = message.data.map((e) => Order.toJSON(e));
|
|
1445
|
-
}
|
|
1446
|
-
return obj;
|
|
1447
|
-
},
|
|
1448
1102
|
create(base) {
|
|
1449
1103
|
return OrderPagination.fromPartial(base ?? {});
|
|
1450
1104
|
},
|
|
@@ -1762,116 +1416,6 @@ export const Order = {
|
|
|
1762
1416
|
}
|
|
1763
1417
|
return message;
|
|
1764
1418
|
},
|
|
1765
|
-
fromJSON(object) {
|
|
1766
|
-
return {
|
|
1767
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
1768
|
-
uuid: isSet(object.uuid) ? globalThis.String(object.uuid) : "",
|
|
1769
|
-
organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : Long.UZERO,
|
|
1770
|
-
createdBy: isSet(object.created_by) ? Long.fromValue(object.created_by) : undefined,
|
|
1771
|
-
paymentGatewayId: isSet(object.payment_gateway_id) ? Long.fromValue(object.payment_gateway_id) : undefined,
|
|
1772
|
-
currencyId: isSet(object.currency_id) ? Long.fromValue(object.currency_id) : undefined,
|
|
1773
|
-
partnerId: isSet(object.partner_id) ? Long.fromValue(object.partner_id) : undefined,
|
|
1774
|
-
totalPrice: isSet(object.total_price) ? globalThis.Number(object.total_price) : 0,
|
|
1775
|
-
tax: isSet(object.tax) ? globalThis.Number(object.tax) : 0,
|
|
1776
|
-
taxPercent: isSet(object.tax_percent) ? globalThis.Number(object.tax_percent) : 0,
|
|
1777
|
-
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
1778
|
-
subtotal: isSet(object.subtotal) ? globalThis.Number(object.subtotal) : 0,
|
|
1779
|
-
paymentUrl: isSet(object.payment_url) ? globalThis.String(object.payment_url) : undefined,
|
|
1780
|
-
transactionId: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : undefined,
|
|
1781
|
-
refId: isSet(object.ref_id) ? globalThis.String(object.ref_id) : undefined,
|
|
1782
|
-
paidAt: isSet(object.paid_at) ? fromJsonTimestamp(object.paid_at) : undefined,
|
|
1783
|
-
months: isSet(object.months) ? globalThis.Number(object.months) : undefined,
|
|
1784
|
-
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
1785
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
1786
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
1787
|
-
products: globalThis.Array.isArray(object?.products)
|
|
1788
|
-
? object.products.map((e) => OrderProduct.fromJSON(e))
|
|
1789
|
-
: [],
|
|
1790
|
-
partner: isSet(object.partner) ? Partner.fromJSON(object.partner) : undefined,
|
|
1791
|
-
paymentGateway: isSet(object.payment_gateway) ? PaymentGateway.fromJSON(object.payment_gateway) : undefined,
|
|
1792
|
-
currency: isSet(object.currency) ? Currency.fromJSON(object.currency) : undefined,
|
|
1793
|
-
person: isSet(object.person) ? Person.fromJSON(object.person) : undefined,
|
|
1794
|
-
};
|
|
1795
|
-
},
|
|
1796
|
-
toJSON(message) {
|
|
1797
|
-
const obj = {};
|
|
1798
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
1799
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
1800
|
-
}
|
|
1801
|
-
if (message.uuid !== "") {
|
|
1802
|
-
obj.uuid = message.uuid;
|
|
1803
|
-
}
|
|
1804
|
-
if (!message.organizationId.equals(Long.UZERO)) {
|
|
1805
|
-
obj.organization_id = (message.organizationId || Long.UZERO).toString();
|
|
1806
|
-
}
|
|
1807
|
-
if (message.createdBy !== undefined) {
|
|
1808
|
-
obj.created_by = (message.createdBy || Long.UZERO).toString();
|
|
1809
|
-
}
|
|
1810
|
-
if (message.paymentGatewayId !== undefined) {
|
|
1811
|
-
obj.payment_gateway_id = (message.paymentGatewayId || Long.UZERO).toString();
|
|
1812
|
-
}
|
|
1813
|
-
if (message.currencyId !== undefined) {
|
|
1814
|
-
obj.currency_id = (message.currencyId || Long.UZERO).toString();
|
|
1815
|
-
}
|
|
1816
|
-
if (message.partnerId !== undefined) {
|
|
1817
|
-
obj.partner_id = (message.partnerId || Long.UZERO).toString();
|
|
1818
|
-
}
|
|
1819
|
-
if (message.totalPrice !== 0) {
|
|
1820
|
-
obj.total_price = message.totalPrice;
|
|
1821
|
-
}
|
|
1822
|
-
if (message.tax !== 0) {
|
|
1823
|
-
obj.tax = message.tax;
|
|
1824
|
-
}
|
|
1825
|
-
if (message.taxPercent !== 0) {
|
|
1826
|
-
obj.tax_percent = Math.round(message.taxPercent);
|
|
1827
|
-
}
|
|
1828
|
-
if (message.discount !== 0) {
|
|
1829
|
-
obj.discount = message.discount;
|
|
1830
|
-
}
|
|
1831
|
-
if (message.subtotal !== 0) {
|
|
1832
|
-
obj.subtotal = message.subtotal;
|
|
1833
|
-
}
|
|
1834
|
-
if (message.paymentUrl !== undefined) {
|
|
1835
|
-
obj.payment_url = message.paymentUrl;
|
|
1836
|
-
}
|
|
1837
|
-
if (message.transactionId !== undefined) {
|
|
1838
|
-
obj.transaction_id = message.transactionId;
|
|
1839
|
-
}
|
|
1840
|
-
if (message.refId !== undefined) {
|
|
1841
|
-
obj.ref_id = message.refId;
|
|
1842
|
-
}
|
|
1843
|
-
if (message.paidAt !== undefined) {
|
|
1844
|
-
obj.paid_at = message.paidAt.toISOString();
|
|
1845
|
-
}
|
|
1846
|
-
if (message.months !== undefined) {
|
|
1847
|
-
obj.months = Math.round(message.months);
|
|
1848
|
-
}
|
|
1849
|
-
if (message.status !== "") {
|
|
1850
|
-
obj.status = message.status;
|
|
1851
|
-
}
|
|
1852
|
-
if (message.createdAt !== undefined) {
|
|
1853
|
-
obj.created_at = message.createdAt.toISOString();
|
|
1854
|
-
}
|
|
1855
|
-
if (message.updatedAt !== undefined) {
|
|
1856
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
1857
|
-
}
|
|
1858
|
-
if (message.products?.length) {
|
|
1859
|
-
obj.products = message.products.map((e) => OrderProduct.toJSON(e));
|
|
1860
|
-
}
|
|
1861
|
-
if (message.partner !== undefined) {
|
|
1862
|
-
obj.partner = Partner.toJSON(message.partner);
|
|
1863
|
-
}
|
|
1864
|
-
if (message.paymentGateway !== undefined) {
|
|
1865
|
-
obj.payment_gateway = PaymentGateway.toJSON(message.paymentGateway);
|
|
1866
|
-
}
|
|
1867
|
-
if (message.currency !== undefined) {
|
|
1868
|
-
obj.currency = Currency.toJSON(message.currency);
|
|
1869
|
-
}
|
|
1870
|
-
if (message.person !== undefined) {
|
|
1871
|
-
obj.person = Person.toJSON(message.person);
|
|
1872
|
-
}
|
|
1873
|
-
return obj;
|
|
1874
|
-
},
|
|
1875
1419
|
create(base) {
|
|
1876
1420
|
return Order.fromPartial(base ?? {});
|
|
1877
1421
|
},
|
|
@@ -2111,74 +1655,6 @@ export const OrderProduct = {
|
|
|
2111
1655
|
}
|
|
2112
1656
|
return message;
|
|
2113
1657
|
},
|
|
2114
|
-
fromJSON(object) {
|
|
2115
|
-
return {
|
|
2116
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
2117
|
-
orderId: isSet(object.order_id) ? Long.fromValue(object.order_id) : undefined,
|
|
2118
|
-
productId: isSet(object.product_id) ? Long.fromValue(object.product_id) : undefined,
|
|
2119
|
-
productType: isSet(object.product_type) ? globalThis.String(object.product_type) : "",
|
|
2120
|
-
productName: isSet(object.product_name) ? globalThis.String(object.product_name) : "",
|
|
2121
|
-
productDetail: isSet(object.product_detail) ? globalThis.String(object.product_detail) : "",
|
|
2122
|
-
currencyId: isSet(object.currency_id) ? Long.fromValue(object.currency_id) : undefined,
|
|
2123
|
-
discountPercent: isSet(object.discount_percent) ? globalThis.Number(object.discount_percent) : undefined,
|
|
2124
|
-
taxPrice: isSet(object.tax_price) ? globalThis.Number(object.tax_price) : 0,
|
|
2125
|
-
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
2126
|
-
price: isSet(object.price) ? globalThis.Number(object.price) : 0,
|
|
2127
|
-
months: isSet(object.months) ? globalThis.Number(object.months) : undefined,
|
|
2128
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
2129
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
2130
|
-
product: isSet(object.product) ? Product.fromJSON(object.product) : undefined,
|
|
2131
|
-
};
|
|
2132
|
-
},
|
|
2133
|
-
toJSON(message) {
|
|
2134
|
-
const obj = {};
|
|
2135
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
2136
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
2137
|
-
}
|
|
2138
|
-
if (message.orderId !== undefined) {
|
|
2139
|
-
obj.order_id = (message.orderId || Long.UZERO).toString();
|
|
2140
|
-
}
|
|
2141
|
-
if (message.productId !== undefined) {
|
|
2142
|
-
obj.product_id = (message.productId || Long.UZERO).toString();
|
|
2143
|
-
}
|
|
2144
|
-
if (message.productType !== "") {
|
|
2145
|
-
obj.product_type = message.productType;
|
|
2146
|
-
}
|
|
2147
|
-
if (message.productName !== "") {
|
|
2148
|
-
obj.product_name = message.productName;
|
|
2149
|
-
}
|
|
2150
|
-
if (message.productDetail !== "") {
|
|
2151
|
-
obj.product_detail = message.productDetail;
|
|
2152
|
-
}
|
|
2153
|
-
if (message.currencyId !== undefined) {
|
|
2154
|
-
obj.currency_id = (message.currencyId || Long.UZERO).toString();
|
|
2155
|
-
}
|
|
2156
|
-
if (message.discountPercent !== undefined) {
|
|
2157
|
-
obj.discount_percent = Math.round(message.discountPercent);
|
|
2158
|
-
}
|
|
2159
|
-
if (message.taxPrice !== 0) {
|
|
2160
|
-
obj.tax_price = message.taxPrice;
|
|
2161
|
-
}
|
|
2162
|
-
if (message.discount !== 0) {
|
|
2163
|
-
obj.discount = message.discount;
|
|
2164
|
-
}
|
|
2165
|
-
if (message.price !== 0) {
|
|
2166
|
-
obj.price = message.price;
|
|
2167
|
-
}
|
|
2168
|
-
if (message.months !== undefined) {
|
|
2169
|
-
obj.months = Math.round(message.months);
|
|
2170
|
-
}
|
|
2171
|
-
if (message.createdAt !== undefined) {
|
|
2172
|
-
obj.created_at = message.createdAt.toISOString();
|
|
2173
|
-
}
|
|
2174
|
-
if (message.updatedAt !== undefined) {
|
|
2175
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
2176
|
-
}
|
|
2177
|
-
if (message.product !== undefined) {
|
|
2178
|
-
obj.product = Product.toJSON(message.product);
|
|
2179
|
-
}
|
|
2180
|
-
return obj;
|
|
2181
|
-
},
|
|
2182
1658
|
create(base) {
|
|
2183
1659
|
return OrderProduct.fromPartial(base ?? {});
|
|
2184
1660
|
},
|
|
@@ -2220,20 +1696,6 @@ function fromTimestamp(t) {
|
|
|
2220
1696
|
millis += (t.nanos || 0) / 1_000_000;
|
|
2221
1697
|
return new globalThis.Date(millis);
|
|
2222
1698
|
}
|
|
2223
|
-
function fromJsonTimestamp(o) {
|
|
2224
|
-
if (o instanceof globalThis.Date) {
|
|
2225
|
-
return o;
|
|
2226
|
-
}
|
|
2227
|
-
else if (typeof o === "string") {
|
|
2228
|
-
return new globalThis.Date(o);
|
|
2229
|
-
}
|
|
2230
|
-
else {
|
|
2231
|
-
return fromTimestamp(Timestamp.fromJSON(o));
|
|
2232
|
-
}
|
|
2233
|
-
}
|
|
2234
1699
|
function numberToLong(number) {
|
|
2235
1700
|
return Long.fromNumber(number);
|
|
2236
1701
|
}
|
|
2237
|
-
function isSet(value) {
|
|
2238
|
-
return value !== null && value !== undefined;
|
|
2239
|
-
}
|