wikipaddle_api 1.1.0 → 1.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e02c4d3b0f4afe0cf4d732b8e2fe0954e7f96b6b0af762f697992a055d31166
4
- data.tar.gz: ba587050c30c5ef743b62b5d711c53b9b0bdcd656ea500111883c92a5b9ba1de
3
+ metadata.gz: 6727cdc96fc8854c19959dd43acd4f7649b126bff75def74e200d4859b6f7f53
4
+ data.tar.gz: c911023e9cb6d75332d5cc59e540b828ef05b93af7140d52ff64846418eed268
5
5
  SHA512:
6
- metadata.gz: c3f1a5e8b639a40e54119cbc6bf2a34375781441373aeb20980550e7b5e6b5af7552866891fa6daefedeaaaac5c44d718f7873b24d21c409ea19fa75e4f5cd95
7
- data.tar.gz: 4825f5e5a8ad61ce691ecf3c19835b0a3229f8e714287326ac37f910d97d987ab5ad03c69d8ed892584b08eb5c5f9da1ef7bb5d573e3c81dc6c0dc72506177c3
6
+ metadata.gz: d24b7e09bd08d7ea897ed8ec94649d17179dae4c9eeff7520ac327585b860108e9a8c3f31b98169f2a181b59740052f2e2830310cd2a61fd33eb14cba0e71554
7
+ data.tar.gz: 11915ce2de147ed6871759a0a50c06cf5f6b487c18c08c76ca7195f432b3c54073d9e9fc02ccec7735cd77dc0669de6cec85021203e7167e11f38c4ec0c627b5
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # source: admin/v1/admin.proto
3
+ # source: wikipaddle_api/admin/v1/admin_service.proto
4
4
 
5
5
  require 'google/protobuf'
6
6
 
7
7
 
8
- descriptor_data = "\n\x14\x61\x64min/v1/admin.proto\x12\x17wikipaddle_api.admin.v1\"B\n\x06LatLng\x12\x1a\n\x08latitude\x18\x01 \x01(\x01R\x08latitude\x12\x1c\n\tlongitude\x18\x02 \x01(\x01R\tlongitude\"\xe8\x02\n\x12\x43reateGuideRequest\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12\x41\n\x0bstartLatLng\x18\x03 \x01(\x0b\x32\x1f.wikipaddle_api.admin.v1.LatLngR\x0bstartLatLng\x12=\n\tendLatLng\x18\x04 \x01(\x0b\x32\x1f.wikipaddle_api.admin.v1.LatLngR\tendLatLng\x12\x1a\n\x08polyline\x18\x05 \x01(\x0cR\x08polyline\x12\x18\n\x07\x63ountry\x18\x06 \x01(\tR\x07\x63ountry\x12\x14\n\x05state\x18\x07 \x01(\tR\x05state\x12*\n\x10\x64istanceInMeters\x18\x08 \x01(\x05R\x10\x64istanceInMeters\x12 \n\x0b\x61ttribution\x18\t \x01(\tR\x0b\x61ttribution\"%\n\x13\x43reateGuideResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id2q\n\x05\x41\x64min\x12h\n\x0b\x43reateGuide\x12+.wikipaddle_api.admin.v1.CreateGuideRequest\x1a,.wikipaddle_api.admin.v1.CreateGuideResponseB\xe2\x01\n\x1b\x63om.wikipaddle_api.admin.v1B\nAdminProtoP\x01Z=github.com/wikipaddle/protobuf/go-wikipaddle/admin/v1;adminv1\xa2\x02\x03WAX\xaa\x02\x16WikipaddleApi.Admin.V1\xca\x02\x16WikipaddleApi\\Admin\\V1\xe2\x02\"WikipaddleApi\\Admin\\V1\\GPBMetadata\xea\x02\x18WikipaddleApi::Admin::V1b\x06proto3"
8
+ descriptor_data = "\n+wikipaddle_api/admin/v1/admin_service.proto\x12\x17wikipaddle_api.admin.v1\"B\n\x06LatLng\x12\x1a\n\x08latitude\x18\x01 \x01(\x01R\x08latitude\x12\x1c\n\tlongitude\x18\x02 \x01(\x01R\tlongitude\"\xee\x02\n\x12\x43reateGuideRequest\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12\x43\n\rstart_lat_lng\x18\x03 \x01(\x0b\x32\x1f.wikipaddle_api.admin.v1.LatLngR\x0bstartLatLng\x12?\n\x0b\x65nd_lat_lng\x18\x04 \x01(\x0b\x32\x1f.wikipaddle_api.admin.v1.LatLngR\tendLatLng\x12\x1a\n\x08polyline\x18\x05 \x01(\x0cR\x08polyline\x12\x18\n\x07\x63ountry\x18\x06 \x01(\tR\x07\x63ountry\x12\x14\n\x05state\x18\x07 \x01(\tR\x05state\x12,\n\x12\x64istance_in_meters\x18\x08 \x01(\x05R\x10\x64istanceInMeters\x12 \n\x0b\x61ttribution\x18\t \x01(\tR\x0b\x61ttribution\"%\n\x13\x43reateGuideResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id2x\n\x0c\x41\x64minService\x12h\n\x0b\x43reateGuide\x12+.wikipaddle_api.admin.v1.CreateGuideRequest\x1a,.wikipaddle_api.admin.v1.CreateGuideResponseB\xf8\x01\n\x1b\x63om.wikipaddle_api.admin.v1B\x11\x41\x64minServiceProtoP\x01ZLgithub.com/wikipaddle/protobuf/go-wikipaddle/wikipaddle_api/admin/v1;adminv1\xa2\x02\x03WAX\xaa\x02\x16WikipaddleApi.Admin.V1\xca\x02\x16WikipaddleApi\\Admin\\V1\xe2\x02\"WikipaddleApi\\Admin\\V1\\GPBMetadata\xea\x02\x18WikipaddleApi::Admin::V1b\x06proto3"
9
9
 
