stigg-api-client 1.117.0 → 1.117.2

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: cd0a0ad600b5dc4bdd7f87e7f827a75dfa8518ffc8fc2a0f4293711b27724701
4
- data.tar.gz: 76e1bfee6b7385161356b6632abd104a9b9bb3f367ee0a6173f7b0856ac0b3c1
3
+ metadata.gz: 52dc7503cb38f64982c4ec19a0bc21b2b8f6f3a080d55c67865092629c9e4919
4
+ data.tar.gz: c438a274caad4058397ea5b49082f5076b281f6d57872f9d91abddf62146b0cf
5
5
  SHA512:
6
- metadata.gz: a4225677a1408036c2a41227299ecaffc2c7c6cc8602991ada996a1dbbdbad067fad8ec5c950c99ca1da5f913a9a58505f4513bba7bc93926aff974f7879c451
7
- data.tar.gz: 91c4caa68d641d645011fa7c40e3b016f0dbf4a948e8dd24c0e214bb0c128b5a86329d32e6fe21c4d3d4553e02f8407ac10722b75d15a99165fd2698a7488204
6
+ metadata.gz: e86e509c41fcbeca74d776d2385fe8c27364bcc836de6c04e7cace193e58a5b8317f6d917078424269f4b3b92389b8c6a678c141964dcf23e14d22817eb1b65d
7
+ data.tar.gz: d79ba0092e61e337149c6fb659f42fa9dbf82788402759129b8f2e9278c5714169656a65723066a867209935aab6a066ca915b70bce5c80f844480c5bdae2b60
data/Gemfile.lock CHANGED
@@ -1,77 +1,95 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stigg-api-client (1.117.0)
4
+ stigg-api-client (1.117.2)
5
5
  graphlient (~> 0.7.0)
6
6
  graphql-client (~> 0.19)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.0.4.3)
11
+ activesupport (7.1.3.2)
12
+ base64
13
+ bigdecimal
12
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
15
+ connection_pool (>= 2.2.5)
16
+ drb
13
17
  i18n (>= 1.6, < 2)
14
18
  minitest (>= 5.1)
19
+ mutex_m
15
20
  tzinfo (~> 2.0)
16
21
  ast (2.4.2)
22
+ base64 (0.2.0)
23
+ bigdecimal (3.1.7)
17
24
  bump (0.10.0)
18
- concurrent-ruby (1.2.2)
19
- diff-lcs (1.5.0)
20
- faraday (2.7.4)
21
- faraday-net_http (>= 2.0, < 3.1)
22
- ruby2_keywords (>= 0.0.4)
23
- faraday-net_http (3.0.2)
25
+ concurrent-ruby (1.2.3)
26
+ connection_pool (2.4.1)
27
+ diff-lcs (1.5.1)
28
+ drb (2.2.1)
29
+ faraday (2.9.0)
30
+ faraday-net_http (>= 2.0, < 3.2)
31
+ faraday-net_http (3.1.0)
32
+ net-http
24
33
  graphlient (0.7.0)
25
34
  faraday (~> 2.0)
26
35
  graphql-client
27
- graphql (2.0.20)
28
- graphql-client (0.19.0)
36
+ graphql (2.3.0)
37
+ base64
38
+ graphql-client (0.21.0)
29
39
  activesupport (>= 3.0)
30
- graphql
31
- i18n (1.12.0)
40
+ graphql (>= 1.13.0)
41
+ i18n (1.14.4)
32
42
  concurrent-ruby (~> 1.0)
33
- json (2.6.2)
34
- minitest (5.18.0)
35
- parallel (1.22.1)
36
- parser (3.1.2.1)
43
+ json (2.7.2)
44
+ language_server-protocol (3.17.0.3)
45
+ minitest (5.22.3)
46
+ mutex_m (0.2.0)
47
+ net-http (0.4.1)
48
+ uri
49
+ parallel (1.24.0)
50
+ parser (3.3.0.5)
37
51
  ast (~> 2.4.1)
