gong_api 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c5bd85b4d648cca270bae3ffc2df9665bd02010ac28440243a1ff4a8063700f
4
- data.tar.gz: e0079997cf2ed9b8d39150a44234ae2403c9b94f2896cf1ba78565620f86133f
3
+ metadata.gz: 3c725dda3267077a0d20a46cb7735220146c7f546f907a0cf74605426bf5172b
4
+ data.tar.gz: b81ba220fe1e6b155c3a3b085d2012622770565ba0ace451fc9208537d9d01df
5
5
  SHA512:
6
- metadata.gz: 436a3c709c7e2dff44efe0f388c6c4ef030f74b8d27e66cca24bbffabd83b3e043de5a65fb5720cc706ab9dbea273c0cb459a103f69316d2c8b9cae4e2b5b31b
7
- data.tar.gz: 92f437c722478e0827030a41698f8cc277f3073dbb6cd9104c075a30b28f5841ad42edda85445a702f00940177bda36627d109ce2eb0898cc8b00f7c660a7854
6
+ metadata.gz: a0a43a4ea27cca8d6b0ab3c6a5a4c3038560ade4ac823e827dcaa9011b7a728a5aaee4ebbebfd17351e48ff7270eddeef95d8ab29ea4f08c2b9062e2fee52d38
7
+ data.tar.gz: 582a9a1007b73d2435b583ac9a7d93110b532f1a97529e89b58a41739bbf3bec20eac761f861689a030ee977e35255968256de14e38712babcf8f0a409afe0c2
data/Gemfile CHANGED
@@ -1,9 +1,3 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
-
5
- group :development, :test do
6
- gem 'rake', '~> 13.0.1'
7
- gem 'pry-byebug'
8
- gem 'rubocop', '~> 0.66.0'
9
- end
data/Gemfile.lock ADDED
@@ -0,0 +1,68 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ gong_api (1.0.0)
5
+ json (~> 2.1, >= 2.1.0)
6
+ typhoeus (~> 1.0, >= 1.0.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ ast (2.4.2)
12
+ diff-lcs (1.5.0)
13
+ ethon (0.16.0)
14
+ ffi (>= 1.15.0)
15
+ ffi (1.15.5)
16
+ json (2.6.3)
17
+ parallel (1.22.1)
18
+ parser (3.2.1.1)
19
+ ast (~> 2.4.1)
20
+ rainbow (3.1.1)
21
+ regexp_parser (2.7.0)
22
+ rexml (3.2.5)
23
+ rspec (3.12.0)
24
+ rspec-core (~> 3.12.0)
25
+ rspec-expectations (~> 3.12.0)
26
+ rspec-mocks (~> 3.12.0)
27
+ rspec-core (3.12.1)
28
+ rspec-support (~> 3.12.0)
29
+ rspec-expectations (3.12.2)
30
+ diff-lcs (>= 1.2.0, < 2.0)
31
+ rspec-support (~> 3.12.0)
32
+ rspec-mocks (3.12.4)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.12.0)
35
+ rspec-support (3.12.0)
36
+ rubocop (1.48.1)
37
+ json (~> 2.3)
38
+ parallel (~> 1.10)
39
+ parser (>= 3.2.0.0)
40
+ rainbow (>= 2.2.2, < 4.0)
41
+ regexp_parser (>= 1.8, < 3.0)
42
+ rexml (>= 3.2.5, < 4.0)
43
+ rubocop-ast (>= 1.26.0, < 2.0)
44
+ ruby-progressbar (~> 1.7)
45
+ unicode-display_width (>= 2.4.0, < 3.0)
46
+ rubocop-ast (1.27.0)
47
+ parser (>= 3.2.1.0)
48
+ rubocop-capybara (2.17.1)
49
+ rubocop (~> 1.41)
50
+ rubocop-rspec (2.19.0)
51
+ rubocop (~> 1.33)
52
+ rubocop-capybara (~> 2.17)
53
+ ruby-progressbar (1.13.0)
54
+ typhoeus (1.4.0)
55
+ ethon (>= 0.9.0)
56
+ unicode-display_width (2.4.2)
57
+
58
+ PLATFORMS
59
+ x86_64-linux
60
+
61
+ DEPENDENCIES
62
+ gong_api!
63
+ rspec (~> 3.6, >= 3.6.0)
64
+ rubocop
65
+ rubocop-rspec
66
+
67
+ BUNDLED WITH
68
+ 2.4.7
data/README.md CHANGED
@@ -2,7 +2,58 @@
2
2
 
3
3
  GongAPI - the Ruby gem for the Gong API
4
4
 
