farm.rs (2587B)
1 use super::{ApprovalPolicy, OperationRole, OperationSpec, RiskLevel}; 2 3 pub const FARM_CREATE: OperationSpec = operation!( 4 "farm.create", 5 "radroots farm create", 6 "farm", 7 "farm_create", 8 "FarmCreateRequest", 9 "FarmCreateResult", 10 "Create farm identity/profile resource.", 11 Seller, 12 true, 13 None, 14 Medium, 15 false, 16 true 17 ); 18 19 pub const FARM_GET: OperationSpec = operation!( 20 "farm.get", 21 "radroots farm get", 22 "farm", 23 "farm_get", 24 "FarmGetRequest", 25 "FarmGetResult", 26 "Get farm resource.", 27 Seller, 28 false, 29 None, 30 Low, 31 false, 32 false 33 ); 34 35 pub const FARM_REBIND: OperationSpec = operation!( 36 "farm.rebind", 37 "radroots farm rebind", 38 "farm", 39 "farm_rebind", 40 "FarmRebindRequest", 41 "FarmRebindResult", 42 "Rebind farm seller account.", 43 Seller, 44 true, 45 Required, 46 High, 47 false, 48 true 49 ); 50 51 pub const FARM_PROFILE_UPDATE: OperationSpec = operation!( 52 "farm.profile.update", 53 "radroots farm profile update", 54 "farm", 55 "farm_profile_update", 56 "FarmProfileUpdateRequest", 57 "FarmProfileUpdateResult", 58 "Update farm public profile fields.", 59 Seller, 60 true, 61 Conditional, 62 Medium, 63 false, 64 true 65 ); 66 67 pub const FARM_LOCATION_UPDATE: OperationSpec = operation!( 68 "farm.location.update", 69 "radroots farm location update", 70 "farm", 71 "farm_location_update", 72 "FarmLocationUpdateRequest", 73 "FarmLocationUpdateResult", 74 "Update farm location fields.", 75 Seller, 76 true, 77 Conditional, 78 Medium, 79 false, 80 true 81 ); 82 83 pub const FARM_FULFILLMENT_UPDATE: OperationSpec = operation!( 84 "farm.fulfillment.update", 85 "radroots farm fulfillment update", 86 "farm", 87 "farm_fulfillment_update", 88 "FarmFulfillmentUpdateRequest", 89 "FarmFulfillmentUpdateResult", 90 "Update farm fulfillment posture.", 91 Seller, 92 true, 93 Conditional, 94 Medium, 95 false, 96 true 97 ); 98 99 pub const FARM_READINESS_CHECK: OperationSpec = operation!( 100 "farm.readiness.check", 101 "radroots farm readiness check", 102 "farm", 103 "farm_readiness_check", 104 "FarmReadinessCheckRequest", 105 "FarmReadinessCheckResult", 106 "Check whether farm is publish-ready.", 107 Seller, 108 false, 109 None, 110 Low, 111 false, 112 false 113 ); 114 115 pub const FARM_PUBLISH: OperationSpec = operation!( 116 "farm.publish", 117 "radroots farm publish", 118 "farm", 119 "farm_publish", 120 "FarmPublishRequest", 121 "FarmPublishResult", 122 "Publish farm identity/profile externally.", 123 Seller, 124 true, 125 Required, 126 High, 127 false, 128 true 129 );