Skip to content

Commit

Permalink
inital
Browse files Browse the repository at this point in the history
  • Loading branch information
KarolFilipKozlowski committed Jul 31, 2022
0 parents commit bf34df3
Show file tree
Hide file tree
Showing 11 changed files with 290 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"swagger":"2.0","info":{"title":"Default title","description":"Kursy walut NBP","version":"1.0"},"host":"api.nbp.pl","basePath":"/api/exchangerates","schemes":["https"],"consumes":[],"produces":[],"paths":{"/tables/{table}/":{"get":{"responses":{"default":{"description":"default","schema":{}}},"operationId":"tables","parameters":[{"name":"table","in":"path","required":true,"type":"string","default":"A","x-ms-summary":"Tabela z walutami","enum":["A","B","C"]},{"name":"Accept","in":"header","required":false,"type":"string","enum":["application/json","application/xml"],"x-ms-visibility":"advanced","default":"application/json"}],"summary":"Pobieranie tabeli kursów","description":"Description dla Pobieranie tabeli kursów"}},"/rates/{table}/{code}/":{"get":{"responses":{"default":{"description":"default","schema":{}}},"summary":"Kurs określonej waluty","operationId":"table_code","description":"","parameters":[{"name":"table","in":"path","required":true,"type":"string","default":"A","x-ms-summary":"Tabela z walutami","enum":["A","B","C"]},{"name":"code","in":"path","required":true,"type":"string","x-ms-summary":"Trzyliterowy kod waluty"},{"name":"Accept","in":"header","required":false,"type":"string","default":"application/json","enum":["application/json","application/xml"],"x-ms-visibility":"advanced"}]}},"/rates/{table}/{code}/{date}/":{"get":{"responses":{"default":{"description":"default","schema":{"type":"object","properties":{"rates":{"type":"array","items":{"type":"object","properties":{"no":{"type":"string","description":"no"},"effectiveDate":{"type":"string","description":"effectiveDate"},"mid":{"type":"number","format":"float","description":"kurs","title":""}}},"description":"rates"}}}}},"operationId":"table_code_date","summary":"Kurs określonej waluty na dzień X","x-ms-visibility":"advanced","parameters":[{"name":"table","in":"path","required":true,"type":"string","default":"A","enum":["A","B","C"],"x-ms-summary":"Tabela z walutami"},{"name":"code","in":"path","required":true,"type":"string","x-ms-summary":"Trzyliterowy kod waluty"},{"name":"date","in":"path","required":true,"type":"string","description":"","format":"date","x-ms-summary":"Data w formacie RRRR-MM-DD"},{"name":"Accept","in":"header","required":false,"type":"string","default":"application/json","enum":["application/json","application/xml"],"x-ms-visibility":"advanced"}]}}},"definitions":{},"parameters":{},"responses":{},"securityDefinitions":{},"security":[],"tags":[]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
null
Binary file added Konektorapinbppl_1_0_0_0.zip
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"properties": {
"connectionReferences": {
"shared_cre80-5fkursy-20walut-20nbp-5f9f745961df205669": {
"runtimeSource": "invoker",
"connection": {
"connectionReferenceLogicalName": "new_sharedcre805fkursy20walut20nbp5f9f745961df205669_3c05c"
},
"api": {
"name": "shared_cre80-5fkursy-20walut-20nbp-5f9f745961df205669",
"logicalName": "cre80_5Fkursy-20walut-20nbp"
}
}
},
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
},
"$authentication": {
"defaultValue": {},
"type": "SecureObject"
}
},
"triggers": {
"manual": {
"metadata": {
"operationMetadataId": "458628f5-f258-4d51-873c-5aeac7335b81"
},
"type": "Request",
"kind": "PowerAppV2",
"inputs": {
"schema": {
"type": "object",
"properties": {
"text": {
"title": "waluta",
"type": "string",
"x-ms-dynamically-added": true,
"description": "Please enter your input",
"x-ms-content-hint": "TEXT"
}
},
"required": [
"text"
]
}
}
}
},
"actions": {
"Kurs_określonej_waluty": {
"runAfter": {},
"metadata": {
"operationMetadataId": "06153bf7-24e4-4a62-b706-2b75735aa61e"
},
"type": "OpenApiConnection",
"inputs": {
"host": {
"connectionName": "shared_cre80-5fkursy-20walut-20nbp-5f9f745961df205669",
"operationId": "table_code",
"apiId": ""
},
"parameters": {
"table": "A",
"code": "@triggerBody()['text']",
"Accept": "application/json"
},
"authentication": "@parameters('$authentication')"
}
},
"Respond_to_a_PowerApp_or_flow": {
"runAfter": {
"Kurs_określonej_waluty": [
"Succeeded"
]
},
"metadata": {
"operationMetadataId": "f6507639-ed99-4da5-8883-ec8ada0d04b0"
},
"type": "Response",
"kind": "PowerApp",
"inputs": {
"statusCode": 200,
"body": {
"return": "@{body('Kurs_określonej_waluty')?['rates'][0]['mid']}"
},
"schema": {
"type": "object",
"properties": {
"return": {
"title": "return",
"x-ms-dynamically-added": true,
"type": "string"
}
}
}
}
}
}
}
},
"schemaVersion": "1.0.0.0"
}
1 change: 1 addition & 0 deletions [Content_Types].xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/octet-stream" /><Default Extension="json" ContentType="application/octet-stream" /><Default Extension="msapp" ContentType="application/octet-stream" /><Default Extension="Jpeg" ContentType="application/octet-stream" /><Override PartName="/CanvasApps/cre80_testkonektorakurswwalut_9d02e_BackgroundImageUri" ContentType="application/octet-stream" /></Types>
88 changes: 88 additions & 0 deletions customizations.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<ImportExportXml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Entities></Entities>
<Roles></Roles>
<Workflows>
<Workflow WorkflowId="{8fde32d5-cf10-ed11-b83d-000d3ada9e5f}" Name="Flow dla konektora kursów walut">
<JsonFileName>/Workflows/Flowdlakonektorakurswwalut-8FDE32D5-CF10-ED11-B83D-000D3ADA9E5F.json</JsonFileName>
<Type>1</Type>
<Subprocess>0</Subprocess>
<Category>5</Category>
<Mode>0</Mode>
<Scope>4</Scope>
<OnDemand>0</OnDemand>
<TriggerOnCreate>0</TriggerOnCreate>
<TriggerOnDelete>0</TriggerOnDelete>
<AsyncAutodelete>0</AsyncAutodelete>
<SyncWorkflowLogOnFailure>0</SyncWorkflowLogOnFailure>
<StateCode>1</StateCode>
<StatusCode>2</StatusCode>
<RunAs>1</RunAs>
<IsTransacted>1</IsTransacted>
<IntroducedVersion>1.0</IntroducedVersion>
<IsCustomizable>1</IsCustomizable>
<BusinessProcessType>0</BusinessProcessType>
<IsCustomProcessingStepAllowedForOtherPublishers>1</IsCustomProcessingStepAllowedForOtherPublishers>
<PrimaryEntity>none</PrimaryEntity>
<LocalizedNames>
<LocalizedName languagecode="1033" description="Flow dla konektora kursów walut" />
</LocalizedNames>
</Workflow>
</Workflows>
<FieldSecurityProfiles></FieldSecurityProfiles>
<Templates />
<EntityMaps />
<EntityRelationships />
<OrganizationSettings />
<optionsets />
<CustomControls />
<EntityDataProviders />
<CanvasApps>
<CanvasApp>
<Name>cre80_testkonektorakurswwalut_9d02e</Name>
<AppVersion>2022-07-31T13:29:32Z</AppVersion>
<Status>Ready</Status>
<CreatedByClientVersion>3.22072.25.0</CreatedByClientVersion>
<MinClientVersion>3.22072.25.0</MinClientVersion>
<Tags>{"primaryDeviceWidth":"1366","primaryDeviceHeight":"768","supportsPortrait":"true","supportsLandscape":"true","primaryFormFactor":"Tablet","publisherVersion":"3.22072.25","minimumRequiredApiVersion":"2.2.0","hasComponent":"false","hasUnlockedComponent":"false","isUnifiedRootApp":"false"}</Tags>
<IsCdsUpgraded>0</IsCdsUpgraded>
<GalleryItemId xsi:nil="true"></GalleryItemId>
<BackgroundColor>RGBA(0,176,240,1)</BackgroundColor>
<DisplayName>Test konektora kursów walut</DisplayName>
<Description xsi:nil="true"></Description>
<CommitMessage xsi:nil="true"></CommitMessage>
<Publisher xsi:nil="true"></Publisher>
<AuthorizationReferences>[]</AuthorizationReferences>
<ConnectionReferences>{"b355f304-61d7-4e7e-a6e5-8f5f3581fa0c":{"id":"/providers/microsoft.powerapps/apis/shared_logicflows","displayName":"Logic flows","iconUri":"https://connectoricons-prod.azureedge.net/releases/v1.0.1534/1.0.1534.2605/logicflows/icon.png","dataSources":["Flowdlakonektorakursówwalut"],"dependencies":["13a3d22f-6038-4f86-8eba-c9cafd9c34b2"],"dependents":[],"parameterHints":{"workflowName":{"value":"44d2141e-faf3-42f0-8904-98e9f852214a"},"workflowEntityId":{"value":"8fde32d5-cf10-ed11-b83d-000d3ada9e5f"},"13a3d22f-6038-4f86-8eba-c9cafd9c34b2":{"value":"shared_cre80-5fkursy-20walut-20nbp-5f9f745961df205669"}},"parameterHintsV2":{"workflowName":{"value":"44d2141e-faf3-42f0-8904-98e9f852214a"},"workflowEntityId":{"value":"8fde32d5-cf10-ed11-b83d-000d3ada9e5f"},"shared_cre80-5fkursy-20walut-20nbp-5f9f745961df205669":{"value":"13a3d22f-6038-4f86-8eba-c9cafd9c34b2"}},"isOnPremiseConnection":false,"bypassConsent":false,"dataSets":{},"apiTier":"Standard","actions":["Run"],"isCustomApiSolutionAware":false},"13a3d22f-6038-4f86-8eba-c9cafd9c34b2":{"id":"/providers/microsoft.powerapps/apis/shared_cre80-5fkursy-20walut-20nbp-5f9f745961df205669","displayName":"Kursy walut NBP","iconUri":"https://prodapiicons.cdn.powerappscdn.net/20220731t000000z361f3d60a8d446feb57919f1c0865686/customconnectoricon.jpg","dataSources":[],"dependencies":[],"dependents":["b355f304-61d7-4e7e-a6e5-8f5f3581fa0c"],"parameterHints":{},"parameterHintsV2":{},"isOnPremiseConnection":false,"bypassConsent":false,"dataSets":{},"apiTier":"Standard","customApiLogicalName":"cre80_5Fkursy-20walut-20nbp","isCustomApiSolutionAware":true}}</ConnectionReferences>
<DatabaseReferences>{}</DatabaseReferences>
<AppComponents>[]</AppComponents>
<AppComponentDependencies>[]</AppComponentDependencies>
<CanConsumeAppPass>1</CanConsumeAppPass>
<CanvasAppType>0</CanvasAppType>
<BypassConsent>0</BypassConsent>
<AdminControlBypassConsent>0</AdminControlBypassConsent>
<EmbeddedApp xsi:nil="true"></EmbeddedApp>
<IntroducedVersion>1.0</IntroducedVersion>
<CdsDependencies>{"cdsdependencies":[{"logicalname":"cre80_5Fkursy-20walut-20nbp","componenttype":372,"componenttypeplatformname":"connector"}]}</CdsDependencies>
<IsCustomizable>1</IsCustomizable>
<BackgroundImageUri>/CanvasApps/cre80_testkonektorakurswwalut_9d02e_BackgroundImageUri</BackgroundImageUri>
<DocumentUri>/CanvasApps/cre80_testkonektorakurswwalut_9d02e_DocumentUri.msapp</DocumentUri>
</CanvasApp>
</CanvasApps>
<Connectors>
<Connector>
<connectorid>1612d9de-f47a-4837-8a8a-d48ac47ec0e2</connectorid>
<description>Kursy walut NBP</description>
<displayname>Kursy walut NBP</displayname>
<iconbrandcolor>#007ee5</iconbrandcolor>
<name>cre80_5Fkursy-20walut-20nbp</name>
<connectortype>1</connectortype>
<openapidefinition>/Connector/cre80_5Fkursy-20walut-20nbp_openapidefinition.json</openapidefinition>
<connectionparameters>/Connector/cre80_5Fkursy-20walut-20nbp_connectionparameters.json</connectionparameters>
<policytemplateinstances>/Connector/cre80_5Fkursy-20walut-20nbp_policytemplateinstances.json</policytemplateinstances>
<iconblob>/Connector/cre80_5Fkursy-20walut-20nbp_iconblob.Jpeg</iconblob>
</Connector>
</Connectors>
<Languages>
<Language>1033</Language>
</Languages>
</ImportExportXml>
91 changes: 91 additions & 0 deletions solution.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<ImportExportXml version="9.2.22071.170" SolutionPackageVersion="9.2" languagecode="1033" generatedBy="CrmLive" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SolutionManifest>
<UniqueName>Konektorapinbppl</UniqueName>
<LocalizedNames>
<LocalizedName description="Konektor api.nbp.pl" languagecode="1033" />
</LocalizedNames>
<Descriptions />
<Version>1.0.0.0</Version>
<Managed>0</Managed>
<Publisher>
<UniqueName>Cr67eef</UniqueName>
<LocalizedNames>
<LocalizedName description="CDS Default Publisher" languagecode="1033" />
</LocalizedNames>
<Descriptions />
<EMailAddress xsi:nil="true"></EMailAddress>
<SupportingWebsiteUrl xsi:nil="true"></SupportingWebsiteUrl>
<CustomizationPrefix>cre80</CustomizationPrefix>
<CustomizationOptionValuePrefix>97586</CustomizationOptionValuePrefix>
<Addresses>
<Address>
<AddressNumber>1</AddressNumber>
<AddressTypeCode xsi:nil="true"></AddressTypeCode>
<City xsi:nil="true"></City>
<County xsi:nil="true"></County>
<Country xsi:nil="true"></Country>
<Fax xsi:nil="true"></Fax>
<FreightTermsCode xsi:nil="true"></FreightTermsCode>
<ImportSequenceNumber xsi:nil="true"></ImportSequenceNumber>
<Latitude xsi:nil="true"></Latitude>
<Line1 xsi:nil="true"></Line1>
<Line2 xsi:nil="true"></Line2>
<Line3 xsi:nil="true"></Line3>
<Longitude xsi:nil="true"></Longitude>
<Name xsi:nil="true"></Name>
<PostalCode xsi:nil="true"></PostalCode>
<PostOfficeBox xsi:nil="true"></PostOfficeBox>
<PrimaryContactName xsi:nil="true"></PrimaryContactName>
<ShippingMethodCode xsi:nil="true"></ShippingMethodCode>
<StateOrProvince xsi:nil="true"></StateOrProvince>
<Telephone1 xsi:nil="true"></Telephone1>
<Telephone2 xsi:nil="true"></Telephone2>
<Telephone3 xsi:nil="true"></Telephone3>
<TimeZoneRuleVersionNumber xsi:nil="true"></TimeZoneRuleVersionNumber>
<UPSZone xsi:nil="true"></UPSZone>
<UTCOffset xsi:nil="true"></UTCOffset>
<UTCConversionTimeZoneCode xsi:nil="true"></UTCConversionTimeZoneCode>
</Address>
<Address>
<AddressNumber>2</AddressNumber>
<AddressTypeCode xsi:nil="true"></AddressTypeCode>
<City xsi:nil="true"></City>
<County xsi:nil="true"></County>
<Country xsi:nil="true"></Country>
<Fax xsi:nil="true"></Fax>
<FreightTermsCode xsi:nil="true"></FreightTermsCode>
<ImportSequenceNumber xsi:nil="true"></ImportSequenceNumber>
<Latitude xsi:nil="true"></Latitude>
<Line1 xsi:nil="true"></Line1>
<Line2 xsi:nil="true"></Line2>
<Line3 xsi:nil="true"></Line3>
<Longitude xsi:nil="true"></Longitude>
<Name xsi:nil="true"></Name>
<PostalCode xsi:nil="true"></PostalCode>
<PostOfficeBox xsi:nil="true"></PostOfficeBox>
<PrimaryContactName xsi:nil="true"></PrimaryContactName>
<ShippingMethodCode xsi:nil="true"></ShippingMethodCode>
<StateOrProvince xsi:nil="true"></StateOrProvince>
<Telephone1 xsi:nil="true"></Telephone1>
<Telephone2 xsi:nil="true"></Telephone2>
<Telephone3 xsi:nil="true"></Telephone3>
<TimeZoneRuleVersionNumber xsi:nil="true"></TimeZoneRuleVersionNumber>
<UPSZone xsi:nil="true"></UPSZone>
<UTCOffset xsi:nil="true"></UTCOffset>
<UTCConversionTimeZoneCode xsi:nil="true"></UTCConversionTimeZoneCode>
</Address>
</Addresses>
</Publisher>
<RootComponents>
<RootComponent type="29" id="{8fde32d5-cf10-ed11-b83d-000d3ada9e5f}" behavior="0" />
<RootComponent type="300" schemaName="cre80_testkonektorakurswwalut_9d02e" behavior="0" />
<RootComponent type="372" id="{1612d9de-f47a-4837-8a8a-d48ac47ec0e2}" schemaName="cre80_5Fkursy-20walut-20nbp" behavior="0" />
</RootComponents>
<MissingDependencies>
<MissingDependency>
<Required type="connectionreference" displayName="new_sharedcre805fkursy20walut20nbp5f9f745961df205669_3c05c" solution="Active" id.connectionreferencelogicalname="new_sharedcre805fkursy20walut20nbp5f9f745961df205669_3c05c" />
<Dependent type="29" displayName="Flow dla konektora kursów walut" id="{8fde32d5-cf10-ed11-b83d-000d3ada9e5f}" />
</MissingDependency>
</MissingDependencies>
</SolutionManifest>
</ImportExportXml>

0 comments on commit bf34df3

Please sign in to comment.