@agroyaar/sdk 3.1.3 → 3.1.4

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/index.cjs CHANGED
@@ -105,6 +105,9 @@ var croppingPatternMapper = {
105
105
  growingSeasonIrrigationTimes: dto.growingSeasonIrrigationTimes,
106
106
  irrigationHoursPerShift: dto.irrigationHoursPerShift,
107
107
  reports: dto.reports,
108
+ dailyMaximumTemperatureChange: dto.dailyMaximumTemperatureChange,
109
+ dailyMeanTemperatureChange: dto.dailyMeanTemperatureChange,
110
+ dailyMinimumTemperatureChange: dto.dailyMinimumTemperatureChange,
108
111
  selectedCrops: dto.selectedCrops,
109
112
  status: dto.status
110
113
  })
package/dist/index.d.ts CHANGED
@@ -278,6 +278,40 @@ interface paths {
278
278
  patch?: never;
279
279
  trace?: never;
280
280
  };
281
+ "/farmers/{farmerId}/products": {
282
+ parameters: {
283
+ query?: never;
284
+ header?: never;
285
+ path?: never;
286
+ cookie?: never;
287
+ };
288
+ /** Get resource list */
289
+ get: operations["ProductsController_findAll"];
290
+ put?: never;
291
+ post?: never;
292
+ delete?: never;
293
+ options?: never;
294
+ head?: never;
295
+ patch?: never;
296
+ trace?: never;
297
+ };
298
+ "/farmers/{farmerId}/products/{productId}": {
299
+ parameters: {
300
+ query?: never;
301
+ header?: never;
302
+ path?: never;
303
+ cookie?: never;
304
+ };
305
+ /** Get resource by ID */
306
+ get: operations["ProductsController_findOne"];
307
+ put?: never;
308
+ post?: never;
309
+ delete?: never;
310
+ options?: never;
311
+ head?: never;
312
+ patch?: never;
313
+ trace?: never;
314
+ };
281
315
  "/farmers/{farmerId}/irrigation-sources": {
282
316
  parameters: {
283
317
  query?: never;
@@ -784,7 +818,7 @@ interface components {
784
818
  };
785
819
  ProductKindResponseData: {
786
820
  readonly meta: Record<string, never>;
787
- readonly mechanizationVarieties: components["schemas"]["ProductKind"][];
821
+ readonly productKinds: components["schemas"]["ProductKind"][];
788
822
  };
789
823
  ProductKindResponseResult: {
790
824
  readonly message: string;
@@ -1066,7 +1100,14 @@ interface components {
1066
1100
  /** Format: date-time */
1067
1101
  readonly deletedAt: string;
1068
1102
  };
1069
- Laboratory: {
1103
+ CompanyKind: Record<string, never>;
1104
+ Status: {
1105
+ id: string;
1106
+ label: string;
1107
+ /** @enum {string} */
1108
+ 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";
1109
+ };
1110
+ Comment: {
1070
1111
  readonly id: string;
1071
1112
  /** Format: date-time */
1072
1113
  readonly createdAt: string;
@@ -1075,11 +1116,93 @@ interface components {
1075
1116
  /** Format: date-time */
1076
1117
  readonly deletedAt: string;
1077
1118
  };
1078
- Status: {
1079
- id: string;
1080
- label: string;
1081
- /** @enum {string} */
1082
- 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";
1119
+ User: {
1120
+ readonly id: string;
1121
+ /** Format: date-time */
1122
+ readonly createdAt: string;
1123
+ /** Format: date-time */
1124
+ readonly updatedAt: string;
1125
+ /** Format: date-time */
1126
+ readonly deletedAt: string;
1127
+ };
1128
+ LaboratoryParameter: {
1129
+ readonly id: string;
1130
+ /** Format: date-time */
1131
+ readonly createdAt: string;
1132
+ /** Format: date-time */
1133
+ readonly updatedAt: string;
1134
+ /** Format: date-time */
1135
+ readonly deletedAt: string;
1136
+ };
1137
+ Laboratory: {
1138
+ readonly id: string;
1139
+ /** Format: date-time */
1140
+ readonly createdAt: string;
1141
+ /** Format: date-time */
1142
+ readonly updatedAt: string;
1143
+ /** Format: date-time */
1144
+ readonly deletedAt: string;
1145
+ adminFirstName: string;
1146
+ adminLastName: string;
1147
+ adminNationalCode: string;
1148
+ adminPhoneNumber: string;
1149
+ adminNationalCardFrontImageURL: string;
1150
+ adminNationalCardBackImageURL: string;
1151
+ adminBirthCertificateImageURL: string;
1152
+ legalPerson: boolean;
1153
+ chiefExecutiveOfficerFirstName: string;
1154
+ chiefExecutiveOfficerLastName: string;
1155
+ chiefExecutiveOfficerPhoneNumber: string;
1156
+ chiefExecutiveOfficerNationalCode: string;
1157
+ isAgriculturalEngineeringOrganizationMember: boolean;
1158
+ agriculturalEngineeringOrganizationNumber: string;
1159
+ emergencyPhoneNumber: string;
1160
+ faxNumber: string;
1161
+ companyName: string;
1162
+ companyKindId: number;
1163
+ companyKind: components["schemas"]["CompanyKind"];
1164
+ nationalCompanyId: string;
1165
+ companyRegistrationNumber: string;
1166
+ companyRegistrationLocation: string;
1167
+ companyRegistrationNewspaperURL: string;
1168
+ companyLatestChangeNewspaperURL: string;
1169
+ laboratoryName: string;
1170
+ establishmentLicenseURL: string;
1171
+ operatingLicenseURL: string;
1172
+ landlinePhone: string;
1173
+ websiteURL: string;
1174
+ email: string;
1175
+ province: components["schemas"]["Province"];
1176
+ provinceId: string;
1177
+ city: components["schemas"]["City"];
1178
+ cityId: string;
1179
+ address: string;
1180
+ addressDetails: string;
1181
+ addressDescription: string;
1182
+ postalCode: string;
1183
+ location: components["schemas"]["Coordinate"];
1184
+ contractURL: string;
1185
+ contractCode: string;
1186
+ /** Format: date-time */
1187
+ contractSignedAt: string;
1188
+ sealImageURL: string;
1189
+ statusName: string;
1190
+ status: components["schemas"]["Status"];
1191
+ rejectComment: components["schemas"]["Comment"];
1192
+ users: components["schemas"]["User"][];
1193
+ fields: components["schemas"]["LaboratoryParameter"][];
1194
+ parameters: components["schemas"]["LaboratoryParameter"][];
1195
+ representativeFirstName: string;
1196
+ representativeLastName: string;
1197
+ representativeNationalCode: string;
1198
+ representativePhoneNumber: string;
1199
+ representativePosition: string;
1200
+ legalCompanyAddress: string;
1201
+ legalCompanyPostalCode: string;
1202
+ legalLaboratoryAddress: string;
1203
+ shabaNumber: string;
1204
+ bankName: string;
1205
+ accountHolderName: string;
1083
1206
  };
1084
1207
  Experiment: {
1085
1208
  readonly id: string;
@@ -1172,6 +1295,31 @@ interface components {
1172
1295
  FarmResponseDto: {
1173
1296
  readonly result: components["schemas"]["FarmResponseResult"];
1174
1297
  };
1298
+ ProductsResponseData: {
1299
+ readonly meta: Record<string, never>;
1300
+ readonly totalItems: number;
1301
+ readonly products: components["schemas"]["Product"][];
1302
+ };
1303
+ ProductsResponseResult: {
1304
+ readonly message: string;
1305
+ readonly code: string;
1306
+ readonly data: components["schemas"]["ProductsResponseData"];
1307
+ };
1308
+ ProductsResponseDto: {
1309
+ readonly result: components["schemas"]["ProductsResponseResult"];
1310
+ };
1311
+ ProductResponseData: {
1312
+ readonly meta: Record<string, never>;
1313
+ readonly product: components["schemas"]["Product"];
1314
+ };
1315
+ ProductResponseResult: {
1316
+ readonly message: string;
1317
+ readonly code: string;
1318
+ readonly data: components["schemas"]["ProductResponseData"];
1319
+ };
1320
+ ProductResponseDto: {
1321
+ readonly result: components["schemas"]["ProductResponseResult"];
1322
+ };
1175
1323
  IrrigationSourcesResponseData: {
1176
1324
  readonly meta: Record<string, never>;
1177
1325
  readonly totalItems: number;
@@ -1665,6 +1813,12 @@ interface components {
1665
1813
  selectedCrops: components["schemas"]["Product"][];
1666
1814
  /** @description وضعیت */
1667
1815
  status: components["schemas"]["Status"];
1816
+ /** @description تغییرات دمای حداکثر روزانه ۳۰ سال گذشته */
1817
+ dailyMaximumTemperatureChange: components["schemas"]["DayOfYearChartReportType"][];
1818
+ /** @description تغییرات دمای حداقل روزانه ۳۰ سال گذشته */
1819
+ dailyMinimumTemperatureChange: components["schemas"]["DayOfYearChartReportType"][];
1820
+ /** @description تغییرات دمای میانگین روزانه ۳۰ سال گذشته */
1821
+ dailyMeanTemperatureChange: components["schemas"]["DayOfYearChartReportType"][];
1668
1822
  };
1669
1823
  CroppingPatternResponseData: {
1670
1824
  readonly meta: Record<string, never>;
@@ -2597,6 +2751,149 @@ interface operations {
2597
2751
  };
2598
2752
  };
2599
2753
  };
2754
+ ProductsController_findAll: {
2755
+ parameters: {
2756
+ query?: {
2757
+ /** @description
2758
+ * Filter by string examples:
2759
+ * - "string" → equals
2760
+ * - "!string" → not equals
2761
+ * - "string,string" → in
2762
+ * - "!string,string" → notIn
2763
+ * - "~string" → contains
2764
+ * - "^string" → startsWith
2765
+ * - "string$" → endsWith
2766
+ * */
2767
+ objectId?: string;
2768
+ /** @description
2769
+ * Filter by string examples:
2770
+ * - "string" → equals
2771
+ * - "!string" → not equals
2772
+ * - "string,string" → in
2773
+ * - "!string,string" → notIn
2774
+ * - "~string" → contains
2775
+ * - "^string" → startsWith
2776
+ * - "string$" → endsWith
2777
+ * */
2778
+ product?: string;
2779
+ /** @description
2780
+ * Filter by string examples:
2781
+ * - "string" → equals
2782
+ * - "!string" → not equals
2783
+ * - "string,string" → in
2784
+ * - "!string,string" → notIn
2785
+ * - "~string" → contains
2786
+ * - "^string" → startsWith
2787
+ * - "string$" → endsWith
2788
+ * */
2789
+ imageUrl?: string;
2790
+ /** @description
2791
+ * Filter by string examples:
2792
+ * - "string" → equals
2793
+ * - "!string" → not equals
2794
+ * - "string,string" → in
2795
+ * - "!string,string" → notIn
2796
+ * - "~string" → contains
2797
+ * - "^string" → startsWith
2798
+ * - "string$" → endsWith
2799
+ * */
2800
+ persianName?: string;
2801
+ /** @description
2802
+ * Filter by string examples:
2803
+ * - "string" → equals
2804
+ * - "!string" → not equals
2805
+ * - "string,string" → in
2806
+ * - "!string,string" → notIn
2807
+ * - "~string" → contains
2808
+ * - "^string" → startsWith
2809
+ * - "string$" → endsWith
2810
+ * */
2811
+ pcode?: string;
2812
+ };
2813
+ header?: never;
2814
+ path: {
2815
+ farmerId: unknown;
2816
+ };
2817
+ cookie?: never;
2818
+ };
2819
+ requestBody?: never;
2820
+ responses: {
2821
+ /** @description لیست اطلاعات با موفقیت دریافت شد */
2822
+ 200: {
2823
+ headers: {
2824
+ [name: string]: unknown;
2825
+ };
2826
+ content: {
2827
+ "application/json": components["schemas"]["ProductsResponseDto"];
2828
+ };
2829
+ };
2830
+ /** @description درخواست نامعتبر است */
2831
+ 400: {
2832
+ headers: {
2833
+ [name: string]: unknown;
2834
+ };
2835
+ content?: never;
2836
+ };
2837
+ /** @description دسترسی غیرمجاز است */
2838
+ 401: {
2839
+ headers: {
2840
+ [name: string]: unknown;
2841
+ };
2842
+ content?: never;
2843
+ };
2844
+ /** @description خطای غیرمنتظره در سرور رخ داده است */
2845
+ 500: {
2846
+ headers: {
2847
+ [name: string]: unknown;
2848
+ };
2849
+ content?: never;
2850
+ };
2851
+ };
2852
+ };
2853
+ ProductsController_findOne: {
2854
+ parameters: {
2855
+ query?: never;
2856
+ header?: never;
2857
+ path: {
2858
+ productId: string;
2859
+ farmerId: unknown;
2860
+ };
2861
+ cookie?: never;
2862
+ };
2863
+ requestBody?: never;
2864
+ responses: {
2865
+ /** @description دریافت اطلاعات با موفقیت انجام شد */
2866
+ 200: {
2867
+ headers: {
2868
+ [name: string]: unknown;
2869
+ };
2870
+ content: {
2871
+ "application/json": components["schemas"]["ProductResponseDto"];
2872
+ };
2873
+ };
2874
+ /** @description درخواست نامعتبر است */
2875
+ 400: {
2876
+ headers: {
2877
+ [name: string]: unknown;
2878
+ };
2879
+ content?: never;
2880
+ };
2881
+ /** @description دسترسی غیرمجاز است */
2882
+ 401: {
2883
+ headers: {
2884
+ [name: string]: unknown;
2885
+ };
2886
+ content?: never;
2887
+ };
2888
+ /** @description خطای غیرمنتظره در سرور رخ داده است */
2889
+ 500: {
2890
+ headers: {
2891
+ [name: string]: unknown;
2892
+ };
2893
+ content?: never;
2894
+ };
2895
+ };
2896
+ };
2600
2897
  IrrigationSourcesController_findAll: {
2601
2898
  parameters: {
2602
2899
  query?: {
@@ -4034,9 +4331,6 @@ type CroppingPatternReportModel = {
4034
4331
  annuallyPerformancePotential: AnnuallyChartReportModel[];
4035
4332
  annuallyNetIrrigationRequirement: AnnuallyChartReportModel[];
4036
4333
  annuallySuppliedGrowingDegreeDay: AnnuallyChartReportModel[];
4037
- dailyMaximumTemperatureChange: DayOfYearChartReportModel[];
4038
- dailyMinimumTemperatureChange: DayOfYearChartReportModel[];
4039
- dailyMeanTemperatureChange: DayOfYearChartReportModel[];
4040
4334
  temperatureRisks: CroppingPatternRiskChartModel[];
4041
4335
  humidityRisks: CroppingPatternRiskChartModel[];
4042
4336
  };
@@ -4053,6 +4347,9 @@ type CroppingPatternModel = {
4053
4347
  irrigationHoursPerShift: number;
4054
4348
  cropKind: ProductKind;
4055
4349
  reports: CroppingPatternReportModel[];
4350
+ dailyMaximumTemperatureChange: DayOfYearChartReportModel[];
4351
+ dailyMinimumTemperatureChange: DayOfYearChartReportModel[];
4352
+ dailyMeanTemperatureChange: DayOfYearChartReportModel[];
4056
4353
  selectedCrops: Product[];
4057
4354
  status: Status;
4058
4355
  };
package/dist/index.mjs CHANGED
@@ -69,6 +69,9 @@ var croppingPatternMapper = {
69
69
  growingSeasonIrrigationTimes: dto.growingSeasonIrrigationTimes,
70
70
  irrigationHoursPerShift: dto.irrigationHoursPerShift,
71
71
  reports: dto.reports,
72
+ dailyMaximumTemperatureChange: dto.dailyMaximumTemperatureChange,
73
+ dailyMeanTemperatureChange: dto.dailyMeanTemperatureChange,
74
+ dailyMinimumTemperatureChange: dto.dailyMinimumTemperatureChange,
72
75
  selectedCrops: dto.selectedCrops,
73
76
  status: dto.status
74
77
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agroyaar/sdk",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",