forest_admin_datasource_intercom 1.49.0

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.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/LICENSE +202 -0
  4. data/README.md +811 -0
  5. data/Rakefile +6 -0
  6. data/exe/forest_admin_intercom_probe +287 -0
  7. data/forest_admin_datasource_intercom.gemspec +38 -0
  8. data/lib/forest_admin_datasource_intercom/cache.rb +84 -0
  9. data/lib/forest_admin_datasource_intercom/client.rb +546 -0
  10. data/lib/forest_admin_datasource_intercom/collections/admin.rb +83 -0
  11. data/lib/forest_admin_datasource_intercom/collections/base_collection.rb +161 -0
  12. data/lib/forest_admin_datasource_intercom/collections/company/serializer.rb +44 -0
  13. data/lib/forest_admin_datasource_intercom/collections/company.rb +69 -0
  14. data/lib/forest_admin_datasource_intercom/collections/contact/serializer.rb +106 -0
  15. data/lib/forest_admin_datasource_intercom/collections/contact.rb +266 -0
  16. data/lib/forest_admin_datasource_intercom/collections/contact_identity.rb +77 -0
  17. data/lib/forest_admin_datasource_intercom/collections/conversation/serializer.rb +75 -0
  18. data/lib/forest_admin_datasource_intercom/collections/conversation/timeline.rb +40 -0
  19. data/lib/forest_admin_datasource_intercom/collections/conversation.rb +153 -0
  20. data/lib/forest_admin_datasource_intercom/collections/cursor_collection.rb +363 -0
  21. data/lib/forest_admin_datasource_intercom/collections/custom_attributes.rb +55 -0
  22. data/lib/forest_admin_datasource_intercom/collections/fetch_all_collection.rb +196 -0
  23. data/lib/forest_admin_datasource_intercom/collections/offset_collection.rb +311 -0
  24. data/lib/forest_admin_datasource_intercom/collections/records_by_id.rb +97 -0
  25. data/lib/forest_admin_datasource_intercom/collections/relations.rb +294 -0
  26. data/lib/forest_admin_datasource_intercom/collections/team.rb +70 -0
  27. data/lib/forest_admin_datasource_intercom/collections/team_membership.rb +51 -0
  28. data/lib/forest_admin_datasource_intercom/collections/ticket/derived_columns.rb +130 -0
  29. data/lib/forest_admin_datasource_intercom/collections/ticket/serializer.rb +70 -0
  30. data/lib/forest_admin_datasource_intercom/collections/ticket.rb +143 -0
  31. data/lib/forest_admin_datasource_intercom/collections/ticket_state.rb +40 -0
  32. data/lib/forest_admin_datasource_intercom/collections/ticket_type.rb +46 -0
  33. data/lib/forest_admin_datasource_intercom/collections/timeline.rb +40 -0
  34. data/lib/forest_admin_datasource_intercom/configuration.rb +226 -0
  35. data/lib/forest_admin_datasource_intercom/datasource.rb +78 -0
  36. data/lib/forest_admin_datasource_intercom/pagination/cursor_walker.rb +123 -0
  37. data/lib/forest_admin_datasource_intercom/query/caller_zone.rb +48 -0
  38. data/lib/forest_admin_datasource_intercom/query/condition_tree_translator.rb +169 -0
  39. data/lib/forest_admin_datasource_intercom/query/day_bounds.rb +75 -0
  40. data/lib/forest_admin_datasource_intercom/query/filter_value.rb +177 -0
  41. data/lib/forest_admin_datasource_intercom/query/operator_table.rb +54 -0
  42. data/lib/forest_admin_datasource_intercom/query/search_fields.rb +225 -0
  43. data/lib/forest_admin_datasource_intercom/query/search_fields.yml +663 -0
  44. data/lib/forest_admin_datasource_intercom/rate_limiter.rb +148 -0
  45. data/lib/forest_admin_datasource_intercom/retry_policy.rb +95 -0
  46. data/lib/forest_admin_datasource_intercom/schema/attribute_naming.rb +52 -0
  47. data/lib/forest_admin_datasource_intercom/schema/data_attributes_introspector.rb +88 -0
  48. data/lib/forest_admin_datasource_intercom/schema/ticket_attributes_introspector.rb +133 -0
  49. data/lib/forest_admin_datasource_intercom/throttle.rb +19 -0
  50. data/lib/forest_admin_datasource_intercom/version.rb +3 -0
  51. data/lib/forest_admin_datasource_intercom.rb +57 -0
  52. metadata +180 -0
