stigg-api-client 1.117.0 → 1.119.0
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 +207 -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: 43e99a121290ec627398628cf39c22dbd7ab018f53c3726a37d30e6008b71084
|
4
|
+
data.tar.gz: f982c0a3d8a32cdeb169ad896162a6cffb6937286270a0e456e67150ff1e45f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dae08983cfb7baa8e95a7635fa54daeb38cb60d7b925fa89ed0610801448755cd0ec31d463c5790f0faf69b92f57362f49df1b8fd25f4c6cda876c27eeb7454
|
7
|
+
data.tar.gz: 131798d5a98f5b77c5337bb4c96202806fe7537f425ea36f8e03651bb0afe83ad4e2ab39445e460eb59a73edb248b434912255f6a36e7eea1d353cda909602c2
|
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.119.0)
|
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
|
}
|
@@ -3506,6 +3506,26 @@
|
|
3506
3506
|
"isDeprecated": false,
|
3507
3507
|
"deprecationReason": null
|
3508
3508
|
},
|
3509
|
+
{
|
3510
|
+
"name": "priceOverrides",
|
3511
|
+
"description": "Override the price of the subscription",
|
3512
|
+
"type": {
|
3513
|
+
"kind": "LIST",
|
3514
|
+
"name": null,
|
3515
|
+
"ofType": {
|
3516
|
+
"kind": "NON_NULL",
|
3517
|
+
"name": null,
|
3518
|
+
"ofType": {
|
3519
|
+
"kind": "INPUT_OBJECT",
|
3520
|
+
"name": "PriceOverrideInput",
|
3521
|
+
"ofType": null
|
3522
|
+
}
|
3523
|
+
}
|
3524
|
+
},
|
3525
|
+
"defaultValue": null,
|
3526
|
+
"isDeprecated": false,
|
3527
|
+
"deprecationReason": null
|
3528
|
+
},
|
3509
3529
|
{
|
3510
3530
|
"name": "promotionCode",
|
3511
3531
|
"description": null,
|
@@ -50179,6 +50199,22 @@
|
|
50179
50199
|
"isDeprecated": false,
|
50180
50200
|
"deprecationReason": null
|
50181
50201
|
},
|
50202
|
+
{
|
50203
|
+
"name": "isOverridePrice",
|
50204
|
+
"description": "Indication whether the subscription price is an override price",
|
50205
|
+
"args": [],
|
50206
|
+
"type": {
|
50207
|
+
"kind": "NON_NULL",
|
50208
|
+
"name": null,
|
50209
|
+
"ofType": {
|
50210
|
+
"kind": "SCALAR",
|
50211
|
+
"name": "Boolean",
|
50212
|
+
"ofType": null
|
50213
|
+
}
|
50214
|
+
},
|
50215
|
+
"isDeprecated": false,
|
50216
|
+
"deprecationReason": null
|
50217
|
+
},
|
50182
50218
|
{
|
50183
50219
|
"name": "maxUnitQuantity",
|
50184
50220
|
"description": null,
|
@@ -51519,6 +51555,77 @@
|
|
51519
51555
|
"enumValues": null,
|
51520
51556
|
"possibleTypes": null
|
51521
51557
|
},
|
51558
|
+
{
|
51559
|
+
"kind": "INPUT_OBJECT",
|
51560
|
+
"name": "PriceOverrideInput",
|
51561
|
+
"description": null,
|
51562
|
+
"fields": null,
|
51563
|
+
"inputFields": [
|
51564
|
+
{
|
51565
|
+
"name": "blockSize",
|
51566
|
+
"description": "The number of units per block. Defaults to 1 unit.",
|
51567
|
+
"type": {
|
51568
|
+
"kind": "SCALAR",
|
51569
|
+
"name": "Float",
|
51570
|
+
"ofType": null
|
51571
|
+
},
|
51572
|
+
"defaultValue": null,
|
51573
|
+
"isDeprecated": false,
|
51574
|
+
"deprecationReason": null
|
51575
|
+
},
|
51576
|
+
{
|
51577
|
+
"name": "featureId",
|
51578
|
+
"description": "The corresponding feature id of the price",
|
51579
|
+
"type": {
|
51580
|
+
"kind": "NON_NULL",
|
51581
|
+
"name": null,
|
51582
|
+
"ofType": {
|
51583
|
+
"kind": "SCALAR",
|
51584
|
+
"name": "String",
|
51585
|
+
"ofType": null
|
51586
|
+
}
|
51587
|
+
},
|
51588
|
+
"defaultValue": null,
|
51589
|
+
"isDeprecated": false,
|
51590
|
+
"deprecationReason": null
|
51591
|
+
},
|
51592
|
+
{
|
51593
|
+
"name": "price",
|
51594
|
+
"description": null,
|
51595
|
+
"type": {
|
51596
|
+
"kind": "INPUT_OBJECT",
|
51597
|
+
"name": "MoneyInputDTO",
|
51598
|
+
"ofType": null
|
51599
|
+
},
|
51600
|
+
"defaultValue": null,
|
51601
|
+
"isDeprecated": false,
|
51602
|
+
"deprecationReason": null
|
51603
|
+
},
|
51604
|
+
{
|
51605
|
+
"name": "tiers",
|
51606
|
+
"description": null,
|
51607
|
+
"type": {
|
51608
|
+
"kind": "LIST",
|
51609
|
+
"name": null,
|
51610
|
+
"ofType": {
|
51611
|
+
"kind": "NON_NULL",
|
51612
|
+
"name": null,
|
51613
|
+
"ofType": {
|
51614
|
+
"kind": "INPUT_OBJECT",
|
51615
|
+
"name": "PriceTierInput",
|
51616
|
+
"ofType": null
|
51617
|
+
}
|
51618
|
+
}
|
51619
|
+
},
|
51620
|
+
"defaultValue": null,
|
51621
|
+
"isDeprecated": false,
|
51622
|
+
"deprecationReason": null
|
51623
|
+
}
|
51624
|
+
],
|
51625
|
+
"interfaces": null,
|
51626
|
+
"enumValues": null,
|
51627
|
+
"possibleTypes": null
|
51628
|
+
},
|
51522
51629
|
{
|
51523
51630
|
"kind": "INPUT_OBJECT",
|
51524
51631
|
"name": "PricePeriodInput",
|
@@ -56344,6 +56451,26 @@
|
|
56344
56451
|
"isDeprecated": false,
|
56345
56452
|
"deprecationReason": null
|
56346
56453
|
},
|
56454
|
+
{
|
56455
|
+
"name": "priceOverrides",
|
56456
|
+
"description": "Override the price of the subscription",
|
56457
|
+
"type": {
|
56458
|
+
"kind": "LIST",
|
56459
|
+
"name": null,
|
56460
|
+
"ofType": {
|
56461
|
+
"kind": "NON_NULL",
|
56462
|
+
"name": null,
|
56463
|
+
"ofType": {
|
56464
|
+
"kind": "INPUT_OBJECT",
|
56465
|
+
"name": "PriceOverrideInput",
|
56466
|
+
"ofType": null
|
56467
|
+
}
|
56468
|
+
}
|
56469
|
+
},
|
56470
|
+
"defaultValue": null,
|
56471
|
+
"isDeprecated": false,
|
56472
|
+
"deprecationReason": null
|
56473
|
+
},
|
56347
56474
|
{
|
56348
56475
|
"name": "priceUnitAmount",
|
56349
56476
|
"description": null,
|
@@ -56682,6 +56809,26 @@
|
|
56682
56809
|
"isDeprecated": false,
|
56683
56810
|
"deprecationReason": null
|
56684
56811
|
},
|
56812
|
+
{
|
56813
|
+
"name": "priceOverrides",
|
56814
|
+
"description": "Override the price of the subscription",
|
56815
|
+
"type": {
|
56816
|
+
"kind": "LIST",
|
56817
|
+
"name": null,
|
56818
|
+
"ofType": {
|
56819
|
+
"kind": "NON_NULL",
|
56820
|
+
"name": null,
|
56821
|
+
"ofType": {
|
56822
|
+
"kind": "INPUT_OBJECT",
|
56823
|
+
"name": "PriceOverrideInput",
|
56824
|
+
"ofType": null
|
56825
|
+
}
|
56826
|
+
}
|
56827
|
+
},
|
56828
|
+
"defaultValue": null,
|
56829
|
+
"isDeprecated": false,
|
56830
|
+
"deprecationReason": null
|
56831
|
+
},
|
56685
56832
|
{
|
56686
56833
|
"name": "priceUnitAmount",
|
56687
56834
|
"description": null,
|
@@ -57001,6 +57148,26 @@
|
|
57001
57148
|
"isDeprecated": false,
|
57002
57149
|
"deprecationReason": null
|
57003
57150
|
},
|
57151
|
+
{
|
57152
|
+
"name": "priceOverrides",
|
57153
|
+
"description": "Override the price of the subscription",
|
57154
|
+
"type": {
|
57155
|
+
"kind": "LIST",
|
57156
|
+
"name": null,
|
57157
|
+
"ofType": {
|
57158
|
+
"kind": "NON_NULL",
|
57159
|
+
"name": null,
|
57160
|
+
"ofType": {
|
57161
|
+
"kind": "INPUT_OBJECT",
|
57162
|
+
"name": "PriceOverrideInput",
|
57163
|
+
"ofType": null
|
57164
|
+
}
|
57165
|
+
}
|
57166
|
+
},
|
57167
|
+
"defaultValue": null,
|
57168
|
+
"isDeprecated": false,
|
57169
|
+
"deprecationReason": null
|
57170
|
+
},
|
57004
57171
|
{
|
57005
57172
|
"name": "priceUnitAmount",
|
57006
57173
|
"description": null,
|
@@ -66783,6 +66950,26 @@
|
|
66783
66950
|
"isDeprecated": false,
|
66784
66951
|
"deprecationReason": null
|
66785
66952
|
},
|
66953
|
+
{
|
66954
|
+
"name": "priceOverrides",
|
66955
|
+
"description": "Override the price of the subscription",
|
66956
|
+
"type": {
|
66957
|
+
"kind": "LIST",
|
66958
|
+
"name": null,
|
66959
|
+
"ofType": {
|
66960
|
+
"kind": "NON_NULL",
|
66961
|
+
"name": null,
|
66962
|
+
"ofType": {
|
66963
|
+
"kind": "INPUT_OBJECT",
|
66964
|
+
"name": "PriceOverrideInput",
|
66965
|
+
"ofType": null
|
66966
|
+
}
|
66967
|
+
}
|
66968
|
+
},
|
66969
|
+
"defaultValue": null,
|
66970
|
+
"isDeprecated": false,
|
66971
|
+
"deprecationReason": null
|
66972
|
+
},
|
66786
66973
|
{
|
66787
66974
|
"name": "priceUnitAmount",
|
66788
66975
|
"description": null,
|
@@ -74322,6 +74509,26 @@
|
|
74322
74509
|
"isDeprecated": false,
|
74323
74510
|
"deprecationReason": null
|
74324
74511
|
},
|
74512
|
+
{
|
74513
|
+
"name": "priceOverrides",
|
74514
|
+
"description": "Override the price of the subscription",
|
74515
|
+
"type": {
|
74516
|
+
"kind": "LIST",
|
74517
|
+
"name": null,
|
74518
|
+
"ofType": {
|
74519
|
+
"kind": "NON_NULL",
|
74520
|
+
"name": null,
|
74521
|
+
"ofType": {
|
74522
|
+
"kind": "INPUT_OBJECT",
|
74523
|
+
"name": "PriceOverrideInput",
|
74524
|
+
"ofType": null
|
74525
|
+
}
|
74526
|
+
}
|
74527
|
+
},
|
74528
|
+
"defaultValue": null,
|
74529
|
+
"isDeprecated": false,
|
74530
|
+
"deprecationReason": null
|
74531
|
+
},
|
74325
74532
|
{
|
74326
74533
|
"name": "promotionCode",
|
74327
74534
|
"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.119.0
|
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
|