Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ composer.phar
.phpunit.result.cache

# JetBrains
.idea/
.idea/
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.11.0-SNAPSHOT
7.13.0-SNAPSHOT
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: php
# Bionic environment has preinstalled PHP from 7.1 to 7.4
# https://docs.travis-ci.com/user/reference/bionic/#php-support
dist: bionic
php:
- 7.4
before_install: "composer install"
script: "vendor/bin/phpunit"
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena

### Requirements

PHP 7.4 and later.
Should also work with PHP 8.0.
PHP 8.1 and later.

### Composer

Expand Down Expand Up @@ -131,5 +130,5 @@ vendor/bin/phpunit
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: `0.2.3`
- Generator version: `7.11.0-SNAPSHOT`
- Generator version: `7.13.0-SNAPSHOT`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
70 changes: 35 additions & 35 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
{
"name": "mondaycom/monday-code",
"description": "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)",
"keywords": [
"openapitools",
"openapi-generator",
"openapi",
"php",
"sdk",
"rest",
"api"
],
"homepage": "https://openapi-generator.tech",
"license": "unlicense",
"authors": [
{
"name": "OpenAPI",
"homepage": "https://openapi-generator.tech"
}
],
"require": {
"php": "^7.4 || ^8.0",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp/guzzle": "^7.3",
"guzzlehttp/psr7": "^1.7 || ^2.0"
},
"require-dev": {
"phpunit/phpunit": "^8.0 || ^9.0",
"friendsofphp/php-cs-fixer": "^3.5"
},
"autoload": {
"name": "mondaycom/monday-code",
"description": "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)",
"keywords": [
"openapitools",
"openapi-generator",
"openapi",
"php",
"sdk",
"rest",
"api"
],
"homepage": "https://openapi-generator.tech",
"license": "unlicense",
"authors": [
{
"name": "OpenAPI",
"homepage": "https://openapi-generator.tech"
}
],
"require": {
"php": "^8.1",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp/guzzle": "^7.3",
"guzzlehttp/psr7": "^1.7 || ^2.0"
},
"require-dev": {
"phpunit/phpunit": "^8.0 || ^9.0",
"friendsofphp/php-cs-fixer": "^3.5"
},
"autoload": {
"psr-4": { "OpenAPI\\Client\\" : "lib/" }
},
"autoload-dev": {
},
"autoload-dev": {
"psr-4": { "OpenAPI\\Client\\Test\\" : "test/" }
}
}
}
6 changes: 4 additions & 2 deletions docs/Api/StorageApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ No authorization required
## `upsertByKeyFromStorage()`

```php
upsertByKeyFromStorage($key, $x_monday_access_token, $json_data_contract, $shared, $previous_version): \OpenAPI\Client\Model\UpsertByKeyFromStorage200Response
upsertByKeyFromStorage($key, $x_monday_access_token, $json_data_contract, $shared, $previous_version, $ttl): \OpenAPI\Client\Model\UpsertByKeyFromStorage200Response
```


Expand All @@ -264,9 +264,10 @@ $x_monday_access_token = 'x_monday_access_token_example'; // string
$json_data_contract = new \OpenAPI\Client\Model\JsonDataContract(); // \OpenAPI\Client\Model\JsonDataContract
$shared = True; // bool
$previous_version = 'previous_version_example'; // string
$ttl = 3.4; // float