52
+ racc
53
+ racc (1.7.3)
38
54
  rainbow (3.1.1)
39
- rake (13.0.6)
40
- regexp_parser (2.6.0)
41
- rexml (3.2.5)
42
- rspec (3.12.0)
43
- rspec-core (~> 3.12.0)
44
- rspec-expectations (~> 3.12.0)
45
- rspec-mocks (~> 3.12.0)
46
- rspec-core (3.12.0)
47
- rspec-support (~> 3.12.0)
48
- rspec-expectations (3.12.0)
55
+ rake (13.2.1)
56
+ regexp_parser (2.9.0)
57
+ rexml (3.2.6)
58
+ rspec (3.13.0)
59
+ rspec-core (~> 3.13.0)
60
+ rspec-expectations (~> 3.13.0)
61
+ rspec-mocks (~> 3.13.0)
62
+ rspec-core (3.13.0)
63
+ rspec-support (~> 3.13.0)
64
+ rspec-expectations (3.13.0)
49
65
  diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.12.0)
51
- rspec-mocks (3.12.0)
66
+ rspec-support (~> 3.13.0)
67
+ rspec-mocks (3.13.0)
52
68
  diff-lcs (>= 1.2.0, < 2.0)
53
- rspec-support (~> 3.12.0)
54
- rspec-support (3.12.0)
55
- rubocop (1.38.0)
69
+ rspec-support (~> 3.13.0)
70
+ rspec-support (3.13.1)
71
+ rubocop (1.63.0)
56
72
  json (~> 2.3)
73
+ language_server-protocol (>= 3.17.0)
57
74
  parallel (~> 1.10)
58
- parser (>= 3.1.2.1)
75
+ parser (>= 3.3.0.2)
59
76
  rainbow (>= 2.2.2, < 4.0)
60
77
  regexp_parser (>= 1.8, < 3.0)
61
78
  rexml (>= 3.2.5, < 4.0)
62
- rubocop-ast (>= 1.23.0, < 2.0)
79
+ rubocop-ast (>= 1.31.1, < 2.0)
63
80
  ruby-progressbar (~> 1.7)
64
- unicode-display_width (>= 1.4.0, < 3.0)
65
- rubocop-ast (1.23.0)
66
- parser (>= 3.1.1.0)
67
- ruby-progressbar (1.11.0)
68
- ruby2_keywords (0.0.5)
81
+ unicode-display_width (>= 2.4.0, < 3.0)
82
+ rubocop-ast (1.31.2)
83
+ parser (>= 3.3.0.4)
84
+ ruby-progressbar (1.13.0)
69
85
  tzinfo (2.0.6)
70
86
  concurrent-ruby (~> 1.0)
71
- unicode-display_width (2.3.0)
87
+ unicode-display_width (2.5.0)
88
+ uri (0.13.0)
72
89
 
73
90
  PLATFORMS
74
91
  arm64-darwin-22
92
+ arm64-darwin-23
75
93
  x86_64-darwin-21
76
94
  x86_64-linux
77
95
 
data/lib/stigg/client.rb CHANGED
@@ -4,13 +4,32 @@ require_relative "version"
4
4
  require "graphlient"
5
5
 
6
6
  module Stigg
7
+ OperationsNames = Hash.new
8
+ class StiggHTTPAdapter < Graphlient::Adapters::HTTP::FaradayAdapter
9
+ def execute(document:, operation_name:, variables:, context:)
10
+ headers = context[:headers] || {}
11
+ headers.merge!({'x-graphql-operations-name': Stigg::OperationsNames[operation_name]})
12
+ context[:headers] = headers
13
+
14
+ super
15
+ end
16
+ end
17
+
7
18
  class Client
8
19
  def initialize(client)
9
20
  @client = client
10
21
  end
11
22
 
