bullet_train-api 1.0.6 → 1.0.7
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/app/serializers/api/v1/invitation_serializer.rb +8 -0
- data/app/serializers/api/v1/membership_serializer.rb +8 -0
- data/app/serializers/api/v1/team_serializer.rb +8 -0
- data/app/serializers/api/v1/user_serializer.rb +8 -0
- data/app/serializers/concerns/api/v1/invitations/serializer_base.rb +17 -0
- data/app/serializers/concerns/api/v1/memberships/serializer_base.rb +24 -0
- data/app/serializers/concerns/api/v1/teams/serializer_base.rb +16 -0
- data/app/serializers/concerns/api/v1/users/serializer_base.rb +22 -0
- data/lib/bullet_train/api/version.rb +1 -1
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 892999078661fe5c970b56d9718403df7fe909748b0764b31f8da8ff5f3ae166
|
4
|
+
data.tar.gz: 8cd26976c5abdbb57a838503f11b046364eae8d5165c1c94ff4bae231886230f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a8290f40a81d4dd0ca8dded910b8a2907a96bd0e6c9ca03f339b310ac2d95ce62af5fc468a13266daffdcf84c06a5f3afcd97e3e2959aff340b43d6875c7307
|
7
|
+
data.tar.gz: 4029a5b7cc6d41141d280e2b55be9e638b45bac86cc3f8360c6a9eeba404d92df17aab8d89da4119768263f4006b1fe052d6534c853146f200a45e6cd82d5c72
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class Api::V1::InvitationSerializer < Api::V1::ApplicationSerializer
|
2
|
+
include Api::V1::Invitations::SerializerBase
|
3
|
+
|
4
|
+
# The `:id` entries are redundant, but for the moment they help us generate valid code.
|
5
|
+
attributes :id,
|
6
|
+
# 🚅 super scaffolding will insert new fields above this line.
|
7
|
+
:id
|
8
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class Api::V1::MembershipSerializer < Api::V1::ApplicationSerializer
|
2
|
+
include Api::V1::Memberships::SerializerBase
|
3
|
+
|
4
|
+
# The `:id` entries are redundant, but for the moment they help us generate valid code.
|
5
|
+
attributes :id,
|
6
|
+
# 🚅 super scaffolding will insert new fields above this line.
|
7
|
+
:id
|
8
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class Api::V1::TeamSerializer < Api::V1::ApplicationSerializer
|
2
|
+
include Api::V1::Teams::SerializerBase
|
3
|
+
|
4
|
+
# The `:id` entries are redundant, but for the moment they help us generate valid code.
|
5
|
+
attributes :id,
|
6
|
+
# 🚅 super scaffolding will insert new fields above this line.
|
7
|
+
:id
|
8
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class Api::V1::UserSerializer < Api::V1::ApplicationSerializer
|
2
|
+
include Api::V1::Users::SerializerBase
|
3
|
+
|
4
|
+
# The `:id` entries are redundant, but for the moment they help us generate valid code.
|
5
|
+
attributes :id,
|
6
|
+
# 🚅 super scaffolding will insert new fields above this line.
|
7
|
+
:id
|
8
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Api::V1::Invitations::SerializerBase
|
2
|
+
extend ActiveSupport::Concern
|
3
|
+
|
4
|
+
included do
|
5
|
+
set_type "invitation"
|
6
|
+
|
7
|
+
attributes :id,
|
8
|
+
:team_id,
|
9
|
+
:email,
|
10
|
+
:from_membership_id,
|
11
|
+
:created_at,
|
12
|
+
:updated_at
|
13
|
+
|
14
|
+
belongs_to :from_membership, serializer: Api::V1::MembershipSerializer
|
15
|
+
has_one :membership, serializer: Api::V1::MembershipSerializer
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Api::V1::Memberships::SerializerBase
|
2
|
+
extend ActiveSupport::Concern
|
3
|
+
|
4
|
+
included do
|
5
|
+
set_type "membership"
|
6
|
+
|
7
|
+
attributes :id,
|
8
|
+
:team_id,
|
9
|
+
:user_id,
|
10
|
+
:invitation_id,
|
11
|
+
:user_first_name,
|
12
|
+
:user_last_name,
|
13
|
+
:user_profile_photo_id,
|
14
|
+
:user_email,
|
15
|
+
:added_by_id,
|
16
|
+
:created_at,
|
17
|
+
:updated_at
|
18
|
+
|
19
|
+
belongs_to :user, serializer: Api::V1::UserSerializer
|
20
|
+
belongs_to :team, serializer: Api::V1::TeamSerializer
|
21
|
+
belongs_to :invitation, serializer: Api::V1::InvitationSerializer
|
22
|
+
belongs_to :added_by, serializer: Api::V1::MembershipSerializer
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Api::V1::Teams::SerializerBase
|
2
|
+
extend ActiveSupport::Concern
|
3
|
+
|
4
|
+
included do
|
5
|
+
set_type "team"
|
6
|
+
|
7
|
+
attributes :id,
|
8
|
+
:name,
|
9
|
+
:time_zone,
|
10
|
+
:locale,
|
11
|
+
:created_at,
|
12
|
+
:updated_at
|
13
|
+
|
14
|
+
has_many :scaffolding_absolutely_abstract_creative_concepts, serializer: Api::V1::Scaffolding::AbsolutelyAbstract::CreativeConceptSerializer
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Api::V1::Users::SerializerBase
|
2
|
+
extend ActiveSupport::Concern
|
3
|
+
|
4
|
+
included do
|
5
|
+
set_type "user"
|
6
|
+
|
7
|
+
attributes :id,
|
8
|
+
:email,
|
9
|
+
:first_name,
|
10
|
+
:last_name,
|
11
|
+
:time_zone,
|
12
|
+
:profile_photo_id,
|
13
|
+
:former_user,
|
14
|
+
:locale,
|
15
|
+
:platform_agent_of_id,
|
16
|
+
:created_at,
|
17
|
+
:updated_at
|
18
|
+
|
19
|
+
has_many :teams, serializer: Api::V1::TeamSerializer
|
20
|
+
has_many :memberships, serializer: Api::V1::MembershipSerializer
|
21
|
+
end
|
22
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -173,6 +173,14 @@ files:
|
|
173
173
|
- app/controllers/concerns/api/v1/base.rb
|
174
174
|
- app/controllers/concerns/api/v1/teams/endpoint_base.rb
|
175
175
|
- app/models/platform/application.rb
|
176
|
+
- app/serializers/api/v1/invitation_serializer.rb
|
177
|
+
- app/serializers/api/v1/membership_serializer.rb
|
178
|
+
- app/serializers/api/v1/team_serializer.rb
|
179
|
+
- app/serializers/api/v1/user_serializer.rb
|
180
|
+
- app/serializers/concerns/api/v1/invitations/serializer_base.rb
|
181
|
+
- app/serializers/concerns/api/v1/memberships/serializer_base.rb
|
182
|
+
- app/serializers/concerns/api/v1/teams/serializer_base.rb
|
183
|
+
- app/serializers/concerns/api/v1/users/serializer_base.rb
|
176
184
|
- app/views/account/platform/applications/_application.json.jbuilder
|
177
185
|
- app/views/account/platform/applications/_breadcrumbs.html.erb
|
178
186
|
- app/views/account/platform/applications/_form.html.erb
|