@fatehan/tsrp 1.4.9 → 1.4.11
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/workflow.d.ts +0 -26
- package/dist/fatehan/activities/workflow.d.ts.map +1 -1
- package/dist/fatehan/activities/workflow.js +1 -404
- package/dist/fatehan/reports/report.d.ts +3 -0
- package/dist/fatehan/reports/report.d.ts.map +1 -1
- package/dist/fatehan/reports/report.js +49 -1
- package/dist/fatehan/services/api.d.ts +1 -37
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +1 -515
- package/dist/fatehan/services/repositories.d.ts +0 -19
- package/dist/fatehan/services/repositories.d.ts.map +1 -1
- package/dist/fatehan/services/repositories.js +1 -271
- package/package.json +1 -1
|
@@ -8,11 +8,10 @@ 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.ProductRepo = exports.SubscriptionRepo = exports.
|
|
11
|
+
exports.ProductRepo = exports.SubscriptionRepo = exports.CarModelRepo = exports.DriverRepo = exports.UserRepo = exports.PersonRepo = exports.CarRepo = exports.DeviceRepo = 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");
|
|
16
15
|
const devices_1 = require("../devices/devices");
|
|
17
16
|
const financial_1 = require("../financial/financial");
|
|
18
17
|
const identities_1 = require("../identities/identities");
|
|
@@ -609,275 +608,6 @@ exports.CarModelRepo = {
|
|
|
609
608
|
return message;
|
|
610
609
|
},
|
|
611
610
|
};
|
|
612
|
-
function createBaseWorkflowTaskRepo() {
|
|
613
|
-
return {
|
|
614
|
-
workflow: undefined,
|
|
615
|
-
workflowDetail: undefined,
|
|
616
|
-
organization: undefined,
|
|
617
|
-
device: undefined,
|
|
618
|
-
car: undefined,
|
|
619
|
-
tanesh: undefined,
|
|
620
|
-
payambar: undefined,
|
|
621
|
-
};
|
|
622
|
-
}
|
|
623
|
-
exports.WorkflowTaskRepo = {
|
|
624
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
625
|
-
if (message.workflow !== undefined) {
|
|
626
|
-
workflow_1.Workflow.encode(message.workflow, writer.uint32(10).fork()).join();
|
|
627
|
-
}
|
|
628
|
-
if (message.workflowDetail !== undefined) {
|
|
629
|
-
workflow_1.WorkflowDetail.encode(message.workflowDetail, writer.uint32(18).fork()).join();
|
|
630
|
-
}
|
|
631
|
-
if (message.organization !== undefined) {
|
|
632
|
-
identities_1.Organization.encode(message.organization, writer.uint32(26).fork()).join();
|
|
633
|
-
}
|
|
634
|
-
if (message.device !== undefined) {
|
|
635
|
-
devices_1.Device.encode(message.device, writer.uint32(34).fork()).join();
|
|
636
|
-
}
|
|
637
|
-
if (message.car !== undefined) {
|
|
638
|
-
devices_1.Car.encode(message.car, writer.uint32(42).fork()).join();
|
|
639
|
-
}
|
|
640
|
-
if (message.tanesh !== undefined) {
|
|
641
|
-
exports.WorkflowTaskRepo_TaneshRepo.encode(message.tanesh, writer.uint32(90).fork()).join();
|
|
642
|
-
}
|
|
643
|
-
if (message.payambar !== undefined) {
|
|
644
|
-
exports.WorkflowTaskRepo_PayambarRepo.encode(message.payambar, writer.uint32(98).fork()).join();
|
|
645
|
-
}
|
|
646
|
-
return writer;
|
|
647
|
-
},
|
|
648
|
-
decode(input, length) {
|
|
649
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
650
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
651
|
-
const message = createBaseWorkflowTaskRepo();
|
|
652
|
-
while (reader.pos < end) {
|
|
653
|
-
const tag = reader.uint32();
|
|
654
|
-
switch (tag >>> 3) {
|
|
655
|
-
case 1: {
|
|
656
|
-
if (tag !== 10) {
|
|
657
|
-
break;
|
|
658
|
-
}
|
|
659
|
-
message.workflow = workflow_1.Workflow.decode(reader, reader.uint32());
|
|
660
|
-
continue;
|
|
661
|
-
}
|
|
662
|
-
case 2: {
|
|
663
|
-
if (tag !== 18) {
|
|
664
|
-
break;
|
|
665
|
-
}
|
|
666
|
-
message.workflowDetail = workflow_1.WorkflowDetail.decode(reader, reader.uint32());
|
|
667
|
-
continue;
|
|
668
|
-
}
|
|
669
|
-
case 3: {
|
|
670
|
-
if (tag !== 26) {
|
|
671
|
-
break;
|
|
672
|
-
}
|
|
673
|
-
message.organization = identities_1.Organization.decode(reader, reader.uint32());
|
|
674
|
-
continue;
|
|
675
|
-
}
|
|
676
|
-
case 4: {
|
|
677
|
-
if (tag !== 34) {
|
|
678
|
-
break;
|
|
679
|
-
}
|
|
680
|
-
message.device = devices_1.Device.decode(reader, reader.uint32());
|
|
681
|
-
continue;
|
|
682
|
-
}
|
|
683
|
-
case 5: {
|
|
684
|
-
if (tag !== 42) {
|
|
685
|
-
break;
|
|
686
|
-
}
|
|
687
|
-
message.car = devices_1.Car.decode(reader, reader.uint32());
|
|
688
|
-
continue;
|
|
689
|
-
}
|
|
690
|
-
case 11: {
|
|
691
|
-
if (tag !== 90) {
|
|
692
|
-
break;
|
|
693
|
-
}
|
|
694
|
-
message.tanesh = exports.WorkflowTaskRepo_TaneshRepo.decode(reader, reader.uint32());
|
|
695
|
-
continue;
|
|
696
|
-
}
|
|
697
|
-
case 12: {
|
|
698
|
-
if (tag !== 98) {
|
|
699
|
-
break;
|
|
700
|
-
}
|
|
701
|
-
message.payambar = exports.WorkflowTaskRepo_PayambarRepo.decode(reader, reader.uint32());
|
|
702
|
-
continue;
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
706
|
-
break;
|
|
707
|
-
}
|
|
708
|
-
reader.skip(tag & 7);
|
|
709
|
-
}
|
|
710
|
-
return message;
|
|
711
|
-
},
|
|
712
|
-
fromJSON(object) {
|
|
713
|
-
return {
|
|
714
|
-
workflow: isSet(object.workflow) ? workflow_1.Workflow.fromJSON(object.workflow) : undefined,
|
|
715
|
-
workflowDetail: isSet(object.workflow_detail) ? workflow_1.WorkflowDetail.fromJSON(object.workflow_detail) : undefined,
|
|
716
|
-
organization: isSet(object.organization) ? identities_1.Organization.fromJSON(object.organization) : undefined,
|
|
717
|
-
device: isSet(object.device) ? devices_1.Device.fromJSON(object.device) : undefined,
|
|
718
|
-
car: isSet(object.car) ? devices_1.Car.fromJSON(object.car) : undefined,
|
|
719
|
-
tanesh: isSet(object.tanesh) ? exports.WorkflowTaskRepo_TaneshRepo.fromJSON(object.tanesh) : undefined,
|
|
720
|
-
payambar: isSet(object.payambar) ? exports.WorkflowTaskRepo_PayambarRepo.fromJSON(object.payambar) : undefined,
|
|
721
|
-
};
|
|
722
|
-
},
|
|
723
|
-
toJSON(message) {
|
|
724
|
-
const obj = {};
|
|
725
|
-
if (message.workflow !== undefined) {
|
|
726
|
-
obj.workflow = workflow_1.Workflow.toJSON(message.workflow);
|
|
727
|
-
}
|
|
728
|
-
if (message.workflowDetail !== undefined) {
|
|
729
|
-
obj.workflow_detail = workflow_1.WorkflowDetail.toJSON(message.workflowDetail);
|
|
730
|
-
}
|
|
731
|
-
if (message.organization !== undefined) {
|
|
732
|
-
obj.organization = identities_1.Organization.toJSON(message.organization);
|
|
733
|
-
}
|
|
734
|
-
if (message.device !== undefined) {
|
|
735
|
-
obj.device = devices_1.Device.toJSON(message.device);
|
|
736
|
-
}
|
|
737
|
-
if (message.car !== undefined) {
|
|
738
|
-
obj.car = devices_1.Car.toJSON(message.car);
|
|
739
|
-
}
|
|
740
|
-
if (message.tanesh !== undefined) {
|
|
741
|
-
obj.tanesh = exports.WorkflowTaskRepo_TaneshRepo.toJSON(message.tanesh);
|
|
742
|
-
}
|
|
743
|
-
if (message.payambar !== undefined) {
|
|
744
|
-
obj.payambar = exports.WorkflowTaskRepo_PayambarRepo.toJSON(message.payambar);
|
|
745
|
-
}
|
|
746
|
-
return obj;
|
|
747
|
-
},
|
|
748
|
-
create(base) {
|
|
749
|
-
return exports.WorkflowTaskRepo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
750
|
-
},
|
|
751
|
-
fromPartial(object) {
|
|
752
|
-
const message = createBaseWorkflowTaskRepo();
|
|
753
|
-
message.workflow = (object.workflow !== undefined && object.workflow !== null)
|
|
754
|
-
? workflow_1.Workflow.fromPartial(object.workflow)
|
|
755
|
-
: undefined;
|
|
756
|
-
message.workflowDetail = (object.workflowDetail !== undefined && object.workflowDetail !== null)
|
|
757
|
-
? workflow_1.WorkflowDetail.fromPartial(object.workflowDetail)
|
|
758
|
-
: undefined;
|
|
759
|
-
message.organization = (object.organization !== undefined && object.organization !== null)
|
|
760
|
-
? identities_1.Organization.fromPartial(object.organization)
|
|
761
|
-
: undefined;
|
|
762
|
-
message.device = (object.device !== undefined && object.device !== null)
|
|
763
|
-
? devices_1.Device.fromPartial(object.device)
|
|
764
|
-
: undefined;
|
|
765
|
-
message.car = (object.car !== undefined && object.car !== null) ? devices_1.Car.fromPartial(object.car) : undefined;
|
|
766
|
-
message.tanesh = (object.tanesh !== undefined && object.tanesh !== null)
|
|
767
|
-
? exports.WorkflowTaskRepo_TaneshRepo.fromPartial(object.tanesh)
|
|
768
|
-
: undefined;
|
|
769
|
-
message.payambar = (object.payambar !== undefined && object.payambar !== null)
|
|
770
|
-
? exports.WorkflowTaskRepo_PayambarRepo.fromPartial(object.payambar)
|
|
771
|
-
: undefined;
|
|
772
|
-
return message;
|
|
773
|
-
},
|
|
774
|
-
};
|
|
775
|
-
function createBaseWorkflowTaskRepo_TaneshRepo() {
|
|
776
|
-
return { passengerName: undefined, driverName: undefined };
|
|
777
|
-
}
|
|
778
|
-
exports.WorkflowTaskRepo_TaneshRepo = {
|
|
779
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
780
|
-
if (message.passengerName !== undefined) {
|
|
781
|
-
writer.uint32(10).string(message.passengerName);
|
|
782
|
-
}
|
|
783
|
-
if (message.driverName !== undefined) {
|
|
784
|
-
writer.uint32(18).string(message.driverName);
|
|
785
|
-
}
|
|
786
|
-
return writer;
|
|
787
|
-
},
|
|
788
|
-
decode(input, length) {
|
|
789
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
790
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
791
|
-
const message = createBaseWorkflowTaskRepo_TaneshRepo();
|
|
792
|
-
while (reader.pos < end) {
|
|
793
|
-
const tag = reader.uint32();
|
|
794
|
-
switch (tag >>> 3) {
|
|
795
|
-
case 1: {
|
|
796
|
-
if (tag !== 10) {
|
|
797
|
-
break;
|
|
798
|
-
}
|
|
799
|
-
message.passengerName = reader.string();
|
|
800
|
-
continue;
|
|
801
|
-
}
|
|
802
|
-
case 2: {
|
|
803
|
-
if (tag !== 18) {
|
|
804
|
-
break;
|
|
805
|
-
}
|
|
806
|
-
message.driverName = reader.string();
|
|
807
|
-
continue;
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
811
|
-
break;
|
|
812
|
-
}
|
|
813
|
-
reader.skip(tag & 7);
|
|
814
|
-
}
|
|
815
|
-
return message;
|
|
816
|
-
},
|
|
817
|
-
fromJSON(object) {
|
|
818
|
-
return {
|
|
819
|
-
passengerName: isSet(object.passenger_name) ? globalThis.String(object.passenger_name) : undefined,
|
|
820
|
-
driverName: isSet(object.driver_name) ? globalThis.String(object.driver_name) : undefined,
|
|
821
|
-
};
|
|
822
|
-
},
|
|
823
|
-
toJSON(message) {
|
|
824
|
-
const obj = {};
|
|
825
|
-
if (message.passengerName !== undefined) {
|
|
826
|
-
obj.passenger_name = message.passengerName;
|
|
827
|
-
}
|
|
828
|
-
if (message.driverName !== undefined) {
|
|
829
|
-
obj.driver_name = message.driverName;
|
|
830
|
-
}
|
|
831
|
-
return obj;
|
|
832
|
-
},
|
|
833
|
-
create(base) {
|
|
834
|
-
return exports.WorkflowTaskRepo_TaneshRepo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
835
|
-
},
|
|
836
|
-
fromPartial(object) {
|
|
837
|
-
var _a, _b;
|
|
838
|
-
const message = createBaseWorkflowTaskRepo_TaneshRepo();
|
|
839
|
-
message.passengerName = (_a = object.passengerName) !== null && _a !== void 0 ? _a : undefined;
|
|
840
|
-
message.driverName = (_b = object.driverName) !== null && _b !== void 0 ? _b : undefined;
|
|
841
|
-
return message;
|
|
842
|
-
},
|
|
843
|
-
};
|
|
844
|
-
function createBaseWorkflowTaskRepo_PayambarRepo() {
|
|
845
|
-
return {};
|
|
846
|
-
}
|
|
847
|
-
exports.WorkflowTaskRepo_PayambarRepo = {
|
|
848
|
-
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
849
|
-
return writer;
|
|
850
|
-
},
|
|
851
|
-
decode(input, length) {
|
|
852
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
853
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
854
|
-
const message = createBaseWorkflowTaskRepo_PayambarRepo();
|
|
855
|
-
while (reader.pos < end) {
|
|
856
|
-
const tag = reader.uint32();
|
|
857
|
-
switch (tag >>> 3) {
|
|
858
|
-
}
|
|
859
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
860
|
-
break;
|
|
861
|
-
}
|
|
862
|
-
reader.skip(tag & 7);
|
|
863
|
-
}
|
|
864
|
-
return message;
|
|
865
|
-
},
|
|
866
|
-
fromJSON(_) {
|
|
867
|
-
return {};
|
|
868
|
-
},
|
|
869
|
-
toJSON(_) {
|
|
870
|
-
const obj = {};
|
|
871
|
-
return obj;
|
|
872
|
-
},
|
|
873
|
-
create(base) {
|
|
874
|
-
return exports.WorkflowTaskRepo_PayambarRepo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
875
|
-
},
|
|
876
|
-
fromPartial(_) {
|
|
877
|
-
const message = createBaseWorkflowTaskRepo_PayambarRepo();
|
|
878
|
-
return message;
|
|
879
|
-
},
|
|
880
|
-
};
|
|
881
611
|
function createBaseSubscriptionRepo() {
|
|
882
612
|
return { partnerId: long_1.default.UZERO, customSubs: [], packages: [], gateways: [] };
|
|
883
613
|
}
|