10
10
  pool = Google::Protobuf::DescriptorPool.generated_pool
11
11
 
@@ -1,18 +1,18 @@
1
1
  # Code generated by protoc-gen-twirp_ruby 1.10.0, DO NOT EDIT.
2
2
  require 'twirp'
3
- require_relative 'admin_pb.rb'
3
+ require_relative 'admin_service_pb.rb'
4
4
 
5
5
  module WikipaddleApi
6
6
  module Admin
7
7
  module V1
8
- class AdminService < ::Twirp::Service
8
+ class AdminServiceService < ::Twirp::Service
9
9
  package 'wikipaddle_api.admin.v1'
10
- service 'Admin'
10
+ service 'AdminService'
11
11
  rpc :CreateGuide, CreateGuideRequest, CreateGuideResponse, :ruby_method => :create_guide
12
12
  end
13
13
 
14
- class AdminClient < ::Twirp::Client
15
- client_for AdminService
14
+ class AdminServiceClient < ::Twirp::Client
15
+ client_for AdminServiceService
16
16
  end
17
17
  end
18
18
  end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: wikipaddle_api/public/v1/mobile_service.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n-wikipaddle_api/public/v1/mobile_service.proto\x12\x18wikipaddle_api.public.v1\"@\n\x1bGetFeatureFlagStatusRequest\x12!\n\x0c\x66\x65\x61ture_name\x18\x01 \x01(\tR\x0b\x66\x65\x61tureName\"8\n\x1cGetFeatureFlagStatusResponse\x12\x18\n\x07\x65nabled\x18\x01 \x01(\x08R\x07\x65nabled\"0\n\x1aGetGuidesCollectionRequest\x12\x12\n\x04page\x18\x01 \x01(\x05R\x04page\"\xaa\x01\n\x1bGetGuidesCollectionResponse\x12\x44\n\npagination\x18\x01 \x01(\x0b\x32$.wikipaddle_api.public.v1.PaginationR\npagination\x12\x45\n\x06guides\x18\x02 \x03(\x0b\x32-.wikipaddle_api.public.v1.GuideCollectionItemR\x06guides\",\n\x18GuideCollectionItemPhoto\x12\x10\n\x03url\x18\x01 \x01(\tR\x03url\"\x87\x02\n\x13GuideCollectionItem\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05title\x18\x02 \x01(\tR\x05title\x12\x18\n\x07\x63ountry\x18\x03 \x01(\tR\x07\x63ountry\x12\x14\n\x05state\x18\x04 \x01(\tR\x05state\x12-\n\x12localized_distance\x18\x05 \x01(\tR\x11localizedDistance\x12\x1f\n\x0bstar_rating\x18\x06 \x01(\tR\nstarRating\x12J\n\x06photos\x18\x07 \x03(\x0b\x32\x32.wikipaddle_api.public.v1.GuideCollectionItemPhotoR\x06photos\"\x17\n\x15GetCurrentUserRequest\"\x90\x01\n\nPagination\x12!\n\x0c\x63urrent_page\x18\x01 \x01(\x05R\x0b\x63urrentPage\x12\x19\n\x08per_page\x18\x02 \x01(\x05R\x07perPage\x12#\n\rtotal_results\x18\x03 \x01(\x05R\x0ctotalResults\x12\x1f\n\x0btotal_pages\x18\x04 \x01(\x05R\ntotalPages\" \n\x0eGetUserRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"\x8e\x01\n\x04User\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n\nfirst_name\x18\x02 \x01(\tR\tfirstName\x12\x1b\n\tlast_name\x18\x03 \x01(\tR\x08lastName\x12\x1b\n\tfull_name\x18\x04 \x01(\tR\x08\x66ullName\x12\x1d\n\navatar_url\x18\x05 \x01(\tR\tavatarUrl\"E\n\x0fGetUserResponse\x12\x32\n\x04user\x18\x01 \x01(\x0b\x32\x1e.wikipaddle_api.public.v1.UserR\x04user\"L\n\x16GetCurrentUserResponse\x12\x32\n\x04user\x18\x01 \x01(\x0b\x32\x1e.wikipaddle_api.public.v1.UserR\x04user\"!\n\x0fGetGuideRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"I\n\x10GetGuideResponse\x12\x35\n\x05guide\x18\x01 \x01(\x0b\x32\x1f.wikipaddle_api.public.v1.GuideR\x05guide\"B\n\x06LatLng\x12\x1a\n\x08latitude\x18\x01 \x01(\x01R\x08latitude\x12\x1c\n\tlongitude\x18\x02 \x01(\x01R\tlongitude\"\xd1\x03\n\x05Guide\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05title\x18\x02 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x10\n\x03url\x18\x05 \x01(\tR\x03url\x12\x44\n\rstart_lat_lng\x18\x06 \x01(\x0b\x32 .wikipaddle_api.public.v1.LatLngR\x0bstartLatLng\x12@\n\x0b\x65nd_lat_lng\x18\x07 \x01(\x0b\x32 .wikipaddle_api.public.v1.LatLngR\tendLatLng\x12\x1a\n\x08polyline\x18\x08 \x01(\x0cR\x08polyline\x12\x18\n\x07\x63ountry\x18\t \x01(\tR\x07\x63ountry\x12\x14\n\x05state\x18\n \x01(\tR\x05state\x12-\n\x12localized_distance\x18\x0b \x01(\tR\x11localizedDistance\x12%\n\x0e\x63omments_count\x18\x0c \x01(\x05R\rcommentsCount\x12#\n\ruploads_count\x18\r \x01(\x05R\x0cuploadsCount\x12\x1f\n\x0bstar_rating\x18\x0e \x01(\tR\nstarRating\"\xd9\x01\n\x0f\x46itnessActivity\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x44\n\rstart_lat_lng\x18\x03 \x01(\x0b\x32 .wikipaddle_api.public.v1.LatLngR\x0bstartLatLng\x12@\n\x0b\x65nd_lat_lng\x18\x04 \x01(\x0b\x32 .wikipaddle_api.public.v1.LatLngR\tendLatLng\x12\x1a\n\x08polyline\x18\x05 \x01(\x0cR\x08polyline\"\xc0\x01\n\x0cGuideComment\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04\x62ody\x18\x02 \x01(\tR\x04\x62ody\x12$\n\x0euser_full_name\x18\x03 \x01(\tR\x0cuserFullName\x12&\n\x0fuser_avatar_url\x18\x04 \x01(\tR\ruserAvatarUrl\x12\x1d\n\ncreated_at\x18\x05 \x01(\tR\tcreatedAt\x12\x1f\n\x0bstar_rating\x18\x06 \x01(\x05R\nstarRating\"^\n\x1a\x43reateGuideCommentResponse\x12@\n\x07\x63omment\x18\x01 \x01(\x0b\x32&.wikipaddle_api.public.v1.GuideCommentR\x07\x63omment\"R\n!GetGuideCommentsCollectionRequest\x12\x19\n\x08guide_id\x18\x01 \x01(\tR\x07guideId\x12\x12\n\x04page\x18\x02 \x01(\x05R\x04page\"\xae\x01\n\"GetGuideCommentsCollectionResponse\x12\x44\n\npagination\x18\x01 \x01(\x0b\x32$.wikipaddle_api.public.v1.PaginationR\npagination\x12\x42\n\x08\x63omments\x18\x02 \x03(\x0b\x32&.wikipaddle_api.public.v1.GuideCommentR\x08\x63omments\"k\n\x19\x43reateGuideCommentRequest\x12\x19\n\x08guide_id\x18\x01 \x01(\tR\x07guideId\x12\x12\n\x04\x62ody\x18\x02 \x01(\tR\x04\x62ody\x12\x1f\n\x0bstar_rating\x18\x03 \x01(\x05R\nstarRating2\xef\x06\n\rMobileService\x12^\n\x07GetUser\x12(.wikipaddle_api.public.v1.GetUserRequest\x1a).wikipaddle_api.public.v1.GetUserResponse\x12\x61\n\x08GetGuide\x12).wikipaddle_api.public.v1.GetGuideRequest\x1a*.wikipaddle_api.public.v1.GetGuideResponse\x12\x82\x01\n\x13GetGuidesCollection\x12\x34.wikipaddle_api.public.v1.GetGuidesCollectionRequest\x1a\x35.wikipaddle_api.public.v1.GetGuidesCollectionResponse\x12s\n\x0eGetCurrentUser\x12/.wikipaddle_api.public.v1.GetCurrentUserRequest\x1a\x30.wikipaddle_api.public.v1.GetCurrentUserResponse\x12\x97\x01\n\x1aGetGuideCommentsCollection\x12;.wikipaddle_api.public.v1.GetGuideCommentsCollectionRequest\x1a<.wikipaddle_api.public.v1.GetGuideCommentsCollectionResponse\x12\x7f\n\x12\x43reateGuideComment\x12\x33.wikipaddle_api.public.v1.CreateGuideCommentRequest\x1a\x34.wikipaddle_api.public.v1.CreateGuideCommentResponse\x12\x85\x01\n\x14GetFeatureFlagStatus\x12\x35.wikipaddle_api.public.v1.GetFeatureFlagStatusRequest\x1a\x36.wikipaddle_api.public.v1.GetFeatureFlagStatusResponseB\x82\x02\n\x1c\x63om.wikipaddle_api.public.v1B\x12MobileServiceProtoP\x01ZNgithub.com/wikipaddle/protobuf/go-wikipaddle/wikipaddle_api/public/v1;publicv1\xa2\x02\x03WPX\xaa\x02\x17WikipaddleApi.Public.V1\xca\x02\x18WikipaddleApi\\Public_\\V1\xe2\x02$WikipaddleApi\\Public_\\V1\\GPBMetadata\xea\x02\x19WikipaddleApi::Public::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
+ end
29
+ end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
+ end
33
+
34
+ module WikipaddleApi
35
+ module Public
36
+ module V1
37
+ GetFeatureFlagStatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetFeatureFlagStatusRequest").msgclass
38
+ GetFeatureFlagStatusResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetFeatureFlagStatusResponse").msgclass
39
+ GetGuidesCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuidesCollectionRequest").msgclass
40
+ GetGuidesCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuidesCollectionResponse").msgclass
41
+ GuideCollectionItemPhoto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideCollectionItemPhoto").msgclass
42
+ GuideCollectionItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideCollectionItem").msgclass
43
+ GetCurrentUserRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetCurrentUserRequest").msgclass
44
+ Pagination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.Pagination").msgclass
45
+ GetUserRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetUserRequest").msgclass
46
+ User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.User").msgclass
47
+ GetUserResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetUserResponse").msgclass
48
+ GetCurrentUserResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetCurrentUserResponse").msgclass
49
+ GetGuideRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuideRequest").msgclass
50
+ GetGuideResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuideResponse").msgclass
51
+ LatLng = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.LatLng").msgclass
52
+ Guide = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.Guide").msgclass
53
+ FitnessActivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.FitnessActivity").msgclass
54
+ GuideComment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideComment").msgclass
55
+ CreateGuideCommentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.CreateGuideCommentResponse").msgclass
56
+ GetGuideCommentsCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuideCommentsCollectionRequest").msgclass
57
+ GetGuideCommentsCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuideCommentsCollectionResponse").msgclass
58
+ CreateGuideCommentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.CreateGuideCommentRequest").msgclass
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,25 @@
1
+ # Code generated by protoc-gen-twirp_ruby 1.10.0, DO NOT EDIT.
2
+ require 'twirp'
3
+ require_relative 'mobile_service_pb.rb'
4
+
5
+ module WikipaddleApi
6
+ module Public
7
+ module V1
8
+ class MobileServiceService < ::Twirp::Service
9
+ package 'wikipaddle_api.public.v1'
10
+ service 'MobileService'
11
+ rpc :GetUser, GetUserRequest, GetUserResponse, :ruby_method => :get_user
12
+ rpc :GetGuide, GetGuideRequest, GetGuideResponse, :ruby_method => :get_guide
13
+ rpc :GetGuidesCollection, GetGuidesCollectionRequest, GetGuidesCollectionResponse, :ruby_method => :get_guides_collection
14
+ rpc :GetCurrentUser, GetCurrentUserRequest, GetCurrentUserResponse, :ruby_method => :get_current_user
15
+ rpc :GetGuideCommentsCollection, GetGuideCommentsCollectionRequest, GetGuideCommentsCollectionResponse, :ruby_method => :get_guide_comments_collection
16
+ rpc :CreateGuideComment, CreateGuideCommentRequest, CreateGuideCommentResponse, :ruby_method => :create_guide_comment
17
+ rpc :GetFeatureFlagStatus, GetFeatureFlagStatusRequest, GetFeatureFlagStatusResponse, :ruby_method => :get_feature_flag_status
18
+ end
19
+
20
+ class MobileServiceClient < ::Twirp::Client
21
+ client_for MobileServiceService
22
+ end
23
+ end
24
+ end
25
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WikipaddleApi
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.2"
5
5
  end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: wikipaddle_api/webhooks/v1/webhooks_service.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n1wikipaddle_api/webhooks/v1/webhooks_service.proto\x12\x1awikipaddle_api.webhooks.v1\",\n\x06Object\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\"\xc3\x01\n\x19\x43reateWebhookEventRequest\x12\x44\n\nevent_type\x18\x01 \x01(\x0e\x32%.wikipaddle_api.webhooks.v1.EventTypeR\teventType\x12\x17\n\x07user_id\x18\x02 \x01(\tR\x06userId\x12G\n\rtarget_object\x18\x03 \x01(\x0b\x32\".wikipaddle_api.webhooks.v1.ObjectR\x0ctargetObject\"6\n\x1a\x43reateWebhookEventResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success*a\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x45VENT_TYPE_USER_CREATED\x10\x01\x12\x1b\n\x17\x45VENT_TYPE_USER_UPDATED\x10\x02\x32\x97\x01\n\x0fWebhooksService\x12\x83\x01\n\x12\x43reateWebhookEvent\x12\x35.wikipaddle_api.webhooks.v1.CreateWebhookEventRequest\x1a\x36.wikipaddle_api.webhooks.v1.CreateWebhookEventResponseB\x90\x02\n\x1e\x63om.wikipaddle_api.webhooks.v1B\x14WebhooksServiceProtoP\x01ZRgithub.com/wikipaddle/protobuf/go-wikipaddle/wikipaddle_api/webhooks/v1;webhooksv1\xa2\x02\x03WWX\xaa\x02\x19WikipaddleApi.Webhooks.V1\xca\x02\x19WikipaddleApi\\Webhooks\\V1\xe2\x02%WikipaddleApi\\Webhooks\\V1\\GPBMetadata\xea\x02\x1bWikipaddleApi::Webhooks::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
+ end
29
+ end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
+ end
33
+
34
+ module WikipaddleApi
35
+ module Webhooks
36
+ module V1
37
+ Object = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.webhooks.v1.Object").msgclass
38
+ CreateWebhookEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.webhooks.v1.CreateWebhookEventRequest").msgclass
39
+ CreateWebhookEventResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.webhooks.v1.CreateWebhookEventResponse").msgclass
40
+ EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.webhooks.v1.EventType").enummodule
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,19 @@
1
+ # Code generated by protoc-gen-twirp_ruby 1.10.0, DO NOT EDIT.
2
+ require 'twirp'
3
+ require_relative 'webhooks_service_pb.rb'
4
+
5
+ module WikipaddleApi
6
+ module Webhooks
7
+ module V1
8
+ class WebhooksServiceService < ::Twirp::Service
9
+ package 'wikipaddle_api.webhooks.v1'
10
+ service 'WebhooksService'
11
+ rpc :CreateWebhookEvent, CreateWebhookEventRequest, CreateWebhookEventResponse, :ruby_method => :create_webhook_event
12
+ end
13
+
14
+ class WebhooksServiceClient < ::Twirp::Client
15
+ client_for WebhooksServiceService
16
+ end
17
+ end
18
+ end
19
+ end
@@ -3,8 +3,9 @@
3
3
  require "rack"
4
4
 
5
5
  require_relative "wikipaddle_api/version"
6
- require_relative "wikipaddle_api/public/v1/mobile_twirp"
7
- require_relative "wikipaddle_api/admin/v1/admin_twirp"
6
+ require_relative "wikipaddle_api/public/v1/mobile_service_twirp"
7
+ require_relative "wikipaddle_api/admin/v1/admin_service_twirp"
8
+ require_relative "wikipaddle_api/webhooks/v1/webhooks_service_twirp"
8
9
 
9
10
  module WikipaddleApi
10
11
  class Error < StandardError; end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wikipaddle_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Drummond
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-10 00:00:00.000000000 Z
11
+ date: 2023-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -52,11 +52,13 @@ files:
52
52
  - README.md
53
53
  - Rakefile
54
54
  - lib/wikipaddle_api.rb
55
- - lib/wikipaddle_api/admin/v1/admin_pb.rb
56
- - lib/wikipaddle_api/admin/v1/admin_twirp.rb
57
- - lib/wikipaddle_api/public/v1/mobile_pb.rb
58
- - lib/wikipaddle_api/public/v1/mobile_twirp.rb
55
+ - lib/wikipaddle_api/admin/v1/admin_service_pb.rb
56
+ - lib/wikipaddle_api/admin/v1/admin_service_twirp.rb
57
+ - lib/wikipaddle_api/public/v1/mobile_service_pb.rb
58
+ - lib/wikipaddle_api/public/v1/mobile_service_twirp.rb
59
59
  - lib/wikipaddle_api/version.rb
60
+ - lib/wikipaddle_api/webhooks/v1/webhooks_service_pb.rb
61
+ - lib/wikipaddle_api/webhooks/v1/webhooks_service_twirp.rb
60
62
  - sig/wikipaddle_api.rbs
61
63
  - wikipaddle_api.gemspec
62
64
  homepage: https://github.com/wikipaddle/protobuf
@@ -1,57 +0,0 @@
1
- # frozen_string_literal: true
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # source: public/v1/mobile.proto
4
-
5
- require 'google/protobuf'
6
-
7
-
8
- descriptor_data = "\n\x16public/v1/mobile.proto\x12\x18wikipaddle_api.public.v1\"0\n\x1aGetGuidesCollectionRequest\x12\x12\n\x04page\x18\x01 \x01(\x05R\x04page\"\xaa\x01\n\x1bGetGuidesCollectionResponse\x12\x44\n\npagination\x18\x01 \x01(\x0b\x32$.wikipaddle_api.public.v1.PaginationR\npagination\x12\x45\n\x06guides\x18\x02 \x03(\x0b\x32-.wikipaddle_api.public.v1.GuideCollectionItemR\x06guides\",\n\x18GuideCollectionItemPhoto\x12\x10\n\x03url\x18\x01 \x01(\tR\x03url\"\x85\x02\n\x13GuideCollectionItem\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05title\x18\x02 \x01(\tR\x05title\x12\x18\n\x07\x63ountry\x18\x03 \x01(\tR\x07\x63ountry\x12\x14\n\x05state\x18\x04 \x01(\tR\x05state\x12,\n\x11localizedDistance\x18\x05 \x01(\tR\x11localizedDistance\x12\x1e\n\nstarRating\x18\x06 \x01(\tR\nstarRating\x12J\n\x06photos\x18\x07 \x03(\x0b\x32\x32.wikipaddle_api.public.v1.GuideCollectionItemPhotoR\x06photos\"\x17\n\x15GetCurrentUserRequest\"\x8c\x01\n\nPagination\x12 \n\x0b\x63urrentPage\x18\x01 \x01(\x05R\x0b\x63urrentPage\x12\x18\n\x07perPage\x18\x02 \x01(\x05R\x07perPage\x12\"\n\x0ctotalResults\x18\x03 \x01(\x05R\x0ctotalResults\x12\x1e\n\ntotalPages\x18\x04 \x01(\x05R\ntotalPages\"\x1d\n\x0bUserRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"\x8a\x01\n\x04User\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1c\n\tfirstName\x18\x02 \x01(\tR\tfirstName\x12\x1a\n\x08lastName\x18\x03 \x01(\tR\x08lastName\x12\x1a\n\x08\x66ullName\x18\x04 \x01(\tR\x08\x66ullName\x12\x1c\n\tavatarUrl\x18\x05 \x01(\tR\tavatarUrl\"B\n\x0cUserResponse\x12\x32\n\x04user\x18\x01 \x01(\x0b\x32\x1e.wikipaddle_api.public.v1.UserR\x04user\"\x1e\n\x0cGuideRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"F\n\rGuideResponse\x12\x35\n\x05guide\x18\x01 \x01(\x0b\x32\x1f.wikipaddle_api.public.v1.GuideR\x05guide\"B\n\x06LatLng\x12\x1a\n\x08latitude\x18\x01 \x01(\x01R\x08latitude\x12\x1c\n\tlongitude\x18\x02 \x01(\x01R\tlongitude\"\xc9\x03\n\x05Guide\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05title\x18\x02 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x10\n\x03url\x18\x05 \x01(\tR\x03url\x12\x42\n\x0bstartLatLng\x18\x06 \x01(\x0b\x32 .wikipaddle_api.public.v1.LatLngR\x0bstartLatLng\x12>\n\tendLatLng\x18\x07 \x01(\x0b\x32 .wikipaddle_api.public.v1.LatLngR\tendLatLng\x12\x1a\n\x08polyline\x18\x08 \x01(\x0cR\x08polyline\x12\x18\n\x07\x63ountry\x18\t \x01(\tR\x07\x63ountry\x12\x14\n\x05state\x18\n \x01(\tR\x05state\x12,\n\x11localizedDistance\x18\x0b \x01(\tR\x11localizedDistance\x12$\n\rcommentsCount\x18\x0c \x01(\x05R\rcommentsCount\x12\"\n\x0cuploadsCount\x18\r \x01(\x05R\x0cuploadsCount\x12\x1e\n\nstarRating\x18\x0e \x01(\tR\nstarRating\"\xd5\x01\n\x0f\x46itnessActivity\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x42\n\x0bstartLatLng\x18\x03 \x01(\x0b\x32 .wikipaddle_api.public.v1.LatLngR\x0bstartLatLng\x12>\n\tendLatLng\x18\x04 \x01(\x0b\x32 .wikipaddle_api.public.v1.LatLngR\tendLatLng\x12\x1a\n\x08polyline\x18\x05 \x01(\x0cR\x08polyline\"\xba\x01\n\x0cGuideComment\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04\x62ody\x18\x02 \x01(\tR\x04\x62ody\x12\"\n\x0cuserFullName\x18\x03 \x01(\tR\x0cuserFullName\x12$\n\ruserAvatarUrl\x18\x04 \x01(\tR\ruserAvatarUrl\x12\x1c\n\tcreatedAt\x18\x05 \x01(\tR\tcreatedAt\x12\x1e\n\nstarRating\x18\x06 \x01(\x05R\nstarRating\"Q\n!GetGuideCommentsCollectionRequest\x12\x18\n\x07guideId\x18\x01 \x01(\tR\x07guideId\x12\x12\n\x04page\x18\x02 \x01(\x05R\x04page\"\xae\x01\n\"GetGuideCommentsCollectionResponse\x12\x44\n\npagination\x18\x01 \x01(\x0b\x32$.wikipaddle_api.public.v1.PaginationR\npagination\x12\x42\n\x08\x63omments\x18\x02 \x03(\x0b\x32&.wikipaddle_api.public.v1.GuideCommentR\x08\x63omments\"i\n\x19\x43reateGuideCommentRequest\x12\x18\n\x07guideId\x18\x01 \x01(\tR\x07guideId\x12\x12\n\x04\x62ody\x18\x02 \x01(\tR\x04\x62ody\x12\x1e\n\nstarRating\x18\x03 \x01(\x05R\nstarRating2\xbc\x05\n\x06Mobile\x12X\n\x07GetUser\x12%.wikipaddle_api.public.v1.UserRequest\x1a&.wikipaddle_api.public.v1.UserResponse\x12[\n\x08GetGuide\x12&.wikipaddle_api.public.v1.GuideRequest\x1a\'.wikipaddle_api.public.v1.GuideResponse\x12\x82\x01\n\x13GetGuidesCollection\x12\x34.wikipaddle_api.public.v1.GetGuidesCollectionRequest\x1a\x35.wikipaddle_api.public.v1.GetGuidesCollectionResponse\x12i\n\x0eGetCurrentUser\x12/.wikipaddle_api.public.v1.GetCurrentUserRequest\x1a&.wikipaddle_api.public.v1.UserResponse\x12\x97\x01\n\x1aGetGuideCommentsCollection\x12;.wikipaddle_api.public.v1.GetGuideCommentsCollectionRequest\x1a<.wikipaddle_api.public.v1.GetGuideCommentsCollectionResponse\x12q\n\x12\x43reateGuideComment\x12\x33.wikipaddle_api.public.v1.CreateGuideCommentRequest\x1a&.wikipaddle_api.public.v1.GuideCommentB\xec\x01\n\x1c\x63om.wikipaddle_api.public.v1B\x0bMobileProtoP\x01Z?github.com/wikipaddle/protobuf/go-wikipaddle/public/v1;publicv1\xa2\x02\x03WPX\xaa\x02\x17WikipaddleApi.Public.V1\xca\x02\x18WikipaddleApi\\Public_\\V1\xe2\x02$WikipaddleApi\\Public_\\V1\\GPBMetadata\xea\x02\x19WikipaddleApi::Public::V1b\x06proto3"
9
-
10
- pool = Google::Protobuf::DescriptorPool.generated_pool
11
-
12
- begin
13
- pool.add_serialized_file(descriptor_data)
14
- rescue TypeError => e
15
- # Compatibility code: will be removed in the next major version.
16
- require 'google/protobuf/descriptor_pb'
17
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
- parsed.clear_dependency
19
- serialized = parsed.class.encode(parsed)
20
- file = pool.add_serialized_file(serialized)
21
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
- imports = [
23
- ]
24
- imports.each do |type_name, expected_filename|
25
- import_file = pool.lookup(type_name).file_descriptor
26
- if import_file.name != expected_filename
27
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
- end
29
- end
30
- warn "Each proto file must use a consistent fully-qualified name."
31
- warn "This will become an error in the next major version."
32
- end
33
-
34
- module WikipaddleApi
35
- module Public
36
- module V1
37
- GetGuidesCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuidesCollectionRequest").msgclass
38
- GetGuidesCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuidesCollectionResponse").msgclass
39
- GuideCollectionItemPhoto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideCollectionItemPhoto").msgclass
40
- GuideCollectionItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideCollectionItem").msgclass
41
- GetCurrentUserRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetCurrentUserRequest").msgclass
42
- Pagination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.Pagination").msgclass
43
- UserRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.UserRequest").msgclass
44
- User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.User").msgclass
45
- UserResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.UserResponse").msgclass
46
- GuideRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideRequest").msgclass
47
- GuideResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideResponse").msgclass
48
- LatLng = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.LatLng").msgclass
49
- Guide = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.Guide").msgclass
50
- FitnessActivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.FitnessActivity").msgclass
51
- GuideComment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideComment").msgclass
52
- GetGuideCommentsCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuideCommentsCollectionRequest").msgclass
53
- GetGuideCommentsCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuideCommentsCollectionResponse").msgclass
54
- CreateGuideCommentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.CreateGuideCommentRequest").msgclass
55
- end
56
- end
57
- end
@@ -1,24 +0,0 @@
1
- # Code generated by protoc-gen-twirp_ruby 1.10.0, DO NOT EDIT.
2
- require 'twirp'
3
- require_relative 'mobile_pb.rb'
4
-
5
- module WikipaddleApi
6
- module Public
7
- module V1
8
- class MobileService < ::Twirp::Service
9
- package 'wikipaddle_api.public.v1'
10
- service 'Mobile'
11
- rpc :GetUser, UserRequest, UserResponse, :ruby_method => :get_user
12
- rpc :GetGuide, GuideRequest, GuideResponse, :ruby_method => :get_guide
13
- rpc :GetGuidesCollection, GetGuidesCollectionRequest, GetGuidesCollectionResponse, :ruby_method => :get_guides_collection
14
- rpc :GetCurrentUser, GetCurrentUserRequest, UserResponse, :ruby_method => :get_current_user
15
- rpc :GetGuideCommentsCollection, GetGuideCommentsCollectionRequest, GetGuideCommentsCollectionResponse, :ruby_method => :get_guide_comments_collection
16
- rpc :CreateGuideComment, CreateGuideCommentRequest, GuideComment, :ruby_method => :create_guide_comment
17
- end
18
-
19
- class MobileClient < ::Twirp::Client
20
- client_for MobileService
21
- end
22
- end
23
- end
24
- end