stigg-api-client 1.230.0 → 1.231.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: fc488e9ad175afae606e6a49dd4024ca00209057b6980425f38377ab46b40e2e
4
- data.tar.gz: b391c9f63ff6db9c2235ee617da5eff9b1dcdcb937a7e9359f32983e4744abb5
3
+ metadata.gz: a7f39e593347293a513f23ec72fbb16b36a13db459496a444f8f07a067ce6fa4
4
+ data.tar.gz: 14aeb70990d56f97875633dfd3880675079c13cddc847833dd84b0f52ff53bbf
5
5
  SHA512:
6
- metadata.gz: 3f065d705ced9f9017c17b4a838131ff1acf76d0329dab565a4d7dcc6cfb15e3108e3b2ece8ba212577026b5febcbb9267f5ff6a90ae0822054ddd3d3024fe55
7
- data.tar.gz: 185dda6d08a4726ebbe0e8bdeccd6c56017e902bf3dd4a635fc3f6e093cb942a4511064a592a87fc434305674e1e3fcad6da3374dc5f10392e35f21f98b63c37
6
+ metadata.gz: 83564f8d0cf70093f24763f7e7e3fb72b8390bcef173186c86e37effa4e7f389f7946cf4ce7d818d91d17fcd39c389db55bac0ba884c5d5bfedd6d8f2398a19a
7
+ data.tar.gz: 51507aadfc1a64010f7d1bcf4e5de08e7e33d0e7d6246a638ab0e97245fc725f4606c6f21d91bf257372045423b6fcf41f0de5f6b119efa497848800f78f1b22
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stigg-api-client (1.230.0)
4
+ stigg-api-client (1.231.0)
5
5
  graphlient (>= 0.6.0, < 1.0)
6
6
  graphql-client (>= 0.19, < 1.0)
7
7
 
@@ -225,6 +225,31 @@ module Stigg
225
225
  }
226
226
  GRAPHQL
227
227
 
228
+ SlimSubscriptionFragmentV2 = <<~GRAPHQL
229
+ fragment SlimSubscriptionFragmentV2 on CustomerSubscription {
230
+ subscriptionId
231
+ status
232
+ pricingType
233
+ startDate
234
+ currentBillingPeriodEnd
235
+ customer {
236
+ customerId
237
+ }
238
+ resource {
239
+ resourceId
240
+ }
241
+ plan {
242
+ planId: refId
243
+ }
244
+ addons {
245
+ quantity
246
+ addon {
247
+ addonId: refId
248
+ }
249
+ }
250
+ }
251
+ GRAPHQL
252
+
228
253
  SlimSubscriptionFragment = <<~GRAPHQL
