@agroyaar/sdk 3.0.0 → 3.0.1-1

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +243 -34
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -682,6 +682,14 @@ interface components {
682
682
  readonly updatedAt: string;
683
683
  /** Format: date-time */
684
684
  readonly deletedAt: string;
685
+ readonly name: string;
686
+ readonly persianName: string;
687
+ readonly imageUrl: string;
688
+ readonly code: string;
689
+ readonly version: number;
690
+ /** @enum {string} */
691
+ readonly type: "ORCHARD" | "FARM";
692
+ readonly productId: number;
685
693
  };
686
694
  ClimateKind: {
687
695
  id: string;
@@ -976,7 +984,7 @@ interface components {
976
984
  * 56.48
977
985
  * ]
978
986
  * ] */
979
- polygon: unknown[][];
987
+ polygon: number[][];
980
988
  centerCoordinates: components["schemas"]["Coordinate"];
981
989
  ownershipType: components["schemas"]["OwnershipType"];
982
990
  farmer: components["schemas"]["Farmer"];
@@ -1055,7 +1063,8 @@ interface components {
1055
1063
  Status: {
1056
1064
  id: string;
1057
1065
  label: string;
1058
- name: string;
1066
+ /** @enum {string} */
1067
+ name: "SUBMIT" | "ACTIVE" | "INACTIVE" | "CONFIRMED" | "PAID" | "DRAFT" | "PENDING" | "PROCESSING" | "ARCHIVED" | "COMPLETED" | "PASS_PAYMENT" | "VALID" | "INVALID" | "WRITING" | "REJECTED" | "FAILED" | "SUCCESS" | "DONE" | "VERIFIED" | "UNLOCK" | "LOCK" | "MODIFIED" | "REFUNDED_INVOICE" | "ACTIVE_LABORTORY_FIELD_EXPERIMENT_KIND" | "INACTIVE_LABORTORY_FIELD_EXPERIMENT_KIND" | "VALID_DEVICE_PUSH_TOKEN" | "INVALID_DEVICE_PUSH_TOKEN" | "DRAFT_MISSION" | "APPROVED_MISSION" | "REJECTED_MISSION" | "CANCELED_MISSION" | "COMPLETED_MISSION" | "IN_PROGRESS_MISSION" | "AWAITING_START_MISSION" | "AWAITING_APPROVAL_MISSION" | "AWAITING_REVIEW_DATA_MISSION" | "AWAITING_SAMPLE_DELIVERY_LABORATORY_MISSION" | "COMPLETED_REQUEST" | "AWAITING_SEND_REQUEST" | "AWAITING_REVIEW_REQUEST" | "AWAITING_PAYMENT_REQUEST" | "AWAITING_REVIEW_OFFER" | "AWAITING_COLLEAGUE_APPROVAL_REQUEST" | "AWAITING_MISSION_COMPLETION_REQUEST" | "AWAITING_PURCHASE_REQUEST" | "AWAITING_REVIEW_MISSION_DATA_REQUEST" | "REJECTED_REGISTRATION" | "REJECTED_MODIFICATION" | "REJECTED_ACTIVATION" | "CONFIRMED_ACTIVATION" | "CONFIRMED_REGISTRATION" | "AWAITING_REVIEW_ACTIVATION" | "AWAITING_SUBMIT_ACTIVATION" | "AWAITING_REVIEW_REGISTRATION" | "AWAITING_REVIEW_MODIFICATION" | "APPROVED_EXPERIMENT_ANALYSIS_REQUEST" | "REJECTED_EXPERIMENT_ANALYSIS_REQUEST" | "CANCELED_EXPERIMENT_ANALYSIS_REQUEST" | "COMPLETED_EXPERIMENT_ANALYSIS_REQUEST" | "IN_PROGRESS_EXPERIMENT_ANALYSIS_REQUEST" | "AWAITING_START_EXPERIMENT_ANALYSIS_REQUEST" | "AWAITING_APPROVAL_EXPERIMENT_ANALYSIS_REQUEST" | "DRAFT_EXPERIMENT_ANALYSIS_REQUEST" | "AWAITING_REVIEW_INQUIRY" | "COMPLETED_REGISTRATION" | "CANCELED_REQUEST" | "AWAITING_APPROVAL_RESIDENT_LEADING_EXPERT" | "APPROVED_RESIDENT_LEADING_EXPERT" | "REJECTED_RESIDENT_LEADING_EXPERT" | "AWAITING_SIGNING_CONTRACT" | "ACTIVE_LEADING_EXPERT" | "FAILED_CHARGE_WALLET_TRANSACTION" | "VERIFIED_CHARGE_WALLET_TRANSACTION" | "SUCCESS_PAYMENT_WALLET_TRANSACTION" | "SUCCESS_REFUND_WALLET_TRANSACTION" | "AWAITING_VERIFICATION_CHARGE_WALLET_TRANSACTION";
1059
1068
  };
1060
1069
  WeatherStationAlertPhoneNumber: {
1061
1070
  fullName: string;
@@ -1429,6 +1438,18 @@ interface components {
1429
1438
  */
1430
1439
  value: number;
1431
1440
  };
1441
+ MonthlyChartReportType: {
1442
+ /**
1443
+ * @description شماره ماه
1444
+ * @example 1
1445
+ */
1446
+ monthNumber: number;
1447
+ /**
1448
+ * @description مقدار
1449
+ * @example 20
1450
+ */
1451
+ value: number;
1452
+ };
1432
1453
  CroppingPatternRiskChartType: {
1433
1454
  /**
1434
1455
  * @description آستانه
@@ -1442,13 +1463,13 @@ interface components {
1442
1463
  */
1443
1464
  type: "ABOVE" | "BELOW";
1444
1465
  /** @description داده‌های نمودار */
1445
- data: unknown[][];
1466
+ data: components["schemas"]["MonthlyChartReportType"][];
1446
1467
  };
1447
1468
  CroppingPatternReport: {
1448
1469
  /** @description شناسه */
1449
1470
  id: string;
1450
1471
  /** @description محصول منتخب */
1451
- product: components["schemas"]["Product"];
1472
+ crop: components["schemas"]["Product"];
1452
1473
  /** @description مساحت پیشنهادی */
1453
1474
  suggestedArea: number;
1454
1475
  /** @description شاخص ترکیبی */
@@ -3694,40 +3715,13 @@ type SensorType = ApiRequestType<{
3694
3715
  };
3695
3716
  }>;
3696
3717
 
3697
- type Parameters$1 = {
3698
- params?: Record<string, unknown>;
3699
- pathParams?: Record<string, unknown>;
3700
- body?: Record<string, unknown>;
3701
- };
3702
- type ApiRequestType<M extends Record<string, unknown>, R extends Record<string, Parameters$1>> = {
3703
- Model: M;
3704
- RequestParams: R;
3705
- };
3706
- declare namespace ApiTypes {
3707
- type Auth = AuthType;
3708
- type DeviceCode = DeviceCodeType;
3709
- type Mechanization = MechanizationTypes;
3710
- type MechanizationQuestion = MechanizationQuestionType;
3711
- type Varieties = VarietiesType;
3712
- type SeasonsProcess = SeasonsProcessType;
3713
- type Sensor = SensorType;
3714
- }
3715
-
3716
- type GetVarietiesParams = paths["/statics/mechanizations-varieties"]["get"]["parameters"];
3717
- type VarietiesType = ApiRequestType<{
3718
- variety: components["schemas"]["MechanizationVariety"];
3719
- }, {
3720
- getAll: {
3721
- params: NonNullable<GetVarietiesParams["query"]>;
3722
- };
3723
- }>;
3724
-
3725
3718
  type ServiceType = "EXPERIMENT" | "VISIT" | "CHILLING_REQUIREMENT" | "CULTIVAR_RECOMMENDATION" | "FIRST_SAFFRON_IRRIGATION_DATE_RECOMMENDATION" | "HARVEST_DATE_RECOMMENDATION" | "QUESTIONNAIRE" | "SOWING_DATE_RECOMMENDATIONS" | "WEATHER_STATION" | "YIELD_GAP";
3726
- type StatusType = "ACTIVE" | "ACTIVE_LEADING_EXPERT" | "APPROVED_EXPERIMENT_ANALYSIS_REQUEST" | "APPROVED_MISSION" | "APPROVED_RESIDENT_LEADING_EXPERT" | "ARCHIVED" | "AWAITING_APPROVAL_EXPERIMENT_ANALYSIS_REQUEST" | "AWAITING_APPROVAL_MISSION" | "AWAITING_APPROVAL_RESIDENT_LEADING_EXPERT" | "AWAITING_COLLEAGUE_APPROVAL_REQUEST" | "AWAITING_MISSION_COMPLETION_REQUEST" | "AWAITING_PAYMENT_REQUEST" | "AWAITING_PURCHASE_REQUEST" | "AWAITING_REVIEW_ACTIVATION" | "AWAITING_REVIEW_DATA_MISSION" | "AWAITING_REVIEW_INQUIRY" | "AWAITING_REVIEW_MISSION_DATA_REQUEST" | "AWAITING_REVIEW_MODIFICATION" | "AWAITING_REVIEW_OFFER" | "AWAITING_REVIEW_REGISTRATION" | "AWAITING_REVIEW_REQUEST" | "AWAITING_SAMPLE_DELIVERY_LABORATORY_MISSION" | "AWAITING_SEND_REQUEST" | "AWAITING_SIGNING_CONTRACT" | "AWAITING_START_EXPERIMENT_ANALYSIS_REQUEST" | "AWAITING_START_MISSION" | "AWAITING_SUBMIT_ACTIVATION" | "AWAITING_VERIFICATION_CHARGE_WALLET_TRANSACTION" | "CANCELED_EXPERIMENT_ANALYSIS_REQUEST" | "CANCELED_MISSION" | "CANCELED_REQUEST" | "COMPLETED" | "COMPLETED_EXPERIMENT_ANALYSIS_REQUEST" | "COMPLETED_MISSION" | "COMPLETED_REGISTRATION" | "COMPLETED_REQUEST" | "CONFIRMED" | "CONFIRMED_ACTIVATION" | "CONFIRMED_REGISTRATION" | "DONE" | "DRAFT" | "DRAFT_EXPERIMENT_ANALYSIS_REQUEST" | "DRAFT_MISSION" | "FAILED" | "FAILED_CHARGE_WALLET_TRANSACTION" | "INACTIVE" | "INVALID" | "INVALID_DEVICE_PUSH_TOKEN" | "IN_PROGRESS_EXPERIMENT_ANALYSIS_REQUEST" | "IN_PROGRESS_MISSION" | "PAID" | "PASS_PAYMENT" | "PENDING" | "PROCESSING" | "REJECTED" | "REJECTED_ACTIVATION" | "REJECTED_EXPERIMENT_ANALYSIS_REQUEST" | "REJECTED_MISSION" | "REJECTED_MODIFICATION" | "REJECTED_REGISTRATION" | "REJECTED_RESIDENT_LEADING_EXPERT" | "SUBMIT" | "SUCCESS" | "SUCCESS_PAYMENT_WALLET_TRANSACTION" | "VALID" | "VALID_DEVICE_PUSH_TOKEN" | "VERIFIED" | "VERIFIED_CHARGE_WALLET_TRANSACTION" | "WRITING" | "AWAITING_APPROVAL_RESIDENT_LEADING_EXPERT" | "APPROVED_RESIDENT_LEADING_EXPERT" | "REJECTED_RESIDENT_LEADING_EXPERT";
3719
+ type StatusType = "SUBMIT" | "ACTIVE" | "INACTIVE" | "CONFIRMED" | "PAID" | "DRAFT" | "PENDING" | "PROCESSING" | "ARCHIVED" | "COMPLETED" | "PASS_PAYMENT" | "VALID" | "INVALID" | "WRITING" | "REJECTED" | "FAILED" | "SUCCESS" | "DONE" | "VERIFIED" | "UNLOCK" | "LOCK" | "MODIFIED" | "REFUNDED_INVOICE" | "ACTIVE_LABORTORY_FIELD_EXPERIMENT_KIND" | "INACTIVE_LABORTORY_FIELD_EXPERIMENT_KIND" | "VALID_DEVICE_PUSH_TOKEN" | "INVALID_DEVICE_PUSH_TOKEN" | "DRAFT_MISSION" | "APPROVED_MISSION" | "REJECTED_MISSION" | "CANCELED_MISSION" | "COMPLETED_MISSION" | "IN_PROGRESS_MISSION" | "AWAITING_START_MISSION" | "AWAITING_APPROVAL_MISSION" | "AWAITING_REVIEW_DATA_MISSION" | "AWAITING_SAMPLE_DELIVERY_LABORATORY_MISSION" | "COMPLETED_REQUEST" | "AWAITING_SEND_REQUEST" | "AWAITING_REVIEW_REQUEST" | "AWAITING_PAYMENT_REQUEST" | "AWAITING_REVIEW_OFFER" | "AWAITING_COLLEAGUE_APPROVAL_REQUEST" | "AWAITING_MISSION_COMPLETION_REQUEST" | "AWAITING_PURCHASE_REQUEST" | "AWAITING_REVIEW_MISSION_DATA_REQUEST" | "REJECTED_REGISTRATION" | "REJECTED_MODIFICATION" | "REJECTED_ACTIVATION" | "CONFIRMED_ACTIVATION" | "CONFIRMED_REGISTRATION" | "AWAITING_REVIEW_ACTIVATION" | "AWAITING_SUBMIT_ACTIVATION" | "AWAITING_REVIEW_REGISTRATION" | "AWAITING_REVIEW_MODIFICATION" | "APPROVED_EXPERIMENT_ANALYSIS_REQUEST" | "REJECTED_EXPERIMENT_ANALYSIS_REQUEST" | "CANCELED_EXPERIMENT_ANALYSIS_REQUEST" | "COMPLETED_EXPERIMENT_ANALYSIS_REQUEST" | "IN_PROGRESS_EXPERIMENT_ANALYSIS_REQUEST" | "AWAITING_START_EXPERIMENT_ANALYSIS_REQUEST" | "AWAITING_APPROVAL_EXPERIMENT_ANALYSIS_REQUEST" | "DRAFT_EXPERIMENT_ANALYSIS_REQUEST" | "AWAITING_REVIEW_INQUIRY" | "COMPLETED_REGISTRATION" | "CANCELED_REQUEST" | "AWAITING_APPROVAL_RESIDENT_LEADING_EXPERT" | "APPROVED_RESIDENT_LEADING_EXPERT" | "REJECTED_RESIDENT_LEADING_EXPERT" | "AWAITING_SIGNING_CONTRACT" | "ACTIVE_LEADING_EXPERT" | "FAILED_CHARGE_WALLET_TRANSACTION" | "VERIFIED_CHARGE_WALLET_TRANSACTION" | "SUCCESS_PAYMENT_WALLET_TRANSACTION" | "SUCCESS_REFUND_WALLET_TRANSACTION" | "AWAITING_VERIFICATION_CHARGE_WALLET_TRANSACTION";
3727
3720
  type TaskType = "SAMPLING_REQUEST" | "SAMPLING_MISSION" | "ANALYSIS_REQUEST" | "MAP_DRAWING" | "WATER_SAMPLE_CONTROL" | "WATER_ANALYSIS_MEASUREMENT" | "WATER_EXPERIMENT_TECHNICAL_REVIEW" | "PLANT_SAMPLE_CONTROL" | "PLANT_ANALYSIS_MEASUREMENT" | "PLANT_EXPERIMENT_TECHNICAL_REVIEW" | "SOIL_SAMPLE_CONTROL" | "SOIL_ANALYSIS_MEASUREMENT" | "SOIL_EXPERIMENT_TECHNICAL_REVIEW" | "SENDING_REPORTS" | "TECHNICAL_REVIEW" | "EXPERIMENT_ANALYSIS_RESULTS_CONTROL" | "EXPERIMENT_RECOMMENDATION_ANALYSIS_RESULTS" | "SUPPORT_EXPERIMENTS" | "VISIT_REQUEST" | "FOLLOW_UP_VISIT" | "VISIT_MAP_DRAWING" | "VISIT_SENDING_REPORTS" | "SUPPORT_VISITS";
3728
3721
  type MechanizationType = "MOTORIZED" | "NON_MOTORIZED";
3729
3722
  type MechanizationSeasonProcessType = "GROWING" | "HARVESTING" | "PLANTING" | "TRANSPORTATION";
3730
3723
  type MechanizationMachineUsageType = "BALER" | "CRUSHING" | "CRUST_BREAKER" | "FERTILIZER_SPREADER" | "FORAGE_COLLECTOR" | "FURROWER" | "GRASS_CUTTER" | "GRINDING" | "HARVESTING" | "LEVELING" | "LOADER" | "MULTI_PURPOSE" | "SEEDER" | "SPRAYER" | "TILLAGE" | "TRANSPORTATION" | "WEEDER";
3724
+ type ProductKindType = "ORCHARD" | "FARM";
3731
3725
 
3732
3726
  type Status = {
3733
3727
  id: string;
@@ -3749,6 +3743,133 @@ type MechanizationMachineUsageKind = {
3749
3743
  label: string;
3750
3744
  name: MechanizationMachineUsageType;
3751
3745
  };
3746
+ type Location = {
3747
+ type: string;
3748
+ coordinates: number[];
3749
+ };
3750
+ type Province = {
3751
+ id: string;
3752
+ name: string;
3753
+ version: number;
3754
+ code: number;
3755
+ };
3756
+ type City = {
3757
+ id: string;
3758
+ name: string;
3759
+ location: Location;
3760
+ province: Province;
3761
+ provinceId: string;
3762
+ };
3763
+ type OwnershipType = {
3764
+ id: number;
3765
+ name: string;
3766
+ categoryFA: string;
3767
+ categoryEN: string;
3768
+ iconURL: string;
3769
+ categoryId: string;
3770
+ };
3771
+ type Farmer = {
3772
+ id: string;
3773
+ createdAt: string;
3774
+ updatedAt: string;
3775
+ deletedAt: string;
3776
+ firstName: string;
3777
+ lastName: string;
3778
+ phoneNumber: string;
3779
+ city: City;
3780
+ cityId: string;
3781
+ nationalCode: string;
3782
+ province: Province;
3783
+ provinceId: string;
3784
+ zone: string;
3785
+ farmerCode: string;
3786
+ avatar: string;
3787
+ walletBalance: number;
3788
+ status: "DRAFT" | "PENDING";
3789
+ };
3790
+ type Farm = {
3791
+ id: string;
3792
+ area: number;
3793
+ city: City;
3794
+ cityId: string;
3795
+ name: string;
3796
+ province: Province;
3797
+ provinceId: string;
3798
+ zone: string;
3799
+ farmerId: string;
3800
+ polygon: number[][];
3801
+ centerCoordinates: Location;
3802
+ ownershipType: OwnershipType;
3803
+ farmer: Farmer;
3804
+ };
3805
+ type IrrigationSource = {
3806
+ id: string;
3807
+ city: City;
3808
+ cityId: string;
3809
+ name: string;
3810
+ province: Province;
3811
+ provinceId: string;
3812
+ zone: string;
3813
+ discharge: number;
3814
+ location: Location;
3815
+ farmerId: string;
3816
+ farmer: Farmer;
3817
+ };
3818
+ type WeatherStationAlertPhoneNumber = {
3819
+ fullName: string;
3820
+ position: string;
3821
+ phoneNumber: string;
3822
+ };
3823
+ type WeatherStation = {
3824
+ id: string;
3825
+ name: string;
3826
+ zone: string;
3827
+ city: City;
3828
+ cityId: string;
3829
+ status: Status;
3830
+ statusName: string;
3831
+ farmer: Farmer;
3832
+ farmerId: string;
3833
+ province: Province;
3834
+ provinceId: string;
3835
+ location: Location;
3836
+ servicesIds: number;
3837
+ alertPhoneNumbers: WeatherStationAlertPhoneNumber;
3838
+ weatherStationServiceRequests: string[];
3839
+ climaticHistoryFile: string;
3840
+ purchasedAlertPhoneNumbersCount: number;
3841
+ expirationAt: string;
3842
+ };
3843
+ type Invoice = {
3844
+ id: string;
3845
+ createdAt: string;
3846
+ updatedAt: string;
3847
+ deletedAt: string;
3848
+ };
3849
+ type Experiment = {
3850
+ id: string;
3851
+ createdAt: string;
3852
+ updatedAt: string;
3853
+ deletedAt: string;
3854
+ };
3855
+ type Product = {
3856
+ id: string;
3857
+ createdAt: string;
3858
+ updatedAt: string;
3859
+ deletedAt: string;
3860
+ name: string;
3861
+ persianName: string;
3862
+ imageUrl: string;
3863
+ code: string;
3864
+ version: number;
3865
+ type: ProductKindType;
3866
+ productId: number;
3867
+ };
3868
+ type ProductKind = {
3869
+ id: string;
3870
+ label: string;
3871
+ name: string;
3872
+ };
3752
3873
 
3753
3874
  declare const __brand: unique symbol;
3754
3875
  type Brand<B> = {
@@ -3764,6 +3885,7 @@ declare namespace Identifiers {
3764
3885
  type FarmerId = Branded<string, "farmer-id">;
3765
3886
  type QuestionId = Branded<string, "question-id">;
3766
3887
  type MechanizationMovementChangeId = Branded<string, " movement-changes-id">;
3888
+ type CroppingPatternId = Branded<string, "cropping-pattern-id">;
3767
3889
  }
3768
3890
 
3769
3891
  type MechanizationVarietyModel = {
@@ -3855,6 +3977,93 @@ type MovementChangeModel = {
3855
3977
  type DeviceCodeModel = {
3856
3978
  deviceCode: string;
3857
3979
  };
3980
+ type AnnuallyChartReportModel = {
3981
+ year: number;
3982
+ value: number;
3983
+ };
3984
+ type DayOfYearChartReportModel = {
3985
+ dayOfYear: number;
3986
+ value: number;
3987
+ };
3988
+ type CroppingPatternRiskChartModel = {
3989
+ threshold: number;
3990
+ type: "ABOVE" | "BELOW";
3991
+ data: {
3992
+ monthNumber: number;
3993
+ value: number;
3994
+ }[];
3995
+ };
3996
+ type CroppingPatternReportModel = {
3997
+ id: string;
3998
+ crop: Product;
3999
+ suggestedArea: number;
4000
+ compositeIndex: number;
4001
+ soilAdaptabilityIndex: number;
4002
+ profitabilityIndex: number;
4003
+ climaticAdaptabilityIndex: number;
4004
+ irrigationRequirementIndex: number;
4005
+ annuallyPerformancePotential: AnnuallyChartReportModel[];
4006
+ annuallyNetIrrigationRequirement: AnnuallyChartReportModel[];
4007
+ annuallySuppliedGrowingDegreeDay: AnnuallyChartReportModel[];
4008
+ dailyMaximumTemperatureChange: DayOfYearChartReportModel[];
4009
+ dailyMinimumTemperatureChange: DayOfYearChartReportModel[];
4010
+ dailyMeanTemperatureChange: DayOfYearChartReportModel[];
4011
+ temperatureRisks: CroppingPatternRiskChartModel[];
4012
+ humidityRisks: CroppingPatternRiskChartModel[];
4013
+ };
4014
+ type CroppingPatternModel = {
4015
+ id: string;
4016
+ farm: Farm;
4017
+ farmer: Farmer;
4018
+ irrigationSource: IrrigationSource;
4019
+ experiment: Experiment;
4020
+ invoice: Invoice;
4021
+ weatherStation: WeatherStation;
4022
+ growingSeasonIrrigationTimes: number;
4023
+ irrigationHoursPerShift: number;
4024
+ cropKind: ProductKind;
4025
+ reports: CroppingPatternReportModel[];
4026
+ selectedCrops: Product[];
4027
+ status: Status;
4028
+ };
4029
+
4030
+ type GetOneCroppingPatternParams = paths["/farmers/{farmerId}/cropping-patterns/{croppingPatternId}"]["get"]["parameters"]["path"];
4031
+ type CroppingPatternTypes = ApiRequestType<{
4032
+ croppingPattern: components["schemas"]["CroppingPattern"];
4033
+ }, {
4034
+ getOne: {
4035
+ pathParams: NonNullable<GetOneCroppingPatternParams>;
4036
+ };
4037
+ }>;
4038
+
4039
+ type Parameters$1 = {
4040
+ params?: Record<string, unknown>;
4041
+ pathParams?: Record<string, unknown>;
4042
+ body?: Record<string, unknown>;
4043
+ };
4044
+ type ApiRequestType<M extends Record<string, unknown>, R extends Record<string, Parameters$1>> = {
4045
+ Model: M;
4046
+ RequestParams: R;
4047
+ };
4048
+ declare namespace ApiTypes {
4049
+ type Auth = AuthType;
4050
+ type DeviceCode = DeviceCodeType;
4051
+ type Mechanization = MechanizationTypes;
4052
+ type MechanizationQuestion = MechanizationQuestionType;
4053
+ type Varieties = VarietiesType;
4054
+ type SeasonsProcess = SeasonsProcessType;
4055
+ type Sensor = SensorType;
4056
+ type CroppingPattern = CroppingPatternTypes;
4057
+ }
4058
+
4059
+ type GetVarietiesParams = paths["/statics/mechanizations-varieties"]["get"]["parameters"];
4060
+ type VarietiesType = ApiRequestType<{
4061
+ variety: components["schemas"]["MechanizationVariety"];
4062
+ }, {
4063
+ getAll: {
4064
+ params: NonNullable<GetVarietiesParams["query"]>;
4065
+ };
4066
+ }>;
3858
4067
 
3859
4068
  type HttpMethod = "get" | "post" | "put" | "delete" | "patch";
3860
4069
  type ExtractPathsByMethod<M extends HttpMethod> = {
@@ -3942,4 +4151,4 @@ declare const createSDK: (config: ClientConfig, middlewares?: Parameters<typeof
3942
4151
  };
3943
4152
  };
3944
4153
 
3945
- export { type ApiRequestType, ApiTypes, type DeviceCodeModel, Identifiers, type MechanizationFuelConsumptionChangesModel, type MechanizationMachineUsageKind, type MechanizationMachineUsageType, type MechanizationModel, type MechanizationMovementChangesModel, type MechanizationMovementChangesModelWithMeta, type MechanizationQuestionModel, type MechanizationSeasonProcessKind, type MechanizationSeasonProcessType, type MechanizationTemperatureChangesModel, type MechanizationType, type MechanizationVarietyModel, type MotorizedMechanizationSensorsModel, type MovementChangeModel, type SeasonsProcessModel, type ServiceType, type SpeedChangesChartModel, type Status, type StatusType, type TaskType, type TrackingDeviceCodeModel, type VarietyKind, type VerifyPhoneNumberModel, createSDK };
4154
+ export { type AnnuallyChartReportModel, type ApiRequestType, ApiTypes, type City, type CroppingPatternModel, type CroppingPatternReportModel, type CroppingPatternRiskChartModel, type DayOfYearChartReportModel, type DeviceCodeModel, type Experiment, type Farm, type Farmer, Identifiers, type Invoice, type IrrigationSource, type Location, type MechanizationFuelConsumptionChangesModel, type MechanizationMachineUsageKind, type MechanizationMachineUsageType, type MechanizationModel, type MechanizationMovementChangesModel, type MechanizationMovementChangesModelWithMeta, type MechanizationQuestionModel, type MechanizationSeasonProcessKind, type MechanizationSeasonProcessType, type MechanizationTemperatureChangesModel, type MechanizationType, type MechanizationVarietyModel, type MotorizedMechanizationSensorsModel, type MovementChangeModel, type OwnershipType, type Product, type ProductKind, type ProductKindType, type Province, type SeasonsProcessModel, type ServiceType, type SpeedChangesChartModel, type Status, type StatusType, type TaskType, type TrackingDeviceCodeModel, type VarietyKind, type VerifyPhoneNumberModel, type WeatherStation, type WeatherStationAlertPhoneNumber, createSDK };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agroyaar/sdk",
3
- "version": "3.0.0",
3
+ "version": "3.0.1-1",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",