Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meekou (Independent Publisher) #3669

Open
wants to merge 23 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
253 changes: 253 additions & 0 deletions independent-publisher-connectors/Meekou/apiDefinition.swagger.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@
{
"swagger": "2.0",
"info": {
"title": "Meekou Share Connector",
"description": "Provide common functions which help to improve PowerApps & Automate development process.",
"contact": {
"name": "米可爱分享",
"url": "https://blog.meekou.cn/",
"email": "[email protected]"
},
"license": {
"name": "MIT License",
"url": "https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/LICENSE"
},
"version": "v1"
},
"host": "meekou-fig.azurewebsites.net",
"schemes": [
"https"
],
"paths": {
"/api/File/HtmlToPdf": {
"post": {
"tags": [
"File"
],
"operationId": "HtmlToPdf",
"parameters": [
{
"in": "query",
"name": "htmlContent",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/api/File/SwaggerThreeToTwo": {
"post": {
"tags": [
"File"
],
"operationId": "SwaggerThreeToTwo",
"parameters": [
{
"in": "query",
"name": "swaggerUrl",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/api/Math/Evaluate": {
"post": {
"tags": [
"Math"
],
"operationId": "Evaluate",
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"in": "query",
"name": "formula",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Response"
}
}
}
}
},
"/api/Math/Sum": {
"post": {
"tags": [
"Math"
],
"operationId": "Sum",
"consumes": [
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"in": "body",
"name": "body",
"schema": {
"$ref": "#/definitions/SumInput"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Response"
}
}
}
}
},
"/api/Math/RoundUp": {
"post": {
"tags": [
"Math"
],
"operationId": "RoundUp",
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"in": "query",
"name": "input",
"type": "number",
"format": "double"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Response"
}
}
}
}
},
"/api/Text/Regex": {
"post": {
"tags": [
"Text"
],
"operationId": "Regex",
"consumes": [
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"in": "body",
"name": "body",
"schema": {
"$ref": "#/definitions/RegexInput"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Response"
}
}
}
}
}
},
"definitions": {
"ErrorInfo": {
"type": "object",
"properties": {
"code": {
"format": "int32",
"type": "integer"
},
"message": {
"type": "string"
},
"details": {
"type": "string"
}
},
"additionalProperties": false
},
"RegexInput": {
"type": "object",
"properties": {
"content": {
"type": "string"
},
"pattern": {
"type": "string"
}
},
"additionalProperties": false
},
"Response": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"error": {
"$ref": "#/definitions/ErrorInfo"
},
"result": { }
},
"additionalProperties": false
},
"SumInput": {
"type": "object",
"properties": {
"data": {
"type": "string"
},
"path": {
"type": "string"
}
},
"additionalProperties": false
}
},
"securityDefinitions": {
"bearerAuth": {
"type": "apiKey",
"name": "Authorization",
"in": "header",
"description": "JWT Authorization header using the Bearer scheme. Example: \"Authorization: Bearer {token}\""
}
}
}
12 changes: 12 additions & 0 deletions independent-publisher-connectors/Meekou/apiProperties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"properties": {
"connectionParameters": {},
"iconBrandColor": "#da3b01",
"capabilities": [],
"scriptOperations": [
],
"publisher": "Meekou",
"stackOwner": "",
Edward-Zhou marked this conversation as resolved.
Show resolved Hide resolved
"policyTemplateInstances": []
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
94 changes: 94 additions & 0 deletions independent-publisher-connectors/Meekou/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Meekou.Fig
Edward-Zhou marked this conversation as resolved.
Show resolved Hide resolved

Meekou connector provides a powerful base functions. Using this connector, you can focus on implementing business logic without write duplicate operation to do basic operations.

## Publisher: Meekou

## Prerequisites

You will need the following to proceed:

* A Microsoft Power Apps or Power Automate plan with custom connector feature
* The Power platform CLI tools

## Supported Operations

### RoundUp

Round up number value

```yaml
input:
1.25
```

![image](https://github.com/user-attachments/assets/84f98a39-13f6-4be3-8bd5-50199834cdec)

### Evaluate

Calculate Text formula value

```yaml
formula:
1+2
```

![image](https://github.com/user-attachments/assets/bb44afd9-a99b-4bee-991d-ba8115ca8f13)

### Sum

Sum node value by path

```yaml
data:
{
"Value": [
{
"Id": 1,
"Name": "Jack",
"Score": 90
},
{
"Id": 2,
"Name": "Cindy",
"Score": 90
}
]
}
path:
Value[*].Score
```

![Sum](https://github.com/user-attachments/assets/460e2228-ba01-4ee1-beaf-4c6a2be7a228)

### HtmlToPdf

Convert html string to pdf

```yaml
htmlContent:
<div>米可</div>
```

![HtmlToPdf](https://github.com/user-attachments/assets/5444443a-41ac-4bc8-9160-dd416bffc52f)

## Obtaining Credentials

No Authenticate required.

## Getting Started

Todo.

## Known Issues and Limitations

Todo.

## Frequently Asked Questions

To do

## Deployment Instructions

To Do.

7 changes: 7 additions & 0 deletions independent-publisher-connectors/Meekou/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"connectorId": "711e141c-5016-ef11-9f89-002248344b95",
"environment": "a6e7694e-7d3f-e97e-a40e-0fc43eff6b09",
"apiProperties": "apiProperties.json",
"apiDefinition": "apiDefinition.swagger.json",
"icon": "meekou.png"
}