try {
$result = $apiInstance->upsertByKeyFromStorage($key, $x_monday_access_token, $json_data_contract, $shared, $previous_version);
$result = $apiInstance->upsertByKeyFromStorage($key, $x_monday_access_token, $json_data_contract, $shared, $previous_version, $ttl);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling StorageApi->upsertByKeyFromStorage: ', $e->getMessage(), PHP_EOL;
Expand All @@ -282,6 +283,7 @@ try {
| **json_data_contract** | [**\OpenAPI\Client\Model\JsonDataContract**](../Model/JsonDataContract.md)| | |
| **shared** | **bool**| | [optional] |
| **previous_version** | **string**| | [optional] |
| **ttl** | **float**| | [optional] |

### Return type

Expand Down
57 changes: 57 additions & 0 deletions git_push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/bin/sh
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
#
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"

git_user_id=$1
git_repo_id=$2
release_note=$3
git_host=$4

if [ "$git_host" = "" ]; then
git_host="github.com"
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
fi

if [ "$git_user_id" = "" ]; then
git_user_id="GIT_USER_ID"
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
fi

if [ "$git_repo_id" = "" ]; then
git_repo_id="GIT_REPO_ID"
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
fi

if [ "$release_note" = "" ]; then
release_note="Minor update"
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
fi

# Initialize the local directory as a Git repository
git init

# Adds the files in the local repository and stages them for commit.
git add .

# Commits the tracked changes and prepares them to be pushed to a remote repository.
git commit -m "$release_note"

# Sets the new remote
git_remote=$(git remote)
if [ "$git_remote" = "" ]; then # git remote not defined

if [ "$GIT_TOKEN" = "" ]; then
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
else
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
fi

fi

git pull origin master

# Pushes (Forces) the changes in the local repository up to the remote repository
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
git push origin master 2>&1 | grep -v 'To https'
12 changes: 6 additions & 6 deletions lib/Api/EnvironmentVariablesApi.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* EnvironmentVariablesApi
* PHP version 7.4
* PHP version 8.1

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ASJK GREG!

*
* @category Class
* @package OpenAPI\Client
Expand All @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 0.2.3
* Generated by: https://openapi-generator.tech
* Generator version: 7.11.0-SNAPSHOT
* Generator version: 7.13.0-SNAPSHOT
*/

/**
Expand Down Expand Up @@ -86,10 +86,10 @@ class EnvironmentVariablesApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
$hostIndex = 0
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
int $hostIndex = 0
) {
$this->client = $client ?: new Client();
$this->config = $config ?: Configuration::getDefaultConfiguration();
Expand Down
12 changes: 6 additions & 6 deletions lib/Api/LogsApi.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* LogsApi
* PHP version 7.4
* PHP version 8.1

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ASK GREG

*
* @category Class
* @package OpenAPI\Client
Expand All @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 0.2.3
* Generated by: https://openapi-generator.tech
* Generator version: 7.11.0-SNAPSHOT
* Generator version: 7.13.0-SNAPSHOT
*/

/**
Expand Down Expand Up @@ -83,10 +83,10 @@ class LogsApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
$hostIndex = 0
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
int $hostIndex = 0
) {
$this->client = $client ?: new Client();
$this->config = $config ?: Configuration::getDefaultConfiguration();
Expand Down
12 changes: 6 additions & 6 deletions lib/Api/QueueApi.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* QueueApi
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package OpenAPI\Client
Expand All @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 0.2.3
* Generated by: https://openapi-generator.tech
* Generator version: 7.11.0-SNAPSHOT
* Generator version: 7.13.0-SNAPSHOT
*/

/**
Expand Down Expand Up @@ -86,10 +86,10 @@ class QueueApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
$hostIndex = 0
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
int $hostIndex = 0
) {
$this->client = $client ?: new Client();
$this->config = $config ?: Configuration::getDefaultConfiguration();
Expand Down
12 changes: 6 additions & 6 deletions lib/Api/SecretsApi.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* SecretsApi
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package OpenAPI\Client
Expand All @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 0.2.3
* Generated by: https://openapi-generator.tech
* Generator version: 7.11.0-SNAPSHOT
* Generator version: 7.13.0-SNAPSHOT
*/

/**
Expand Down Expand Up @@ -86,10 +86,10 @@ class SecretsApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
$hostIndex = 0
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
int $hostIndex = 0
) {
$this->client = $client ?: new Client();
$this->config = $config ?: Configuration::getDefaultConfiguration();
Expand Down
12 changes: 6 additions & 6 deletions lib/Api/SecureStorageApi.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* SecureStorageApi
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package OpenAPI\Client
Expand All @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 0.2.3
* Generated by: https://openapi-generator.tech
* Generator version: 7.11.0-SNAPSHOT
* Generator version: 7.13.0-SNAPSHOT
*/

/**
Expand Down Expand Up @@ -89,10 +89,10 @@ class SecureStorageApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
$hostIndex = 0
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
int $hostIndex = 0
) {
$this->client = $client ?: new Client();
$this->config = $config ?: Configuration::getDefaultConfiguration();
Expand Down
Loading