metadata ADDED
@@ -0,0 +1,180 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: forest_admin_datasource_intercom
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.49.0
5
+ platform: ruby
6
+ authors:
7
+ - Forest Admin
8
+ bindir: exe
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: activesupport
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '6.1'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '6.1'
26
+ - !ruby/object:Gem::Dependency
27
+ name: faraday
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '2.0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: faraday-net_http_persistent
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.0'
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '2.0'
54
+ - !ruby/object:Gem::Dependency
55
+ name: faraday-retry
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '2.0'
61
+ type: :runtime
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '2.0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: forest_admin_datasource_toolkit
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: 1.49.0
75
+ type: :runtime
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: 1.49.0
82
+ - !ruby/object:Gem::Dependency
83
+ name: zeitwerk
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '2.3'
89
+ type: :runtime
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '2.3'
96
+ description: Surface Intercom conversations, tickets, contacts and companies as Forest
97
+ Admin collections.
98
+ email:
99
+ - contact@forestadmin.com
100
+ executables:
101
+ - forest_admin_intercom_probe
102
+ extensions: []
103
+ extra_rdoc_files: []
104
+ files:
105
+ - ".rspec"
106
+ - LICENSE
107
+ - README.md
108
+ - Rakefile
109
+ - exe/forest_admin_intercom_probe
110
+ - forest_admin_datasource_intercom.gemspec
111
+ - lib/forest_admin_datasource_intercom.rb
112
+ - lib/forest_admin_datasource_intercom/cache.rb
113
+ - lib/forest_admin_datasource_intercom/client.rb
114
+ - lib/forest_admin_datasource_intercom/collections/admin.rb
115
+ - lib/forest_admin_datasource_intercom/collections/base_collection.rb
116
+ - lib/forest_admin_datasource_intercom/collections/company.rb
117
+ - lib/forest_admin_datasource_intercom/collections/company/serializer.rb
118
+ - lib/forest_admin_datasource_intercom/collections/contact.rb
119
+ - lib/forest_admin_datasource_intercom/collections/contact/serializer.rb
120
+ - lib/forest_admin_datasource_intercom/collections/contact_identity.rb
121
+ - lib/forest_admin_datasource_intercom/collections/conversation.rb
122
+ - lib/forest_admin_datasource_intercom/collections/conversation/serializer.rb
123
+ - lib/forest_admin_datasource_intercom/collections/conversation/timeline.rb
124
+ - lib/forest_admin_datasource_intercom/collections/cursor_collection.rb
125
+ - lib/forest_admin_datasource_intercom/collections/custom_attributes.rb
126
+ - lib/forest_admin_datasource_intercom/collections/fetch_all_collection.rb
127
+ - lib/forest_admin_datasource_intercom/collections/offset_collection.rb
128
+ - lib/forest_admin_datasource_intercom/collections/records_by_id.rb
129
+ - lib/forest_admin_datasource_intercom/collections/relations.rb
130
+ - lib/forest_admin_datasource_intercom/collections/team.rb
131
+ - lib/forest_admin_datasource_intercom/collections/team_membership.rb
132
+ - lib/forest_admin_datasource_intercom/collections/ticket.rb
133
+ - lib/forest_admin_datasource_intercom/collections/ticket/derived_columns.rb
134
+ - lib/forest_admin_datasource_intercom/collections/ticket/serializer.rb
135
+ - lib/forest_admin_datasource_intercom/collections/ticket_state.rb
136
+ - lib/forest_admin_datasource_intercom/collections/ticket_type.rb
137
+ - lib/forest_admin_datasource_intercom/collections/timeline.rb
138
+ - lib/forest_admin_datasource_intercom/configuration.rb
139
+ - lib/forest_admin_datasource_intercom/datasource.rb
140
+ - lib/forest_admin_datasource_intercom/pagination/cursor_walker.rb
141
+ - lib/forest_admin_datasource_intercom/query/caller_zone.rb
142
+ - lib/forest_admin_datasource_intercom/query/condition_tree_translator.rb
143
+ - lib/forest_admin_datasource_intercom/query/day_bounds.rb
144
+ - lib/forest_admin_datasource_intercom/query/filter_value.rb
145
+ - lib/forest_admin_datasource_intercom/query/operator_table.rb
146
+ - lib/forest_admin_datasource_intercom/query/search_fields.rb
147
+ - lib/forest_admin_datasource_intercom/query/search_fields.yml
148
+ - lib/forest_admin_datasource_intercom/rate_limiter.rb
149
+ - lib/forest_admin_datasource_intercom/retry_policy.rb
150
+ - lib/forest_admin_datasource_intercom/schema/attribute_naming.rb
151
+ - lib/forest_admin_datasource_intercom/schema/data_attributes_introspector.rb
152
+ - lib/forest_admin_datasource_intercom/schema/ticket_attributes_introspector.rb
153
+ - lib/forest_admin_datasource_intercom/throttle.rb
154
+ - lib/forest_admin_datasource_intercom/version.rb
155
+ homepage: https://www.forestadmin.com
156
+ licenses:
157
+ - Apache-2.0
158
+ metadata:
159
+ homepage_uri: https://www.forestadmin.com
160
+ source_code_uri: https://github.com/ForestAdmin/agent-ruby
161
+ changelog_uri: https://github.com/ForestAdmin/agent-ruby/blob/main/CHANGELOG.md
162
+ rubygems_mfa_required: 'false'
163
+ rdoc_options: []
164
+ require_paths:
165
+ - lib
166
+ required_ruby_version: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: 3.0.0
171
+ required_rubygems_version: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - ">="
174
+ - !ruby/object:Gem::Version
175
+ version: '0'
176
+ requirements: []
177
+ rubygems_version: 3.6.7
178
+ specification_version: 4
179
+ summary: Intercom datasource for Forest Admin Ruby agent.
180
+ test_files: []