@iota/graphql-transport 0.5.2 → 0.6.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,16 @@
1
1
  # @iota/graphql-transport
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 53d5058: Added iota names rpc methods to IotaClient and also GraphQL queries.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [53d5058]
12
+ - @iota/iota-sdk@1.2.0
13
+
3
14
  ## 0.5.2
4
15
 
5
16
  ### Patch Changes
@@ -7547,6 +7547,39 @@ export type GetValidatorsApyQuery = {
7547
7547
  } | null;
7548
7548
  } | null;
7549
7549
  };
7550
+ export type ResolveNameServiceAddressQueryVariables = Exact<{
7551
+ domain: Scalars['String']['input'];
7552
+ }>;
7553
+ export type ResolveNameServiceAddressQuery = {
7554
+ __typename?: 'Query';
7555
+ resolveIotaNamesAddress?: {
7556
+ __typename?: 'Address';
7557
+ address: any;
7558
+ } | null;
7559
+ };
7560
+ export type ResolveNameServiceNamesQueryVariables = Exact<{
7561
+ address: Scalars['IotaAddress']['input'];
7562
+ limit?: InputMaybe<Scalars['Int']['input']>;
7563
+ cursor?: InputMaybe<Scalars['String']['input']>;
7564
+ }>;
7565
+ export type ResolveNameServiceNamesQuery = {
7566
+ __typename?: 'Query';
7567
+ address?: {
7568
+ __typename?: 'Address';
7569
+ iotaNamesRegistrations: {
7570
+ __typename?: 'IotaNamesRegistrationConnection';
7571
+ pageInfo: {
7572
+ __typename?: 'PageInfo';
7573
+ hasNextPage: boolean;
7574
+ endCursor?: string | null;
7575
+ };
7576
+ nodes: Array<{
7577
+ __typename?: 'IotaNamesRegistration';
7578
+ domain: string;
7579
+ }>;
7580
+ };
7581
+ } | null;
7582
+ };
7550
7583
  export type GetOwnedObjectsQueryVariables = Exact<{
7551
7584
  owner: Scalars['IotaAddress']['input'];
7552
7585
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -9006,6 +9039,8 @@ export declare const GetReferenceGasPriceDocument: TypedDocumentString<GetRefere
9006
9039
  export declare const GetTotalSupplyDocument: TypedDocumentString<GetTotalSupplyQuery, GetTotalSupplyQueryVariables>;
9007
9040
  export declare const GetTotalTransactionBlocksDocument: TypedDocumentString<GetTotalTransactionBlocksQuery, GetTotalTransactionBlocksQueryVariables>;
9008
9041
  export declare const GetValidatorsApyDocument: TypedDocumentString<GetValidatorsApyQuery, GetValidatorsApyQueryVariables>;
9042
+ export declare const ResolveNameServiceAddressDocument: TypedDocumentString<ResolveNameServiceAddressQuery, ResolveNameServiceAddressQueryVariables>;
9043
+ export declare const ResolveNameServiceNamesDocument: TypedDocumentString<ResolveNameServiceNamesQuery, ResolveNameServiceNamesQueryVariables>;
9009
9044
  export declare const GetOwnedObjectsDocument: TypedDocumentString<GetOwnedObjectsQuery, GetOwnedObjectsQueryVariables>;
9010
9045
  export declare const GetObjectDocument: TypedDocumentString<GetObjectQuery, GetObjectQueryVariables>;
9011
9046
  export declare const TryGetPastObjectDocument: TypedDocumentString<TryGetPastObjectQuery, TryGetPastObjectQueryVariables>;
@@ -66,6 +66,8 @@ __export(queries_exports, {
66
66
  Paginate_Transaction_ListsFragmentDoc: () => Paginate_Transaction_ListsFragmentDoc,
67
67
  QueryEventsDocument: () => QueryEventsDocument,
68
68
  QueryTransactionBlocksDocument: () => QueryTransactionBlocksDocument,
69
+ ResolveNameServiceAddressDocument: () => ResolveNameServiceAddressDocument,
70
+ ResolveNameServiceNamesDocument: () => ResolveNameServiceNamesDocument,
69
71
  Rpc_Checkpoint_FieldsFragmentDoc: () => Rpc_Checkpoint_FieldsFragmentDoc,
70
72
  Rpc_Credential_FieldsFragmentDoc: () => Rpc_Credential_FieldsFragmentDoc,
71
73
  Rpc_Events_FieldsFragmentDoc: () => Rpc_Events_FieldsFragmentDoc,
@@ -2137,6 +2139,28 @@ const GetValidatorsApyDocument = new TypedDocumentString(`
2137
2139
  }
2138
2140
  }
2139
2141
  `);
2142
+ const ResolveNameServiceAddressDocument = new TypedDocumentString(`
2143
+ query resolveNameServiceAddress($domain: String!) {
2144
+ resolveIotaNamesAddress(domain: $domain) {
2145
+ address
2146
+ }
2147
+ }
2148
+ `);
2149
+ const ResolveNameServiceNamesDocument = new TypedDocumentString(`
2150
+ query resolveNameServiceNames($address: IotaAddress!, $limit: Int, $cursor: String) {
2151
+ address(address: $address) {
2152
+ iotaNamesRegistrations(first: $limit, after: $cursor) {
2153
+ pageInfo {
2154
+ hasNextPage
2155
+ endCursor
2156
+ }
2157
+ nodes {
2158
+ domain
2159
+ }
2160
+ }
2161
+ }
2162
+ }
2163
+ `);
2140
2164
  const GetOwnedObjectsDocument = new TypedDocumentString(`
2141
2165
  query getOwnedObjects($owner: IotaAddress!, $limit: Int, $cursor: String, $showBcs: Boolean = false, $showContent: Boolean = false, $showDisplay: Boolean = false, $showType: Boolean = false, $showOwner: Boolean = false, $showPreviousTransaction: Boolean = false, $showStorageRebate: Boolean = false, $filter: ObjectFilter) {
2142
2166
  address(address: $owner) {