stigg-api-client 6.16.0 → 6.17.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5150263afa511b89986cd049f154c31a9dc1b734399cf32d7b65c2335c778e1
4
- data.tar.gz: 820459a6c3e4ce64fc6c3abe630c7ee64d9dcdd07d52debc74cb3fded4fb53ee
3
+ metadata.gz: f3194888c1e843b53acef4e3c0e420d5cf51c077f6a0eadf0bd90eb76b4b5d6e
4
+ data.tar.gz: 020e1b49a77f6768fe4a793d97eaeeaba9b40244c218ad00423d21acc6a853b6
5
5
  SHA512:
6
- metadata.gz: 23777f988c5c43228a0bc5efe6290e34e906e1a5d28d2601e67607296dc61f98e8b0152c3f35b4cc1efa2037fedb1108058418582d6810fee85432d2df336724
7
- data.tar.gz: 15119298caf771304b37dbf67ac5724f49e53e0e2651df8a691cfc80289704bd0a0d73c1dd48d3d820bca5b8ebd06dd212cb454d46ad659c7eea8f8fece51e25
6
+ metadata.gz: ed08d5687d33ce5ca78c3774cbb247bc4ba208696b4cee994b2411820377698bbfba73ffde40959b6f3b81513d5197778a3766a5a7d0cf252d5dfb5dbe358c04
7
+ data.tar.gz: 0a80725f2e398024d205250a86098397a978d44ae2cbb7eed184ddcb918245b8e8e8dd4d23f87435bb463d6e6e9a92e41934cb0b20377ad7c6067dc811faabc0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stigg-api-client (6.16.0)
4
+ stigg-api-client (6.17.0)
5
5
  graphlient (>= 0.6.0, < 1.0)
6
6
  graphql-client (>= 0.19, < 1.0)
7
7
 
@@ -2198,6 +2198,24 @@ module Stigg
2198
2198
  }
2199
2199
  }
2200
2200
  GRAPHQL
2201
+
2202
+ CreditCostEstimationFragment = <<~GRAPHQL
2203
+ fragment CreditCostEstimationFragment on CreditCostEstimation {
2204
+ estimates {
2205
+ currencyId
2206
+ estimatedCost
2207
+ currentBalance
2208
+ balanceAfterEstimate
2209
+ wouldOverdraft
2210
+ breakdown {
2211
+ featureId
2212
+ cost
2213
+ warningCode
2214
+ }
2215
+ }
2216
+ warnings
2217
+ }
2218
+ GRAPHQL
2201
2219
  end
2202
2220
 
2203
2221
  module Mutation
@@ -3072,6 +3090,24 @@ module Stigg
3072
3090
  #{Fragment::AutoRechargeSettingsFragment}
3073
3091
  GRAPHQL
3074
3092
 
3093
+ EstimateEventCost = <<~GRAPHQL
3094
+ query EstimateEventCost($input: EstimateEventCostInput!) {
3095
+ estimateEventCost(input: $input) {
3096
+ ...CreditCostEstimationFragment
3097
+ }
3098
+ }
3099
+ #{Fragment::CreditCostEstimationFragment}
3100
+ GRAPHQL
3101
+
3102
+ EstimateUsageCost = <<~GRAPHQL
3103
+ query EstimateUsageCost($input: EstimateUsageCostInput!) {
3104
+ estimateUsageCost(input: $input) {
3105
+ ...CreditCostEstimationFragment
3106
+ }
3107
+ }
3108
+ #{Fragment::CreditCostEstimationFragment}
3109
+ GRAPHQL
3110
+
3075
3111
  OnEntitlementsUpdated = <<~GRAPHQL
