@iota/graphql-transport 0.7.0 → 0.8.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @iota/graphql-transport
2
2
 
3
+ ## 0.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ecea738: Improved logic around `fallbackMethods` in graphql-transport Introduced
8
+ `unsupportedMethods` in graphql-transport Improved IotaClient compatibility with
9
+ graphql-transport
10
+
11
+ ### Patch Changes
12
+
13
+ - ecea738: Added missing GraphQL query option fields.
14
+ - 59342b2: Renamed all instances of 'domain' to 'name' for IOTA-Names.
15
+ - Updated dependencies [f04033d]
16
+ - Updated dependencies [f04033d]
17
+ - Updated dependencies [59342b2]
18
+ - Updated dependencies [f04033d]
19
+ - Updated dependencies [f04033d]
20
+ - Updated dependencies [ecea738]
21
+ - @iota/iota-sdk@1.4.0
22
+ - @iota/bcs@1.1.0
23
+
3
24
  ## 0.7.0
4
25
 
5
26
  ### Minor Changes
@@ -233,13 +233,13 @@ export type Address = IOwner & {
233
233
  */
234
234
  coins: CoinConnection;
235
235
  /**
236
- * The domain explicitly configured as the default domain pointing to this
236
+ * The name explicitly configured as the default name pointing to this
237
237
  * address.
238
238
  */
239
239
  iotaNamesDefaultName?: Maybe<Scalars['String']['output']>;
240
240
  /**
241
241
  * The IotaNamesRegistration NFTs owned by this address. These grant the
242
- * owner the capability to manage the associated domain.
242
+ * owner the capability to manage the associated name.
243
243
  */
244
244
  iotaNamesRegistrations: IotaNamesRegistrationConnection;
245
245
  /** Objects owned by this address, optionally `filter`-ed. */
@@ -310,7 +310,7 @@ export type AddressCoinsArgs = {
310
310
  * key).
311
311
  */
312
312
  export type AddressIotaNamesDefaultNameArgs = {
313
- format?: InputMaybe<DomainFormat>;
313
+ format?: InputMaybe<NameFormat>;
314
314
  };
315
315
  /**
316
316
  * The 32-byte address that is an account address (corresponding to a public
@@ -781,13 +781,13 @@ export type Coin = IMoveObject & IObject & IOwner & {
781
781
  */
782
782
  dynamicObjectField?: Maybe<DynamicField>;
783
783
  /**
784
- * The domain explicitly configured as the default domain pointing to this
784
+ * The name explicitly configured as the default name pointing to this
785
785
  * object.
786
786
  */
787
787
  iotaNamesDefaultName?: Maybe<Scalars['String']['output']>;
788
788
  /**
789
789
  * The IotaNamesRegistration NFTs owned by this object. These grant the
790
- * owner the capability to manage the associated domain.
790
+ * owner the capability to manage the associated name.
791
791
  */
792
792
  iotaNamesRegistrations: IotaNamesRegistrationConnection;
793
793
  /** Objects owned by this object, optionally `filter`-ed. */
@@ -882,7 +882,7 @@ export type CoinDynamicObjectFieldArgs = {
882
882
  };
883
883
  /** Some 0x2::coin::Coin Move object. */
884
884
  export type CoinIotaNamesDefaultNameArgs = {
885
- format?: InputMaybe<DomainFormat>;
885
+ format?: InputMaybe<NameFormat>;
886
886
  };
887
887
  /** Some 0x2::coin::Coin Move object. */
888
888
  export type CoinIotaNamesRegistrationsArgs = {
@@ -1002,13 +1002,13 @@ export type CoinMetadata = IMoveObject & IObject & IOwner & {
1002
1002
  dynamicObjectField?: Maybe<DynamicField>;
1003
1003
  iconUrl?: Maybe<Scalars['String']['output']>;
1004
1004
  /**
1005
- * The domain explicitly configured as the default domain pointing to this
1005
+ * The name explicitly configured as the default name pointing to this
1006
1006
  * object.
1007
1007
  */
1008
1008
  iotaNamesDefaultName?: Maybe<Scalars['String']['output']>;
1009
1009
  /**
1010
1010
  * The IotaNamesRegistration NFTs owned by this object. These grant the
1011
- * owner the capability to manage the associated domain.
1011
+ * owner the capability to manage the associated name.
1012
1012
  */
1013
1013
  iotaNamesRegistrations: IotaNamesRegistrationConnection;
1014
1014
  /** Full, official name of the token. */
@@ -1109,7 +1109,7 @@ export type CoinMetadataDynamicObjectFieldArgs = {
1109
1109
  };
1110
1110
  /** The metadata for a coin type. */
1111
1111
  export type CoinMetadataIotaNamesDefaultNameArgs = {
1112
- format?: InputMaybe<DomainFormat>;
1112
+ format?: InputMaybe<NameFormat>;
1113
1113
  };
1114
1114
  /** The metadata for a coin type. */
1115
1115
  export type CoinMetadataIotaNamesRegistrationsArgs = {
@@ -1189,10 +1189,6 @@ export type DisplayEntry = {
1189
1189
  /** The template string for the key with placeholder values substituted. */
1190
1190
  value?: Maybe<Scalars['String']['output']>;
1191
1191
  };
1192
- export declare enum DomainFormat {
1193
- At = "AT",
1194
- Dot = "DOT"
1195
- }
1196
1192
  export type DryRunEffect = {
1197
1193
  __typename?: 'DryRunEffect';
1198
1194
  /**
@@ -1824,9 +1820,9 @@ export type IOwner = {
1824
1820
  * `type` is a filter on the coin's type parameter, defaulting to `0x2::iota::IOTA`.
1825
1821
  */
1826
1822
  coins: CoinConnection;
1827
- /** The domain explicitly configured as the default domain pointing to this object or address. */
1823
+ /** The name explicitly configured as the default name pointing to this object or address. */
1828
1824
  iotaNamesDefaultName?: Maybe<Scalars['String']['output']>;
1829
- /** The IotaNamesRegistration NFTs owned by this object or address. These grant the owner the capability to manage the associated domain. */
1825
+ /** The IotaNamesRegistration NFTs owned by this object or address. These grant the owner the capability to manage the associated name. */
1830
1826
  iotaNamesRegistrations: IotaNamesRegistrationConnection;
1831
1827
  /** Objects owned by this object or address, optionally `filter`-ed. */
1832
1828
  objects: MoveObjectConnection;
@@ -1878,7 +1874,7 @@ export type IOwnerCoinsArgs = {
1878
1874
  * know which up-front.
1879
1875
  */
1880
1876
  export type IOwnerIotaNamesDefaultNameArgs = {
1881
- format?: InputMaybe<DomainFormat>;
1877
+ format?: InputMaybe<NameFormat>;
1882
1878
  };
1883
1879
  /**
1884
1880
  * Interface implemented by GraphQL types representing entities that can own
@@ -1973,8 +1969,6 @@ export type IotaNamesRegistration = IMoveObject & IOwner & {
1973
1969
  * into these templates to generate a display string per template.
1974
1970
  */
1975
1971
  display?: Maybe<Array<DisplayEntry>>;
1976
- /** Domain name of the IotaNamesRegistration object */
1977
- domain: Scalars['String']['output'];
1978
1972
  /**
1979
1973
  * Access a dynamic field on an object using its name. Names are arbitrary
1980
1974
  * Move values whose type have `copy`, `drop`, and `store`, and are
@@ -2010,15 +2004,17 @@ export type IotaNamesRegistration = IMoveObject & IOwner & {
2010
2004
  */
2011
2005
  hasPublicTransfer: Scalars['Boolean']['output'];
2012
2006
  /**
2013
- * The domain explicitly configured as the default domain pointing to this
2007
+ * The name explicitly configured as the default name pointing to this
2014
2008
  * object.
2015
2009
  */
2016
2010
  iotaNamesDefaultName?: Maybe<Scalars['String']['output']>;
2017
2011
  /**
2018
2012
  * The IotaNamesRegistration NFTs owned by this object. These grant the
2019
- * owner the capability to manage the associated domain.
2013
+ * owner the capability to manage the associated name.
2020
2014
  */
2021
2015
  iotaNamesRegistrations: IotaNamesRegistrationConnection;
2016
+ /** Name of the IotaNamesRegistration object */
2017
+ name: Scalars['String']['output'];
2022
2018
  /** Objects owned by this object, optionally `filter`-ed. */
2023
2019
  objects: MoveObjectConnection;
2024
2020
  /** The owner type of this object: Immutable, Shared, Parent, Address */
@@ -2104,7 +2100,7 @@ export type IotaNamesRegistrationDynamicObjectFieldArgs = {
2104
2100
  name: DynamicFieldName;
2105
2101
  };
2106
2102
  export type IotaNamesRegistrationIotaNamesDefaultNameArgs = {
2107
- format?: InputMaybe<DomainFormat>;
2103
+ format?: InputMaybe<NameFormat>;
2108
2104
  };
2109
2105
  export type IotaNamesRegistrationIotaNamesRegistrationsArgs = {
2110
2106
  after?: InputMaybe<Scalars['String']['input']>;
@@ -2571,13 +2567,13 @@ export type MoveObject = IMoveObject & IObject & IOwner & {
2571
2567
  */
2572
2568
  dynamicObjectField?: Maybe<DynamicField>;
2573
2569
  /**
2574
- * The domain explicitly configured as the default domain pointing to this
2570
+ * The name explicitly configured as the default name pointing to this
2575
2571
  * object.
2576
2572
  */
2577
2573
  iotaNamesDefaultName?: Maybe<Scalars['String']['output']>;
2578
2574
  /**
2579
2575
  * The IotaNamesRegistration NFTs owned by this object. These grant the
2580
- * owner the capability to manage the associated domain.
2576
+ * owner the capability to manage the associated name.
2581
2577
  */
2582
2578
  iotaNamesRegistrations: IotaNamesRegistrationConnection;
2583
2579
  /** Objects owned by this object, optionally `filter`-ed. */
@@ -2700,7 +2696,7 @@ export type MoveObjectDynamicObjectFieldArgs = {
2700
2696
  * etc.) about this object.
2701
2697
  */
2702
2698
  export type MoveObjectIotaNamesDefaultNameArgs = {
2703
- format?: InputMaybe<DomainFormat>;
2699
+ format?: InputMaybe<NameFormat>;
2704
2700
  };
2705
2701
  /**
2706
2702
  * The representation of an object as a Move Object, which exposes additional
@@ -2807,13 +2803,13 @@ export type MovePackage = IObject & IOwner & {
2807
2803
  */
2808
2804
  digest?: Maybe<Scalars['String']['output']>;
2809
2805
  /**
2810
- * The domain explicitly configured as the default domain pointing to this
2806
+ * The name explicitly configured as the default name pointing to this
2811
2807
  * object.
2812
2808
  */
2813
2809
  iotaNamesDefaultName?: Maybe<Scalars['String']['output']>;
2814
2810
  /**
2815
2811
  * The IotaNamesRegistration NFTs owned by this package. These grant the
2816
- * owner the capability to manage the associated domain.
2812
+ * owner the capability to manage the associated name.
2817
2813
  *
2818
2814
  * Note that objects owned by a package are inaccessible, because packages
2819
2815
  * are immutable and cannot be owned by an address.
@@ -2963,7 +2959,7 @@ export type MovePackageCoinsArgs = {
2963
2959
  * definitions, functions, and dependencies.
2964
2960
  */
2965
2961
  export type MovePackageIotaNamesDefaultNameArgs = {
2966
- format?: InputMaybe<DomainFormat>;
2962
+ format?: InputMaybe<NameFormat>;
2967
2963
  };
2968
2964
  /**
2969
2965
  * A MovePackage is a kind of Move object that represents code that has been
@@ -3228,6 +3224,10 @@ export type MutationExecuteTransactionBlockArgs = {
3228
3224
  signatures: Array<Scalars['String']['input']>;
3229
3225
  txBytes: Scalars['String']['input'];
3230
3226
  };
3227
+ export declare enum NameFormat {
3228
+ At = "AT",
3229
+ Dot = "DOT"
3230
+ }
3231
3231
  /**
3232
3232
  * An object in IOTA is a package (set of Move bytecode modules) or object
3233
3233
  * (typed data structure with fields) with additional metadata detailing its
@@ -3296,13 +3296,13 @@ export type Object = IObject & IOwner & {
3296
3296
  */
3297
3297
  dynamicObjectField?: Maybe<DynamicField>;
3298
3298
  /**
3299
- * The domain explicitly configured as the default domain pointing to this
3299
+ * The name explicitly configured as the default name pointing to this
3300
3300
  * address.
3301
3301
  */
3302
3302
  iotaNamesDefaultName?: Maybe<Scalars['String']['output']>;
3303
3303
  /**
3304
3304
  * The IotaNamesRegistration NFTs owned by this address. These grant the
3305
- * owner the capability to manage the associated domain.
3305
+ * owner the capability to manage the associated name.
3306
3306
  */
3307
3307
  iotaNamesRegistrations: IotaNamesRegistrationConnection;
3308
3308
  /** Objects owned by this object, optionally `filter`-ed. */
@@ -3435,7 +3435,7 @@ export type ObjectDynamicObjectFieldArgs = {
3435
3435
  * be accessed.
3436
3436
  */
3437
3437
  export type ObjectIotaNamesDefaultNameArgs = {
3438
- format?: InputMaybe<DomainFormat>;
3438
+ format?: InputMaybe<NameFormat>;
3439
3439
  };
3440
3440
  /**
3441
3441
  * An object in IOTA is a package (set of Move bytecode modules) or object
@@ -3676,13 +3676,13 @@ export type Owner = IOwner & {
3676
3676
  */
3677
3677
  dynamicObjectField?: Maybe<DynamicField>;
3678
3678
  /**
3679
- * The domain explicitly configured as the default domain pointing to this
3679
+ * The name explicitly configured as the default name pointing to this
3680
3680
  * object or address.
3681
3681
  */
3682
3682
  iotaNamesDefaultName?: Maybe<Scalars['String']['output']>;
3683
3683
  /**
3684
3684
  * The IotaNamesRegistration NFTs owned by this object or address. These
3685
- * grant the owner the capability to manage the associated domain.
3685
+ * grant the owner the capability to manage the associated name.
3686
3686
  */
3687
3687
  iotaNamesRegistrations: IotaNamesRegistrationConnection;
3688
3688
  /** Objects owned by this object or address, optionally `filter`-ed. */
@@ -3764,7 +3764,7 @@ export type OwnerDynamicObjectFieldArgs = {
3764
3764
  * whether a given Owner is an Address or an Object).
3765
3765
  */
3766
3766
  export type OwnerIotaNamesDefaultNameArgs = {
3767
- format?: InputMaybe<DomainFormat>;
3767
+ format?: InputMaybe<NameFormat>;
3768
3768
  };
3769
3769
  /**
3770
3770
  * An Owner is an entity that can own an object. Each Owner is identified by a
@@ -4092,7 +4092,7 @@ export type Query = {
4092
4092
  */
4093
4093
  protocolConfig: ProtocolConfigs;
4094
4094
  /**
4095
- * Resolves an IOTA-Names `domain` name to an address, if it has been
4095
+ * Resolves an IOTA-Names `name` to an address, if it has been
4096
4096
  * bound.
4097
4097
  */
4098
4098
  resolveIotaNamesAddress?: Maybe<Address>;
@@ -4229,7 +4229,7 @@ export type QueryProtocolConfigArgs = {
4229
4229
  protocolVersion?: InputMaybe<Scalars['UInt53']['input']>;
4230
4230
  };
4231
4231
  export type QueryResolveIotaNamesAddressArgs = {
4232
- domain: Scalars['String']['input'];
4232
+ name: Scalars['String']['input'];
4233
4233
  };
4234
4234
  export type QueryTransactionBlockArgs = {
4235
4235
  digest: Scalars['String']['input'];
@@ -4572,13 +4572,13 @@ export type StakedIota = IMoveObject & IObject & IOwner & {
4572
4572
  */
4573
4573
  estimatedReward?: Maybe<Scalars['BigInt']['output']>;
4574
4574
  /**
4575
- * The domain explicitly configured as the default domain pointing to this
4575
+ * The name explicitly configured as the default name pointing to this
4576
4576
  * object.
4577
4577
  */
4578
4578
  iotaNamesDefaultName?: Maybe<Scalars['String']['output']>;
4579
4579
  /**
4580
4580
  * The IotaNamesRegistration NFTs owned by this object. These grant the
4581
- * owner the capability to manage the associated domain.
4581
+ * owner the capability to manage the associated name.
4582
4582
  */
4583
4583
  iotaNamesRegistrations: IotaNamesRegistrationConnection;
4584
4584
  /** Objects owned by this object, optionally `filter`-ed. */
@@ -4681,7 +4681,7 @@ export type StakedIotaDynamicObjectFieldArgs = {
4681
4681
  };
4682
4682
  /** Represents a `0x3::staking_pool::StakedIota` Move object on-chain. */
4683
4683
  export type StakedIotaIotaNamesDefaultNameArgs = {
4684
- format?: InputMaybe<DomainFormat>;
4684
+ format?: InputMaybe<NameFormat>;
4685
4685
  };
4686
4686
  /** Represents a `0x3::staking_pool::StakedIota` Move object on-chain. */
4687
4687
  export type StakedIotaIotaNamesRegistrationsArgs = {
@@ -7528,7 +7528,7 @@ export type GetValidatorsApyQuery = {
7528
7528
  } | null;
7529
7529
  };
7530
7530
  export type ResolveNameServiceAddressQueryVariables = Exact<{
7531
- domain: Scalars['String']['input'];
7531
+ name: Scalars['String']['input'];
7532
7532
  }>;
7533
7533
  export type ResolveNameServiceAddressQuery = {
7534
7534
  __typename?: 'Query';
@@ -7555,7 +7555,7 @@ export type ResolveNameServiceNamesQuery = {
7555
7555
  };
7556
7556
  nodes: Array<{
7557
7557
  __typename?: 'IotaNamesRegistration';
7558
- domain: string;
7558
+ name: string;
7559
7559
  }>;
7560
7560
  };
7561
7561
  } | null;
@@ -20,7 +20,6 @@ var queries_exports = {};
20
20
  __export(queries_exports, {
21
21
  AddressTransactionBlockRelationship: () => AddressTransactionBlockRelationship,
22
22
  DevInspectTransactionBlockDocument: () => DevInspectTransactionBlockDocument,
23
- DomainFormat: () => DomainFormat,
24
23
  DryRunTransactionBlockDocument: () => DryRunTransactionBlockDocument,
25
24
  ExecuteTransactionBlockDocument: () => ExecuteTransactionBlockDocument,
26
25
  ExecutionStatus: () => ExecutionStatus,
@@ -58,6 +57,7 @@ __export(queries_exports, {
58
57
  MoveVisibility: () => MoveVisibility,
59
58
  MultiGetObjectsDocument: () => MultiGetObjectsDocument,
60
59
  MultiGetTransactionBlocksDocument: () => MultiGetTransactionBlocksDocument,
60
+ NameFormat: () => NameFormat,
61
61
  ObjectKind: () => ObjectKind,
62
62
  PaginateCheckpointTransactionBlocksDocument: () => PaginateCheckpointTransactionBlocksDocument,
63
63
  PaginateEpochValidatorsDocument: () => PaginateEpochValidatorsDocument,
@@ -92,11 +92,6 @@ var AddressTransactionBlockRelationship = /* @__PURE__ */ ((AddressTransactionBl
92
92
  AddressTransactionBlockRelationship2["Sign"] = "SIGN";
93
93
  return AddressTransactionBlockRelationship2;
94
94
  })(AddressTransactionBlockRelationship || {});
95
- var DomainFormat = /* @__PURE__ */ ((DomainFormat2) => {
96
- DomainFormat2["At"] = "AT";
97
- DomainFormat2["Dot"] = "DOT";
98
- return DomainFormat2;
99
- })(DomainFormat || {});
100
95
  var ExecutionStatus = /* @__PURE__ */ ((ExecutionStatus2) => {
101
96
  ExecutionStatus2["Failure"] = "FAILURE";
102
97
  ExecutionStatus2["Success"] = "SUCCESS";
@@ -123,6 +118,11 @@ var MoveVisibility = /* @__PURE__ */ ((MoveVisibility2) => {
123
118
  MoveVisibility2["Public"] = "PUBLIC";
124
119
  return MoveVisibility2;
125
120
  })(MoveVisibility || {});
121
+ var NameFormat = /* @__PURE__ */ ((NameFormat2) => {
122
+ NameFormat2["At"] = "AT";
123
+ NameFormat2["Dot"] = "DOT";
124
+ return NameFormat2;
125
+ })(NameFormat || {});
126
126
  var ObjectKind = /* @__PURE__ */ ((ObjectKind2) => {
127
127
  ObjectKind2["Indexed"] = "INDEXED";
128
128
  ObjectKind2["NotIndexed"] = "NOT_INDEXED";
@@ -2140,8 +2140,8 @@ const GetValidatorsApyDocument = new TypedDocumentString(`
2140
2140
  }
2141
2141
  `);
2142
2142
  const ResolveNameServiceAddressDocument = new TypedDocumentString(`
2143
- query resolveNameServiceAddress($domain: String!) {
2144
- resolveIotaNamesAddress(domain: $domain) {
2143
+ query resolveNameServiceAddress($name: String!) {
2144
+ resolveIotaNamesAddress(name: $name) {
2145
2145
  address
2146
2146
  }
2147
2147
  }
@@ -2155,7 +2155,7 @@ const ResolveNameServiceNamesDocument = new TypedDocumentString(`
2155
2155
  endCursor
2156
2156
  }
2157
2157
  nodes {
2158
- domain
2158
+ name
2159
2159
  }
2160
2160
  }
2161
2161
  }