diff --git a/campus/bffs/attendance/api/Dependencies.toml b/campus/bffs/attendance/api/Dependencies.toml index 7bd4ed1e..c25ec358 100644 --- a/campus/bffs/attendance/api/Dependencies.toml +++ b/campus/bffs/attendance/api/Dependencies.toml @@ -108,7 +108,7 @@ modules = [ [[package]] org = "ballerina" name = "http" -version = "2.10.16" +version = "2.10.17" dependencies = [ {org = "ballerina", name = "auth"}, {org = "ballerina", name = "cache"}, diff --git a/campus/bffs/attendance/api/attendance_client.bal b/campus/bffs/attendance/api/attendance_client.bal index 152d90dd..d99ef1c1 100644 --- a/campus/bffs/attendance/api/attendance_client.bal +++ b/campus/bffs/attendance/api/attendance_client.bal @@ -314,4 +314,23 @@ log:printInfo("Formatted Response: " + formattedJson); json graphqlResponse = check self.graphqlClient->executeWithType(query, variables); return check performDataBinding(graphqlResponse, GetOrganizationsByAvinyaTypeResponse); } + + remote isolated function createMonthlyLeaveDates(MonthlyLeaveDates monthlyLeaveDates) returns CreateMonthlyLeaveDatesResponse|graphql:ClientError { + string query = string `mutation createMonthlyLeaveDates($monthlyLeaveDates:MonthlyLeaveDates!) {add_monthly_leave_dates(monthly_leave_dates:$monthlyLeaveDates) {id year month organization_id leave_dates_list daily_amount created updated}}`; + map variables = {"monthlyLeaveDates": monthlyLeaveDates}; + json graphqlResponse = check self.graphqlClient->executeWithType(query, variables); + return check performDataBinding(graphqlResponse, CreateMonthlyLeaveDatesResponse); + } + remote isolated function updateMonthlyLeaveDates(MonthlyLeaveDates monthlyLeaveDates) returns UpdateMonthlyLeaveDatesResponse|graphql:ClientError { + string query = string `mutation updateMonthlyLeaveDates($monthlyLeaveDates:MonthlyLeaveDates!) {update_monthly_leave_dates(monthly_leave_dates:$monthlyLeaveDates) {id year month organization_id leave_dates_list daily_amount created updated}}`; + map variables = {"monthlyLeaveDates": monthlyLeaveDates}; + json graphqlResponse = check self.graphqlClient->executeWithType(query, variables); + return check performDataBinding(graphqlResponse, UpdateMonthlyLeaveDatesResponse); + } + remote isolated function getMonthlyLeaveDatesRecordById(int id) returns GetMonthlyLeaveDatesRecordByIdResponse|graphql:ClientError { + string query = string `query getMonthlyLeaveDatesRecordById($id:Int!) {monthly_leave_dates_record_by_id(id:$id) {id year month organization_id leave_dates_list daily_amount created updated}}`; + map variables = {"id": id}; + json graphqlResponse = check self.graphqlClient->executeWithType(query, variables); + return check performDataBinding(graphqlResponse, GetMonthlyLeaveDatesRecordByIdResponse); + } } diff --git a/campus/bffs/attendance/api/service.bal b/campus/bffs/attendance/api/service.bal index 49407e64..f286186f 100644 --- a/campus/bffs/attendance/api/service.bal +++ b/campus/bffs/attendance/api/service.bal @@ -880,4 +880,59 @@ service / on new http:Listener(9091) { ":: Detail: " + getOrganizationsByAvinyaTypeResponse.detail().toString()); } } + + resource function post add_monthly_leave_dates (@http:Payload MonthlyLeaveDates monthlyLeaveDates) returns MonthlyLeaveDates|error { + CreateMonthlyLeaveDatesResponse|graphql:ClientError addMonthlyLeaveDatesResponse = globalDataClient->createMonthlyLeaveDates(monthlyLeaveDates); + if(addMonthlyLeaveDatesResponse is CreateMonthlyLeaveDatesResponse) { + MonthlyLeaveDates|error monthly_leave_dates_record = addMonthlyLeaveDatesResponse.add_monthly_leave_dates.cloneWithType(MonthlyLeaveDates); + if(monthly_leave_dates_record is MonthlyLeaveDates) { + return monthly_leave_dates_record; + } else { + log:printError("Error while processing Application record received", monthly_leave_dates_record); + return error("Error while processing Application record received: " + monthly_leave_dates_record.message() + + ":: Detail: " + monthly_leave_dates_record.detail().toString()); + } + } else { + log:printError("Error while creating application", addMonthlyLeaveDatesResponse); + return error("Error while creating application: " + addMonthlyLeaveDatesResponse.message() + + ":: Detail: " + addMonthlyLeaveDatesResponse.detail().toString()); + } + } + + resource function put update_monthly_leave_dates(@http:Payload MonthlyLeaveDates monthlyLeaveDates) returns MonthlyLeaveDates|error { + UpdateMonthlyLeaveDatesResponse|graphql:ClientError updateMonthlyLeaveDatesResponse = globalDataClient->updateMonthlyLeaveDates(monthlyLeaveDates); + if(updateMonthlyLeaveDatesResponse is UpdateMonthlyLeaveDatesResponse) { + MonthlyLeaveDates|error monthly_leave_dates_record = updateMonthlyLeaveDatesResponse.update_monthly_leave_dates.cloneWithType(MonthlyLeaveDates); + if(monthly_leave_dates_record is MonthlyLeaveDates) { + return monthly_leave_dates_record; + } else { + log:printError("Error while processing Application record received", monthly_leave_dates_record); + return error("Error while processing Application record received: " + monthly_leave_dates_record.message() + + ":: Detail: " + monthly_leave_dates_record.detail().toString()); + } + } else { + log:printError("Error while updating application", updateMonthlyLeaveDatesResponse); + return error("Error while updating application: " + updateMonthlyLeaveDatesResponse.message() + + ":: Detail: " + updateMonthlyLeaveDatesResponse.detail().toString()); + } + } + + resource function get monthly_leave_dates_record_by_id/[int id]() returns MonthlyLeaveDates|error { + GetMonthlyLeaveDatesRecordByIdResponse|graphql:ClientError getMonthlyLeaveDatesRecordByIdResponse = globalDataClient->getMonthlyLeaveDatesRecordById(id); + if (getMonthlyLeaveDatesRecordByIdResponse is GetMonthlyLeaveDatesRecordByIdResponse) { + MonthlyLeaveDates|error monthly_leave_dates_record_by_id_record = getMonthlyLeaveDatesRecordByIdResponse.monthly_leave_dates_record_by_id.cloneWithType(MonthlyLeaveDates); + if (monthly_leave_dates_record_by_id_record is MonthlyLeaveDates) { + return monthly_leave_dates_record_by_id_record; + } else { + log:printError("Error while processing Application record received", monthly_leave_dates_record_by_id_record); + return error("Error while processing Application record received: " + monthly_leave_dates_record_by_id_record.message() + + ":: Detail: " + monthly_leave_dates_record_by_id_record.detail().toString()); + } + } else { + log:printError("Error while creating application", getMonthlyLeaveDatesRecordByIdResponse); + return error("Error while creating application: " + getMonthlyLeaveDatesRecordByIdResponse.message() + + ":: Detail: " + getMonthlyLeaveDatesRecordByIdResponse.detail().toString()); + } + } + } diff --git a/campus/bffs/attendance/api/types.bal b/campus/bffs/attendance/api/types.bal index b29295c3..23dd352c 100644 --- a/campus/bffs/attendance/api/types.bal +++ b/campus/bffs/attendance/api/types.bal @@ -277,6 +277,20 @@ public type TotalAttendanceCountByDate record { string? record_type?; }; +public type MonthlyLeaveDates record { + string? leave_dates?; + int? month?; + int[] leave_dates_list?; + int? year?; + string? created?; + int? total_days_in_month?; + int? organization_id?; + int? id?; + anydata? daily_amount?; + string? updated?; + string? record_type?; +}; + public type GetAvinyaTypesResponse record {| map __extensions?; record {| @@ -804,4 +818,46 @@ public type GetOrganizationsByAvinyaTypeResponse record {| string? value; |}[]? organization_metadata; |}[] organizations_by_avinya_type; -|}; \ No newline at end of file +|}; + +public type CreateMonthlyLeaveDatesResponse record {| + map __extensions?; + record {| + int? id; + int? year; + int? month; + int? organization_id; + int[]? leave_dates_list; + anydata? daily_amount; + string? created; + string? updated; + |}? add_monthly_leave_dates; +|}; + +public type UpdateMonthlyLeaveDatesResponse record {| + map __extensions?; + record {| + int? id; + int? year; + int? month; + int? organization_id; + int[]? leave_dates_list; + anydata? daily_amount; + string? created; + string? updated; + |}? update_monthly_leave_dates; +|}; + +public type GetMonthlyLeaveDatesRecordByIdResponse record {| + map __extensions?; + record {| + int? id; + int? year; + int? month; + int? organization_id; + int[]? leave_dates_list; + anydata? daily_amount; + string? created; + string? updated; + |}? monthly_leave_dates_record_by_id; +|}; diff --git a/campus/bffs/attendance/graphql_client/activity.graphql b/campus/bffs/attendance/graphql_client/activity.graphql index fef90a07..bf59478a 100644 --- a/campus/bffs/attendance/graphql_client/activity.graphql +++ b/campus/bffs/attendance/graphql_client/activity.graphql @@ -412,4 +412,43 @@ query getOrganizationsByAvinyaType($avinya_type: Int!) { value } } -} \ No newline at end of file +} + +mutation createMonthlyLeaveDates($monthlyLeaveDates: MonthlyLeaveDates!) { + add_monthly_leave_dates(monthly_leave_dates: $monthlyLeaveDates) { + id + year + month + organization_id + leave_dates_list + daily_amount + created + updated + } +} + +mutation updateMonthlyLeaveDates($monthlyLeaveDates: MonthlyLeaveDates!) { + update_monthly_leave_dates(monthly_leave_dates: $monthlyLeaveDates) { + id + year + month + organization_id + leave_dates_list + daily_amount + created + updated + } +} + +query getMonthlyLeaveDatesRecordById($id: Int!) { + monthly_leave_dates_record_by_id(id: $id) { + id + year + month + organization_id + leave_dates_list + daily_amount + created + updated + } +} diff --git a/campus/bffs/attendance/graphql_client/graphql_client_cg_src/client.bal b/campus/bffs/attendance/graphql_client/graphql_client_cg_src/client.bal index 593a8912..b5246900 100644 --- a/campus/bffs/attendance/graphql_client/graphql_client_cg_src/client.bal +++ b/campus/bffs/attendance/graphql_client/graphql_client_cg_src/client.bal @@ -219,4 +219,22 @@ public isolated client class GraphqlClient { json graphqlResponse = check self.graphqlClient->executeWithType(query, variables); return check performDataBinding(graphqlResponse, GetOrganizationsByAvinyaTypeResponse); } + remote isolated function createMonthlyLeaveDates(MonthlyLeaveDates monthlyLeaveDates) returns CreateMonthlyLeaveDatesResponse|graphql:ClientError { + string query = string `mutation createMonthlyLeaveDates($monthlyLeaveDates:MonthlyLeaveDates!) {add_monthly_leave_dates(monthly_leave_dates:$monthlyLeaveDates) {id year month organization_id leave_dates_list daily_amount created updated}}`; + map variables = {"monthlyLeaveDates": monthlyLeaveDates}; + json graphqlResponse = check self.graphqlClient->executeWithType(query, variables); + return check performDataBinding(graphqlResponse, CreateMonthlyLeaveDatesResponse); + } + remote isolated function updateMonthlyLeaveDates(MonthlyLeaveDates monthlyLeaveDates) returns UpdateMonthlyLeaveDatesResponse|graphql:ClientError { + string query = string `mutation updateMonthlyLeaveDates($monthlyLeaveDates:MonthlyLeaveDates!) {update_monthly_leave_dates(monthly_leave_dates:$monthlyLeaveDates) {id year month organization_id leave_dates_list daily_amount created updated}}`; + map variables = {"monthlyLeaveDates": monthlyLeaveDates}; + json graphqlResponse = check self.graphqlClient->executeWithType(query, variables); + return check performDataBinding(graphqlResponse, UpdateMonthlyLeaveDatesResponse); + } + remote isolated function getMonthlyLeaveDatesRecordById(int id) returns GetMonthlyLeaveDatesRecordByIdResponse|graphql:ClientError { + string query = string `query getMonthlyLeaveDatesRecordById($id:Int!) {monthly_leave_dates_record_by_id(id:$id) {id year month organization_id leave_dates_list daily_amount created updated}}`; + map variables = {"id": id}; + json graphqlResponse = check self.graphqlClient->executeWithType(query, variables); + return check performDataBinding(graphqlResponse, GetMonthlyLeaveDatesRecordByIdResponse); + } } diff --git a/campus/bffs/attendance/graphql_client/graphql_client_cg_src/config_types.bal b/campus/bffs/attendance/graphql_client/graphql_client_cg_src/config_types.bal index 6b2e15db..ddeee9c9 100644 --- a/campus/bffs/attendance/graphql_client/graphql_client_cg_src/config_types.bal +++ b/campus/bffs/attendance/graphql_client/graphql_client_cg_src/config_types.bal @@ -13,7 +13,6 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. - import ballerina/graphql; # Client configuration details. diff --git a/campus/bffs/attendance/graphql_client/graphql_client_cg_src/types.bal b/campus/bffs/attendance/graphql_client/graphql_client_cg_src/types.bal index 06b457f5..eda23b58 100644 --- a/campus/bffs/attendance/graphql_client/graphql_client_cg_src/types.bal +++ b/campus/bffs/attendance/graphql_client/graphql_client_cg_src/types.bal @@ -69,14 +69,12 @@ public type ActivitySequencePlan record { }; public type Address record { - string street_address?; - string? name_ta?; + string? street_address?; int? phone?; - string? name_si?; + City? city?; int? id?; string? record_type?; - int city_id?; - string name_en?; + int? city_id?; }; public type ApplicantConsent record { @@ -137,6 +135,21 @@ public type AvinyaType record { string global_type?; }; +public type City record { + string? suburb_name_en?; + string? suburb_name_si?; + string? name_ta?; + string? suburb_name_ta?; + anydata? latitude?; + string? postcode?; + string? name_si?; + int? id?; + int? district_id?; + string? record_type?; + string? name_en?; + anydata? longitude?; +}; + public type Consumable record { string? created?; int? avinya_type_id?; @@ -144,6 +157,7 @@ public type Consumable record { string? description?; string? model?; string? serial_number?; + anydata? threshold?; int? id?; string? updated?; string? record_type?; @@ -238,33 +252,56 @@ public type EvaluationMetadata record { }; public type Inventory record { - int? quantity_out?; + string? month_name?; int? consumable_id?; - int? quantity?; - int? quantity_in?; + anydata? quantity?; string? created?; - int? organization_id?; + anydata? prev_quantity?; int? avinya_type_id?; - int? id?; + string? description?; int? asset_id?; - string? updated?; + int? is_below_threshold?; string? record_type?; + string? manufacturer?; + anydata? quantity_out?; + int? resource_property_id?; + anydata? quantity_in?; + int? organization_id?; + string? name?; + int? id?; + string? updated?; + string? resource_property_value?; int? person_id?; }; +public type MonthlyLeaveDates record { + string? leave_dates?; + int? month?; + int[] leave_dates_list?; + int? year?; + string? created?; + int? total_days_in_month?; + int? organization_id?; + int? id?; + anydata? daily_amount?; + string? updated?; + string? record_type?; +}; + public type Organization record { - int[]? parent_organizations?; string? notes?; string? name_ta?; int[]? child_organizations?; - int? phone?; int? address_id?; string? name_si?; int? avinya_type?; string? description?; - int? id?; + int[]? child_organizations_for_dashboard?; string? record_type?; - string name_en?; + int[]? parent_organizations?; + int? phone?; + int? id?; + string? name_en?; }; public type Person record { @@ -287,6 +324,8 @@ public type Person record { string? digital_id?; string? sex?; string? passport_no?; + string? current_job?; + int? created_by?; string? record_type?; Address? mailing_address?; string? branch_code?; @@ -297,6 +336,7 @@ public type Person record { string? nic_no?; int? phone?; int? organization_id?; + int? updated_by?; string? academy_org_name?; string? asgardeo_id?; string? updated?; @@ -481,7 +521,7 @@ public type GetActivityResponse record {| record {| int? id; record {| - string name_en; + string? name_en; |} name; |}? organization; record {| @@ -648,7 +688,7 @@ public type GetDutyParticipantsResponse record {| string? digital_id; record {| record {| - string name_en; + string? name_en; |} name; string? description; |}? organization; @@ -713,7 +753,7 @@ public type GetDutyParticipantsByDutyActivityIdResponse record {| string? digital_id; record {| record {| - string name_en; + string? name_en; |} name; string? description; |}? organization; @@ -765,7 +805,7 @@ public type GetDutyParticipantResponse record {| string? digital_id; record {| record {| - string name_en; + string? name_en; |} name; string? description; |}? organization; @@ -882,7 +922,7 @@ public type GetOrganizationsByAvinyaTypeResponse record {| record {| int? id; record {| - string name_en; + string? name_en; |} name; string? description; record {| @@ -891,3 +931,45 @@ public type GetOrganizationsByAvinyaTypeResponse record {| |}[]? organization_metadata; |}[]? organizations_by_avinya_type; |}; + +public type CreateMonthlyLeaveDatesResponse record {| + map __extensions?; + record {| + int? id; + int? year; + int? month; + int? organization_id; + int[]? leave_dates_list; + anydata? daily_amount; + string? created; + string? updated; + |}? add_monthly_leave_dates; +|}; + +public type UpdateMonthlyLeaveDatesResponse record {| + map __extensions?; + record {| + int? id; + int? year; + int? month; + int? organization_id; + int[]? leave_dates_list; + anydata? daily_amount; + string? created; + string? updated; + |}? update_monthly_leave_dates; +|}; + +public type GetMonthlyLeaveDatesRecordByIdResponse record {| + map __extensions?; + record {| + int? id; + int? year; + int? month; + int? organization_id; + int[]? leave_dates_list; + anydata? daily_amount; + string? created; + string? updated; + |}? monthly_leave_dates_record_by_id; +|}; diff --git a/campus/bffs/attendance/graphql_client/schema.graphql b/campus/bffs/attendance/graphql_client/schema.graphql index 5f2bc8ad..caf3073a 100644 --- a/campus/bffs/attendance/graphql_client/schema.graphql +++ b/campus/bffs/attendance/graphql_client/schema.graphql @@ -1,5 +1,5 @@ input Activity { - record_type: String = "" + record_type: String = "activity" id: Int name: String description: String @@ -24,7 +24,7 @@ type ActivityData { } input ActivityInstance { - record_type: String = "" + record_type: String = "activity_instance" id: Int activity_id: Int name: String @@ -62,7 +62,7 @@ type ActivityInstanceData { } input ActivityParticipant { - record_type: String = "" + record_type: String = "activity_participant" id: Int activity_instance_id: Int person_id: Int @@ -76,7 +76,7 @@ input ActivityParticipant { } input ActivityParticipantAttendance { - record_type: String = "" + record_type: String = "activity_participant_attendance" id: Int person_id: Int activity_instance_id: Int @@ -138,7 +138,7 @@ type ActivityParticipantData { } input ActivitySequencePlan { - record_type: String = "" + record_type: String = "activity_sequence_plan" id: Int activity_id: Int sequence_number: Int @@ -161,25 +161,23 @@ type ActivitySequencePlanData { } input Address { - record_type: String = "" + record_type: String = "address" id: Int - street_address: String! + street_address: String phone: Int - city_id: Int! - name_en: String! - name_ta: String - name_si: String + city_id: Int + city: City } type AddressData { city: CityData! - street_address: String! + street_address: String phone: Int id: Int } input ApplicantConsent { - record_type: String = "" + record_type: String = "applicant_consent" id: Int active: Boolean organization_id: Int @@ -225,7 +223,7 @@ type ApplicantConsentData { } input Application { - record_type: String = "" + record_type: String = "application" id: Int person_id: Int vacancy_id: Int @@ -248,7 +246,7 @@ type ApplicationStatusData { } input Asset { - record_type: String = "" + record_type: String = "asset" id: Int name: String manufacturer: String @@ -290,7 +288,7 @@ type AttendanceDashboardDataMain { } input AvinyaType { - record_type: String = "" + record_type: String = "avinya_type" id: Int active: Boolean! global_type: String! @@ -312,6 +310,21 @@ type AvinyaTypeData { description: String } +input City { + record_type: String = "city" + id: Int + district_id: Int + suburb_name_en: String + suburb_name_ta: String + suburb_name_si: String + postcode: String + name_en: String + name_ta: String + name_si: String + latitude: Decimal + longitude: Decimal +} + type CityData { name: LocalizedName! id: Int @@ -319,7 +332,7 @@ type CityData { } input Consumable { - record_type: String = "" + record_type: String = "consumable" id: Int avinya_type_id: Int name: String @@ -327,6 +340,7 @@ input Consumable { manufacturer: String model: String serial_number: String + threshold: Decimal created: String updated: String } @@ -339,6 +353,7 @@ type ConsumableData { manufacturer: String model: String serial_number: String + threshold: Decimal created: String updated: String } @@ -370,7 +385,7 @@ type DistrictData { } input DutyParticipant { - record_type: String = "" + record_type: String = "duty_participant" id: Int activity_id: Int activity: Activity @@ -400,7 +415,7 @@ type DutyRotationMetaData { } input DutyRotationMetaDetails { - record_type: String = "" + record_type: String = "duty_rotation_metadata" id: Int start_date: String end_date: String @@ -408,7 +423,7 @@ input DutyRotationMetaDetails { } input EducationExperience { - record_type: String = "" + record_type: String = "education_experience" id: Int person_id: Int school: String @@ -426,7 +441,7 @@ type EducationExperienceData { } input Evaluation { - record_type: String = "" + record_type: String = "evaluation" id: Int evaluatee_id: Int evaluator_id: Int @@ -442,7 +457,7 @@ input Evaluation { } input EvaluationCriteria { - record_type: String = "" + record_type: String = "evaluation_criteria" id: Int prompt: String description: String @@ -453,7 +468,7 @@ input EvaluationCriteria { } input EvaluationCriteriaAnswerOption { - record_type: String = "" + record_type: String = "evaluation_criteria_answer_option" id: Int evaluation_criteria_id: Int answer: String @@ -478,7 +493,7 @@ type EvaluationCriteriaData { } input EvaluationCycle { - record_type: String = "" + record_type: String = "evaluation_cycle" id: Int name: String description: String @@ -509,7 +524,7 @@ type EvaluationData { } input EvaluationMetadata { - record_type: String = "" + record_type: String = "metadata" id: Int evaluation_id: Int location: String @@ -541,16 +556,24 @@ type GeoData { } input Inventory { - record_type: String = "" + record_type: String = "inventory" id: Int avinya_type_id: Int asset_id: Int consumable_id: Int + name: String + month_name: String + description: String + manufacturer: String organization_id: Int person_id: Int - quantity: Int - quantity_in: Int - quantity_out: Int + quantity: Decimal + quantity_in: Decimal + quantity_out: Decimal + prev_quantity: Decimal + resource_property_id: Int + resource_property_value: String + is_below_threshold: Int created: String updated: String } @@ -561,21 +584,54 @@ type InventoryData { avinya_type_id: Int asset: AssetData consumable: ConsumableData + consumable_id: Int organization: OrganizationData person: PersonData - quantity: Int - quantity_in: Int - quantity_out: Int + quantity: Decimal + quantity_in: Decimal + quantity_out: Decimal + prev_quantity: Decimal + resource_property: ResourcePropertyData + name: String + month_name: String + description: String + manufacturer: String + is_below_threshold: Int created: String updated: String } type LocalizedName { - name_en: String! + name_en: String name_ta: String name_si: String } +input MonthlyLeaveDates { + record_type: String = "monthly_leave_dates" + id: Int + year: Int + month: Int + total_days_in_month: Int + organization_id: Int + leave_dates_list: [Int!]! + leave_dates: String + daily_amount: Decimal + created: String + updated: String +} + +type MonthlyLeaveDatesData { + id: Int + year: Int + month: Int + organization_id: Int + leave_dates_list: [Int!] + daily_amount: Decimal + created: String + updated: String +} + type Mutation { add_avinya_type(avinya_type: AvinyaType!): AvinyaTypeData update_avinya_type(avinya_type: AvinyaType!): AvinyaTypeData @@ -630,19 +686,28 @@ type Mutation { update_duty_rotation_metadata(duty_rotation: DutyRotationMetaDetails!): DutyRotationMetaData add_duty_attendance(duty_attendance: ActivityParticipantAttendance!): ActivityParticipantAttendanceData add_duty_evaluation(duty_evaluation: Evaluation!): EvaluationData + consumable_replenishment(person_id: Int!, organization_id: Int!, date: String!, inventories: [Inventory!]!): [InventoryData!] + consumable_depletion(person_id: Int!, organization_id: Int!, date: String!, inventories: [Inventory!]!): [InventoryData!] + update_consumable_replenishment(inventories: [Inventory!]!): [InventoryData!] + update_consumable_depletion(inventories: [Inventory!]!): [InventoryData!] + update_person(person: Person!, permanent_address: Address, permanent_address_city: City, mailing_address: Address, mailing_address_city: City): PersonData + insert_person(person: Person!, mailing_address: Address, mailing_address_city: City): PersonData + add_monthly_leave_dates(monthly_leave_dates: MonthlyLeaveDates!): MonthlyLeaveDatesData + update_monthly_leave_dates(monthly_leave_dates: MonthlyLeaveDates!): MonthlyLeaveDatesData } input Organization { - record_type: String = "" + record_type: String = "organization" id: Int child_organizations: [Int!] parent_organizations: [Int!] + child_organizations_for_dashboard: [Int!] address_id: Int avinya_type: Int phone: Int description: String notes: String - name_en: String! + name_en: String name_ta: String name_si: String } @@ -656,6 +721,7 @@ type OrganizationData { phone: Int name: LocalizedName! child_organizations: [OrganizationData!] + child_organizations_for_dashboard: [OrganizationData!] parent_organizations: [OrganizationData!] people: [PersonData!] vacancies: [VacancyData!] @@ -674,7 +740,7 @@ type OrganizationStructureData { } input Person { - record_type: String = "" + record_type: String = "person" id: Int preferred_name: String full_name: String @@ -709,6 +775,9 @@ input Person { academy_org_id: Int academy_org_name: String branch_code: String + current_job: String + created_by: Int + updated_by: Int } type PersonData { @@ -745,6 +814,9 @@ type PersonData { academy_org_id: Int organization_id: Int branch_code: String + current_job: String + created_by: Int + updated_by: Int } type PlaceData { @@ -765,7 +837,7 @@ type PlaceData { } input Prospect { - record_type: String = "" + record_type: String = "prospect" id: Int active: Boolean name: String @@ -842,19 +914,19 @@ type Query { education_experience_byPerson(person_id: Int): [EducationExperienceData!]! work_experience(id: Int): WorkExperienceData work_experience_ByPerson(person_id: Int): [WorkExperienceData!] - activity(name: String, id: Int): ActivityData + activity(name: String, id: Int = 0): ActivityData class_attendance_today(organization_id: Int, activity_id: Int): [ActivityParticipantAttendanceData!] person_attendance_today(person_id: Int, activity_id: Int): [ActivityParticipantAttendanceData!] - person_attendance_report(person_id: Int, activity_id: Int, result_limit: Int): [ActivityParticipantAttendanceData!] - class_attendance_report(organization_id: Int, parent_organization_id: Int, activity_id: Int, result_limit: Int, from_date: String = "", to_date: String = ""): [ActivityParticipantAttendanceData!] - late_attendance_report(organization_id: Int, parent_organization_id: Int, activity_id: Int, result_limit: Int, from_date: String = "", to_date: String = ""): [ActivityParticipantAttendanceDataForLateAttendance!] + person_attendance_report(person_id: Int, activity_id: Int, result_limit: Int = 0): [ActivityParticipantAttendanceData!] + class_attendance_report(organization_id: Int, parent_organization_id: Int, activity_id: Int, result_limit: Int = 0, from_date: String = "", to_date: String = ""): [ActivityParticipantAttendanceData!] + late_attendance_report(organization_id: Int, parent_organization_id: Int, activity_id: Int, result_limit: Int = 0, from_date: String = "", to_date: String = ""): [ActivityParticipantAttendanceDataForLateAttendance!] asset(id: Int, avinya_type_id: Int): [AssetData!] assets: [AssetData!]! supplier(id: Int!): SupplierData suppliers: [SupplierData!]! consumable(id: Int!): ConsumableData consumableByUpdate(updated: String, avinya_type_id: Int): [ConsumableData!] - consumables: [ConsumableData!]! + consumables: [ConsumableData!] activeActivityInstance: [ActivityInstanceData!]! resource_property(id: Int!): ResourcePropertyData resource_properties: [ResourcePropertyData!]! @@ -878,10 +950,20 @@ type Query { daily_students_attendance_by_parent_org(parent_organization_id: Int): [DailyActivityParticipantAttendanceByParentOrgData!] total_attendance_count_by_date(organization_id: Int, parent_organization_id: Int, from_date: String = "", to_date: String = ""): [TotalActivityParticipantAttendanceCountByDateData!] daily_attendance_summary_report(organization_id: Int, avinya_type_id: Int, from_date: String = "", to_date: String = ""): [DailyActivityParticipantAttendanceSummaryReportData!] + inventory_data_by_organization(organization_id: Int, date: String = ""): [InventoryData!] + consumable_weekly_report(organization_id: Int, from_date: String = "", to_date: String = ""): [InventoryData!] + consumable_monthly_report(organization_id: Int, year: Int, month: Int): [InventoryData!] + consumable_yearly_report(organization_id: Int, consumable_id: Int, year: Int): [InventoryData!] + persons(organization_id: Int, avinya_type_id: Int): [PersonData!] + person_by_id(id: Int): PersonData + districts: [DistrictData!] + cities(district_id: Int): [CityData!] + all_organizations: [OrganizationData!] + monthly_leave_dates_record_by_id(id: Int): MonthlyLeaveDatesData } input ResourceAllocation { - record_type: String = "" + record_type: String = "resource_allocation" id: Int requested: Boolean approved: Boolean @@ -916,7 +998,7 @@ type ResourceAllocationData { } input ResourceProperty { - record_type: String = "" + record_type: String = "resource_property" id: Int asset_id: Int consumable_id: Int @@ -933,7 +1015,7 @@ type ResourcePropertyData { } input Supplier { - record_type: String = "" + record_type: String = "supplier" id: Int name: String description: String @@ -956,7 +1038,7 @@ type SupplierData { } input Supply { - record_type: String = "" + record_type: String = "supply" id: Int asset_id: Int consumable_id: Int @@ -990,7 +1072,7 @@ type TotalActivityParticipantAttendanceCountByDateData { } input Vacancy { - record_type: String = "" + record_type: String = "vacancy" id: Int name: String description: String @@ -1010,7 +1092,7 @@ type VacancyData { } input WorkExperience { - record_type: String = "" + record_type: String = "work_experience" id: Int person_id: Int organization: String diff --git a/campus/bffs/attendance/graphql_client/schema.json b/campus/bffs/attendance/graphql_client/schema.json index a5cb8175..8ffee6a9 100644 --- a/campus/bffs/attendance/graphql_client/schema.json +++ b/campus/bffs/attendance/graphql_client/schema.json @@ -390,6 +390,39 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "current_job", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "created_by", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updated_by", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -463,7 +496,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"activity_sequence_plan\"" }, { "name": "id", @@ -1535,7 +1568,7 @@ "name": "Int", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "0" } ], "type": { @@ -1650,7 +1683,7 @@ "name": "Int", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "0" } ], "type": { @@ -1706,7 +1739,7 @@ "name": "Int", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "0" }, { "name": "from_date", @@ -1780,7 +1813,7 @@ "name": "Int", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "0" }, { "name": "from_date", @@ -1993,19 +2026,15 @@ "name": "consumables", "args": [], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ConsumableData", - "ofType": null - } + "kind": "OBJECT", + "name": "ConsumableData", + "ofType": null } } }, @@ -2779,102 +2808,398 @@ }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "Address", - "fields": null, - "inputFields": [ - { - "name": "record_type", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": "\"\"" - }, - { - "name": "id", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null }, { - "name": "street_address", + "name": "inventory_data_by_organization", + "args": [ + { + "name": "organization_id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "date", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": "\"\"" + } + ], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "InventoryData", + "ofType": null + } } }, - "defaultValue": null - }, - { - "name": "phone", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "city_id", + "name": "consumable_weekly_report", + "args": [ + { + "name": "organization_id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "from_date", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": "\"\"" + }, + { + "name": "to_date", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": "\"\"" + } + ], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "InventoryData", + "ofType": null + } } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "name_en", + "name": "consumable_monthly_report", + "args": [ + { + "name": "organization_id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "year", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "month", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + } + ], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "InventoryData", + "ofType": null + } } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "name_ta", + "name": "consumable_yearly_report", + "args": [ + { + "name": "organization_id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "consumable_id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "year", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + } + ], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "InventoryData", + "ofType": null + } + } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "name_si", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - } + "name": "persons", + "args": [ + { + "name": "organization_id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "avinya_type_id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PersonData", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "person_by_id", + "args": [ + { + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "PersonData", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "districts", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "DistrictData", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "cities", + "args": [ + { + "name": "district_id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CityData", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "all_organizations", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationData", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "monthly_leave_dates_record_by_id", + "args": [ + { + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "MonthlyLeaveDatesData", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "Address", + "fields": null, + "inputFields": [ + { + "name": "record_type", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": "\"address\"" + }, + { + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "street_address", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "phone", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "city_id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "city", + "type": { + "kind": "INPUT_OBJECT", + "name": "City", + "ofType": null + }, + "defaultValue": null + } ], "interfaces": null, "enumValues": null, @@ -2892,7 +3217,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"activity_instance\"" }, { "name": "id", @@ -3153,7 +3478,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"evaluation_criteria_answer_option\"" }, { "name": "id", @@ -3208,7 +3533,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"activity\"" }, { "name": "id", @@ -3823,7 +4148,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"applicant_consent\"" }, { "name": "id", @@ -4031,7 +4356,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"duty_rotation_metadata\"" }, { "name": "id", @@ -4086,7 +4411,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"activity_participant\"" }, { "name": "id", @@ -4595,7 +4920,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"asset\"" }, { "name": "id", @@ -4908,7 +5233,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"evaluation\"" }, { "name": "id", @@ -5051,7 +5376,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"metadata\"" }, { "name": "id", @@ -5401,6 +5726,25 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "child_organizations_for_dashboard", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrganizationData", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "parent_organizations", "args": [], @@ -5600,13 +5944,9 @@ "name": "name_en", "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null @@ -5651,7 +5991,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"vacancy\"" }, { "name": "id", @@ -5881,41 +6221,159 @@ "possibleTypes": null }, { - "kind": "OBJECT", - "name": "InventoryData", - "fields": [ + "kind": "INPUT_OBJECT", + "name": "City", + "fields": null, + "inputFields": [ { - "name": "id", - "args": [], + "name": "record_type", "type": { "kind": "SCALAR", - "name": "Int", + "name": "String", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": "\"city\"" }, { - "name": "avinya_type", - "args": [], + "name": "id", "type": { - "kind": "OBJECT", - "name": "AvinyaTypeData", + "kind": "SCALAR", + "name": "Int", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "avinya_type_id", - "args": [], + "name": "district_id", "type": { "kind": "SCALAR", "name": "Int", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null + }, + { + "name": "suburb_name_en", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "suburb_name_ta", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "suburb_name_si", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "postcode", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "name_en", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "name_ta", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "name_si", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "latitude", + "type": { + "kind": "SCALAR", + "name": "Decimal", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "longitude", + "type": { + "kind": "SCALAR", + "name": "Decimal", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InventoryData", + "fields": [ + { + "name": "id", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "avinya_type", + "args": [], + "type": { + "kind": "OBJECT", + "name": "AvinyaTypeData", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "avinya_type_id", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null }, { "name": "asset", @@ -5939,6 +6397,17 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "consumable_id", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "organization", "args": [], @@ -5966,7 +6435,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Int", + "name": "Decimal", "ofType": null }, "isDeprecated": false, @@ -5977,7 +6446,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Int", + "name": "Decimal", "ofType": null }, "isDeprecated": false, @@ -5986,6 +6455,83 @@ { "name": "quantity_out", "args": [], + "type": { + "kind": "SCALAR", + "name": "Decimal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "prev_quantity", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Decimal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "resource_property", + "args": [], + "type": { + "kind": "OBJECT", + "name": "ResourcePropertyData", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "month_name", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "manufacturer", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "is_below_threshold", + "args": [], "type": { "kind": "SCALAR", "name": "Int", @@ -6457,64 +7003,170 @@ }, { "kind": "OBJECT", - "name": "Mutation", + "name": "MonthlyLeaveDatesData", "fields": [ { - "name": "add_avinya_type", - "args": [ - { - "name": "avinya_type", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AvinyaType", - "ofType": null - } - }, - "defaultValue": null - } - ], + "name": "id", + "args": [], "type": { - "kind": "OBJECT", - "name": "AvinyaTypeData", + "kind": "SCALAR", + "name": "Int", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "update_avinya_type", - "args": [ - { - "name": "avinya_type", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AvinyaType", - "ofType": null - } - }, - "defaultValue": null - } - ], + "name": "year", + "args": [], "type": { - "kind": "OBJECT", - "name": "AvinyaTypeData", + "kind": "SCALAR", + "name": "Int", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "add_educator_applicant", - "args": [ - { - "name": "person", - "type": { + "name": "month", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "organization_id", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "leave_dates_list", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "daily_amount", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Decimal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "created", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updated", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Mutation", + "fields": [ + { + "name": "add_avinya_type", + "args": [ + { + "name": "avinya_type", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AvinyaType", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "AvinyaTypeData", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "update_avinya_type", + "args": [ + { + "name": "avinya_type", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AvinyaType", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "AvinyaTypeData", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "add_educator_applicant", + "args": [ + { + "name": "person", + "type": { "kind": "NON_NULL", "name": null, "ofType": { @@ -7876,52 +8528,600 @@ } ], "type": { - "kind": "OBJECT", - "name": "EvaluationData", + "kind": "OBJECT", + "name": "EvaluationData", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "consumable_replenishment", + "args": [ + { + "name": "person_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "organization_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "date", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "inventories", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "Inventory", + "ofType": null + } + } + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "InventoryData", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "consumable_depletion", + "args": [ + { + "name": "person_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "organization_id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "date", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "inventories", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "Inventory", + "ofType": null + } + } + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "InventoryData", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "update_consumable_replenishment", + "args": [ + { + "name": "inventories", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "Inventory", + "ofType": null + } + } + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "InventoryData", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "update_consumable_depletion", + "args": [ + { + "name": "inventories", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "Inventory", + "ofType": null + } + } + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "InventoryData", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "update_person", + "args": [ + { + "name": "person", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "Person", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "permanent_address", + "type": { + "kind": "INPUT_OBJECT", + "name": "Address", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "permanent_address_city", + "type": { + "kind": "INPUT_OBJECT", + "name": "City", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "mailing_address", + "type": { + "kind": "INPUT_OBJECT", + "name": "Address", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "mailing_address_city", + "type": { + "kind": "INPUT_OBJECT", + "name": "City", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "PersonData", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "insert_person", + "args": [ + { + "name": "person", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "Person", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "mailing_address", + "type": { + "kind": "INPUT_OBJECT", + "name": "Address", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "mailing_address_city", + "type": { + "kind": "INPUT_OBJECT", + "name": "City", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "PersonData", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "add_monthly_leave_dates", + "args": [ + { + "name": "monthly_leave_dates", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MonthlyLeaveDates", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "MonthlyLeaveDatesData", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "update_monthly_leave_dates", + "args": [ + { + "name": "monthly_leave_dates", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MonthlyLeaveDates", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "MonthlyLeaveDatesData", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "ProvinceData", + "fields": [ + { + "name": "id", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "LocalizedName", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "districts", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "DistrictData", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "ResourcePropertyData", + "fields": [ + { + "name": "id", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "asset", + "args": [], + "type": { + "kind": "OBJECT", + "name": "AssetData", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "consumable", + "args": [], + "type": { + "kind": "OBJECT", + "name": "ConsumableData", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "property", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "value", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "MonthlyLeaveDates", + "fields": null, + "inputFields": [ + { + "name": "record_type", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": "\"monthly_leave_dates\"" + }, + { + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "year", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "month", + "type": { + "kind": "SCALAR", + "name": "Int", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProvinceData", - "fields": [ + "defaultValue": null + }, { - "name": "id", - "args": [], + "name": "total_days_in_month", "type": { "kind": "SCALAR", "name": "Int", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "name", - "args": [], + "name": "organization_id", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LocalizedName", - "ofType": null - } + "kind": "SCALAR", + "name": "Int", + "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "districts", - "args": [], + "name": "leave_dates_list", "type": { "kind": "NON_NULL", "name": null, @@ -7932,84 +9132,53 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "DistrictData", + "kind": "SCALAR", + "name": "Int", "ofType": null } } } }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ResourcePropertyData", - "fields": [ - { - "name": "id", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "asset", - "args": [], + "name": "leave_dates", "type": { - "kind": "OBJECT", - "name": "AssetData", + "kind": "SCALAR", + "name": "String", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "consumable", - "args": [], + "name": "daily_amount", "type": { - "kind": "OBJECT", - "name": "ConsumableData", + "kind": "SCALAR", + "name": "Decimal", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "property", - "args": [], + "name": "created", "type": { "kind": "SCALAR", "name": "String", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "value", - "args": [], + "name": "updated", "type": { "kind": "SCALAR", "name": "String", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null } ], - "inputFields": null, - "interfaces": [], + "interfaces": null, "enumValues": null, "possibleTypes": null }, @@ -8068,7 +9237,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"person\"" }, { "name": "id", @@ -8391,6 +9560,33 @@ "ofType": null }, "defaultValue": null + }, + { + "name": "current_job", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "created_by", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "updated_by", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null } ], "interfaces": null, @@ -8409,7 +9605,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"application\"" }, { "name": "id", @@ -8464,7 +9660,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"inventory\"" }, { "name": "id", @@ -8502,6 +9698,42 @@ }, "defaultValue": null }, + { + "name": "name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "month_name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "manufacturer", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, { "name": "organization_id", "type": { @@ -8524,7 +9756,7 @@ "name": "quantity", "type": { "kind": "SCALAR", - "name": "Int", + "name": "Decimal", "ofType": null }, "defaultValue": null @@ -8533,13 +9765,49 @@ "name": "quantity_in", "type": { "kind": "SCALAR", - "name": "Int", + "name": "Decimal", "ofType": null }, "defaultValue": null }, { "name": "quantity_out", + "type": { + "kind": "SCALAR", + "name": "Decimal", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "prev_quantity", + "type": { + "kind": "SCALAR", + "name": "Decimal", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "resource_property_id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "resource_property_value", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "is_below_threshold", "type": { "kind": "SCALAR", "name": "Int", @@ -8582,7 +9850,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"activity_participant_attendance\"" }, { "name": "id", @@ -8830,7 +10098,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"organization\"" }, { "name": "id", @@ -8875,6 +10143,23 @@ }, "defaultValue": null }, + { + "name": "child_organizations_for_dashboard", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + "defaultValue": null + }, { "name": "address_id", "type": { @@ -8923,13 +10208,9 @@ { "name": "name_en", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null }, @@ -8968,7 +10249,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"education_experience\"" }, { "name": "id", @@ -9341,7 +10622,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"supply\"" }, { "name": "id", @@ -9876,7 +11157,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"resource_allocation\"" }, { "name": "id", @@ -10259,13 +11540,9 @@ "name": "street_address", "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null @@ -10310,7 +11587,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"supplier\"" }, { "name": "id", @@ -10720,6 +11997,17 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "threshold", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Decimal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created", "args": [], @@ -10760,7 +12048,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"work_experience\"" }, { "name": "id", @@ -10941,7 +12229,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"consumable\"" }, { "name": "id", @@ -11006,6 +12294,15 @@ }, "defaultValue": null }, + { + "name": "threshold", + "type": { + "kind": "SCALAR", + "name": "Decimal", + "ofType": null + }, + "defaultValue": null + }, { "name": "created", "type": { @@ -11396,7 +12693,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"evaluation_criteria\"" }, { "name": "id", @@ -11478,7 +12775,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"avinya_type\"" }, { "name": "id", @@ -11631,7 +12928,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"resource_property\"" }, { "name": "id", @@ -11727,7 +13024,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"evaluation_cycle\"" }, { "name": "id", @@ -12046,7 +13343,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"prospect\"" }, { "name": "id", @@ -12280,7 +13577,7 @@ "name": "String", "ofType": null }, - "defaultValue": "\"\"" + "defaultValue": "\"duty_participant\"" }, { "name": "id",