3076
3112
  subscription OnEntitlementsUpdated {
3077
3113
  entitlementsUpdated {
@@ -91226,6 +91226,72 @@
91226
91226
  },
91227
91227
  "isDeprecated": false,
91228
91228
  "deprecationReason": null
91229
+ },
91230
+ {
91231
+ "name": "estimateEventCost",
91232
+ "description": "Estimate the credit cost of a usage event without reporting it",
91233
+ "args": [
91234
+ {
91235
+ "name": "input",
91236
+ "description": "Input for estimating the credit cost of a usage event without reporting it",
91237
+ "type": {
91238
+ "kind": "NON_NULL",
91239
+ "name": null,
91240
+ "ofType": {
91241
+ "kind": "INPUT_OBJECT",
91242
+ "name": "EstimateEventCostInput",
91243
+ "ofType": null
91244
+ }
91245
+ },
91246
+ "defaultValue": null,
91247
+ "isDeprecated": false,
91248
+ "deprecationReason": null
91249
+ }
91250
+ ],
91251
+ "type": {
91252
+ "kind": "NON_NULL",
91253
+ "name": null,
91254
+ "ofType": {
91255
+ "kind": "OBJECT",
91256
+ "name": "CreditCostEstimation",
91257
+ "ofType": null
91258
+ }
91259
+ },
91260
+ "isDeprecated": false,
91261
+ "deprecationReason": null
91262
+ },
91263
+ {
91264
+ "name": "estimateUsageCost",
91265
+ "description": "Estimate the credit cost of a usage report without submitting it",
91266
+ "args": [
91267
+ {
91268
+ "name": "input",
91269
+ "description": "Input for estimating the credit cost of a usage report without submitting it",
91270
+ "type": {
91271
+ "kind": "NON_NULL",
91272
+ "name": null,
91273
+ "ofType": {
91274
+ "kind": "INPUT_OBJECT",
91275
+ "name": "EstimateUsageCostInput",
91276
+ "ofType": null
91277
+ }
91278
+ },
91279
+ "defaultValue": null,
91280
+ "isDeprecated": false,
91281
+ "deprecationReason": null
91282
+ }
91283
+ ],
91284
+ "type": {
91285
+ "kind": "NON_NULL",
91286
+ "name": null,
91287
+ "ofType": {
91288
+ "kind": "OBJECT",
91289
+ "name": "CreditCostEstimation",
91290
+ "ofType": null
91291
+ }
91292
+ },
91293
+ "isDeprecated": false,
91294
+ "deprecationReason": null
91229
91295
  }
91230
91296
  ],
91231
91297
  "inputFields": null,
@@ -119516,6 +119582,450 @@
119516
119582
  "interfaces": [],
119517
119583
  "enumValues": null,
119518
119584
  "possibleTypes": null