229
254
  fragment SlimSubscriptionFragment on CustomerSubscription {
230
255
  id
@@ -1747,6 +1772,39 @@ module Stigg
1747
1772
  #{Fragment::SubscriptionFutureUpdateData}
1748
1773
  GRAPHQL
1749
1774
 
1775
+ GetActiveSubscriptionsList = <<~GRAPHQL
1776
+ query GetActiveSubscriptionsList($input: GetActiveSubscriptionsInput!) {
1777
+ getActiveSubscriptions(input: $input) {
1778
+ ...SlimSubscriptionFragmentV2
1779
+ }
1780
+ }
1781
+ #{Fragment::SlimSubscriptionFragmentV2}
1782
+ GRAPHQL
1783
+
1784
+ GetSubscription = <<~GRAPHQL
1785
+ query GetSubscription($input: GetSubscriptionInput!) {
1786
+ getSubscription(input: $input) {
1787
+ ...SubscriptionFragment
1788
+ }
1789
+ }
1790
+ #{Fragment::SubscriptionFragment}
1791
+ #{Fragment::SubscriptionInvoiceFragment}
1792
+ #{Fragment::CustomerResourceFragment}
1793
+ #{Fragment::PriceFragment}
1794
+ #{Fragment::PriceTierFragment}
1795
+ #{Fragment::TotalPriceFragment}
1796
+ #{Fragment::PlanFragment}
1797
+ #{Fragment::ProductFragment}
1798
+ #{Fragment::PackageEntitlementFragment}
1799
+ #{Fragment::AddonFragment}
1800
+ #{Fragment::OveragePriceFragment}
1801
+ #{Fragment::AddonDependencyFragment}
1802
+ #{Fragment::PlanCompatiblePackageGroupsFragment}
1803
+ #{Fragment::SubscriptionScheduledUpdateData}
1804
+ #{Fragment::ScheduleVariablesFragment}
1805
+ #{Fragment::SubscriptionFutureUpdateData}
1806
+ GRAPHQL
1807
+
1750
1808
  GetCoupons = <<~GRAPHQL
1751
1809
  query GetCoupons {
1752
1810
  coupons(filter: { status: { eq: ACTIVE } }, paging: { first: 50 }) {
@@ -30539,6 +30539,45 @@
30539
30539
  "enumValues": null,
30540
30540
  "possibleTypes": null
30541
30541
  },
30542
+ {
30543
+ "kind": "INPUT_OBJECT",
30544
+ "name": "GetSubscriptionInput",
30545
+ "description": "Get subscription input",
30546
+ "fields": null,
30547
+ "inputFields": [
30548
+ {
30549
+ "name": "environmentId",
30550
+ "description": "The environment ID the subscription belongs to",
30551
+ "type": {
30552
+ "kind": "SCALAR",
30553
+ "name": "String",
30554
+ "ofType": null
30555
+ },
30556
+ "defaultValue": null,
30557
+ "isDeprecated": false,
30558
+ "deprecationReason": null
30559
+ },
30560
+ {
30561
+ "name": "subscriptionId",
30562
+ "description": "The subscription ID to retrieve",
30563
+ "type": {
30564
+ "kind": "NON_NULL",
30565
+ "name": null,
30566
+ "ofType": {
30567
+ "kind": "SCALAR",
30568
+ "name": "String",
30569
+ "ofType": null
30570
+ }
30571
+ },
30572
+ "defaultValue": null,
30573
+ "isDeprecated": false,
30574
+ "deprecationReason": null
30575
+ }
30576
+ ],
30577
+ "interfaces": null,
30578
+ "enumValues": null,
30579
+ "possibleTypes": null
30580
+ },
30542
30581
  {
30543
30582
  "kind": "INPUT_OBJECT",
30544
30583
  "name": "GetWidgetConfigurationInput",
@@ -61647,6 +61686,39 @@
61647
61686
  "isDeprecated": false,
61648
61687
  "deprecationReason": null
61649
61688
  },
61689
+ {
61690
+ "name": "getSubscription",
61691
+ "description": "Get subscription",
61692
+ "args": [
61693
+ {
61694
+ "name": "input",
61695
+ "description": null,
61696
+ "type": {
61697
+ "kind": "NON_NULL",
61698
+ "name": null,
61699
+ "ofType": {
61700
+ "kind": "INPUT_OBJECT",
61701
+ "name": "GetSubscriptionInput",
61702
+ "ofType": null
61703
+ }
61704
+ },
61705
+ "defaultValue": null,
61706
+ "isDeprecated": false,
61707
+ "deprecationReason": null
61708
+ }
61709
+ ],
61710
+ "type": {
61711
+ "kind": "NON_NULL",
61712
+ "name": null,
61713
+ "ofType": {
61714
+ "kind": "OBJECT",
61715
+ "name": "CustomerSubscription",
61716
+ "ofType": null
61717
+ }
61718
+ },
61719
+ "isDeprecated": false,
61720
+ "deprecationReason": null
61721
+ },
61650
61722
  {
61651
61723
  "name": "hook",
61652
61724
  "description": null,
data/lib/stigg/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stigg
4
- VERSION = "1.230.0"
4
+ VERSION = "1.231.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stigg-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.230.0
4
+ version: 1.231.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg