Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
639 changes: 100 additions & 539 deletions microservices/Cargo.lock

Large diffs are not rendered by default.

4,198 changes: 3,328 additions & 870 deletions microservices/crm/pipeline/gen/doc/openapi.yaml

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions microservices/crm/pipeline/gen/src/controllers/add_deal_contact.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// User-owned controller for handler 'add_deal_contact'.

use crate::handlers::add_deal_contact::{Request, Response};
use brrtrouter::typed::HttpJson;
use brrtrouter::typed::TypedHandlerRequest;
use brrtrouter_macros::handler;

#[allow(unused_imports)]
use crate::handlers::types::DealContact;
#[allow(unused_imports)]
use crate::handlers::types::DealStatus;

#[handler(AddDealContactController)]
pub fn handle(_req: TypedHandlerRequest<Request>) -> HttpJson<Response> {
HttpJson::ok(Response {
company_id: Some("example".to_string()),
company_name: Some("example".to_string()),
contacts: Some(vec![]),
created_at: "example".to_string(),
created_by: Some("example".to_string()),
currency: "example".to_string(),
custom_fields: Some(Default::default()),
days_in_stage: Some(42),
description: Some("example".to_string()),
expected_close_at: Some("example".to_string()),
id: "example".to_string(),
last_activity_at: Some("example".to_string()),
lost_reason: Some("example".to_string()),
next_task_at: Some("example".to_string()),
open_task_count: Some(42),
owner_id: Some("example".to_string()),
owner_name: Some("example".to_string()),
pipeline_id: "example".to_string(),
pipeline_name: Some("example".to_string()),
primary_contact_id: Some("example".to_string()),
probability: Some(42),
source: Some("example".to_string()),
stage_entered_at: Some("example".to_string()),
stage_id: "example".to_string(),
stage_name: Some("example".to_string()),
status: Default::default(),
status_changed_at: Some("example".to_string()),
tag_ids: Some(vec![]),
title: "example".to_string(),
updated_at: Some("example".to_string()),
value: 1.5,
weighted_value: Some(1.5),
})
}
18 changes: 18 additions & 0 deletions microservices/crm/pipeline/gen/src/controllers/add_deal_note.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// User-owned controller for handler 'add_deal_note'.

use crate::handlers::add_deal_note::{Request, Response};
use brrtrouter::typed::HttpJson;
use brrtrouter::typed::TypedHandlerRequest;
use brrtrouter_macros::handler;

