# skyclick-grpc-client

> This is the grpc client for interact with skyclick microservices.

Latest version **1.7.4** (published 2021-07-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install skyclick-grpc-client
pnpm add skyclick-grpc-client
yarn add skyclick-grpc-client
bun add skyclick-grpc-client
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.7.4 |
| Published | 2021-07-23 |
| First published | 2020-12-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 24 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Stanley Salvatierra |
| Maintainers | stanlee321 |

## Links

- npm: https://www.npmjs.com/package/skyclick-grpc-client
- npm.io page: https://npm.io/package/skyclick-grpc-client

## Dependencies (4)

- [grpc](https://npm.io/package/grpc.md) ^1.24.4
- [lodash](https://npm.io/package/lodash.md) ^4.17.20
- [grpc-tools](https://npm.io/package/grpc-tools.md) ^1.10.0
- [grpc_tools_node_protoc_ts](https://npm.io/package/grpc_tools_node_protoc_ts.md) ^5.0.1

## Recent versions

- 1.7.4 (latest) — 2021-07-23
- 1.7.3 — 2021-07-07
- 1.7.2 — 2021-07-06
- 1.7.1 — 2021-07-06
- 1.7.0 — 2021-07-04
- 1.6.2 — 2021-04-26
- 1.6.1 — 2021-04-26
- 1.6.0 — 2021-04-25
- 1.5.3 — 2021-04-23
- 1.5.2 — 2021-04-13
- 1.5.1 — 2021-04-10
- 1.5.0 — 2021-03-28
- 1.4.1 — 2021-03-24
- 1.4.0 — 2021-03-24
- 1.3.0 — 2021-01-24
- … 6 more at https://npm.io/package/skyclick-grpc-client/versions

## README

# Skyclick gRPC Client

## Release Logs


**v1.7.4**

* Added new methods for list h5p events

  
```golang

  ListH5PInteractionsByUserIDAndHomeworkID() ;
  ListH5PInteractionsByUserIDAndActivityID() ;
  ListH5PInteractionsByUserIDAndHomeworkIDAndActivityID() ;

```

* Added 

```golang
int64 activity_id = 6;

```

in `CreateH5PInteractionRequest()`



* Added pagination in the list returns for H5P with this fields 

```golang
int64 page = 2;
int64 total_pages = 3;
int64 total_results = 4;
```


**v1.7.3**

Fixed bug in Campus -> Unit service 

* Changed field "type" to "unit_type" and added new "unit_number"
  
```golang
string unit_type   = 5;
int64 unit_number  = 6;
```

**v1.7.2**

Added campus service updates for admin_assignments:

```golang
    // In CreateAdminAssignmentRequest
    int64 cycle_id           = 6;
    int64 period_id          = 7;

    // Also, new Functions

    UpdateAdminAssignmentCycleID(...); 
    UpdateAdminAssignmentPeriodID(...); 
    ListAdminAssignmentsByCampusIDAndCycleIDAndType(...);
    ListAdminAssignmentsByOrganizationIDAndCycleIDAndType(...);
    ListAdminAssignmentsByType(...);
    ListAdminAssignmentsByCycleID(...);
    ListAdminAssignmentsByPeriodID(...);
    ListAdminAssignmentsByCampusIDAndPeriodIDAndType(...);
    ListAdminAssignmentsByOrganizationIDAndPeriodIDAndType(...);
```


Added in new activity clients :


* HomeworkWeights 
* HomeworkMapping

```golang

Activity.ClientHomeworkMapping(...)
Activity.ClientHomeworkWeight(...)

```



**v1.7.1**

Added in activity service :

* HomeworkWeights 
* HomeworkMapping

```golang

Activity.ClientHomeworkMapping(...)
Activity.ClientHomeworkWeight(...)

```


**v1.7.0**

Added new functions and params in Activity Microservices :

```golang

int64 period_id = 7;
int64 cycle_id = 8;
bool status = 9; 

ListHomeworkAssignmentsByUserAssignedToIDAndCycleID(...)
ListHomeworkAssignmentsByUserAssignedToIDAndPeriodID(...)
ListHomeworkAssignmentsByHomeworkIDAndCycleID(...)
ListHomeworkAssignmentsByHomeworkIDAndPeriodID(...)

```


**v1.6.1**

Fixed deploy for notifications.


**v1.6.0**

Added new Notification service inside of Activity microservice, added Size field for List queries.

**v1.5.3**

Added new generic methods for .Update() in Campus and Activity, removed  teacherResourceId as mandatory.


**v1.5.2**

Added new method for campus.Organizations... updateOrganization()


**v1.5.1**

Fixed google timestamp grpc to String in datetimes pass for activity creation



**v1.5.0**
Added new services for campus :

```javascript

// NEW
const adminAssignmentClient = Campus.ClientAdminAssignment( 'localhost:50052' )
const scoreConversion = Campus.ClientScoreConversion( 'localhost:50052' )

```

Refactor Campus-Microservice with cammel case formating

```javascript

const runCreateOrganization = (callback:any) => {
    const next = _.after(2, callback);

    const featureCallback = (error:any, res: Campus.MessagesOrganization.CreateOrganizationResponse) =>{
        if (error) {
          callback(error);
          return;
        }
        const organization  = res.getOrganization()?.toObject()!

        console.log(organization)

        next();
    }

    let args = new Campus.MessagesOrganization.CreateOrganizationRequest()
    
    args.setContactId(1)
    args.setLocationId(1)
    args.setDescription("asdasdasd ")
    args.setLevel("Level 2")
    args.setMission("BE THE BEST OF BEST")
    args.setName("ORG_2")
    args.setType("TIP 2" )
    args.setVision("VISION VISION OF VISION")

    organizationClient.createOrganization(args, featureCallback)

}
```




**v1.4.0**

Update CamelCase for all methods, example of how it looks like:

```javascript

const runCreateOrganization = (callback:any) => {
    const next = _.after(2, callback);

    const featureCallback = (error:any, res: Campus.MessagesOrganization.CreateOrganizationResponse) =>{
        if (error) {
          callback(error);
          return;
        }
        const organization  = res.getOrganization()?.toObject()!

        console.log(organization)

        next();
    }

    let args = new Campus.MessagesOrganization.CreateOrganizationRequest()
    
    args.setContactId(1)
    args.setLocationId(1)
    args.setOrganizationDescription("asdasdasd ")
    args.setOrganizationLevel("Level 2")
    args.setOrganizationMission("BE THE BEST OF BEST")
    args.setOrganizationName("ORG_2")
    args.setOrganizationType("TIP 2" )
    args.setOrganizationVision("VISION VISION OF VISION")

    organizationClient.createOrganization(args, featureCallback)

}
```


**v1.3.0**

Update Activity Service Clients for handle H5P integration

```javascript

import {Activity} from 'skyclick-grpc-client';


const h5pInteractionClient = Activity.ClientH5PInteraction( 'localhost:50053')
const homeworkClient = Activity.ClientHomework( 'localhost:50053')
const homeworkAssignmentClient = Activity.ClientHomeworkAssignment( 'localhost:50053')
const h5pActivityClient = Activity.ClientH5PActivity( 'localhost:50053')


...


**v1.2.1**

Added Clients for homework pipelines in Activity Client

```javascript

import {Activity} from 'skyclick-grpc-client';


const choiceClient = Activity.ClientChoice( 'localhost:50053')
const homeworkClient = Activity.ClientHomework( 'localhost:50053')
const homeworkAssignmentClient = Activity.ClientHomeworkAssignment( 'localhost:50053')
const questionClient = Activity.ClientQuestion( 'localhost:50053')


...



```


**v1.0.2**

Added Activity Microservices functions, now you can access to the activity microservices imports in the port 50053, with the import usage like:

```javascript

import {Campus, Activity} from 'skyclick-grpc-client';


const activityClient = Activity.ClientActivity( 'localhost:50053')

...


```

---
_Source: https://npm.io/package/skyclick-grpc-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
