@harnessio/react-ng-manager-swagger-service-client 1.23.0 → 1.24.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.
Files changed (19) hide show
  1. package/dist/ng-manager-swagger-service/src/services/hooks/useGetServiceNowIssueMetadataQuery.d.ts +32 -0
  2. package/dist/ng-manager-swagger-service/src/services/hooks/useGetServiceNowIssueMetadataQuery.js +14 -0
  3. package/dist/ng-manager-swagger-service/src/services/hooks/useGetServiceNowTicketTypesV2Query.d.ts +31 -0
  4. package/dist/ng-manager-swagger-service/src/services/hooks/useGetServiceNowTicketTypesV2Query.js +14 -0
  5. package/dist/ng-manager-swagger-service/src/services/index.d.ts +10 -0
  6. package/dist/ng-manager-swagger-service/src/services/index.js +2 -0
  7. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListServiceNowFieldNg.d.ts +9 -0
  8. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListServiceNowFieldNg.js +1 -0
  9. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListServiceNowTicketTypeDto.d.ts +9 -0
  10. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListServiceNowTicketTypeDto.js +1 -0
  11. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceNowFieldAllowedValueNg.d.ts +5 -0
  12. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceNowFieldAllowedValueNg.js +4 -0
  13. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceNowFieldNg.d.ts +12 -0
  14. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceNowFieldNg.js +1 -0
  15. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceNowFieldSchemaNg.d.ts +7 -0
  16. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceNowFieldSchemaNg.js +4 -0
  17. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceNowTicketTypeDto.d.ts +4 -0
  18. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceNowTicketTypeDto.js +4 -0
  19. package/package.json +1 -1