5
- <h2>Overview</h2> <p> The Gong API allows you to: </p> <ol> <li> Receive the following information from Gong: <ol type=\"a\"> <li> Your company's <a href=\"#tag--Calls\">calls</a> in Gong </li> <li> Your company's <a href=\"#tag--Users\">users</a> in Gong </li> <li> Your company's user <a href=\"#tag--Stats\">stats</a> in Gong </li> <li> Your company's user <a href=\"#tag--Settings\">settings</a> in Gong </li> <li> Your company's <a href=\"#tag--Library\">libraries</a> in Gong </li> </ol></li> <li> <a href=\"#post-/v2/calls\">Upload</a> new or <a href=\"#put-/v2/calls/-id-/media\">update</a> call recordings in Gong, in order to support cases where you have an internal system that records calls or obtains them from a third-party entity. </li> <li> <a href=\"#post-/v2/data-privacy/erase-data-for-email-address\">Data Privacy</a>: Delete users and all their associated elements.</li> <li> Upload <a href=\"#tag--CRM\">CRM</a> data into Gong. </li> </ol> <p>Base URL for all API calls is <a href=\"https://us-55616.api.gong.io\"> https://us-55616.api.gong.io </a> </p> <h2>Authentication</h2> <p> There are two ways to retrieve credentials to the Gong Public API: </p> <ol><li>Retrieve Manually:<br> <p> In the <a href=\"https://app.gong.io/company/api\">Gong API Page</a> (you must be a technical administrator in Gong), click \"Create\" to receive an <b>Access Key</b> and an <b>Access Key Secret</b>.<br> </p> <p> Use the Basic Authorization HTTP header (as per <a target=\"_blank\" href=\"https://www.rfc-editor.org/rfc/rfc7617.txt\">RFC</a>) to access the Public API as shown below:<br> <code>Authorization: Basic &lt;token&gt;</code><br> </p> <p> To create the basic token, combine the <b>Access Key</b> and the <b>Access Key Secret</b> with colon (:) and then encode in Base64 as following:<br> <code>Base64(&lt;accessKey&gt; : &lt;accessKeySecret&gt;)</code><br><br> </p></li> <li>Retrieve through OAuth<br> <p> To obtain the Bearer token, follow the steps described in the <a target=\"_blank\" href=\"https://help.gong.io/hc/en-us/articles/360056677792\">Gong OAuth Guide</a>. <br></p> <p> After obtaining the token, use the Bearer Authorization HTTP header (as per <a target=\"_blank\" href=\"https://www.rfc-editor.org/rfc/rfc6750.txt\">RFC</a>) to access the Public API as shown below:<br> <code>Authorization: Bearer &lt;token&gt;</code> </p> </li></ol> <h2>Limits</h2> <p> By default Gong limits your company's access to the service to 3 API calls per second, and 10,000 API calls per day. </p> <p> When the rate of API calls exceeds these limits an HTTP status code <b>429</b> is returned and a <b>Retry-After</b> header indicates how many seconds to wait before making a new request. </p><p> If required, contact help@gong.io to change these limits. </p> <h2>Cursors</h2> <p> Some API calls that return a list are limited in the amount of records they may return, so multiple API calls may be required to bring all records. Such an API call also returns a <b>records</b> field, which contains the number of records in the current page, the current page number and the total number of records. </p> <p> In cases where the total number of records exceeds the number of records thus far retrieved, the <b>records</b> field will also contain a <b>cursor</b> field which can be used to access the next page of records. To retrieve the next page, repeat the API call with the <b>cursor</b> value as supplied by the previous API call. All other request inputs should remain the same. </p> <h2>Forward Compatibility</h2> <p> When coding a system to accept Gong data, take into account that Gong may, without prior warning, add fields to the JSON output. It is recommended to future proof your code so that it disregards all JSON fields you don't actually use. </p><p></p>
5
+ ## Overview
6
+
7
+ The Gong API allows you to:
8
+
9
+ 1. Receive the following information from Gong:
10
+ 1. Your company's [calls](https://us-55616.app.gong.io/settings/api/documentation#tag--Calls) in Gong
11
+ 1. Your company's [users](https://us-55616.app.gong.io/settings/api/documentation#tag--Users) in Gong
12
+ 1. Your company's user [stats](https://us-55616.app.gong.io/settings/api/documentation#tag--Stats) in Gong
13
+ 1. Your company's user [settings](https://us-55616.app.gong.io/settings/api/documentation#tag--Settings) in Gong
14
+ 1. Your company's [libraries](https://us-55616.app.gong.io/settings/api/documentation#tag--Library) in Gong
15
+ 1. [Upload](https://us-55616.app.gong.io/settings/api/documentation#post-/v2/calls) new or [update](https://us-55616.app.gong.io/settings/api/documentation#put-/v2/calls/-id-/media) call recordings in Gong, in order to support cases where you have an internal system that records calls or obtains them from a third-party entity.
16
+ 1. [Data Privacy](https://us-55616.app.gong.io/settings/api/documentation#post-/v2/data-privacy/erase-data-for-email-address): Delete users and all their associated elements.
17
+ 1. Upload [CRM](https://us-55616.app.gong.io/settings/api/documentation#tag--CRM) data into Gong.
18
+
19
+ Base URL for all API calls is `https://us-55616.api.gong.io`
20
+
21
+ ## Authentication
22
+
23
+ There are two ways to retrieve credentials to the Gong Public API:
24
+
25
+ 1. Retrieve Manually:
26
+ In the Gong API Page (you must be a technical administrator in Gong), click "Create" to receive an Access Key and an Access Key Secret.
27
+ Use the Basic Authorization HTTP header (as per RFC) to access the Public API as shown below:
28
+ `Authorization: Basic <token>`
29
+ To create the basic token, combine the Access Key and the Access Key Secret with colon (:) and then encode in Base64 as following:
30
+ `Base64(<accessKey> : <accessKeySecret>)`
31
+
32
+ 1. Retrieve through OAuth
33
+ To obtain the Bearer token, follow the steps described in the Gong OAuth Guide.
34
+
35
+ After obtaining the token, use the Bearer Authorization HTTP header (as per RFC) to access the Public API as shown below:
36
+ `Authorization: Bearer <token>`
37
+
38
+ ## Limits
39
+
40
+ By default Gong limits your company's access to the service to 3 API calls per second, and 10,000 API calls per day.
41
+
42
+ When the rate of API calls exceeds these limits an HTTP status code 429 is returned and a Retry-After header indicates how many seconds to wait before making a new request.
43
+
44
+ If required, contact help@gong.io to change these limits.
45
+
46
+ ## Cursors
47
+
48
+ Some API calls that return a list are limited in the amount of records they may return, so multiple API calls may be required to bring all records. Such an API call also returns a records field, which contains the number of records in the current page, the current page number and the total number of records.
49
+
50
+ In cases where the total number of records exceeds the number of records thus far retrieved, the records field will also contain a cursor field which can be used to access the next page of records. To retrieve the next page, repeat the API call with the cursor value as supplied by the previous API call. All other request inputs should remain the same.
51
+
52
+ ## Forward Compatibility
53
+
54
+ When coding a system to accept Gong data, take into account that Gong may, without prior warning, add fields to the JSON output. It is recommended to future proof your code so that it disregards all JSON fields you don't actually use.
55
+
56
+ ## Swagger
6
57
 
7
58
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
59
 
@@ -13,7 +64,19 @@ This SDK is automatically generated by the [Swagger Codegen](https://github.com/
13
64
 
14
65
  ## Installation
15
66
 
16
- ### Build a gem
67
+ ### Rubygems
68
+
69
+ ```shell
70
+ gem install gong_api
71
+ ```
72
+
73
+ If you're using Bundler, you can add this to your `Gemfile`
74
+
75
+ ```
76
+ gem 'gong_api'
77
+ ```
78
+
79
+ ### Building the gem locally
17
80
 
18
81
  To build the Ruby code into a gem:
19
82
 
@@ -21,19 +84,13 @@ To build the Ruby code into a gem:
21
84
  gem build gong_api.gemspec
22
85
  ```
23
86
 
24
- Then either install the gem locally:
87
+ Then install the gem locally:
25
88
 
26
89
  ```shell
27
90
  gem install ./gong_api-1.0.0.gem
28
91
  ```
29
92
  (for development, run `gem install --dev ./gong_api-1.0.0.gem` to install the development dependencies)
30
93
 
31
- or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
-
33
- Finally add this to the Gemfile:
34
-
35
- gem 'gong_api', '~> 1.0.0'
36
-
37
94
  ### Install from Git
38
95
 
39
96
  If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
@@ -271,10 +328,10 @@ opts = {
271
328
 
272
329
  begin
273
330
  #Retrieve call data by date range (/v2/calls)
274
- result = api_instance.list_calls_using_get1(from_date_time, to_date_time, opts)
331
+ result = api_instance.list_calls_using_get(from_date_time, to_date_time, opts)
275
332
  p result
276
333
  rescue GongAPI::ApiError => e
277
- puts "Exception when calling CallsApi->list_calls_using_get1: #{e}"
334
+ puts "Exception when calling CallsApi->list_calls_using_get: #{e}"
278
335
  end
279
336
 
280
337
  api_instance = GongAPI::CallsApi.new
@@ -673,10 +730,10 @@ opts = {
673
730
 
674
731
  begin
675
732
  #List all users (/v2/users)
676
- result = api_instance.list_users_using_get1(opts)
733
+ result = api_instance.list_users_using_get(opts)
677
734
  p result
678
735
  rescue GongAPI::ApiError => e
679
- puts "Exception when calling UsersApi->list_users_using_get1: #{e}"
736
+ puts "Exception when calling UsersApi->list_users_using_get: #{e}"
680
737
  end
681
738
  ```
682
739
 
@@ -702,7 +759,7 @@ Class | Method | HTTP request | Description
702
759
  *GongAPI::CallsApi* | [**get_call_transcripts_using_post**](docs/CallsApi.md#get_call_transcripts_using_post) | **POST** /v2/calls/transcript | Retrieve transcripts of calls by date or callIds (/v2/calls/transcript)
703
760
  *GongAPI::CallsApi* | [**get_call_using_get**](docs/CallsApi.md#get_call_using_get) | **GET** /v2/calls/{id} | Retrieve data for a specific call (/v2/calls/{id})
704
761
  *GongAPI::CallsApi* | [**list_calls_extensive_using_post**](docs/CallsApi.md#list_calls_extensive_using_post) | **POST** /v2/calls/extensive | Retrieve detailed call data by various filters (/v2/calls/extensive)
705
- *GongAPI::CallsApi* | [**list_calls_using_get1**](docs/CallsApi.md#list_calls_using_get1) | **GET** /v2/calls | Retrieve call data by date range (/v2/calls)
762
+ *GongAPI::CallsApi* | [**list_calls_using_get**](docs/CallsApi.md#list_calls_using_get) | **GET** /v2/calls | Retrieve call data by date range (/v2/calls)
706
763
  *GongAPI::CallsApi* | [**list_crm_calls_manual_association_using_get**](docs/CallsApi.md#list_crm_calls_manual_association_using_get) | **GET** /v2/calls/manual-crm-associations | List all calls that were manually associated with CRM objects (/v2/calls/manual-crm-associations) in Beta Phase
707
764
  *GongAPI::DataPrivacyApi* | [**find_all_references_to_email_address_using_get**](docs/DataPrivacyApi.md#find_all_references_to_email_address_using_get) | **GET** /v2/data-privacy/data-for-email-address | Retrieve all references to an email address. (/v2/data-privacy/data-for-email-address)
708
765
  *GongAPI::DataPrivacyApi* | [**find_all_references_to_phone_number_using_get**](docs/DataPrivacyApi.md#find_all_references_to_phone_number_using_get) | **GET** /v2/data-privacy/data-for-phone-number | Retrieve all references to a phone number. (/v2/data-privacy/data-for-phone-number)
@@ -735,7 +792,7 @@ Class | Method | HTTP request | Description
735
792
  *GongAPI::UsersApi* | [**get_user_history_using_get**](docs/UsersApi.md#get_user_history_using_get) | **GET** /v2/users/{id}/settings-history | Retrieve user history (/v2/users/{id}/settings-history)
736
793
  *GongAPI::UsersApi* | [**get_user_using_get**](docs/UsersApi.md#get_user_using_get) | **GET** /v2/users/{id} | Retrieve user (/v2/users/{id})
737
794
  *GongAPI::UsersApi* | [**list_multiple_users_using_post**](docs/UsersApi.md#list_multiple_users_using_post) | **POST** /v2/users/extensive | List users by filter (/v2/users/extensive)
738
- *GongAPI::UsersApi* | [**list_users_using_get1**](docs/UsersApi.md#list_users_using_get1) | **GET** /v2/users | List all users (/v2/users)
795
+ *GongAPI::UsersApi* | [**list_users_using_get**](docs/UsersApi.md#list_users_using_get) | **GET** /v2/users | List all users (/v2/users)
739
796
 
740
797
  ## Documentation for Models
741
798
 
data/config.json CHANGED
@@ -3,10 +3,10 @@
3
3
  "moduleName": "GongAPI",
4
4
  "gemVersion": "1.0.0",
5
5
  "gemLicense": "MIT",
6
- "gemHomepage": "https://gitlab.com/optonal/gong-api",
6
+ "gemHomepage": "https://github.com/matteeyah/gong-api",
7
7
  "gemSummary": "A Ruby Swagger API client for Gong",
8
8
  "gemDescription": "A Ruby Swagger API client for Gong",
9
- "gemAuthor": "OpTonal Inc.",
10
- "gemAuthorEmail": "matija@optonal.com",
9
+ "gemAuthor": "Matija Čupić",
10
+ "gemAuthorEmail": "matteeyah@gmail.com",
11
11
  "hideGenerationTimestamp": false
12
12
  }
data/docs/CallsApi.md CHANGED
@@ -9,7 +9,7 @@ Method | HTTP request | Description
9
9
  [**get_call_transcripts_using_post**](CallsApi.md#get_call_transcripts_using_post) | **POST** /v2/calls/transcript | Retrieve transcripts of calls by date or callIds (/v2/calls/transcript)
10
10
  [**get_call_using_get**](CallsApi.md#get_call_using_get) | **GET** /v2/calls/{id} | Retrieve data for a specific call (/v2/calls/{id})
11
11
  [**list_calls_extensive_using_post**](CallsApi.md#list_calls_extensive_using_post) | **POST** /v2/calls/extensive | Retrieve detailed call data by various filters (/v2/calls/extensive)
12
- [**list_calls_using_get1**](CallsApi.md#list_calls_using_get1) | **GET** /v2/calls | Retrieve call data by date range (/v2/calls)
12
+ [**list_calls_using_get**](CallsApi.md#list_calls_using_get) | **GET** /v2/calls | Retrieve call data by date range (/v2/calls)
13
13
  [**list_crm_calls_manual_association_using_get**](CallsApi.md#list_crm_calls_manual_association_using_get) | **GET** /v2/calls/manual-crm-associations | List all calls that were manually associated with CRM objects (/v2/calls/manual-crm-associations) in Beta Phase
14
14
 
15
15
  # **add_call_recording_using_put**
@@ -245,8 +245,8 @@ No authorization required
245
245
 
246
246
 
247
247
 
248
- # **list_calls_using_get1**
249
- > CallsResponse list_calls_using_get1(from_date_time, to_date_time, opts)
248
+ # **list_calls_using_get**
249
+ > CallsResponse list_calls_using_get(from_date_time, to_date_time, opts)
250
250
 
251
251
  Retrieve call data by date range (/v2/calls)
252
252
 
@@ -267,10 +267,10 @@ opts = {
267
267
 
268
268
  begin
269
269
  #Retrieve call data by date range (/v2/calls)
270
- result = api_instance.list_calls_using_get1(from_date_time, to_date_time, opts)
270
+ result = api_instance.list_calls_using_get(from_date_time, to_date_time, opts)
271
271
  p result
272
272
  rescue GongAPI::ApiError => e
273
- puts "Exception when calling CallsApi->list_calls_using_get1: #{e}"
273
+ puts "Exception when calling CallsApi->list_calls_using_get: #{e}"
274
274
  end
275
275
  ```
276
276
 
data/docs/UsersApi.md CHANGED
@@ -7,7 +7,7 @@ Method | HTTP request | Description
7
7
  [**get_user_history_using_get**](UsersApi.md#get_user_history_using_get) | **GET** /v2/users/{id}/settings-history | Retrieve user history (/v2/users/{id}/settings-history)
8
8
  [**get_user_using_get**](UsersApi.md#get_user_using_get) | **GET** /v2/users/{id} | Retrieve user (/v2/users/{id})
9
9
  [**list_multiple_users_using_post**](UsersApi.md#list_multiple_users_using_post) | **POST** /v2/users/extensive | List users by filter (/v2/users/extensive)
10
- [**list_users_using_get1**](UsersApi.md#list_users_using_get1) | **GET** /v2/users | List all users (/v2/users)
10
+ [**list_users_using_get**](UsersApi.md#list_users_using_get) | **GET** /v2/users | List all users (/v2/users)
11
11
 
12
12
  # **get_user_history_using_get**
13
13
  > SettingsHistory get_user_history_using_get(id)
@@ -147,8 +147,8 @@ No authorization required
147
147
 
148
148
 
149
149
 
150
- # **list_users_using_get1**
151
- > UsersMetadata list_users_using_get1(opts)
150
+ # **list_users_using_get**
151
+ > UsersMetadata list_users_using_get(opts)
152
152
 
153
153
  List all users (/v2/users)
154
154
 
@@ -167,10 +167,10 @@ opts = {
167
167
 
168
168
  begin
169
169
  #List all users (/v2/users)
170
- result = api_instance.list_users_using_get1(opts)
170
+ result = api_instance.list_users_using_get(opts)
171
171
  p result
172
172
  rescue GongAPI::ApiError => e
173
- puts "Exception when calling UsersApi->list_users_using_get1: #{e}"
173
+ puts "Exception when calling UsersApi->list_users_using_get: #{e}"
174
174
  end
175
175
  ```
176
176
 
data/gong_api.gemspec CHANGED
@@ -18,9 +18,9 @@ Gem::Specification.new do |s|
18
18
  s.name = "gong_api"
19
19
  s.version = GongAPI::VERSION
20
20
  s.platform = Gem::Platform::RUBY
21
- s.authors = ["OpTonal Inc."]
22
- s.email = ["matija@optonal.com"]
23
- s.homepage = "https://gitlab.com/optonal/gong-api"
21
+ s.authors = ["Matija Čupić"]
22
+ s.email = ["matteeyah@gmail.com"]
23
+ s.homepage = "https://github.com/matteeyah/gong-api"
24
24
  s.summary = "A Ruby Swagger API client for Gong"
25
25
  s.description = "A Ruby Swagger API client for Gong"
26
26
  s.license = 'MIT'
@@ -30,6 +30,8 @@ Gem::Specification.new do |s|
30
30
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
31
31
 
32
32
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
33
+ s.add_development_dependency 'rubocop'
34
+ s.add_development_dependency 'rubocop-rspec'
33
35
 
34
36
  s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
35
37
  s.test_files = `find spec/*`.split("\n")
@@ -315,8 +315,8 @@ module GongAPI
315
315
  # @option opts [String] :cursor When paging is needed, provide the value supplied by the previous API call to bring the following page of records.
316
316
  # @option opts [String] :workspace_id Optional Workspace identifier, if supplied the API will return only the calls belonging to this workspace.
317
317
  # @return [CallsResponse]
318
- def list_calls_using_get1(from_date_time, to_date_time, opts = {})
319
- data, _status_code, _headers = list_calls_using_get1_with_http_info(from_date_time, to_date_time, opts)
318
+ def list_calls_using_get(from_date_time, to_date_time, opts = {})
319
+ data, _status_code, _headers = list_calls_using_get_with_http_info(from_date_time, to_date_time, opts)
320
320
  data
321
321
  end
322
322
 
@@ -328,17 +328,17 @@ module GongAPI
328
328
  # @option opts [String] :cursor When paging is needed, provide the value supplied by the previous API call to bring the following page of records.
329
329
  # @option opts [String] :workspace_id Optional Workspace identifier, if supplied the API will return only the calls belonging to this workspace.
330
330
  # @return [Array<(CallsResponse, Integer, Hash)>] CallsResponse data, response status code and response headers
331
- def list_calls_using_get1_with_http_info(from_date_time, to_date_time, opts = {})
331
+ def list_calls_using_get_with_http_info(from_date_time, to_date_time, opts = {})
332
332
  if @api_client.config.debugging
333
- @api_client.config.logger.debug 'Calling API: CallsApi.list_calls_using_get1 ...'
333
+ @api_client.config.logger.debug 'Calling API: CallsApi.list_calls_using_get ...'
334
334
  end
335
335
  # verify the required parameter 'from_date_time' is set
336
336
  if @api_client.config.client_side_validation && from_date_time.nil?
337
- fail ArgumentError, "Missing the required parameter 'from_date_time' when calling CallsApi.list_calls_using_get1"
337
+ fail ArgumentError, "Missing the required parameter 'from_date_time' when calling CallsApi.list_calls_using_get"
338
338
  end
339
339
  # verify the required parameter 'to_date_time' is set
340
340
  if @api_client.config.client_side_validation && to_date_time.nil?
341
- fail ArgumentError, "Missing the required parameter 'to_date_time' when calling CallsApi.list_calls_using_get1"
341
+ fail ArgumentError, "Missing the required parameter 'to_date_time' when calling CallsApi.list_calls_using_get"
342
342
  end
343
343
  # resource path
344
344
  local_var_path = '/v2/calls'
@@ -373,7 +373,7 @@ module GongAPI
373
373
  :return_type => return_type)
374
374
 
375
375
  if @api_client.config.debugging
376
- @api_client.config.logger.debug "API called: CallsApi#list_calls_using_get1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
376
+ @api_client.config.logger.debug "API called: CallsApi#list_calls_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
377
377
  end
378
378
  return data, status_code, headers
379
379
  end
@@ -192,8 +192,8 @@ module GongAPI
192
192
  # @option opts [String] :cursor When paging is needed, provide the value supplied by the previous API call to bring the following page of records.
193
193
  # @option opts [BOOLEAN] :include_avatars Avatars are synthetic users representing Gong employees (CSMs and support providers) when they access your instance. References to avatars&#x27; IDs may be found in the outputs of other API endpoints. This parameter is optional, if not provided avatars will not be included in the results.
194
194
  # @return [UsersMetadata]
195
- def list_users_using_get1(opts = {})
196
- data, _status_code, _headers = list_users_using_get1_with_http_info(opts)
195
+ def list_users_using_get(opts = {})
196
+ data, _status_code, _headers = list_users_using_get_with_http_info(opts)
197
197
  data
198
198
  end
199
199
 
@@ -203,9 +203,9 @@ module GongAPI
203
203
  # @option opts [String] :cursor When paging is needed, provide the value supplied by the previous API call to bring the following page of records.
204
204
  # @option opts [BOOLEAN] :include_avatars Avatars are synthetic users representing Gong employees (CSMs and support providers) when they access your instance. References to avatars&#x27; IDs may be found in the outputs of other API endpoints. This parameter is optional, if not provided avatars will not be included in the results.
205
205
  # @return [Array<(UsersMetadata, Integer, Hash)>] UsersMetadata data, response status code and response headers
206
- def list_users_using_get1_with_http_info(opts = {})
206
+ def list_users_using_get_with_http_info(opts = {})
207
207
  if @api_client.config.debugging
208
- @api_client.config.logger.debug 'Calling API: UsersApi.list_users_using_get1 ...'
208
+ @api_client.config.logger.debug 'Calling API: UsersApi.list_users_using_get ...'
209
209
  end
210
210
  # resource path
211
211
  local_var_path = '/v2/users'
@@ -238,7 +238,7 @@ module GongAPI
238
238
  :return_type => return_type)
239
239
 
240
240
  if @api_client.config.debugging
241
- @api_client.config.logger.debug "API called: UsersApi#list_users_using_get1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
241
+ @api_client.config.logger.debug "API called: UsersApi#list_users_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
242
242
  end
243
243
  return data, status_code, headers
244
244
  end
@@ -52,6 +52,5 @@ module GongAPI
52
52
 
53
53
  msg
54
54
  end
55
-
56
55
  end
57
56
  end
@@ -191,8 +191,7 @@ module GongAPI
191
191
 
192
192
  # Returns Auth Settings hash for api client.
193
193
  def auth_settings
194
- {
195
- }
194
+ {}
196
195
  end
197
196
  end
198
197
  end
@@ -10,5 +10,5 @@ Swagger Codegen version: 3.0.37
10
10
  =end
11
11
 
12
12
  module GongAPI
13
- VERSION = '1.0.0'
13
+ VERSION = '1.1.0'
14
14
  end
@@ -92,7 +92,7 @@ describe 'CallsApi' do
92
92
  end
93
93
  end
94
94
 
95
- # unit tests for list_calls_using_get1
95
+ # unit tests for list_calls_using_get
96
96
  # Retrieve call data by date range (/v2/calls)
97
97
  # List calls that took place during a specified date range. When accessed through a Bearer token authorization method, this endpoint requires the scope &#x27;api:calls:read:basic&#x27;.
98
98
  # @param from_date_time The date from which to list calls, in the ISO-8601 format (e.g., &#x27;2018-02-18T02:30:00-07:00&#x27; or &#x27;2018-02-18T08:00:00Z&#x27;, where Z stands for UTC); if not specified, the calls start with the earliest recorded call. For web-conference calls recorded by Gong, the date denotes its scheduled time, otherwise, it denotes its actual start time.
@@ -101,7 +101,7 @@ describe 'CallsApi' do
101
101
  # @option opts [String] :cursor When paging is needed, provide the value supplied by the previous API call to bring the following page of records.
102
102
  # @option opts [String] :workspace_id Optional Workspace identifier, if supplied the API will return only the calls belonging to this workspace.
103
103
  # @return [CallsResponse]
104
- describe 'list_calls_using_get1 test' do
104
+ describe 'list_calls_using_get test' do
105
105
  it 'should work' do
106
106
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
107
107
  end
@@ -67,14 +67,14 @@ describe 'UsersApi' do
67
67
  end
68
68
  end
69
69
 
70
- # unit tests for list_users_using_get1
70
+ # unit tests for list_users_using_get
71
71
  # List all users (/v2/users)
72
72
  # List all of the company&#x27;s users. When accessed through a Bearer token authorization method, this endpoint requires the scope &#x27;api:users:read&#x27;.
73
73
  # @param [Hash] opts the optional parameters
74
74
  # @option opts [String] :cursor When paging is needed, provide the value supplied by the previous API call to bring the following page of records.
75
75
  # @option opts [BOOLEAN] :include_avatars Avatars are synthetic users representing Gong employees (CSMs and support providers) when they access your instance. References to avatars&#x27; IDs may be found in the outputs of other API endpoints. This parameter is optional, if not provided avatars will not be included in the results.
76
76
  # @return [UsersMetadata]
77
- describe 'list_users_using_get1 test' do
77
+ describe 'list_users_using_get test' do
78
78
  it 'should work' do
79
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
80
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gong_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
- - OpTonal Inc.
8
- autorequire:
7
+ - Matija Čupić
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-20 00:00:00.000000000 Z
11
+ date: 2023-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -70,14 +70,43 @@ dependencies:
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: 3.6.0
73
+ - !ruby/object:Gem::Dependency
74
+ name: rubocop
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ type: :development
81
+ prerelease: false
82
+ version_requirements: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ - !ruby/object:Gem::Dependency
88
+ name: rubocop-rspec
89
+ requirement: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ type: :development
95
+ prerelease: false
96
+ version_requirements: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
73
101
  description: A Ruby Swagger API client for Gong
74
102
  email:
75
- - matija@optonal.com
103
+ - matteeyah@gmail.com
76
104
  executables: []
77
105
  extensions: []
78
106
  extra_rdoc_files: []
79
107
  files:
80
108
  - Gemfile
109
+ - Gemfile.lock
81
110
  - README.md
82
111
  - Rakefile
83
112
  - config.json
@@ -252,7 +281,6 @@ files:
252
281
  - docs/Video.md
253
282
  - docs/WorkspaceMetadata.md
254
283
  - docs/WorkspacesMetadata.md
255
- - git_push.sh
256
284
  - gong-swagger.json
257
285
  - gong_api.gemspec
258
286
  - lib/gong_api.rb
@@ -443,7 +471,6 @@ files:
443
471
  - spec/api/stats_api_spec.rb
444
472
  - spec/api/users_api_spec.rb
445
473
  - spec/api_client_spec.rb
446
- - spec/base_object_spec.rb
447
474
  - spec/configuration_spec.rb
448
475
  - spec/models/actor_spec.rb
449
476
  - spec/models/aggregate_activity_spec.rb
@@ -606,11 +633,11 @@ files:
606
633
  - spec/models/workspace_metadata_spec.rb
607
634
  - spec/models/workspaces_metadata_spec.rb
608
635
  - spec/spec_helper.rb
609
- homepage: https://gitlab.com/optonal/gong-api
636
+ homepage: https://github.com/matteeyah/gong-api
610
637
  licenses:
611
638
  - MIT
612
639
  metadata: {}
613
- post_install_message:
640
+ post_install_message:
614
641
  rdoc_options: []
615
642
  require_paths:
616
643
  - lib
@@ -625,183 +652,182 @@ required_rubygems_version: !ruby/object:Gem::Requirement
625
652
  - !ruby/object:Gem::Version
626
653
  version: '0'
627
654
  requirements: []
628
- rubygems_version: 3.3.7
629
- signing_key:
655
+ rubygems_version: 3.4.6
656
+ signing_key:
630
657
  specification_version: 4
631
658
  summary: A Ruby Swagger API client for Gong
632
659
  test_files:
660
+ - spec/api/settings_api_spec.rb
661
+ - spec/api/data_privacy_api_spec.rb
633
662
  - spec/api/library_api_spec.rb
634
- - spec/api/permissions_api_spec.rb
663
+ - spec/api/auditing_api_spec.rb
635
664
  - spec/api/engagement_in_beta_phase_api_spec.rb
636
- - spec/api/meetings_in_beta_phase_api_spec.rb
665
+ - spec/api/permissions_api_spec.rb
666
+ - spec/api/users_api_spec.rb
637
667
  - spec/api/crm_api_spec.rb
638
- - spec/api/data_privacy_api_spec.rb
639
- - spec/api/settings_api_spec.rb
668
+ - spec/api/meetings_in_beta_phase_api_spec.rb
640
669
  - spec/api/stats_api_spec.rb
641
- - spec/api/users_api_spec.rb
642
670
  - spec/api/calls_api_spec.rb
643
- - spec/api/auditing_api_spec.rb
644
671
  - spec/api_client_spec.rb
645
- - spec/base_object_spec.rb
646
672
  - spec/configuration_spec.rb
647
- - spec/models/async_processing_response_spec.rb
648
- - spec/models/external_crm_call_object_spec.rb
649
- - spec/models/calls_access_details_response_spec.rb
650
- - spec/models/sharer_spec.rb
651
- - spec/models/new_call_adding_request_spec.rb
652
- - spec/models/calls_access_get_dto_spec.rb
653
- - spec/models/meetings_error_response_spec.rb
654
- - spec/models/aggregate_activity_spec.rb
655
- - spec/models/customer_data_spec.rb
656
- - spec/models/update_meeting_response_spec.rb
657
- - spec/models/records_spec.rb
658
- - spec/models/email_message_spec.rb
659
- - spec/models/user_activity_spec.rb
660
- - spec/models/insights_access_with_permission_level_spec.rb
661
- - spec/models/points_of_interest_spec.rb
662
- - spec/models/scorecard_spec.rb
663
- - spec/models/user_integration_status_spec.rb
664
- - spec/models/call_participant_spec.rb
665
- - spec/models/user_day_by_day_activity_spec.rb
666
- - spec/models/error_response_spec.rb
667
- - spec/models/external_crm_party_object_spec.rb
668
- - spec/models/logs_response_spec.rb
669
- - spec/models/topic_spec.rb
670
- - spec/models/schema_update_response_spec.rb
671
- - spec/models/media_spec.rb
672
- - spec/models/manual_associations_basic_data_spec.rb
673
- - spec/models/user_settings_history_spec.rb
674
- - spec/models/monologue_spec.rb
675
- - spec/models/manual_association_response_spec.rb
676
- - spec/models/generic_crm_registration_request_spec.rb
677
- - spec/models/library_folder_spec.rb
673
+ - spec/models/event_accepted_response_spec.rb
678
674
  - spec/models/meeting_invitee_spec.rb
675
+ - spec/models/emails_access_with_permission_level_spec.rb
676
+ - spec/models/call_users_access_dto_spec.rb
679
677
  - spec/models/daily_activity_with_dates_spec.rb
680
- - spec/models/delete_meeting_request_spec.rb
681
- - spec/models/calls_response_spec.rb
682
- - spec/models/line_error_response_spec.rb
683
- - spec/models/association_object_spec.rb
684
- - spec/models/speakers_timeline_spec.rb
685
- - spec/models/speaker_spec.rb
686
- - spec/models/list_selected_fields_response_spec.rb
687
- - spec/models/library_folder_list_of_calls_response_spec.rb
688
- - spec/models/object_entities_body_spec.rb
689
- - spec/models/answered_scorecard_spec.rb
690
- - spec/models/tracker_spec.rb
691
- - spec/models/content_selector_spec.rb
692
- - spec/models/content_viewed_event_spec.rb
693
- - spec/models/user_access_details_spec.rb
694
- - spec/models/exposed_fields_spec.rb
695
- - spec/models/map_users_body_spec.rb
678
+ - spec/models/external_crm_call_object_spec.rb
696
679
  - spec/models/request_status_response_spec.rb
697
- - spec/models/multiple_users_request_with_creation_dates_spec.rb
698
- - spec/models/context_field_spec.rb
699
- - spec/models/scorecards_spec.rb
700
- - spec/models/workspaces_metadata_spec.rb
701
- - spec/models/forecast_access_with_permission_level_spec.rb
680
+ - spec/models/request_calls_request_filter_with_owners_content_selector_spec.rb
681
+ - spec/models/new_meeting_request_spec.rb
682
+ - spec/models/multiple_users_with_dates_spec.rb
683
+ - spec/models/call_participant_spec.rb
684
+ - spec/models/integration_status_request_spec.rb
685
+ - spec/models/schema_update_response_spec.rb
702
686
  - spec/models/call_context_spec.rb
687
+ - spec/models/user_activity_spec.rb
688
+ - spec/models/collaboration_spec.rb
689
+ - spec/models/call_interaction_spec.rb
690
+ - spec/models/questions_spec.rb
703
691
  - spec/models/question_spec.rb
704
- - spec/models/crm_party_context_field_spec.rb
705
- - spec/models/base_response_spec.rb
706
- - spec/models/call_access_with_permission_level_spec.rb
707
- - spec/models/library_response_spec.rb
708
- - spec/models/emails_access_with_permission_level_spec.rb
709
- - spec/models/settings_history_spec.rb
710
- - spec/models/request_multiple_users_request_with_creation_dates_spec.rb
711
- - spec/models/request_with_time_period_multiple_users_with_dates_spec.rb
712
- - spec/models/call_spec.rb
692
+ - spec/models/generic_schema_field_request_spec.rb
693
+ - spec/models/new_call_adding_response_spec.rb
694
+ - spec/models/user_day_by_day_activity_spec.rb
713
695
  - spec/models/sentence_spec.rb
714
- - spec/models/snippet_spec.rb
715
- - spec/models/party_context_spec.rb
716
- - spec/models/library_call_spec.rb
717
- - spec/models/company_users_aggregate_activity_response_spec.rb
718
- - spec/models/interaction_stats_spec.rb
719
- - spec/models/customer_engagement_spec.rb
720
- - spec/models/interaction_stat_spec.rb
721
- - spec/models/calls_users_access_delete_dto_spec.rb
722
- - spec/models/answer_spec.rb
696
+ - spec/models/list_generic_crm_integrations_response_spec.rb
697
+ - spec/models/external_call_object_spec.rb
698
+ - spec/models/call_basic_data_spec.rb
699
+ - spec/models/call_upload_context_spec.rb
723
700
  - spec/models/tracker_phrases_spec.rb
701
+ - spec/models/async_processing_response_spec.rb
724
702
  - spec/models/company_users_intercation_stats_response_spec.rb
725
- - spec/models/multiple_users_with_dates_spec.rb
726
- - spec/models/workspace_metadata_spec.rb
727
- - spec/models/register_generic_crm_response_spec.rb
728
- - spec/models/interaction_spec.rb
703
+ - spec/models/content_spec.rb
704
+ - spec/models/workspaces_metadata_spec.rb
705
+ - spec/models/call_access_with_permission_level_spec.rb
706
+ - spec/models/user_aggregate_by_period_activities_spec.rb
707
+ - spec/models/calls_users_access_add_dto_spec.rb
708
+ - spec/models/external_party_object_spec.rb
729
709
  - spec/models/generic_deal_stage_request_spec.rb
730
- - spec/models/event_accepted_response_spec.rb
731
- - spec/models/id_media_body_spec.rb
732
- - spec/models/external_call_object_spec.rb
733
- - spec/models/call_transcript_spec.rb
734
- - spec/models/questions_spec.rb
735
- - spec/models/generic_property_spec.rb
736
- - spec/models/new_meeting_request_spec.rb
737
- - spec/models/deals_access_with_permission_level_spec.rb
738
- - spec/models/request_multiple_users_with_dates_spec.rb
739
- - spec/models/collaboration_spec.rb
740
- - spec/models/call_reference_spec.rb
741
- - spec/models/structure_spec.rb
710
+ - spec/models/request_calls_filter_spec.rb
711
+ - spec/models/call_spec.rb
712
+ - spec/models/error_response_spec.rb
713
+ - spec/models/calls_spec.rb
742
714
  - spec/models/call_access_details_spec.rb
743
- - spec/models/update_meeting_request_spec.rb
744
- - spec/models/integration_status_request_spec.rb
745
- - spec/models/user_simple_metadata_spec.rb
746
- - spec/models/users_aggregate_by_period_activity_spec.rb
747
- - spec/models/user_metadata_spec.rb
748
- - spec/models/call_interaction_spec.rb
749
- - spec/models/external_system_spec.rb
750
- - spec/models/new_call_adding_response_spec.rb
715
+ - spec/models/call_content_spec.rb
716
+ - spec/models/speakers_timeline_spec.rb
717
+ - spec/models/calls_filter_spec.rb
718
+ - spec/models/settings_history_spec.rb
719
+ - spec/models/object_entities_body_spec.rb
751
720
  - spec/models/party_context_field_spec.rb
752
- - spec/models/answered_scorecards_spec.rb
753
- - spec/models/permission_profile_response_spec.rb
754
- - spec/models/aggregate_activity_with_dates_spec.rb
755
- - spec/models/call_users_access_dto_spec.rb
756
- - spec/models/external_system_object_spec.rb
757
- - spec/models/point_of_interest_spec.rb
758
- - spec/models/external_party_object_spec.rb
721
+ - spec/models/forecast_access_with_permission_level_spec.rb
759
722
  - spec/models/settings_spec.rb
760
- - spec/models/specific_call_spec.rb
761
- - spec/models/call_collaboration_spec.rb
762
- - spec/models/users_day_by_day_activity_spec.rb
763
- - spec/models/generic_crm_integration_spec.rb
764
- - spec/models/request_calls_access_get_dto_spec.rb
765
- - spec/models/spoken_language_spec.rb
766
- - spec/models/list_generic_crm_integrations_response_spec.rb
767
- - spec/models/call_upload_context_spec.rb
768
- - spec/models/calls_filter_spec.rb
769
- - spec/models/custom_action_event_spec.rb
770
- - spec/models/log_entry_spec.rb
771
- - spec/models/content_spec.rb
772
- - spec/models/call_transcripts_spec.rb
773
- - spec/models/library_folder_access_spec.rb
774
- - spec/models/coaching_access_with_permission_level_spec.rb
775
- - spec/models/phone_number_references_spec.rb
776
- - spec/models/users_metadata_spec.rb
777
- - spec/models/generic_schema_field_request_spec.rb
778
- - spec/models/comment_spec.rb
779
- - spec/models/permission_profiles_response_spec.rb
780
- - spec/models/calls_spec.rb
781
723
  - spec/models/customer_data_object_spec.rb
782
- - spec/models/user_spec.rb
724
+ - spec/models/coaching_access_with_permission_level_spec.rb
725
+ - spec/models/id_media_body_spec.rb
726
+ - spec/models/scorecards_spec.rb
783
727
  - spec/models/permission_profile_dto_spec.rb
784
- - spec/models/party_spec.rb
785
- - spec/models/new_call_recording_response_spec.rb
786
- - spec/models/video_spec.rb
787
- - spec/models/calls_users_access_add_dto_spec.rb
788
- - spec/models/email_address_references_spec.rb
789
- - spec/models/party_upload_context_spec.rb
790
- - spec/models/user_aggregate_by_period_activities_spec.rb
728
+ - spec/models/register_generic_crm_response_spec.rb
729
+ - spec/models/users_day_by_day_activity_spec.rb
730
+ - spec/models/external_system_spec.rb
731
+ - spec/models/association_object_spec.rb
732
+ - spec/models/calls_access_details_response_spec.rb
733
+ - spec/models/external_system_object_spec.rb
734
+ - spec/models/occurrences_spec.rb
735
+ - spec/models/library_call_spec.rb
736
+ - spec/models/map_users_body_spec.rb
737
+ - spec/models/logs_response_spec.rb
738
+ - spec/models/user_settings_history_spec.rb
739
+ - spec/models/media_spec.rb
740
+ - spec/models/call_collaboration_spec.rb
791
741
  - spec/models/request_answered_scorecards_filter_spec.rb
792
- - spec/models/integration_status_response_spec.rb
742
+ - spec/models/permission_profiles_response_spec.rb
743
+ - spec/models/points_of_interest_spec.rb
744
+ - spec/models/users_aggregate_by_period_activity_spec.rb
745
+ - spec/models/user_integration_status_spec.rb
746
+ - spec/models/speaker_spec.rb
747
+ - spec/models/tracker_spec.rb
748
+ - spec/models/party_context_spec.rb
793
749
  - spec/models/get_generic_crm_objects_response_spec.rb
794
- - spec/models/request_calls_request_filter_with_owners_content_selector_spec.rb
795
- - spec/models/answered_scorecards_filter_spec.rb
750
+ - spec/models/aggregate_activity_spec.rb
751
+ - spec/models/party_spec.rb
752
+ - spec/models/generic_crm_registration_request_spec.rb
753
+ - spec/models/call_transcript_spec.rb
754
+ - spec/models/users_metadata_spec.rb
755
+ - spec/models/snippet_spec.rb
756
+ - spec/models/request_with_time_period_multiple_users_with_dates_spec.rb
757
+ - spec/models/library_folder_access_spec.rb
758
+ - spec/models/generic_crm_integration_spec.rb
759
+ - spec/models/user_metadata_spec.rb
760
+ - spec/models/deals_access_with_permission_level_spec.rb
761
+ - spec/models/email_address_references_spec.rb
762
+ - spec/models/call_transcripts_spec.rb
763
+ - spec/models/insights_access_with_permission_level_spec.rb
764
+ - spec/models/user_spec.rb
765
+ - spec/models/comment_spec.rb
796
766
  - spec/models/calls_request_filter_with_owners_spec.rb
797
- - spec/models/meeting_spec.rb
798
- - spec/models/call_basic_data_spec.rb
799
- - spec/models/actor_spec.rb
800
- - spec/models/call_content_spec.rb
801
767
  - spec/models/permission_profile_users_response_spec.rb
768
+ - spec/models/company_users_aggregate_activity_response_spec.rb
769
+ - spec/models/generic_property_spec.rb
770
+ - spec/models/aggregate_activity_with_dates_spec.rb
771
+ - spec/models/library_folder_list_of_calls_response_spec.rb
772
+ - spec/models/specific_call_spec.rb
773
+ - spec/models/customer_data_spec.rb
774
+ - spec/models/exposed_fields_spec.rb
775
+ - spec/models/new_call_recording_response_spec.rb
776
+ - spec/models/interaction_stats_spec.rb
777
+ - spec/models/topic_spec.rb
778
+ - spec/models/workspace_metadata_spec.rb
779
+ - spec/models/phone_number_references_spec.rb
780
+ - spec/models/update_meeting_request_spec.rb
781
+ - spec/models/request_calls_access_get_dto_spec.rb
782
+ - spec/models/spoken_language_spec.rb
783
+ - spec/models/call_reference_spec.rb
784
+ - spec/models/base_response_spec.rb
785
+ - spec/models/user_access_details_spec.rb
786
+ - spec/models/request_multiple_users_with_dates_spec.rb
787
+ - spec/models/actor_spec.rb
788
+ - spec/models/request_multiple_users_request_with_creation_dates_spec.rb
789
+ - spec/models/manual_association_response_spec.rb
790
+ - spec/models/meeting_spec.rb
802
791
  - spec/models/content_shared_event_spec.rb
803
- - spec/models/occurrences_spec.rb
804
- - spec/models/request_calls_filter_spec.rb
792
+ - spec/models/structure_spec.rb
793
+ - spec/models/list_selected_fields_response_spec.rb
794
+ - spec/models/calls_users_access_delete_dto_spec.rb
795
+ - spec/models/update_meeting_response_spec.rb
796
+ - spec/models/external_crm_party_object_spec.rb
797
+ - spec/models/crm_party_context_field_spec.rb
798
+ - spec/models/calls_access_get_dto_spec.rb
799
+ - spec/models/manual_associations_basic_data_spec.rb
800
+ - spec/models/scorecard_spec.rb
801
+ - spec/models/monologue_spec.rb
802
+ - spec/models/interaction_spec.rb
803
+ - spec/models/permission_profile_response_spec.rb
804
+ - spec/models/sharer_spec.rb
805
+ - spec/models/answered_scorecards_filter_spec.rb
806
+ - spec/models/calls_response_spec.rb
807
+ - spec/models/custom_action_event_spec.rb
808
+ - spec/models/video_spec.rb
809
+ - spec/models/records_spec.rb
805
810
  - spec/models/new_meeting_response_spec.rb
811
+ - spec/models/answered_scorecard_spec.rb
812
+ - spec/models/log_entry_spec.rb
813
+ - spec/models/point_of_interest_spec.rb
814
+ - spec/models/answered_scorecards_spec.rb
815
+ - spec/models/content_selector_spec.rb
816
+ - spec/models/customer_engagement_spec.rb
817
+ - spec/models/interaction_stat_spec.rb
818
+ - spec/models/library_response_spec.rb
819
+ - spec/models/answer_spec.rb
820
+ - spec/models/user_simple_metadata_spec.rb
821
+ - spec/models/multiple_users_request_with_creation_dates_spec.rb
822
+ - spec/models/integration_status_response_spec.rb
823
+ - spec/models/new_call_adding_request_spec.rb
824
+ - spec/models/content_viewed_event_spec.rb
825
+ - spec/models/context_field_spec.rb
826
+ - spec/models/line_error_response_spec.rb
806
827
  - spec/models/speech_segment_spec.rb
828
+ - spec/models/party_upload_context_spec.rb
829
+ - spec/models/email_message_spec.rb
830
+ - spec/models/library_folder_spec.rb
831
+ - spec/models/delete_meeting_request_spec.rb
832
+ - spec/models/meetings_error_response_spec.rb
807
833
  - spec/spec_helper.rb
data/git_push.sh DELETED
@@ -1,55 +0,0 @@
1
- #!/bin/sh
2
- #
3
- # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
- #
5
- # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
- #
7
- # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
8
-
9
- git_user_id=$1
10
- git_repo_id=$2
11
- release_note=$3
12
-
13
- if [ "$git_user_id" = "" ]; then
14
- git_user_id="GIT_USER_ID"
15
- echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
- fi
17
-
18
- if [ "$git_repo_id" = "" ]; then
19
- git_repo_id="GIT_REPO_ID"
20
- echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
- fi
22
-
23
- if [ "$release_note" = "" ]; then
24
- release_note="Minor update"
25
- echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
- fi
27
-
28
- # Initialize the local directory as a Git repository
29
- git init
30
-
31
- # Adds the files in the local repository and stages them for commit.
32
- git add .
33
-
34
- # Commits the tracked changes and prepares them to be pushed to a remote repository.
35
- git commit -m "$release_note"
36
-
37
- # Sets the new remote
38
- git_remote=`git remote`
39
- if [ "$git_remote" = "" ]; then # git remote not defined
40
-
41
- if [ "$GIT_TOKEN" = "" ]; then
42
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
43
- git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
44
- else
45
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
46
- fi
47
-
48
- fi
49
-
50
- git pull origin master
51
-
52
- # Pushes (Forces) the changes in the local repository up to the remote repository
53
- echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
54
- git push origin master 2>&1 | grep -v 'To https'
55
-
@@ -1,109 +0,0 @@
1
- require 'spec_helper'
2
-
3
- class ArrayMapObject < Petstore::Category
4
- attr_accessor :int_arr, :pet_arr, :int_map, :pet_map, :int_arr_map, :pet_arr_map, :boolean_true_arr, :boolean_false_arr
5
-
6
- def self.attribute_map
7
- {
8
- :int_arr => :int_arr,
9
- :pet_arr => :pet_arr,
10
- :int_map => :int_map,
11
- :pet_map => :pet_map,
12
- :int_arr_map => :int_arr_map,
13
- :pet_arr_map => :pet_arr_map,
14
- :boolean_true_arr => :boolean_true_arr,
15
- :boolean_false_arr => :boolean_false_arr,
16
- }
17
- end
18
-
19
- def self.swagger_types
20
- {
21
- :int_arr => :'Array<Integer>',
22
- :pet_arr => :'Array<Pet>',
23
- :int_map => :'Hash<String, Integer>',
24
- :pet_map => :'Hash<String, Pet>',
25
- :int_arr_map => :'Hash<String, Array<Integer>>',
26
- :pet_arr_map => :'Hash<String, Array<Pet>>',
27
- :boolean_true_arr => :'Array<BOOLEAN>',
28
- :boolean_false_arr => :'Array<BOOLEAN>',
29
- }
30
- end
31
- end
32
-
33
- describe 'BaseObject' do
34
- describe 'boolean values' do
35
- let(:obj) { Petstore::Cat.new({declawed: false}) }
36
-
37
- it 'should have values set' do
38
- expect(obj.declawed).not_to be_nil
39
- expect(obj.declawed).to eq(false)
40
- end
41
- end
42
-
43
- describe 'array and map properties' do
44
- let(:obj) { ArrayMapObject.new }
45
-
46
- let(:data) do
47
- {int_arr: [123, 456],
48
- pet_arr: [{name: 'Kitty'}],
49
- int_map: {'int' => 123},
50
- pet_map: {'pet' => {name: 'Kitty'}},
51
- int_arr_map: {'int_arr' => [123, 456]},
52
- pet_arr_map: {'pet_arr' => [{name: 'Kitty'}]},
53
- boolean_true_arr: [true, "true", "TruE", 1, "y", "yes", "1", "t", "T"],
54
- boolean_false_arr: [false, "", 0, "0", "f", nil, "null"],
55
- }
56
- end
57
-
58
- it 'works for #build_from_hash' do
59
- obj.build_from_hash(data)
60
-
61
- expect(obj.int_arr).to match_array([123, 456])
62
-
63
- expect(obj.pet_arr).to be_instance_of(Array)
64
- expect(obj.pet_arr).to be_instance_of(1)
65
-
66
- pet = obj.pet_arr.first
67
- expect(pet).to be_instance_of(Petstore::Pet)
68
- expect(pet.name).to eq('Kitty')
69
-
70
- expect(obj.int_map).to be_instance_of(Hash)
71
- expect(obj.int_map).to eq({'int' => 123})
72
-
73
- expect(obj.pet_map).to be_instance_of(Hash)
74
- pet = obj.pet_map['pet']
75
- expect(pet).to be_instance_of(Petstore::Pet)
76
- expect(pet.name).to eq('Kitty')
77
-
78
- expect(obj.int_arr_map).to be_instance_of(Hash)
79
- arr = obj.int_arr_map['int_arr']
80
- expect(arr).to match_array([123, 456])
81
-
82
- expect(obj.pet_arr_map).to be_instance_of(Hash)
83
- arr = obj.pet_arr_map['pet_arr']
84
- expect(arr).to be_instance_of(Array)
85
- expect(arr.size).to eq(1)
86
- pet = arr.first
87
- expect(pet).to be_instance_of(Petstore::Pet)
88
- expect(pet.name).to eq('Kitty')
89
-
90
- expect(obj.boolean_true_arr).to be_instance_of(Array)
91
- obj.boolean_true_arr.each do |b|
92
- expect(b).to eq(true)
93
- end
94
-
95
- expect(obj.boolean_false_arr).to be_instance_of(Array)
96
- obj.boolean_false_arr.each do |b|
97
- expect(b).to eq(false)
98
- end
99
- end
100
-
101
- it 'works for #to_hash' do
102
- obj.build_from_hash(data)
103
- expect_data = data.dup
104
- expect_data[:boolean_true_arr].map! {true}
105
- expect_data[:boolean_false_arr].map! {false}
106
- expect(obj.to_hash).to eq(expect_data)
107
- end
108
- end
109
- end