#[handler(AddDealNoteController)]
pub fn handle(_req: TypedHandlerRequest<Request>) -> HttpJson<Response> {
HttpJson::ok(Response {
author: Some("example".to_string()),
created_at: "example".to_string(),
id: "example".to_string(),
pinned: Some(true),
text: "example".to_string(),
updated_at: Some("example".to_string()),
})
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// User-owned controller for handler 'bulk_update_deals'.

use crate::handlers::bulk_update_deals::{Request, Response};
use brrtrouter::typed::HttpJson;
use brrtrouter::typed::TypedHandlerRequest;
use brrtrouter_macros::handler;

#[handler(BulkUpdateDealsController)]
pub fn handle(_req: TypedHandlerRequest<Request>) -> HttpJson<Response> {
HttpJson::ok(Response {
skipped: Some(vec![]),
updated: Some(42),
})
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// User-owned controller for handler 'change_deal_stage'.

use crate::handlers::change_deal_stage::{Request, Response};
use brrtrouter::typed::HttpJson;
use brrtrouter::typed::TypedHandlerRequest;
use brrtrouter_macros::handler;

#[allow(unused_imports)]
use crate::handlers::types::DealContact;
#[allow(unused_imports)]
use crate::handlers::types::DealStatus;

#[handler(ChangeDealStageController)]
pub fn handle(_req: TypedHandlerRequest<Request>) -> HttpJson<Response> {
HttpJson::ok(Response {
company_id: Some("example".to_string()),
company_name: Some("example".to_string()),
contacts: Some(vec![]),
created_at: "example".to_string(),
created_by: Some("example".to_string()),
currency: "example".to_string(),
custom_fields: Some(Default::default()),
days_in_stage: Some(42),
description: Some("example".to_string()),
expected_close_at: Some("example".to_string()),
id: "example".to_string(),
last_activity_at: Some("example".to_string()),
lost_reason: Some("example".to_string()),
next_task_at: Some("example".to_string()),
open_task_count: Some(42),
owner_id: Some("example".to_string()),
owner_name: Some("example".to_string()),
pipeline_id: "example".to_string(),
pipeline_name: Some("example".to_string()),
primary_contact_id: Some("example".to_string()),
probability: Some(42),
source: Some("example".to_string()),
stage_entered_at: Some("example".to_string()),
stage_id: "example".to_string(),
stage_name: Some("example".to_string()),
status: Default::default(),
status_changed_at: Some("example".to_string()),
tag_ids: Some(vec![]),
title: "example".to_string(),
updated_at: Some("example".to_string()),
value: 1.5,
weighted_value: Some(1.5),
})
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// User-owned controller for handler 'change_deal_status'.

use crate::handlers::change_deal_status::{Request, Response};
use brrtrouter::typed::HttpJson;
use brrtrouter::typed::TypedHandlerRequest;
use brrtrouter_macros::handler;

#[allow(unused_imports)]
use crate::handlers::types::DealContact;
#[allow(unused_imports)]
use crate::handlers::types::DealStatus;

#[handler(ChangeDealStatusController)]
pub fn handle(_req: TypedHandlerRequest<Request>) -> HttpJson<Response> {
HttpJson::ok(Response {
company_id: Some("example".to_string()),
company_name: Some("example".to_string()),
contacts: Some(vec![]),
created_at: "example".to_string(),
created_by: Some("example".to_string()),
currency: "example".to_string(),
custom_fields: Some(Default::default()),
days_in_stage: Some(42),
description: Some("example".to_string()),
expected_close_at: Some("example".to_string()),
id: "example".to_string(),
last_activity_at: Some("example".to_string()),
lost_reason: Some("example".to_string()),
next_task_at: Some("example".to_string()),
open_task_count: Some(42),
owner_id: Some("example".to_string()),
owner_name: Some("example".to_string()),
pipeline_id: "example".to_string(),
pipeline_name: Some("example".to_string()),
primary_contact_id: Some("example".to_string()),
probability: Some(42),
source: Some("example".to_string()),
stage_entered_at: Some("example".to_string()),
stage_id: "example".to_string(),
stage_name: Some("example".to_string()),
status: Default::default(),
status_changed_at: Some("example".to_string()),
tag_ids: Some(vec![]),
title: "example".to_string(),
updated_at: Some("example".to_string()),
value: 1.5,
weighted_value: Some(1.5),
})
}
49 changes: 49 additions & 0 deletions microservices/crm/pipeline/gen/src/controllers/create_deal.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// User-owned controller for handler 'create_deal'.

use crate::handlers::create_deal::{Request, Response};
use brrtrouter::typed::HttpJson;
use brrtrouter::typed::TypedHandlerRequest;
use brrtrouter_macros::handler;

#[allow(unused_imports)]
use crate::handlers::types::DealContact;
#[allow(unused_imports)]
use crate::handlers::types::DealStatus;

#[handler(CreateDealController)]
pub fn handle(_req: TypedHandlerRequest<Request>) -> HttpJson<Response> {
HttpJson::ok(Response {
company_id: Some("example".to_string()),
company_name: Some("example".to_string()),
contacts: Some(vec![]),
created_at: "example".to_string(),
created_by: Some("example".to_string()),
currency: "example".to_string(),
custom_fields: Some(Default::default()),
days_in_stage: Some(42),
description: Some("example".to_string()),
expected_close_at: Some("example".to_string()),
id: "example".to_string(),
last_activity_at: Some("example".to_string()),
lost_reason: Some("example".to_string()),
next_task_at: Some("example".to_string()),
open_task_count: Some(42),
owner_id: Some("example".to_string()),
owner_name: Some("example".to_string()),
pipeline_id: "example".to_string(),
pipeline_name: Some("example".to_string()),
primary_contact_id: Some("example".to_string()),
probability: Some(42),
source: Some("example".to_string()),
stage_entered_at: Some("example".to_string()),
stage_id: "example".to_string(),
stage_name: Some("example".to_string()),
status: Default::default(),
status_changed_at: Some("example".to_string()),
tag_ids: Some(vec![]),
title: "example".to_string(),
updated_at: Some("example".to_string()),
value: 1.5,
weighted_value: Some(1.5),
})
}
16 changes: 16 additions & 0 deletions microservices/crm/pipeline/gen/src/controllers/create_deal_role.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// User-owned controller for handler 'create_deal_role'.

use crate::handlers::create_deal_role::{Request, Response};
use brrtrouter::typed::HttpJson;
use brrtrouter::typed::TypedHandlerRequest;
use brrtrouter_macros::handler;

#[handler(CreateDealRoleController)]
pub fn handle(_req: TypedHandlerRequest<Request>) -> HttpJson<Response> {
HttpJson::ok(Response {
description: Some("example".to_string()),
id: "example".to_string(),
title: "example".to_string(),
used_on: Some(42),
})
}
25 changes: 25 additions & 0 deletions microservices/crm/pipeline/gen/src/controllers/create_pipeline.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// User-owned controller for handler 'create_pipeline'.

use crate::handlers::create_pipeline::{Request, Response};
use brrtrouter::typed::HttpJson;
use brrtrouter::typed::TypedHandlerRequest;
use brrtrouter_macros::handler;

#[handler(CreatePipelineController)]
pub fn handle(_req: TypedHandlerRequest<Request>) -> HttpJson<Response> {
HttpJson::ok(Response {
auto_assign: Some("example".to_string()),
auto_assign_user_ids: Some(vec![]),
created_at: "example".to_string(),
currency: "example".to_string(),
forecast_mode: Some("example".to_string()),
group_ids: Some(vec![]),
id: "example".to_string(),
name: "example".to_string(),
open_deals: Some(42),
open_value: Some(1.5),
sequence: Some(42),
updated_at: Some("example".to_string()),
visibility: Some("example".to_string()),
})
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,20 @@ use brrtrouter_macros::handler;
#[handler(CreateStageController)]
pub fn handle(_req: TypedHandlerRequest<Request>) -> HttpJson<Response> {
HttpJson::ok(Response {
color: Some(42),
card_fields: Some(vec![]),
color: Some("example".to_string()),
deal_order: Some("example".to_string()),
description: Some("example".to_string()),
fold: Some(true),
id: "example".to_string(),
is_lost: Some(true),
is_won: Some(true),
lead_count: Some(42),
name: "example".to_string(),
pipeline_id: Some("example".to_string()),
probability: 42,
requirements: Some("example".to_string()),
rotting_days: Some(42),
rotting_threshold_days: Some(42),
sequence: 42,
team_ids: Some(vec![]),
Expand Down
11 changes: 11 additions & 0 deletions microservices/crm/pipeline/gen/src/controllers/delete_deal.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// User-owned controller for handler 'delete_deal'.

use crate::handlers::delete_deal::Request;
use brrtrouter::typed::HttpNoContent;
use brrtrouter::typed::TypedHandlerRequest;
use brrtrouter_macros::handler;

#[handler(DeleteDealController)]
pub fn handle(_req: TypedHandlerRequest<Request>) -> HttpNoContent {
HttpNoContent
}
11 changes: 11 additions & 0 deletions microservices/crm/pipeline/gen/src/controllers/delete_deal_file.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// User-owned controller for handler 'delete_deal_file'.

use crate::handlers::delete_deal_file::Request;
use brrtrouter::typed::HttpNoContent;
use brrtrouter::typed::TypedHandlerRequest;
use brrtrouter_macros::handler;

#[handler(DeleteDealFileController)]
pub fn handle(_req: TypedHandlerRequest<Request>) -> HttpNoContent {
HttpNoContent
}
11 changes: 11 additions & 0 deletions microservices/crm/pipeline/gen/src/controllers/delete_deal_note.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// User-owned controller for handler 'delete_deal_note'.

use crate::handlers::delete_deal_note::Request;
use brrtrouter::typed::HttpNoContent;
use brrtrouter::typed::TypedHandlerRequest;
use brrtrouter_macros::handler;

#[handler(DeleteDealNoteController)]
pub fn handle(_req: TypedHandlerRequest<Request>) -> HttpNoContent {
HttpNoContent
}
11 changes: 11 additions & 0 deletions microservices/crm/pipeline/gen/src/controllers/delete_deal_role.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// User-owned controller for handler 'delete_deal_role'.

use crate::handlers::delete_deal_role::Request;
use brrtrouter::typed::HttpNoContent;
use brrtrouter::typed::TypedHandlerRequest;
use brrtrouter_macros::handler;

#[handler(DeleteDealRoleController)]
pub fn handle(_req: TypedHandlerRequest<Request>) -> HttpNoContent {
HttpNoContent
}
11 changes: 11 additions & 0 deletions microservices/crm/pipeline/gen/src/controllers/delete_pipeline.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// User-owned controller for handler 'delete_pipeline'.

use crate::handlers::delete_pipeline::Request;
use brrtrouter::typed::HttpNoContent;
use brrtrouter::typed::TypedHandlerRequest;
use brrtrouter_macros::handler;

#[handler(DeletePipelineController)]
pub fn handle(_req: TypedHandlerRequest<Request>) -> HttpNoContent {
HttpNoContent
}
Loading
Loading