@@ -0,0 +1,32 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseListServiceNowFieldNg } from '../schemas/ResponseListServiceNowFieldNg';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface GetServiceNowIssueMetadataQueryQueryParams {
8
+ connectorRef: string;
9
+ accountIdentifier: string;
10
+ orgIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ ticketType?: string;
13
+ branch?: string;
14
+ repoIdentifier?: string;
15
+ getDefaultFromOtherRepo?: boolean;
16
+ parentEntityConnectorRef?: string;
17
+ parentEntityRepoName?: string;
18
+ parentEntityAccountIdentifier?: string;
19
+ parentEntityOrgIdentifier?: string;
20
+ parentEntityProjectIdentifier?: string;
21
+ repoName?: string;
22
+ }
23
+ export type GetServiceNowIssueMetadataOkResponse = ResponseWithPagination<ResponseListServiceNowFieldNg>;
24
+ export type GetServiceNowIssueMetadataErrorResponse = Failure | Error;
25
+ export interface GetServiceNowIssueMetadataProps extends Omit<FetcherOptions<GetServiceNowIssueMetadataQueryQueryParams, unknown>, 'url'> {
26
+ queryParams: GetServiceNowIssueMetadataQueryQueryParams;
27
+ }
28
+ export declare function getServiceNowIssueMetadata(props: GetServiceNowIssueMetadataProps): Promise<GetServiceNowIssueMetadataOkResponse>;
29
+ /**
30
+ *
31
+ */
32
+ export declare function useGetServiceNowIssueMetadataQuery(props: GetServiceNowIssueMetadataProps, options?: Omit<UseQueryOptions<GetServiceNowIssueMetadataOkResponse, GetServiceNowIssueMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetServiceNowIssueMetadataOkResponse, GetServiceNowIssueMetadataErrorResponse>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getServiceNowIssueMetadata(props) {
7
+ return fetcher(Object.assign({ url: `/servicenow/metadata`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetServiceNowIssueMetadataQuery(props, options) {
13
+ return useQuery(['getServiceNowIssueMetadata', props.queryParams], ({ signal }) => getServiceNowIssueMetadata(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,31 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseListServiceNowTicketTypeDto } from '../schemas/ResponseListServiceNowTicketTypeDto';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface GetServiceNowTicketTypesV2QueryQueryParams {
8
+ connectorRef: string;
9
+ accountIdentifier: string;
10
+ orgIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ branch?: string;
13
+ repoIdentifier?: string;
14
+ getDefaultFromOtherRepo?: boolean;
15
+ parentEntityConnectorRef?: string;
16
+ parentEntityRepoName?: string;
17
+ parentEntityAccountIdentifier?: string;
18
+ parentEntityOrgIdentifier?: string;
19
+ parentEntityProjectIdentifier?: string;
20
+ repoName?: string;
21
+ }
22
+ export type GetServiceNowTicketTypesV2OkResponse = ResponseWithPagination<ResponseListServiceNowTicketTypeDto>;
23
+ export type GetServiceNowTicketTypesV2ErrorResponse = Failure | Error;
24
+ export interface GetServiceNowTicketTypesV2Props extends Omit<FetcherOptions<GetServiceNowTicketTypesV2QueryQueryParams, unknown>, 'url'> {
25
+ queryParams: GetServiceNowTicketTypesV2QueryQueryParams;
26
+ }
27
+ export declare function getServiceNowTicketTypesV2(props: GetServiceNowTicketTypesV2Props): Promise<GetServiceNowTicketTypesV2OkResponse>;
28
+ /**
29
+ *
30
+ */
31
+ export declare function useGetServiceNowTicketTypesV2Query(props: GetServiceNowTicketTypesV2Props, options?: Omit<UseQueryOptions<GetServiceNowTicketTypesV2OkResponse, GetServiceNowTicketTypesV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetServiceNowTicketTypesV2OkResponse, GetServiceNowTicketTypesV2ErrorResponse>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getServiceNowTicketTypesV2(props) {
7
+ return fetcher(Object.assign({ url: `/servicenow/ticketTypesV2`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetServiceNowTicketTypesV2Query(props, options) {
13
+ return useQuery(['getServiceNowTicketTypesV2', props.queryParams], ({ signal }) => getServiceNowTicketTypesV2(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -199,6 +199,10 @@ export type { GetServiceDefinitionTypesErrorResponse, GetServiceDefinitionTypesO
199
199
  export { getServiceDefinitionTypes, useGetServiceDefinitionTypesQuery, } from './hooks/useGetServiceDefinitionTypesQuery';
200
200
  export type { GetServiceListErrorResponse, GetServiceListOkResponse, GetServiceListProps, GetServiceListQueryQueryParams, } from './hooks/useGetServiceListQuery';
201
201
  export { getServiceList, useGetServiceListQuery } from './hooks/useGetServiceListQuery';
202
+ export type { GetServiceNowIssueMetadataErrorResponse, GetServiceNowIssueMetadataOkResponse, GetServiceNowIssueMetadataProps, GetServiceNowIssueMetadataQueryQueryParams, } from './hooks/useGetServiceNowIssueMetadataQuery';
203
+ export { getServiceNowIssueMetadata, useGetServiceNowIssueMetadataQuery, } from './hooks/useGetServiceNowIssueMetadataQuery';
204
+ export type { GetServiceNowTicketTypesV2ErrorResponse, GetServiceNowTicketTypesV2OkResponse, GetServiceNowTicketTypesV2Props, GetServiceNowTicketTypesV2QueryQueryParams, } from './hooks/useGetServiceNowTicketTypesV2Query';
205
+ export { getServiceNowTicketTypesV2, useGetServiceNowTicketTypesV2Query, } from './hooks/useGetServiceNowTicketTypesV2Query';
202
206
  export type { GetServicesListErrorResponse, GetServicesListOkResponse, GetServicesListProps, GetServicesListQueryQueryParams, } from './hooks/useGetServicesListQuery';
203
207
  export { getServicesList, useGetServicesListQuery } from './hooks/useGetServicesListQuery';
204
208
  export type { GetServicesYamlAndRuntimeInputsV2ErrorResponse, GetServicesYamlAndRuntimeInputsV2MutationQueryParams, GetServicesYamlAndRuntimeInputsV2OkResponse, GetServicesYamlAndRuntimeInputsV2Props, GetServicesYamlAndRuntimeInputsV2RequestBody, } from './hooks/useGetServicesYamlAndRuntimeInputsV2Mutation';
@@ -502,6 +506,8 @@ export type { ResponseListNexusRepositories } from './schemas/ResponseListNexusR
502
506
  export type { ResponseListRegionGar } from './schemas/ResponseListRegionGar';
503
507
  export type { ResponseListScopeName } from './schemas/ResponseListScopeName';
504
508
  export type { ResponseListServiceDefinitionType } from './schemas/ResponseListServiceDefinitionType';
509
+ export type { ResponseListServiceNowFieldNg } from './schemas/ResponseListServiceNowFieldNg';
510
+ export type { ResponseListServiceNowTicketTypeDto } from './schemas/ResponseListServiceNowTicketTypeDto';
505
511
  export type { ResponseListString } from './schemas/ResponseListString';
506
512
  export type { ResponseListUserRepoResponse } from './schemas/ResponseListUserRepoResponse';
507
513
  export type { ResponseMapStringString } from './schemas/ResponseMapStringString';
@@ -540,6 +546,10 @@ export type { ScopeSelector } from './schemas/ScopeSelector';
540
546
  export type { ScopedResourceMetadata } from './schemas/ScopedResourceMetadata';
541
547
  export type { ScopedResourcePermission } from './schemas/ScopedResourcePermission';
542
548
  export type { ServiceDashboardResponseDto } from './schemas/ServiceDashboardResponseDto';
549
+ export type { ServiceNowFieldAllowedValueNg } from './schemas/ServiceNowFieldAllowedValueNg';
550
+ export type { ServiceNowFieldNg } from './schemas/ServiceNowFieldNg';
551
+ export type { ServiceNowFieldSchemaNg } from './schemas/ServiceNowFieldSchemaNg';
552
+ export type { ServiceNowTicketTypeDto } from './schemas/ServiceNowTicketTypeDto';
543
553
  export type { ServiceOverridesMetadata } from './schemas/ServiceOverridesMetadata';
544
554
  export type { ServiceRequestDto } from './schemas/ServiceRequestDto';
545
555
  export type { ServiceResponse } from './schemas/ServiceResponse';
@@ -98,6 +98,8 @@ export { getRepositoriesForGoogleArtifactRegistry, useGetRepositoriesForGoogleAr
98
98
  export { getRepositories, useGetRepositoriesMutation } from './hooks/useGetRepositoriesMutation';
99
99
  export { getServiceDefinitionTypes, useGetServiceDefinitionTypesQuery, } from './hooks/useGetServiceDefinitionTypesQuery';
100
100
  export { getServiceList, useGetServiceListQuery } from './hooks/useGetServiceListQuery';
101
+ export { getServiceNowIssueMetadata, useGetServiceNowIssueMetadataQuery, } from './hooks/useGetServiceNowIssueMetadataQuery';
102
+ export { getServiceNowTicketTypesV2, useGetServiceNowTicketTypesV2Query, } from './hooks/useGetServiceNowTicketTypesV2Query';
101
103
  export { getServicesList, useGetServicesListQuery } from './hooks/useGetServicesListQuery';
102
104
  export { getServicesYamlAndRuntimeInputsV2, useGetServicesYamlAndRuntimeInputsV2Mutation, } from './hooks/useGetServicesYamlAndRuntimeInputsV2Mutation';
103
105
  export { getSubscriptionTags, useGetSubscriptionTagsQuery, } from './hooks/useGetSubscriptionTagsQuery';
@@ -0,0 +1,9 @@
1
+ import type { ServiceNowFieldNg } from '../schemas/ServiceNowFieldNg';
2
+ export interface ResponseListServiceNowFieldNg {
3
+ correlationId?: string;
4
+ data?: ServiceNowFieldNg[];
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,9 @@
1
+ import type { ServiceNowTicketTypeDto } from '../schemas/ServiceNowTicketTypeDto';
2
+ export interface ResponseListServiceNowTicketTypeDto {
3
+ correlationId?: string;
4
+ data?: ServiceNowTicketTypeDto[];
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,5 @@
1
+ export interface ServiceNowFieldAllowedValueNg {
2
+ id?: string;
3
+ name?: string;
4
+ value?: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { ServiceNowFieldAllowedValueNg } from '../schemas/ServiceNowFieldAllowedValueNg';
2
+ import type { ServiceNowFieldSchemaNg } from '../schemas/ServiceNowFieldSchemaNg';
3
+ export interface ServiceNowFieldNg {
4
+ allowedValues: ServiceNowFieldAllowedValueNg[];
5
+ custom?: boolean;
6
+ internalType?: string;
7
+ key: string;
8
+ name: string;
9
+ readOnly?: boolean;
10
+ required?: boolean;
11
+ schema: ServiceNowFieldSchemaNg;
12
+ }
@@ -0,0 +1,7 @@
1
+ export interface ServiceNowFieldSchemaNg {
2
+ array?: boolean;
3
+ customType?: string;
4
+ multilineText?: boolean;
5
+ type: 'boolean' | 'glide_date_time' | 'integer' | 'option' | 'string' | 'unknown';
6
+ typeStr: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface ServiceNowTicketTypeDto {
2
+ key: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ng-manager-swagger-service-client",
3
- "version": "1.23.0",
3
+ "version": "1.24.0",
4
4
  "description": "Harness React NG Manager Swagger service client - NG Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",