119585
+ },
119586
+ {
119587
+ "kind": "OBJECT",
119588
+ "name": "CreditCostEstimation",
119589
+ "description": null,
119590
+ "specifiedByUrl": null,
119591
+ "fields": [
119592
+ {
119593
+ "name": "estimates",
119594
+ "description": "Per-currency cost estimates",
119595
+ "args": [],
119596
+ "type": {
119597
+ "kind": "NON_NULL",
119598
+ "name": null,
119599
+ "ofType": {
119600
+ "kind": "LIST",
119601
+ "name": null,
119602
+ "ofType": {
119603
+ "kind": "NON_NULL",
119604
+ "name": null,
119605
+ "ofType": {
119606
+ "kind": "OBJECT",
119607
+ "name": "CurrencyEstimate",
119608
+ "ofType": null
119609
+ }
119610
+ }
119611
+ }
119612
+ },
119613
+ "isDeprecated": false,
119614
+ "deprecationReason": null
119615
+ },
119616
+ {
119617
+ "name": "warnings",
119618
+ "description": "Request-level warnings about the estimation context",
119619
+ "args": [],
119620
+ "type": {
119621
+ "kind": "NON_NULL",
119622
+ "name": null,
119623
+ "ofType": {
119624
+ "kind": "LIST",
119625
+ "name": null,
119626
+ "ofType": {
119627
+ "kind": "NON_NULL",
119628
+ "name": null,
119629
+ "ofType": {
119630
+ "kind": "ENUM",
119631
+ "name": "EstimationRequestWarning",
119632
+ "ofType": null
119633
+ }
119634
+ }
119635
+ }
119636
+ },
119637
+ "isDeprecated": false,
119638
+ "deprecationReason": null
119639
+ }
119640
+ ],
119641
+ "inputFields": null,
119642
+ "interfaces": [],
119643
+ "enumValues": null,
119644
+ "possibleTypes": null
119645
+ },
119646
+ {
119647
+ "kind": "OBJECT",
119648
+ "name": "CurrencyEstimate",
119649
+ "description": null,
119650
+ "specifiedByUrl": null,
119651
+ "fields": [
119652
+ {
119653
+ "name": "balanceAfterEstimate",
119654
+ "description": "The credit balance after subtracting the estimated cost",
119655
+ "args": [],
119656
+ "type": {
119657
+ "kind": "NON_NULL",
119658
+ "name": null,
119659
+ "ofType": {
119660
+ "kind": "SCALAR",
119661
+ "name": "Float",
119662
+ "ofType": null
119663
+ }
119664
+ },
119665
+ "isDeprecated": false,
119666
+ "deprecationReason": null
119667
+ },
119668
+ {
119669
+ "name": "breakdown",
119670
+ "description": "Estimated cost contribution per feature",
119671
+ "args": [],
119672
+ "type": {
119673
+ "kind": "NON_NULL",
119674
+ "name": null,
119675
+ "ofType": {
119676
+ "kind": "LIST",
119677
+ "name": null,
119678
+ "ofType": {
119679
+ "kind": "NON_NULL",
119680
+ "name": null,
119681
+ "ofType": {
119682
+ "kind": "OBJECT",
119683
+ "name": "EstimationBreakdownItem",
119684
+ "ofType": null
119685
+ }
119686
+ }
119687
+ }
119688
+ },
119689
+ "isDeprecated": false,
119690
+ "deprecationReason": null
119691
+ },
119692
+ {
119693
+ "name": "currencyId",
119694
+ "description": "The credit currency identifier",
119695
+ "args": [],
119696
+ "type": {
119697
+ "kind": "NON_NULL",
119698
+ "name": null,
119699
+ "ofType": {
119700
+ "kind": "SCALAR",
119701
+ "name": "String",
119702
+ "ofType": null
119703
+ }
119704
+ },
119705
+ "isDeprecated": false,
119706
+ "deprecationReason": null
119707
+ },
119708
+ {
119709
+ "name": "currentBalance",
119710
+ "description": "The current credit balance, including not-yet-reconciled consumption",
119711
+ "args": [],
119712
+ "type": {
119713
+ "kind": "NON_NULL",
119714
+ "name": null,
119715
+ "ofType": {
119716
+ "kind": "SCALAR",
119717
+ "name": "Float",
119718
+ "ofType": null
119719
+ }
119720
+ },
119721
+ "isDeprecated": false,
119722
+ "deprecationReason": null
119723
+ },
119724
+ {
119725
+ "name": "estimatedCost",
119726
+ "description": "The estimated credit cost of the reported event or usage",
119727
+ "args": [],
119728
+ "type": {
119729
+ "kind": "NON_NULL",
119730
+ "name": null,
119731
+ "ofType": {
119732
+ "kind": "SCALAR",
119733
+ "name": "Float",
119734
+ "ofType": null
119735
+ }
119736
+ },
119737
+ "isDeprecated": false,
119738
+ "deprecationReason": null
119739
+ },
119740
+ {
119741
+ "name": "wouldOverdraft",
119742
+ "description": "Whether the estimated consumption would bring the balance below zero",
119743
+ "args": [],
119744
+ "type": {
119745
+ "kind": "NON_NULL",
119746
+ "name": null,
119747
+ "ofType": {
119748
+ "kind": "SCALAR",
119749
+ "name": "Boolean",
119750
+ "ofType": null
119751
+ }
119752
+ },
119753
+ "isDeprecated": false,
119754
+ "deprecationReason": null
119755
+ }
119756
+ ],
119757
+ "inputFields": null,
119758
+ "interfaces": [],
119759
+ "enumValues": null,
119760
+ "possibleTypes": null
119761
+ },
119762
+ {
119763
+ "kind": "OBJECT",
119764
+ "name": "EstimationBreakdownItem",
119765
+ "description": "Estimated cost contribution of a single feature",
119766
+ "specifiedByUrl": null,
119767
+ "fields": [
119768
+ {
119769
+ "name": "cost",
119770
+ "description": "The estimated credit cost contributed by this feature",
119771
+ "args": [],
119772
+ "type": {
119773
+ "kind": "NON_NULL",
119774
+ "name": null,
119775
+ "ofType": {
119776
+ "kind": "SCALAR",
119777
+ "name": "Float",
119778
+ "ofType": null
119779
+ }
119780
+ },
119781
+ "isDeprecated": false,
119782
+ "deprecationReason": null
119783
+ },
119784
+ {
119785
+ "name": "featureId",
119786
+ "description": "The feature whose meter contributed this cost",
119787
+ "args": [],
119788
+ "type": {
119789
+ "kind": "NON_NULL",
119790
+ "name": null,
119791
+ "ofType": {
119792
+ "kind": "SCALAR",
119793
+ "name": "String",
119794
+ "ofType": null
119795
+ }
119796
+ },
119797
+ "isDeprecated": false,
119798
+ "deprecationReason": null
119799
+ },
119800
+ {
119801
+ "name": "warningCode",
119802
+ "description": "Warning explaining why this cost may be inaccurate, if any",
119803
+ "args": [],
119804
+ "type": {
119805
+ "kind": "ENUM",
119806
+ "name": "EstimationWarningCode",
119807
+ "ofType": null
119808
+ },
119809
+ "isDeprecated": false,
119810
+ "deprecationReason": null
119811
+ }
119812
+ ],
119813
+ "inputFields": null,
119814
+ "interfaces": [],
119815
+ "enumValues": null,
119816
+ "possibleTypes": null
119817
+ },
119818
+ {
119819
+ "kind": "INPUT_OBJECT",
119820
+ "name": "EstimateEventCostInput",
119821
+ "description": null,
119822
+ "specifiedByUrl": null,
119823
+ "fields": null,
119824
+ "inputFields": [
119825
+ {
119826
+ "name": "customerId",
119827
+ "description": "Customer id",
119828
+ "type": {
119829
+ "kind": "NON_NULL",
119830
+ "name": null,
119831
+ "ofType": {
119832
+ "kind": "SCALAR",
119833
+ "name": "String",
119834
+ "ofType": null
119835
+ }
119836
+ },
119837
+ "defaultValue": null,
119838
+ "isDeprecated": false,
119839
+ "deprecationReason": null
119840
+ },
119841
+ {
119842
+ "name": "dimensions",
119843
+ "description": "Dimensions to include in the events fields",
119844
+ "type": {
119845
+ "kind": "SCALAR",
119846
+ "name": "JSON",
119847
+ "ofType": null
119848
+ },
119849
+ "defaultValue": null,
119850
+ "isDeprecated": false,
119851
+ "deprecationReason": null
119852
+ },
119853
+ {
119854
+ "name": "eventName",
119855
+ "description": "Name of the event",
119856
+ "type": {
119857
+ "kind": "NON_NULL",
119858
+ "name": null,
119859
+ "ofType": {
119860
+ "kind": "SCALAR",
119861
+ "name": "String",
119862
+ "ofType": null
119863
+ }
119864
+ },
119865
+ "defaultValue": null,
119866
+ "isDeprecated": false,
119867
+ "deprecationReason": null
119868
+ },
119869
+ {
119870
+ "name": "resourceId",
119871
+ "description": "Resource id",
119872
+ "type": {
119873
+ "kind": "SCALAR",
119874
+ "name": "String",
119875
+ "ofType": null
119876
+ },
119877
+ "defaultValue": null,
119878
+ "isDeprecated": false,
119879
+ "deprecationReason": null
119880
+ }
119881
+ ],
119882
+ "interfaces": null,
119883
+ "enumValues": null,
119884
+ "possibleTypes": null
119885
+ },
119886
+ {
119887
+ "kind": "INPUT_OBJECT",
119888
+ "name": "EstimateUsageCostInput",
119889
+ "description": "Input for estimating the credit cost of a usage report without submitting it",
119890
+ "specifiedByUrl": null,
119891
+ "fields": null,
119892
+ "inputFields": [
119893
+ {
119894
+ "name": "customerId",
119895
+ "description": "Customer id",
119896
+ "type": {
119897
+ "kind": "NON_NULL",
119898
+ "name": null,
119899
+ "ofType": {
119900
+ "kind": "SCALAR",
119901
+ "name": "String",
119902
+ "ofType": null
119903
+ }
119904
+ },
119905
+ "defaultValue": null,
119906
+ "isDeprecated": false,
119907
+ "deprecationReason": null
119908
+ },
119909
+ {
119910
+ "name": "dimensions",
119911
+ "description": "Additional dimensions for the usage report",
119912
+ "type": {
119913
+ "kind": "SCALAR",
119914
+ "name": "JSON",
119915
+ "ofType": null
119916
+ },
119917
+ "defaultValue": null,
119918
+ "isDeprecated": false,
119919
+ "deprecationReason": null
119920
+ },
119921
+ {
119922
+ "name": "featureId",
119923
+ "description": "Feature id",
119924
+ "type": {
119925
+ "kind": "NON_NULL",
119926
+ "name": null,
119927
+ "ofType": {
119928
+ "kind": "SCALAR",
119929
+ "name": "String",
119930
+ "ofType": null
119931
+ }
119932
+ },
119933
+ "defaultValue": null,
119934
+ "isDeprecated": false,
119935
+ "deprecationReason": null
119936
+ },
119937
+ {
119938
+ "name": "resourceId",
119939
+ "description": "Resource id",
119940
+ "type": {
119941
+ "kind": "SCALAR",
119942
+ "name": "String",
119943
+ "ofType": null
119944
+ },
119945
+ "defaultValue": null,
119946
+ "isDeprecated": false,
119947
+ "deprecationReason": null
119948
+ },
119949
+ {
119950
+ "name": "updateBehavior",
119951
+ "description": "The method by which the usage value should be updated",
119952
+ "type": {
119953
+ "kind": "ENUM",
119954
+ "name": "UsageUpdateBehavior",
119955
+ "ofType": null
119956
+ },
119957
+ "defaultValue": "DELTA",
119958
+ "isDeprecated": false,
119959
+ "deprecationReason": null
119960
+ },
119961
+ {
119962
+ "name": "value",
119963
+ "description": "The value to report for usage",
119964
+ "type": {
119965
+ "kind": "NON_NULL",
119966
+ "name": null,
119967
+ "ofType": {
119968
+ "kind": "SCALAR",
119969
+ "name": "Float",
119970
+ "ofType": null
119971
+ }
119972
+ },
119973
+ "defaultValue": null,
119974
+ "isDeprecated": false,
119975
+ "deprecationReason": null
119976
+ }
119977
+ ],
119978
+ "interfaces": null,
119979
+ "enumValues": null,
119980
+ "possibleTypes": null
119981
+ },
119982
+ {
119983
+ "kind": "ENUM",
119984
+ "name": "EstimationRequestWarning",
119985
+ "description": "Request-level warning about the estimation context",
119986
+ "specifiedByUrl": null,
119987
+ "fields": null,
119988
+ "inputFields": null,
119989
+ "interfaces": null,
119990
+ "enumValues": [
119991
+ {
119992
+ "name": "FEATURE_NOT_CREDIT_BASED",
119993
+ "description": null,
119994
+ "isDeprecated": false,
119995
+ "deprecationReason": null
119996
+ },
119997
+ {
119998
+ "name": "FEATURE_NOT_FOUND",
119999
+ "description": null,
120000
+ "isDeprecated": false,
120001
+ "deprecationReason": null
120002
+ },
120003
+ {
120004
+ "name": "RESOURCE_SCOPED_SUBSCRIPTION_EXISTS",
120005
+ "description": null,
120006
+ "isDeprecated": false,
120007
+ "deprecationReason": null
120008
+ }
120009
+ ],
120010
+ "possibleTypes": null
120011
+ },
120012
+ {
120013
+ "kind": "ENUM",
120014
+ "name": "EstimationWarningCode",
120015
+ "description": "Warning explaining why an estimated cost may be inaccurate",
120016
+ "specifiedByUrl": null,
120017
+ "fields": null,
120018
+ "inputFields": null,
120019
+ "interfaces": null,
120020
+ "enumValues": [
120021
+ {
120022
+ "name": "UNSUPPORTED_AGGREGATION",
120023
+ "description": null,
120024
+ "isDeprecated": false,
120025
+ "deprecationReason": null
120026
+ }
120027
+ ],
120028
+ "possibleTypes": null
119519
120029
  }
119520
120030
  ],
119521
120031
  "directives": [
data/lib/stigg/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stigg
4
- VERSION = "6.16.0"
4
+ VERSION = "6.17.0"
5
5
  end
data/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@stigg/api-client-ruby",
3
- "version": "6.16.0"
3
+ "version": "6.17.0"
4
4
  }
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: 6.16.0
4
+ version: 6.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg