Skip to content

Instantly share code, notes, and snippets.

View sgassmann-skedulo's full-sized avatar

Scott Gassmann sgassmann-skedulo

  • United Kingdom
  • 02:19 (UTC -12:00)
View GitHub Profile
@sgassmann-skedulo
sgassmann-skedulo / gist:19807638bcae5e3178d966dc2a029020
Last active October 31, 2022 11:28
Mastering Low Code - Ep2 - View Page 1
{% extends "base-recordview" %}
{% set resource_name="aircraft" %}
{% block header %}
<sp-split-row>
<div slot="left">
<sp-header style="margin-bottom: 0">
<sp-column>
<sp-heading size="2xl" level="1">
{"query":"{resourcesById(UID: \"MERGE_IN_RESOURCE_ID_FROM_STEP_1_HERE\"){UID\nName\nCategory\nPrimaryRegion{\nName}}}"}
{
"name": "NewUnavailability",
"url": "REPLACE WITH YOUR ZAPIER URL",
"type": "graphql",
"query": "
subscription {
schemaAvailabilities(operation: INSERT, filter: "IsAvailable == false" ) {
operation
timestamp
data {
curl --request POST \
--url https://api.skedulo.com/webhooks \
--header 'Authorization: Bearer $Your_API_Token' \
--header 'Content-Type: application/json' \
--data '{
"name": "NewUnavailability",
"url": "REPLACE_WITH_YOUR_ZAPIER_URL",
"type": "graphql",
"query": "\n subscription {\n schemaAvailabilities(operation: INSERT, filter: \"IsAvailable == false\" ) {\n operation\n timestamp\n data {\n UID\n Notes\n Type\n IsAvailable\n Start\n Finish\n ResourceId\n }\n previous {\n UID\n }\n }\n }\n "
}
{
"resource": {
"uid": "70b4662a-d990-4884-8783-e306fa597e9d",
"name": "spacelaunchers",
"userId": "",
"tenantId": "sk_c57cce1d22554b4abdf8ce653c724022",
"domainId": "",
"resource": "spacelaunchers",
"datasource": "CUSTOM",
"datasourceParamsCustom": {
curl --request PUT \
--url https://platform.prod.skl.io/ui/v1/resource/$Resource_ID \
--header 'Authorization: bearer $API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"resource": {
"uid": "$Resource_ID",
"name": "launchers",
"userId": "",
"tenantId": "$TenantId",
curl --request POST \
--url https://platform.prod.skl.io/ui/v1/resource \
--header 'Authorization: Bearer $API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"resource": {
"name": "launchers",
"userId": "",
"tenantId": "Your_Tenant_ID_Here",
"domainId": "",
@sgassmann-skedulo
sgassmann-skedulo / gist:967496354c6c7919881a689ee2f0f981
Created September 12, 2022 13:16
Custom Data Sources - Space Launchers - Part 1
{
"resource": { "name": "spacelaunchers",
"userId": "",
"tenantId": "Your_Tenant_ID_Here",
"domainId": "",
"resource": "spacelaunchers",
"datasource": "CUSTOM",
"datasourceParamsCustom": {
"getObjects": {
"request": {
<platform-component
package-name="skedulo-web-extension"
name="WebExtension"
pkg-name="mappackage"
page-url="map"
context-a="C"
reference-uid="{{ _.queryParams.address }}">
</platform-component>
### Keybase proof
I hereby claim:
* I am sgassmann-skedulo on github.
* I am sgassmann (https://keybase.io/sgassmann) on keybase.
* I have a public key ASBFQ3rMzxEzk_p6LNjXaXm7WDBwZ5T3fLf_E-TE7y0-vQo
To claim this, I am signing this object: