stigg-api-client 1.116.1 → 1.117.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +57 -39
- data/lib/stigg/client.rb +21 -1
- data/lib/stigg/generated/operations.rb +41 -41
- data/lib/stigg/generated/schema.json +83 -0
- data/lib/stigg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52dc7503cb38f64982c4ec19a0bc21b2b8f6f3a080d55c67865092629c9e4919
|
4
|
+
data.tar.gz: c438a274caad4058397ea5b49082f5076b281f6d57872f9d91abddf62146b0cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
28
|
-
|
36
|
+
graphql (2.3.0)
|
37
|
+
base64
|
38
|
+
graphql-client (0.21.0)
|
29
39
|
activesupport (>= 3.0)
|
30
|
-
graphql
|
31
|
-
i18n (1.
|
40
|
+
graphql (>= 1.13.0)
|
41
|
+
i18n (1.14.4)
|
32
42
|
concurrent-ruby (~> 1.0)
|
33
|
-
json (2.
|
34
|
-
|
35
|
-
|
36
|
-
|
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.
|
40
|
-
regexp_parser (2.
|
41
|
-
rexml (3.2.
|
42
|
-
rspec (3.
|
43
|
-
rspec-core (~> 3.
|
44
|
-
rspec-expectations (~> 3.
|
45
|
-
rspec-mocks (~> 3.
|
46
|
-
rspec-core (3.
|
47
|
-
rspec-support (~> 3.
|
48
|
-
rspec-expectations (3.
|
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.
|
51
|
-
rspec-mocks (3.
|
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.
|
54
|
-
rspec-support (3.
|
55
|
-
rubocop (1.
|
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.
|
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.
|
79
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
63
80
|
ruby-progressbar (~> 1.7)
|
64
|
-
unicode-display_width (>=
|
65
|
-
rubocop-ast (1.
|
66
|
-
parser (>= 3.
|
67
|
-
ruby-progressbar (1.
|
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.
|
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
|
-
|
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
|
}
|
@@ -601,6 +601,18 @@
|
|
601
601
|
"isDeprecated": false,
|
602
602
|
"deprecationReason": null
|
603
603
|
},
|
604
|
+
{
|
605
|
+
"name": "overageBillingPeriod",
|
606
|
+
"description": null,
|
607
|
+
"args": [],
|
608
|
+
"type": {
|
609
|
+
"kind": "ENUM",
|
610
|
+
"name": "OverageBillingPeriod",
|
611
|
+
"ofType": null
|
612
|
+
},
|
613
|
+
"isDeprecated": false,
|
614
|
+
"deprecationReason": null
|
615
|
+
},
|
604
616
|
{
|
605
617
|
"name": "overagePrices",
|
606
618
|
"description": null,
|
@@ -1679,6 +1691,18 @@
|
|
1679
1691
|
"isDeprecated": false,
|
1680
1692
|
"deprecationReason": null
|
1681
1693
|
},
|
1694
|
+
{
|
1695
|
+
"name": "overageBillingPeriod",
|
1696
|
+
"description": null,
|
1697
|
+
"args": [],
|
1698
|
+
"type": {
|
1699
|
+
"kind": "ENUM",
|
1700
|
+
"name": "OverageBillingPeriod",
|
1701
|
+
"ofType": null
|
1702
|
+
},
|
1703
|
+
"isDeprecated": false,
|
1704
|
+
"deprecationReason": null
|
1705
|
+
},
|
1682
1706
|
{
|
1683
1707
|
"name": "overagePrices",
|
1684
1708
|
"description": null,
|
@@ -39441,6 +39465,29 @@
|
|
39441
39465
|
"enumValues": null,
|
39442
39466
|
"possibleTypes": null
|
39443
39467
|
},
|
39468
|
+
{
|
39469
|
+
"kind": "ENUM",
|
39470
|
+
"name": "OverageBillingPeriod",
|
39471
|
+
"description": "Configures when the overage charge is billed.",
|
39472
|
+
"fields": null,
|
39473
|
+
"inputFields": null,
|
39474
|
+
"interfaces": null,
|
39475
|
+
"enumValues": [
|
39476
|
+
{
|
39477
|
+
"name": "MONTHLY",
|
39478
|
+
"description": null,
|
39479
|
+
"isDeprecated": false,
|
39480
|
+
"deprecationReason": null
|
39481
|
+
},
|
39482
|
+
{
|
39483
|
+
"name": "ON_SUBSCRIPTION_RENEWAL",
|
39484
|
+
"description": null,
|
39485
|
+
"isDeprecated": false,
|
39486
|
+
"deprecationReason": null
|
39487
|
+
}
|
39488
|
+
],
|
39489
|
+
"possibleTypes": null
|
39490
|
+
},
|
39444
39491
|
{
|
39445
39492
|
"kind": "OBJECT",
|
39446
39493
|
"name": "OverageCharged",
|
@@ -40233,6 +40280,18 @@
|
|
40233
40280
|
"isDeprecated": false,
|
40234
40281
|
"deprecationReason": null
|
40235
40282
|
},
|
40283
|
+
{
|
40284
|
+
"name": "overageBillingPeriod",
|
40285
|
+
"description": null,
|
40286
|
+
"args": [],
|
40287
|
+
"type": {
|
40288
|
+
"kind": "ENUM",
|
40289
|
+
"name": "OverageBillingPeriod",
|
40290
|
+
"ofType": null
|
40291
|
+
},
|
40292
|
+
"isDeprecated": false,
|
40293
|
+
"deprecationReason": null
|
40294
|
+
},
|
40236
40295
|
{
|
40237
40296
|
"name": "overagePrices",
|
40238
40297
|
"description": null,
|
@@ -44468,6 +44527,18 @@
|
|
44468
44527
|
"isDeprecated": false,
|
44469
44528
|
"deprecationReason": null
|
44470
44529
|
},
|
44530
|
+
{
|
44531
|
+
"name": "overageBillingPeriod",
|
44532
|
+
"description": null,
|
44533
|
+
"type": {
|
44534
|
+
"kind": "ENUM",
|
44535
|
+
"name": "OverageBillingPeriod",
|
44536
|
+
"ofType": null
|
44537
|
+
},
|
44538
|
+
"defaultValue": null,
|
44539
|
+
"isDeprecated": false,
|
44540
|
+
"deprecationReason": null
|
44541
|
+
},
|
44471
44542
|
{
|
44472
44543
|
"name": "overagePricingModels",
|
44473
44544
|
"description": null,
|
@@ -47133,6 +47204,18 @@
|
|
47133
47204
|
"isDeprecated": false,
|
47134
47205
|
"deprecationReason": null
|
47135
47206
|
},
|
47207
|
+
{
|
47208
|
+
"name": "overageBillingPeriod",
|
47209
|
+
"description": null,
|
47210
|
+
"args": [],
|
47211
|
+
"type": {
|
47212
|
+
"kind": "ENUM",
|
47213
|
+
"name": "OverageBillingPeriod",
|
47214
|
+
"ofType": null
|
47215
|
+
},
|
47216
|
+
"isDeprecated": false,
|
47217
|
+
"deprecationReason": null
|
47218
|
+
},
|
47136
47219
|
{
|
47137
47220
|
"name": "overagePrices",
|
47138
47221
|
"description": null,
|
data/lib/stigg/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphlient
|