12
23
  def request(query, variables = nil)
13
- @client.query(query, variables)
24
+ operation_name_regex = /^(?:mutation|query) (.*)\(/
25
+ operation_name, = query.match(operation_name_regex).captures
26
+
27
+ query = query.sub(operation_name, "")
28
+ query_obj = @client.parse(query)
29
+
30
+ Stigg::OperationsNames[query_obj.operation_name] = operation_name
31
+
32
+ @client.query(query_obj, variables)
14
33
  end
15
34
  end
16
35
 
@@ -23,6 +42,7 @@ module Stigg
23
42
 
24
43
  client = Graphlient::Client.new(
25
44
  api_url,
45
+ http: StiggHTTPAdapter,
26
46
  headers: {
27
47
  "X-API-KEY": api_key
28
48
  },
@@ -1392,7 +1392,7 @@ module Stigg
1392
1392
 
1393
1393
  module Mutation
1394
1394
  ProvisionCustomer = <<~GRAPHQL
1395
- mutation ($input: ProvisionCustomerInput!) {
1395
+ mutation ProvisionCustomer($input: ProvisionCustomerInput!) {
1396
1396
  provisionCustomer(input: $input) {
1397
1397
  ...ProvisionCustomerFragment
1398
1398
  }
@@ -1411,13 +1411,13 @@ module Stigg
1411
1411
  GRAPHQL
1412
1412
 
1413
1413
  ImportCustomerBulk = <<~GRAPHQL
1414
- mutation ($input: ImportCustomerBulk!) {
1414
+ mutation ImportCustomerBulk($input: ImportCustomerBulk!) {
1415
1415
  importCustomersBulk(input: $input)
1416
1416
  }
1417
1417
  GRAPHQL
1418
1418
 
1419
1419
  ImportCustomer = <<~GRAPHQL
1420
- mutation ($input: ImportCustomerInput!) {
1420
+ mutation ImportCustomer($input: ImportCustomerInput!) {
1421
1421
  importCustomer: importOneCustomer(input: $input) {
1422
1422
  ...SlimCustomerFragment
1423
1423
  }
@@ -1426,7 +1426,7 @@ module Stigg
1426
1426
  GRAPHQL
1427
1427
 
1428
1428
  UpdateCustomer = <<~GRAPHQL
1429
- mutation ($input: UpdateCustomerInput!) {
1429
+ mutation UpdateCustomer($input: UpdateCustomerInput!) {
1430
1430
  updateCustomer: updateOneCustomer(input: $input) {
1431
1431
  ...SlimCustomerFragment
1432
1432
  }
@@ -1435,7 +1435,7 @@ module Stigg
1435
1435
  GRAPHQL
1436
1436
 
1437
1437
  DetachCustomerPaymentMethod = <<~GRAPHQL
1438
- mutation ($input: DetachCustomerPaymentMethodInput!) {
1438
+ mutation DetachCustomerPaymentMethod($input: DetachCustomerPaymentMethodInput!) {
1439
1439
  detachCustomerPaymentMethod(input: $input) {
1440
1440
  ...SlimCustomerFragment
1441
1441
  }
@@ -1444,7 +1444,7 @@ module Stigg
1444
1444
  GRAPHQL
1445
1445
 
1446
1446
  GrantPromotionalEntitlements = <<~GRAPHQL
1447
- mutation (
1447
+ mutation GrantPromotionalEntitlements(
1448
1448
  $input: GrantPromotionalEntitlementsInput!
1449
1449
  ) {
1450
1450
  grantPromotionalEntitlements(input: $input) {
@@ -1455,7 +1455,7 @@ module Stigg
1455
1455
  GRAPHQL
1456
1456
 
1457
1457
  RevokePromotionalEntitlement = <<~GRAPHQL
1458
- mutation (
1458
+ mutation RevokePromotionalEntitlement(
1459
1459
  $input: RevokePromotionalEntitlementInput!
1460
1460
  ) {
1461
1461
  revokePromotionalEntitlement(input: $input) {
@@ -1465,7 +1465,7 @@ module Stigg
1465
1465
  GRAPHQL
1466
1466
 
1467
1467
  ProvisionSubscription = <<~GRAPHQL
1468
- mutation ($input: ProvisionSubscriptionInput!) {
1468
+ mutation ProvisionSubscription($input: ProvisionSubscriptionInput!) {
1469
1469
  provisionSubscription: provisionSubscriptionV2(input: $input) {
1470
1470
  ...ProvisionSubscriptionFragment
1471
1471
  }
@@ -1483,7 +1483,7 @@ module Stigg
1483
1483
  GRAPHQL
1484
1484
 
1485
1485
  ApplySubscription = <<~GRAPHQL
1486
- mutation ($input: ApplySubscriptionInput!) {
1486
+ mutation ApplySubscription($input: ApplySubscriptionInput!) {
1487
1487
  applySubscription(input: $input) {
1488
1488
  ...ApplySubscriptionFragment
1489
1489
  }
@@ -1511,13 +1511,13 @@ module Stigg
1511
1511
  GRAPHQL
1512
1512
 
1513
1513
  ImportSubscriptionsBulk = <<~GRAPHQL
1514
- mutation ($input: ImportSubscriptionsBulk!) {
1514
+ mutation ImportSubscriptionsBulk($input: ImportSubscriptionsBulk!) {
1515
1515
  importSubscriptionsBulk(input: $input)
1516
1516
  }
1517
1517
  GRAPHQL
1518
1518
 
1519
1519
  UpdateSubscription = <<~GRAPHQL
1520
- mutation ($input: UpdateSubscriptionInput!) {
1520
+ mutation UpdateSubscription($input: UpdateSubscriptionInput!) {
1521
1521
  updateSubscription: updateOneSubscription(input: $input) {
1522
1522
  ...SlimSubscriptionFragment
1523
1523
  }
@@ -1531,7 +1531,7 @@ module Stigg
1531
1531
  GRAPHQL
1532
1532
 
1533
1533
  CancelSubscription = <<~GRAPHQL
1534
- mutation ($input: SubscriptionCancellationInput!) {
1534
+ mutation CancelSubscription($input: SubscriptionCancellationInput!) {
1535
1535
  cancelSubscription(input: $input) {
1536
1536
  ...SlimSubscriptionFragment
1537
1537
  }
@@ -1545,7 +1545,7 @@ module Stigg
1545
1545
  GRAPHQL
1546
1546
 
1547
1547
  EstimateSubscription = <<~GRAPHQL
1548
- mutation ($input: EstimateSubscriptionInput!) {
1548
+ mutation EstimateSubscription($input: EstimateSubscriptionInput!) {
1549
1549
  estimateSubscription(input: $input) {
1550
1550
  ...SubscriptionPreviewFragment
1551
1551
  }
@@ -1554,7 +1554,7 @@ module Stigg
1554
1554
  GRAPHQL
1555
1555
 
1556
1556
  EstimateSubscriptionUpdate = <<~GRAPHQL
1557
- mutation ($input: EstimateSubscriptionUpdateInput!) {
1557
+ mutation EstimateSubscriptionUpdate($input: EstimateSubscriptionUpdateInput!) {
1558
1558
  estimateSubscriptionUpdate(input: $input) {
1559
1559
  ...SubscriptionPreviewFragment
1560
1560
  }
@@ -1563,7 +1563,7 @@ module Stigg
1563
1563
  GRAPHQL
1564
1564
 
1565
1565
  PreviewSubscription = <<~GRAPHQL
1566
- mutation ($input: PreviewSubscriptionInput!) {
1566
+ mutation PreviewSubscription($input: PreviewSubscriptionInput!) {
1567
1567
  previewSubscription(input: $input) {
1568
1568
  ...SubscriptionPreviewV2Fragment
1569
1569
  }
@@ -1574,7 +1574,7 @@ module Stigg
1574
1574
  GRAPHQL
1575
1575
 
1576
1576
  CancelSubscriptionUpdates = <<~GRAPHQL
1577
- mutation (
1577
+ mutation CancelSubscriptionUpdates(
1578
1578
  $input: SubscriptionUpdateScheduleCancellationInput!
1579
1579
  ) {
1580
1580
  cancelSchedule(input: $input)
@@ -1582,7 +1582,7 @@ module Stigg
1582
1582
  GRAPHQL
1583
1583
 
1584
1584
  ReportUsage = <<~GRAPHQL
1585
- mutation ($input: ReportUsageInput!) {
1585
+ mutation ReportUsage($input: ReportUsageInput!) {
1586
1586
  reportUsage(input: $input) {
1587
1587
  ...ReportUsageFragment
1588
1588
  }
@@ -1591,7 +1591,7 @@ module Stigg
1591
1591
  GRAPHQL
1592
1592
 
1593
1593
  ReportUsageBulk = <<~GRAPHQL
1594
- mutation ($input: ReportUsageBulkInput!) {
1594
+ mutation ReportUsageBulk($input: ReportUsageBulkInput!) {
1595
1595
  reportUsageBulk(input: $input) {
1596
1596
  ...ReportUsageFragment
1597
1597
  }
@@ -1600,13 +1600,13 @@ module Stigg
1600
1600
  GRAPHQL
1601
1601
 
1602
1602
  ReportEvent = <<~GRAPHQL
1603
- mutation ($input: UsageEventsReportInput!) {
1603
+ mutation ReportEvent($input: UsageEventsReportInput!) {
1604
1604
  reportEvent(events: $input)
1605
1605
  }
1606
1606
  GRAPHQL
1607
1607
 
1608
1608
  ReportEntitlementCheckRequested = <<~GRAPHQL
1609
- mutation (
1609
+ mutation ReportEntitlementCheckRequested(
1610
1610
  $entitlementCheckRequested: EntitlementCheckRequested!
1611
1611
  ) {
1612
1612
  reportEntitlementCheckRequested(
@@ -1616,7 +1616,7 @@ module Stigg
1616
1616
  GRAPHQL
1617
1617
 
1618
1618
  CreateSubscription = <<~GRAPHQL
1619
- mutation ($input: SubscriptionInput!) {
1619
+ mutation CreateSubscription($input: SubscriptionInput!) {
1620
1620
  createSubscription(subscription: $input) {
1621
1621
  ...SlimSubscriptionFragment
1622
1622
  }
@@ -1630,7 +1630,7 @@ module Stigg
1630
1630
  GRAPHQL
1631
1631
 
1632
1632
  MigrateSubscriptionToLatest = <<~GRAPHQL
1633
- mutation ($input: SubscriptionMigrationInput!) {
1633
+ mutation MigrateSubscriptionToLatest($input: SubscriptionMigrationInput!) {
1634
1634
  migrateSubscriptionToLatest(input: $input) {
1635
1635
  subscriptionId
1636
1636
  }
@@ -1638,7 +1638,7 @@ module Stigg
1638
1638
  GRAPHQL
1639
1639
 
1640
1640
  ArchiveCustomer = <<~GRAPHQL
1641
- mutation ($input: ArchiveCustomerInput!) {
1641
+ mutation ArchiveCustomer($input: ArchiveCustomerInput!) {
1642
1642
  archiveCustomer(input: $input) {
1643
1643
  customerId
1644
1644
  }
@@ -1646,7 +1646,7 @@ module Stigg
1646
1646
  GRAPHQL
1647
1647
 
1648
1648
  UnarchiveCustomer = <<~GRAPHQL
1649
- mutation ($input: UnarchiveCustomerInput!) {
1649
+ mutation UnarchiveCustomer($input: UnarchiveCustomerInput!) {
1650
1650
  unarchiveCustomer(input: $input) {
1651
1651
  ...SlimCustomerFragment
1652
1652
  }
@@ -1655,7 +1655,7 @@ module Stigg
1655
1655
  GRAPHQL
1656
1656
 
1657
1657
  TransferSubscription = <<~GRAPHQL
1658
- mutation ($input: TransferSubscriptionInput!) {
1658
+ mutation TransferSubscription($input: TransferSubscriptionInput!) {
1659
1659
  transferSubscription(input: $input) {
1660
1660
  ...SlimSubscriptionFragment
1661
1661
  }
@@ -1671,7 +1671,7 @@ module Stigg
1671
1671
 
1672
1672
  module Query
1673
1673
  GetCustomerById = <<~GRAPHQL
1674
- query ($input: GetCustomerByRefIdInput!) {
1674
+ query GetCustomerById($input: GetCustomerByRefIdInput!) {
1675
1675
  getCustomerByRefId(input: $input) {
1676
1676
  ...CustomerWithSubscriptionsFragment
1677
1677
  }
@@ -1700,7 +1700,7 @@ module Stigg
1700
1700
  GRAPHQL
1701
1701
 
1702
1702
  GetCustomerStatistics = <<~GRAPHQL
1703
- query ($input: GetCustomerByRefIdInput!) {
1703
+ query GetCustomerStatistics($input: GetCustomerByRefIdInput!) {
1704
1704
  getCustomerByRefId(input: $input) {
1705
1705
  ...CustomerStatisticsFragment,
1706
1706
  }
@@ -1709,7 +1709,7 @@ module Stigg
1709
1709
  GRAPHQL
1710
1710
 
1711
1711
  GetActiveSubscriptions = <<~GRAPHQL
1712
- query ($input: GetActiveSubscriptionsInput!) {
1712
+ query GetActiveSubscriptions($input: GetActiveSubscriptionsInput!) {
1713
1713
  getActiveSubscriptions(input: $input) {
1714
1714
  ...SubscriptionFragment
1715
1715
  }
@@ -1733,7 +1733,7 @@ module Stigg
1733
1733
  GRAPHQL
1734
1734
 
1735
1735
  GetCoupons = <<~GRAPHQL
1736
- query {
1736
+ query GetCoupons {
1737
1737
  coupons(filter: { status: { eq: ACTIVE } }, paging: { first: 50 }) {
1738
1738
  edges {
1739
1739
  node {
@@ -1746,7 +1746,7 @@ module Stigg
1746
1746
  GRAPHQL
1747
1747
 
1748
1748
  GetPaywall = <<~GRAPHQL
1749
- query ($input: GetPaywallInput!) {
1749
+ query GetPaywall($input: GetPaywallInput!) {
1750
1750
  paywall(input: $input) {
1751
1751
  ...PaywallFragment
1752
1752
  }
@@ -1781,7 +1781,7 @@ module Stigg
1781
1781
  GRAPHQL
1782
1782
 
1783
1783
  GetEntitlements = <<~GRAPHQL
1784
- query ($query: FetchEntitlementsQuery!) {
1784
+ query GetEntitlements($query: FetchEntitlementsQuery!) {
1785
1785
  entitlements: cachedEntitlements(query: $query) {
1786
1786
  ...EntitlementFragment
1787
1787
  }
@@ -1792,7 +1792,7 @@ module Stigg
1792
1792
  GRAPHQL
1793
1793
 
1794
1794
  GetEntitlement = <<~GRAPHQL
1795
- query ($query: FetchEntitlementQuery!) {
1795
+ query GetEntitlement($query: FetchEntitlementQuery!) {
1796
1796
  entitlement(query: $query) {
1797
1797
  ...EntitlementFragment
1798
1798
  }
@@ -1803,7 +1803,7 @@ module Stigg
1803
1803
  GRAPHQL
1804
1804
 
1805
1805
  GetProducts = <<~GRAPHQL
1806
- query {
1806
+ query GetProducts {
1807
1807
  products(paging: { first: 50 }) {
1808
1808
  edges {
1809
1809
  node {
@@ -1816,7 +1816,7 @@ module Stigg
1816
1816
  GRAPHQL
1817
1817
 
1818
1818
  GetSdkConfiguration = <<~GRAPHQL
1819
- query {
1819
+ query GetSdkConfiguration {
1820
1820
  sdkConfiguration {
1821
1821
  sentryDsn
1822
1822
  isWidgetWatermarkEnabled
@@ -1825,7 +1825,7 @@ module Stigg
1825
1825
  GRAPHQL
1826
1826
 
1827
1827
  GetCustomerPortalByRefId = <<~GRAPHQL
1828
- query ($input: CustomerPortalInput!) {
1828
+ query GetCustomerPortalByRefId($input: CustomerPortalInput!) {
1829
1829
  customerPortal(input: $input) {
1830
1830
  ...CustomerPortalFragment
1831
1831
  }
@@ -1848,7 +1848,7 @@ module Stigg
1848
1848
  GRAPHQL
1849
1849
 
1850
1850
  GetCheckoutState = <<~GRAPHQL
1851
- query ($input: CheckoutStateInput!) {
1851
+ query GetCheckoutState($input: CheckoutStateInput!) {
1852
1852
  checkoutState(input: $input) {
1853
1853
  ...CheckoutStateFragment
1854
1854
  }
@@ -1880,7 +1880,7 @@ module Stigg
1880
1880
  GRAPHQL
1881
1881
 
1882
1882
  GetMockPaywall = <<~GRAPHQL
1883
- query ($input: GetPaywallInput!) {
1883
+ query GetMockPaywall($input: GetPaywallInput!) {
1884
1884
  mockPaywall(input: $input) {
1885
1885
  plans {
1886
1886
  ...MockPaywallPlanFragment
@@ -1904,7 +1904,7 @@ module Stigg
1904
1904
  GRAPHQL
1905
1905
 
1906
1906
  GetUsageHistory = <<~GRAPHQL
1907
- query ($usageHistoryInput: UsageHistoryInput!) {
1907
+ query GetUsageHistory($usageHistoryInput: UsageHistoryInput!) {
1908
1908
  usageHistory(usageHistoryInput: $usageHistoryInput) {
1909
1909
  ...UsageHistoryFragment
1910
1910
  }
@@ -1913,7 +1913,7 @@ module Stigg
1913
1913
  GRAPHQL
1914
1914
 
1915
1915
  OnEntitlementsUpdated = <<~GRAPHQL
1916
- subscription {
1916
+ subscription OnEntitlementsUpdated {
1917
1917
  entitlementsUpdated {
1918
1918
  ...EntitlementsUpdatedPayload
1919
1919
  }
@@ -1925,7 +1925,7 @@ module Stigg
1925
1925
  GRAPHQL
1926
1926
 
1927
1927
  OnUsageUpdated = <<~GRAPHQL
1928
- subscription {
1928
+ subscription OnUsageUpdated {
1929
1929
  usageUpdated {
1930
1930
  ...EntitlementUsageUpdated
1931
1931
  }
@@ -1938,7 +1938,7 @@ module Stigg
1938
1938
  GRAPHQL
1939
1939
 
1940
1940
  OnPackagePublished = <<~GRAPHQL
1941
- subscription {
1941
+ subscription OnPackagePublished {
1942
1942
  packagePublished {
1943
1943
  ...PackagePublishedPayload
1944
1944
  }
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.117.0"
4
+ VERSION = "1.117.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stigg-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.117.0
4
+ version: 1.117.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-09 00:00:00.000000000 Z
11
+ date: 2024-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphlient