carbon_ruby_sdk 0.2.50 → 0.2.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +90 -2
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +152 -0
- data/lib/carbon_ruby_sdk/models/data_source_type.rb +2 -1
- data/lib/carbon_ruby_sdk/models/data_source_type_nullable.rb +2 -1
- data/lib/carbon_ruby_sdk/models/document360_connect_request.rb +368 -0
- data/lib/carbon_ruby_sdk/models/file_formats.rb +2 -1
- data/lib/carbon_ruby_sdk/models/file_formats_nullable.rb +2 -1
- data/lib/carbon_ruby_sdk/models/file_sync_config.rb +15 -4
- data/lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb +15 -4
- data/lib/carbon_ruby_sdk/models/parsed_text_formats.rb +36 -0
- data/lib/carbon_ruby_sdk/models/parsed_text_formats_nullable.rb +36 -0
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +3 -0
- data/spec/api/integrations_api_spec.rb +12 -0
- data/spec/models/document360_connect_request_spec.rb +106 -0
- data/spec/models/file_sync_config_nullable_spec.rb +6 -0
- data/spec/models/file_sync_config_spec.rb +6 -0
- data/spec/models/parsed_text_formats_nullable_spec.rb +22 -0
- data/spec/models/parsed_text_formats_spec.rb +22 -0
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54518051d1fd7fb74f26cf78288de54866a637bc84c0b69fc185e614a7f37a1c
|
4
|
+
data.tar.gz: 8c230adc37573d4d7edee995df6460fa34bb657252223a708982259b862596b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52ae687b791d0313ab42c1721932e621fa63f75c533d31c7104e102ef3d77aa761ab14acb5fc6e450f3a71fedb5bc8fb7238064d364408d4e780cb3e6e0bb9cd
|
7
|
+
data.tar.gz: 29db65b47781bcc0f1bd4bbe1d399d6a95ed5906d2cdda8e6168cbc5fd2e4958291b9a7dd81fe722a6919e9fca1f8f6cd1c9791ab2c69870b07af376d6af23fe
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
carbon_ruby_sdk (0.2.
|
4
|
+
carbon_ruby_sdk (0.2.52)
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
6
6
|
faraday-multipart (~> 1.0, >= 1.0.4)
|
7
7
|
|
@@ -67,7 +67,7 @@ GEM
|
|
67
67
|
rubocop-ast (>= 1.2.0, < 2.0)
|
68
68
|
ruby-progressbar (~> 1.7)
|
69
69
|
unicode-display_width (>= 1.4.0, < 3.0)
|
70
|
-
rubocop-ast (1.36.
|
70
|
+
rubocop-ast (1.36.2)
|
71
71
|
parser (>= 3.3.1.0)
|
72
72
|
ruby-progressbar (1.13.0)
|
73
73
|
ruby2_keywords (0.0.5)
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
Connect external data to LLMs, no matter the source.
|
8
8
|
|
9
|
-
[](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.52)
|
10
10
|
|
11
11
|
</div>
|
12
12
|
|
@@ -61,6 +61,7 @@ Connect external data to LLMs, no matter the source.
|
|
61
61
|
* [`carbon.github.get_pull_requests`](#carbongithubget_pull_requests)
|
62
62
|
* [`carbon.integrations.cancel`](#carbonintegrationscancel)
|
63
63
|
* [`carbon.integrations.connect_data_source`](#carbonintegrationsconnect_data_source)
|
64
|
+
* [`carbon.integrations.connect_document360`](#carbonintegrationsconnect_document360)
|
64
65
|
* [`carbon.integrations.connect_freshdesk`](#carbonintegrationsconnect_freshdesk)
|
65
66
|
* [`carbon.integrations.connect_gitbook`](#carbonintegrationsconnect_gitbook)
|
66
67
|
* [`carbon.integrations.connect_guru`](#carbonintegrationsconnect_guru)
|
@@ -120,7 +121,7 @@ Connect external data to LLMs, no matter the source.
|
|
120
121
|
Add to Gemfile:
|
121
122
|
|
122
123
|
```ruby
|
123
|
-
gem 'carbon_ruby_sdk', '~> 0.2.
|
124
|
+
gem 'carbon_ruby_sdk', '~> 0.2.52'
|
124
125
|
```
|
125
126
|
|
126
127
|
## Getting Started<a id="getting-started"></a>
|
@@ -2255,6 +2256,82 @@ p result
|
|
2255
2256
|
---
|
2256
2257
|
|
2257
2258
|
|
2259
|
+
### `carbon.integrations.connect_document360`<a id="carbonintegrationsconnect_document360"></a>
|
2260
|
+
|
2261
|
+
You will need an access token to connect your Document360 account. To obtain an access token, follow the steps highlighted
|
2262
|
+
here https://apidocs.document360.com/apidocs/api-token.
|
2263
|
+
|
2264
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
2265
|
+
|
2266
|
+
```ruby
|
2267
|
+
result = carbon.integrations.connect_document360(
|
2268
|
+
account_email: "string_example",
|
2269
|
+
access_token: "string_example",
|
2270
|
+
tags: {},
|
2271
|
+
chunk_size: 1500,
|
2272
|
+
chunk_overlap: 20,
|
2273
|
+
skip_embedding_generation: false,
|
2274
|
+
embedding_model: "OPENAI",
|
2275
|
+
generate_sparse_vectors: false,
|
2276
|
+
prepend_filename_to_chunks: false,
|
2277
|
+
sync_files_on_connection: true,
|
2278
|
+
request_id: "string_example",
|
2279
|
+
sync_source_items: true,
|
2280
|
+
file_sync_config: {
|
2281
|
+
"auto_synced_source_types" => ["ARTICLE"],
|
2282
|
+
"sync_attachments" => false,
|
2283
|
+
"detect_audio_language" => false,
|
2284
|
+
"transcription_service" => "assemblyai",
|
2285
|
+
"include_speaker_labels" => false,
|
2286
|
+
"split_rows" => false,
|
2287
|
+
"generate_chunks_only" => false,
|
2288
|
+
"store_file_only" => false,
|
2289
|
+
"skip_file_processing" => false,
|
2290
|
+
"parsed_text_format" => "PLAIN_TEXT",
|
2291
|
+
},
|
2292
|
+
data_source_tags: {},
|
2293
|
+
)
|
2294
|
+
p result
|
2295
|
+
```
|
2296
|
+
|
2297
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
2298
|
+
|
2299
|
+
##### account_email: `String`<a id="account_email-string"></a>
|
2300
|
+
This email will be used to identify your carbon data source. It should have
|
2301
|
+
access to the Document360 account you wish to connect.
|
2302
|
+
|
2303
|
+
##### access_token: `String`<a id="access_token-string"></a>
|
2304
|
+
##### tags: `Object`<a id="tags-object"></a>
|
2305
|
+
##### chunk_size: `Integer`<a id="chunk_size-integer"></a>
|
2306
|
+
##### chunk_overlap: `Integer`<a id="chunk_overlap-integer"></a>
|
2307
|
+
##### skip_embedding_generation: `Boolean`<a id="skip_embedding_generation-boolean"></a>
|
2308
|
+
##### embedding_model: [`EmbeddingGenerators`](./lib/carbon_ruby_sdk/models/embedding_generators.rb)<a id="embedding_model-embeddinggeneratorslibcarbon_ruby_sdkmodelsembedding_generatorsrb"></a>
|
2309
|
+
##### generate_sparse_vectors: `Boolean`<a id="generate_sparse_vectors-boolean"></a>
|
2310
|
+
##### prepend_filename_to_chunks: `Boolean`<a id="prepend_filename_to_chunks-boolean"></a>
|
2311
|
+
##### sync_files_on_connection: `Boolean`<a id="sync_files_on_connection-boolean"></a>
|
2312
|
+
##### request_id: `String`<a id="request_id-string"></a>
|
2313
|
+
##### sync_source_items: `Boolean`<a id="sync_source_items-boolean"></a>
|
2314
|
+
Enabling this flag will fetch all available content from the source to be listed
|
2315
|
+
via list items endpoint
|
2316
|
+
|
2317
|
+
##### file_sync_config: [`FileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb)<a id="file_sync_config-filesyncconfignullablelibcarbon_ruby_sdkmodelsfile_sync_config_nullablerb"></a>
|
2318
|
+
##### data_source_tags: `Object`<a id="data_source_tags-object"></a>
|
2319
|
+
Tags to be associated with the data source. If the data source already has tags
|
2320
|
+
set, then an upsert will be performed.
|
2321
|
+
|
2322
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
2323
|
+
|
2324
|
+
[GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
|
2325
|
+
|
2326
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
2327
|
+
|
2328
|
+
`/integrations/document360` `POST`
|
2329
|
+
|
2330
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
2331
|
+
|
2332
|
+
---
|
2333
|
+
|
2334
|
+
|
2258
2335
|
### `carbon.integrations.connect_freshdesk`<a id="carbonintegrationsconnect_freshdesk"></a>
|
2259
2336
|
|
2260
2337
|
Refer this article to obtain an API key https://support.freshdesk.com/en/support/solutions/articles/215517.
|
@@ -2289,6 +2366,7 @@ result = carbon.integrations.connect_freshdesk(
|
|
2289
2366
|
"generate_chunks_only" => false,
|
2290
2367
|
"store_file_only" => false,
|
2291
2368
|
"skip_file_processing" => false,
|
2369
|
+
"parsed_text_format" => "PLAIN_TEXT",
|
2292
2370
|
},
|
2293
2371
|
data_source_tags: {},
|
2294
2372
|
)
|
@@ -2363,6 +2441,7 @@ result = carbon.integrations.connect_gitbook(
|
|
2363
2441
|
"generate_chunks_only" => false,
|
2364
2442
|
"store_file_only" => false,
|
2365
2443
|
"skip_file_processing" => false,
|
2444
|
+
"parsed_text_format" => "PLAIN_TEXT",
|
2366
2445
|
},
|
2367
2446
|
data_source_tags: {},
|
2368
2447
|
)
|
@@ -2435,6 +2514,7 @@ result = carbon.integrations.connect_guru(
|
|
2435
2514
|
"generate_chunks_only" => false,
|
2436
2515
|
"store_file_only" => false,
|
2437
2516
|
"skip_file_processing" => false,
|
2517
|
+
"parsed_text_format" => "PLAIN_TEXT",
|
2438
2518
|
},
|
2439
2519
|
data_source_tags: {},
|
2440
2520
|
)
|
@@ -2579,6 +2659,7 @@ result = carbon.integrations.get_oauth_url(
|
|
2579
2659
|
"generate_chunks_only" => false,
|
2580
2660
|
"store_file_only" => false,
|
2581
2661
|
"skip_file_processing" => false,
|
2662
|
+
"parsed_text_format" => "PLAIN_TEXT",
|
2582
2663
|
},
|
2583
2664
|
automatically_open_file_picker: true,
|
2584
2665
|
gong_account_email: "string_example",
|
@@ -3011,6 +3092,7 @@ result = carbon.integrations.sync_azure_blob_files(
|
|
3011
3092
|
"generate_chunks_only" => false,
|
3012
3093
|
"store_file_only" => false,
|
3013
3094
|
"skip_file_processing" => false,
|
3095
|
+
"parsed_text_format" => "PLAIN_TEXT",
|
3014
3096
|
},
|
3015
3097
|
)
|
3016
3098
|
p result
|
@@ -3144,6 +3226,7 @@ result = carbon.integrations.sync_confluence(
|
|
3144
3226
|
"generate_chunks_only" => false,
|
3145
3227
|
"store_file_only" => false,
|
3146
3228
|
"skip_file_processing" => false,
|
3229
|
+
"parsed_text_format" => "PLAIN_TEXT",
|
3147
3230
|
},
|
3148
3231
|
)
|
3149
3232
|
p result
|
@@ -3254,6 +3337,7 @@ result = carbon.integrations.sync_files(
|
|
3254
3337
|
"generate_chunks_only" => false,
|
3255
3338
|
"store_file_only" => false,
|
3256
3339
|
"skip_file_processing" => false,
|
3340
|
+
"parsed_text_format" => "PLAIN_TEXT",
|
3257
3341
|
},
|
3258
3342
|
)
|
3259
3343
|
p result
|
@@ -3371,6 +3455,7 @@ result = carbon.integrations.sync_gitbook(
|
|
3371
3455
|
"generate_chunks_only" => false,
|
3372
3456
|
"store_file_only" => false,
|
3373
3457
|
"skip_file_processing" => false,
|
3458
|
+
"parsed_text_format" => "PLAIN_TEXT",
|
3374
3459
|
},
|
3375
3460
|
)
|
3376
3461
|
p result
|
@@ -3480,6 +3565,7 @@ result = carbon.integrations.sync_gmail(
|
|
3480
3565
|
"generate_chunks_only" => false,
|
3481
3566
|
"store_file_only" => false,
|
3482
3567
|
"skip_file_processing" => false,
|
3568
|
+
"parsed_text_format" => "PLAIN_TEXT",
|
3483
3569
|
},
|
3484
3570
|
incremental_sync: false,
|
3485
3571
|
)
|
@@ -3604,6 +3690,7 @@ result = carbon.integrations.sync_outlook(
|
|
3604
3690
|
"generate_chunks_only" => false,
|
3605
3691
|
"store_file_only" => false,
|
3606
3692
|
"skip_file_processing" => false,
|
3693
|
+
"parsed_text_format" => "PLAIN_TEXT",
|
3607
3694
|
},
|
3608
3695
|
incremental_sync: false,
|
3609
3696
|
)
|
@@ -3757,6 +3844,7 @@ result = carbon.integrations.sync_s3_files(
|
|
3757
3844
|
"generate_chunks_only" => false,
|
3758
3845
|
"store_file_only" => false,
|
3759
3846
|
"skip_file_processing" => false,
|
3847
|
+
"parsed_text_format" => "PLAIN_TEXT",
|
3760
3848
|
},
|
3761
3849
|
)
|
3762
3850
|
p result
|
@@ -204,6 +204,158 @@ module Carbon
|
|
204
204
|
end
|
205
205
|
|
206
206
|
|
207
|
+
# Document360 Connect
|
208
|
+
#
|
209
|
+
# You will need an access token to connect your Document360 account. To obtain an access token, follow the steps highlighted
|
210
|
+
# here https://apidocs.document360.com/apidocs/api-token.
|
211
|
+
#
|
212
|
+
# @param account_email [String] This email will be used to identify your carbon data source. It should have access to the Document360 account you wish to connect.
|
213
|
+
# @param access_token [String]
|
214
|
+
# @param tags [Object]
|
215
|
+
# @param chunk_size [Integer]
|
216
|
+
# @param chunk_overlap [Integer]
|
217
|
+
# @param skip_embedding_generation [Boolean]
|
218
|
+
# @param embedding_model [EmbeddingGenerators]
|
219
|
+
# @param generate_sparse_vectors [Boolean]
|
220
|
+
# @param prepend_filename_to_chunks [Boolean]
|
221
|
+
# @param sync_files_on_connection [Boolean]
|
222
|
+
# @param request_id [String]
|
223
|
+
# @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
|
224
|
+
# @param file_sync_config [FileSyncConfigNullable]
|
225
|
+
# @param data_source_tags [Object] Tags to be associated with the data source. If the data source already has tags set, then an upsert will be performed.
|
226
|
+
# @param body [Document360ConnectRequest]
|
227
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
228
|
+
def connect_document360(account_email:, access_token:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, sync_files_on_connection: true, request_id: SENTINEL, sync_source_items: true, file_sync_config: SENTINEL, data_source_tags: SENTINEL, extra: {})
|
229
|
+
_body = {}
|
230
|
+
_body[:tags] = tags if tags != SENTINEL
|
231
|
+
_body[:account_email] = account_email if account_email != SENTINEL
|
232
|
+
_body[:access_token] = access_token if access_token != SENTINEL
|
233
|
+
_body[:chunk_size] = chunk_size if chunk_size != SENTINEL
|
234
|
+
_body[:chunk_overlap] = chunk_overlap if chunk_overlap != SENTINEL
|
235
|
+
_body[:skip_embedding_generation] = skip_embedding_generation if skip_embedding_generation != SENTINEL
|
236
|
+
_body[:embedding_model] = embedding_model if embedding_model != SENTINEL
|
237
|
+
_body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
|
238
|
+
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
239
|
+
_body[:sync_files_on_connection] = sync_files_on_connection if sync_files_on_connection != SENTINEL
|
240
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
241
|
+
_body[:sync_source_items] = sync_source_items if sync_source_items != SENTINEL
|
242
|
+
_body[:file_sync_config] = file_sync_config if file_sync_config != SENTINEL
|
243
|
+
_body[:data_source_tags] = data_source_tags if data_source_tags != SENTINEL
|
244
|
+
document360_connect_request = _body
|
245
|
+
api_response = connect_document360_with_http_info_impl(document360_connect_request, extra)
|
246
|
+
api_response.data
|
247
|
+
end
|
248
|
+
|
249
|
+
# Document360 Connect
|
250
|
+
#
|
251
|
+
# You will need an access token to connect your Document360 account. To obtain an access token, follow the steps highlighted
|
252
|
+
# here https://apidocs.document360.com/apidocs/api-token.
|
253
|
+
#
|
254
|
+
# @param account_email [String] This email will be used to identify your carbon data source. It should have access to the Document360 account you wish to connect.
|
255
|
+
# @param access_token [String]
|
256
|
+
# @param tags [Object]
|
257
|
+
# @param chunk_size [Integer]
|
258
|
+
# @param chunk_overlap [Integer]
|
259
|
+
# @param skip_embedding_generation [Boolean]
|
260
|
+
# @param embedding_model [EmbeddingGenerators]
|
261
|
+
# @param generate_sparse_vectors [Boolean]
|
262
|
+
# @param prepend_filename_to_chunks [Boolean]
|
263
|
+
# @param sync_files_on_connection [Boolean]
|
264
|
+
# @param request_id [String]
|
265
|
+
# @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
|
266
|
+
# @param file_sync_config [FileSyncConfigNullable]
|
267
|
+
# @param data_source_tags [Object] Tags to be associated with the data source. If the data source already has tags set, then an upsert will be performed.
|
268
|
+
# @param body [Document360ConnectRequest]
|
269
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
270
|
+
def connect_document360_with_http_info(account_email:, access_token:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, sync_files_on_connection: true, request_id: SENTINEL, sync_source_items: true, file_sync_config: SENTINEL, data_source_tags: SENTINEL, extra: {})
|
271
|
+
_body = {}
|
272
|
+
_body[:tags] = tags if tags != SENTINEL
|
273
|
+
_body[:account_email] = account_email if account_email != SENTINEL
|
274
|
+
_body[:access_token] = access_token if access_token != SENTINEL
|
275
|
+
_body[:chunk_size] = chunk_size if chunk_size != SENTINEL
|
276
|
+
_body[:chunk_overlap] = chunk_overlap if chunk_overlap != SENTINEL
|
277
|
+
_body[:skip_embedding_generation] = skip_embedding_generation if skip_embedding_generation != SENTINEL
|
278
|
+
_body[:embedding_model] = embedding_model if embedding_model != SENTINEL
|
279
|
+
_body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
|
280
|
+
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
281
|
+
_body[:sync_files_on_connection] = sync_files_on_connection if sync_files_on_connection != SENTINEL
|
282
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
283
|
+
_body[:sync_source_items] = sync_source_items if sync_source_items != SENTINEL
|
284
|
+
_body[:file_sync_config] = file_sync_config if file_sync_config != SENTINEL
|
285
|
+
_body[:data_source_tags] = data_source_tags if data_source_tags != SENTINEL
|
286
|
+
document360_connect_request = _body
|
287
|
+
connect_document360_with_http_info_impl(document360_connect_request, extra)
|
288
|
+
end
|
289
|
+
|
290
|
+
# Document360 Connect
|
291
|
+
# You will need an access token to connect your Document360 account. To obtain an access token, follow the steps highlighted here https://apidocs.document360.com/apidocs/api-token.
|
292
|
+
# @param document360_connect_request [Document360ConnectRequest]
|
293
|
+
# @param [Hash] opts the optional parameters
|
294
|
+
# @return [GenericSuccessResponse]
|
295
|
+
private def connect_document360_impl(document360_connect_request, opts = {})
|
296
|
+
data, _status_code, _headers = connect_document360_with_http_info(document360_connect_request, opts)
|
297
|
+
data
|
298
|
+
end
|
299
|
+
|
300
|
+
# Document360 Connect
|
301
|
+
# You will need an access token to connect your Document360 account. To obtain an access token, follow the steps highlighted here https://apidocs.document360.com/apidocs/api-token.
|
302
|
+
# @param document360_connect_request [Document360ConnectRequest]
|
303
|
+
# @param [Hash] opts the optional parameters
|
304
|
+
# @return [APIResponse] data is GenericSuccessResponse, status code, headers and response
|
305
|
+
private def connect_document360_with_http_info_impl(document360_connect_request, opts = {})
|
306
|
+
if @api_client.config.debugging
|
307
|
+
@api_client.config.logger.debug 'Calling API: IntegrationsApi.connect_document360 ...'
|
308
|
+
end
|
309
|
+
# verify the required parameter 'document360_connect_request' is set
|
310
|
+
if @api_client.config.client_side_validation && document360_connect_request.nil?
|
311
|
+
fail ArgumentError, "Missing the required parameter 'document360_connect_request' when calling IntegrationsApi.connect_document360"
|
312
|
+
end
|
313
|
+
# resource path
|
314
|
+
local_var_path = '/integrations/document360'
|
315
|
+
|
316
|
+
# query parameters
|
317
|
+
query_params = opts[:query_params] || {}
|
318
|
+
|
319
|
+
# header parameters
|
320
|
+
header_params = opts[:header_params] || {}
|
321
|
+
# HTTP header 'Accept' (if needed)
|
322
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
323
|
+
# HTTP header 'Content-Type'
|
324
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
325
|
+
if !content_type.nil?
|
326
|
+
header_params['Content-Type'] = content_type
|
327
|
+
end
|
328
|
+
|
329
|
+
# form parameters
|
330
|
+
form_params = opts[:form_params] || {}
|
331
|
+
|
332
|
+
# http body (model)
|
333
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(document360_connect_request)
|
334
|
+
|
335
|
+
# return_type
|
336
|
+
return_type = opts[:debug_return_type] || 'GenericSuccessResponse'
|
337
|
+
|
338
|
+
# auth_names
|
339
|
+
auth_names = opts[:debug_auth_names] || ['accessToken', 'apiKey', 'customerId']
|
340
|
+
|
341
|
+
new_options = opts.merge(
|
342
|
+
:operation => :"IntegrationsApi.connect_document360",
|
343
|
+
:header_params => header_params,
|
344
|
+
:query_params => query_params,
|
345
|
+
:form_params => form_params,
|
346
|
+
:body => post_body,
|
347
|
+
:auth_names => auth_names,
|
348
|
+
:return_type => return_type
|
349
|
+
)
|
350
|
+
|
351
|
+
data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
|
352
|
+
if @api_client.config.debugging
|
353
|
+
@api_client.config.logger.debug "API called: IntegrationsApi#connect_document360\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
354
|
+
end
|
355
|
+
APIResponse::new(data, status_code, headers, response)
|
356
|
+
end
|
357
|
+
|
358
|
+
|
207
359
|
# Freshdesk Connect
|
208
360
|
#
|
209
361
|
# Refer this article to obtain an API key https://support.freshdesk.com/en/support/solutions/articles/215517.
|
@@ -50,6 +50,7 @@ module Carbon
|
|
50
50
|
SLACK = "SLACK".freeze
|
51
51
|
GURU = "GURU".freeze
|
52
52
|
GONG = "GONG".freeze
|
53
|
+
DOCUMENT360 = "DOCUMENT360".freeze
|
53
54
|
JPG = "JPG".freeze
|
54
55
|
PNG = "PNG".freeze
|
55
56
|
JPEG = "JPEG".freeze
|
@@ -75,7 +76,7 @@ module Carbon
|
|
75
76
|
MSG = "MSG".freeze
|
76
77
|
|
77
78
|
def self.all_vars
|
78
|
-
@all_vars ||= [GOOGLE_CLOUD_STORAGE, GOOGLE_DRIVE, NOTION, NOTION_DATABASE, INTERCOM, DROPBOX, ONEDRIVE, SHAREPOINT, CONFLUENCE, BOX, ZENDESK, ZOTERO, S3, AZURE_BLOB_STORAGE, GMAIL, OUTLOOK, SERVICENOW, TEXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, XLSM, MD, RTF, JSON, HTML, RAW_TEXT, WEB_SCRAPE, RSS_FEED, FRESHDESK, GITBOOK, SALESFORCE, GITHUB, SLACK, GURU, GONG, JPG, PNG, JPEG, MP3, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM, EML, MSG].freeze
|
79
|
+
@all_vars ||= [GOOGLE_CLOUD_STORAGE, GOOGLE_DRIVE, NOTION, NOTION_DATABASE, INTERCOM, DROPBOX, ONEDRIVE, SHAREPOINT, CONFLUENCE, BOX, ZENDESK, ZOTERO, S3, AZURE_BLOB_STORAGE, GMAIL, OUTLOOK, SERVICENOW, TEXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, XLSM, MD, RTF, JSON, HTML, RAW_TEXT, WEB_SCRAPE, RSS_FEED, FRESHDESK, GITBOOK, SALESFORCE, GITHUB, SLACK, GURU, GONG, DOCUMENT360, JPG, PNG, JPEG, MP3, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM, EML, MSG].freeze
|
79
80
|
end
|
80
81
|
|
81
82
|
# Builds the enum from string
|
@@ -50,6 +50,7 @@ module Carbon
|
|
50
50
|
SLACK = "SLACK".freeze
|
51
51
|
GURU = "GURU".freeze
|
52
52
|
GONG = "GONG".freeze
|
53
|
+
DOCUMENT360 = "DOCUMENT360".freeze
|
53
54
|
JPG = "JPG".freeze
|
54
55
|
PNG = "PNG".freeze
|
55
56
|
JPEG = "JPEG".freeze
|
@@ -75,7 +76,7 @@ module Carbon
|
|
75
76
|
MSG = "MSG".freeze
|
76
77
|
|
77
78
|
def self.all_vars
|
78
|
-
@all_vars ||= [GOOGLE_CLOUD_STORAGE, GOOGLE_DRIVE, NOTION, NOTION_DATABASE, INTERCOM, DROPBOX, ONEDRIVE, SHAREPOINT, CONFLUENCE, BOX, ZENDESK, ZOTERO, S3, AZURE_BLOB_STORAGE, GMAIL, OUTLOOK, SERVICENOW, TEXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, XLSM, MD, RTF, JSON, HTML, RAW_TEXT, WEB_SCRAPE, RSS_FEED, FRESHDESK, GITBOOK, SALESFORCE, GITHUB, SLACK, GURU, GONG, JPG, PNG, JPEG, MP3, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM, EML, MSG].freeze
|
79
|
+
@all_vars ||= [GOOGLE_CLOUD_STORAGE, GOOGLE_DRIVE, NOTION, NOTION_DATABASE, INTERCOM, DROPBOX, ONEDRIVE, SHAREPOINT, CONFLUENCE, BOX, ZENDESK, ZOTERO, S3, AZURE_BLOB_STORAGE, GMAIL, OUTLOOK, SERVICENOW, TEXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, XLSM, MD, RTF, JSON, HTML, RAW_TEXT, WEB_SCRAPE, RSS_FEED, FRESHDESK, GITBOOK, SALESFORCE, GITHUB, SLACK, GURU, GONG, DOCUMENT360, JPG, PNG, JPEG, MP3, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM, EML, MSG].freeze
|
79
80
|
end
|
80
81
|
|
81
82
|
# Builds the enum from string
|