@hypelabs-llc/ts-sdk 0.2.5 → 0.3.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 (60) hide show
  1. package/dist/bearerAuthenticationProvider.d.ts +10 -0
  2. package/dist/bearerAuthenticationProvider.js +14 -0
  3. package/dist/connectClient.d.ts +2 -1
  4. package/dist/connectClient.js +5 -1
  5. package/dist/customerClient.d.ts +16 -0
  6. package/dist/customerClient.js +28 -0
  7. package/dist/generated/customers/index.d.ts +2 -2
  8. package/dist/generated-customer/announcements/index.d.ts +27 -0
  9. package/dist/generated-customer/announcements/index.js +22 -0
  10. package/dist/generated-customer/catalog/capabilities/index.d.ts +44 -0
  11. package/dist/generated-customer/catalog/capabilities/index.js +22 -0
  12. package/dist/generated-customer/catalog/datacenters/index.d.ts +45 -0
  13. package/dist/generated-customer/catalog/datacenters/index.js +25 -0
  14. package/dist/generated-customer/catalog/index.d.ts +39 -0
  15. package/dist/generated-customer/catalog/index.js +39 -0
  16. package/dist/generated-customer/catalog/isps/index.d.ts +45 -0
  17. package/dist/generated-customer/catalog/isps/index.js +25 -0
  18. package/dist/generated-customer/catalog/locations/index.d.ts +41 -0
  19. package/dist/generated-customer/catalog/locations/index.js +25 -0
  20. package/dist/generated-customer/catalog/products/index.d.ts +33 -0
  21. package/dist/generated-customer/catalog/products/index.js +22 -0
  22. package/dist/generated-customer/customerApiClient.d.ts +54 -0
  23. package/dist/generated-customer/customerApiClient.js +92 -0
  24. package/dist/generated-customer/incidents/index.d.ts +30 -0
  25. package/dist/generated-customer/incidents/index.js +28 -0
  26. package/dist/generated-customer/models/index.d.ts +1739 -0
  27. package/dist/generated-customer/models/index.js +1665 -0
  28. package/dist/generated-customer/orders/index.d.ts +55 -0
  29. package/dist/generated-customer/orders/index.js +34 -0
  30. package/dist/generated-customer/orders/item/index.d.ts +37 -0
  31. package/dist/generated-customer/orders/item/index.js +35 -0
  32. package/dist/generated-customer/orders/item/proxies/index.d.ts +28 -0
  33. package/dist/generated-customer/orders/item/proxies/index.js +25 -0
  34. package/dist/generated-customer/organizations/branding/index.d.ts +27 -0
  35. package/dist/generated-customer/organizations/branding/index.js +22 -0
  36. package/dist/generated-customer/organizations/index.d.ts +24 -0
  37. package/dist/generated-customer/organizations/index.js +24 -0
  38. package/dist/generated-customer/organizations/store/index.d.ts +27 -0
  39. package/dist/generated-customer/organizations/store/index.js +22 -0
  40. package/dist/generated-customer/proxies/index.d.ts +38 -0
  41. package/dist/generated-customer/proxies/index.js +34 -0
  42. package/dist/generated-customer/proxies/item/credentials/index.d.ts +41 -0
  43. package/dist/generated-customer/proxies/item/credentials/index.js +30 -0
  44. package/dist/generated-customer/proxies/item/index.d.ts +51 -0
  45. package/dist/generated-customer/proxies/item/index.js +48 -0
  46. package/dist/generated-customer/proxies/item/ipInfo/index.d.ts +29 -0
  47. package/dist/generated-customer/proxies/item/ipInfo/index.js +26 -0
  48. package/dist/generated-customer/proxies/item/ipRotation/index.d.ts +55 -0
  49. package/dist/generated-customer/proxies/item/ipRotation/index.js +45 -0
  50. package/dist/generated-customer/proxies/item/ipRotation/link/index.d.ts +27 -0
  51. package/dist/generated-customer/proxies/item/ipRotation/link/index.js +22 -0
  52. package/dist/generated-customer/proxies/item/ipRotation/trigger/index.d.ts +26 -0
  53. package/dist/generated-customer/proxies/item/ipRotation/trigger/index.js +16 -0
  54. package/dist/generated-customer/proxies/item/options/index.d.ts +27 -0
  55. package/dist/generated-customer/proxies/item/options/index.js +22 -0
  56. package/dist/generated-customer/reviews/index.d.ts +42 -0
  57. package/dist/generated-customer/reviews/index.js +34 -0
  58. package/dist/index.d.ts +3 -0
  59. package/dist/index.js +6 -0
  60. package/package.json +1 -1
@@ -0,0 +1,10 @@
1
+ import type { AuthenticationProvider, RequestInformation } from "@microsoft/kiota-abstractions";
2
+ /**
3
+ * Authenticates every request with a bearer token in the `Authorization` header. Kiota calls this before each
4
+ * outgoing request; the token is supplied once when the client is created.
5
+ */
6
+ export declare class BearerAuthenticationProvider implements AuthenticationProvider {
7
+ private readonly token;
8
+ constructor(token: string);
9
+ authenticateRequest(request: RequestInformation): Promise<void>;
10
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Authenticates every request with a bearer token in the `Authorization` header. Kiota calls this before each
3
+ * outgoing request; the token is supplied once when the client is created.
4
+ */
5
+ export class BearerAuthenticationProvider {
6
+ token;
7
+ constructor(token) {
8
+ this.token = token;
9
+ }
10
+ authenticateRequest(request) {
11
+ request.headers.tryAdd("Authorization", `Bearer ${this.token}`);
12
+ return Promise.resolve();
13
+ }
14
+ }
@@ -11,5 +11,6 @@
11
11
  * the generated Kiota plumbing directly.
12
12
  *
13
13
  * @param apiKey A Connect API key (e.g. `hl_live_…`).
14
+ * @param baseUrl Optional API base URL; leave empty to use the SDK default.
14
15
  */
15
- export declare function createConnectClient(apiKey: string): any;
16
+ export declare function createConnectClient(apiKey: string, baseUrl?: string): any;
@@ -14,11 +14,15 @@ import { ApiKeyAuthenticationProvider } from "./apiKeyAuthenticationProvider.js"
14
14
  * the generated Kiota plumbing directly.
15
15
  *
16
16
  * @param apiKey A Connect API key (e.g. `hl_live_…`).
17
+ * @param baseUrl Optional API base URL; leave empty to use the SDK default.
17
18
  */
18
- export function createConnectClient(apiKey) {
19
+ export function createConnectClient(apiKey, baseUrl) {
19
20
  if (!apiKey || !apiKey.trim()) {
20
21
  throw new Error("An API key is required.");
21
22
  }
22
23
  const adapter = new DefaultRequestAdapter(new ApiKeyAuthenticationProvider(apiKey));
24
+ if (baseUrl?.trim()) {
25
+ adapter.baseUrl = baseUrl;
26
+ }
23
27
  return createConnectApiClient(adapter);
24
28
  }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The entry point to the HypeLabs Connect API as one of your end users. Create one with a customer token and use
3
+ * the fluent request builders it returns — `client.orders.get()`, `client.proxies.get()`, and so on.
4
+ *
5
+ * ```ts
6
+ * const client = createCustomerClient("<customer token>");
7
+ * const orders = await client.orders.get();
8
+ * ```
9
+ *
10
+ * The request adapter and the `Authorization: Bearer` authentication are wired up internally, so callers never
11
+ * touch the generated Kiota plumbing directly. The token is the one returned by the authenticate endpoints.
12
+ *
13
+ * @param token A customer token obtained from one of the authenticate endpoints.
14
+ * @param baseUrl Optional API base URL; leave empty to use the SDK default.
15
+ */
16
+ export declare function createCustomerClient(token: string, baseUrl?: string): any;
@@ -0,0 +1,28 @@
1
+ import { DefaultRequestAdapter } from "@microsoft/kiota-bundle";
2
+ import { createCustomerApiClient } from "./generated-customer/customerApiClient.js";
3
+ import { BearerAuthenticationProvider } from "./bearerAuthenticationProvider.js";
4
+ /**
5
+ * The entry point to the HypeLabs Connect API as one of your end users. Create one with a customer token and use
6
+ * the fluent request builders it returns — `client.orders.get()`, `client.proxies.get()`, and so on.
7
+ *
8
+ * ```ts
9
+ * const client = createCustomerClient("<customer token>");
10
+ * const orders = await client.orders.get();
11
+ * ```
12
+ *
13
+ * The request adapter and the `Authorization: Bearer` authentication are wired up internally, so callers never
14
+ * touch the generated Kiota plumbing directly. The token is the one returned by the authenticate endpoints.
15
+ *
16
+ * @param token A customer token obtained from one of the authenticate endpoints.
17
+ * @param baseUrl Optional API base URL; leave empty to use the SDK default.
18
+ */
19
+ export function createCustomerClient(token, baseUrl) {
20
+ if (!token || !token.trim()) {
21
+ throw new Error("A customer token is required.");
22
+ }
23
+ const adapter = new DefaultRequestAdapter(new BearerAuthenticationProvider(token));
24
+ if (baseUrl?.trim()) {
25
+ adapter.baseUrl = baseUrl;
26
+ }
27
+ return createCustomerApiClient(adapter);
28
+ }
@@ -23,7 +23,7 @@ export interface CustomersRequestBuilder extends BaseRequestBuilder<CustomersReq
23
23
  */
24
24
  get(requestConfiguration?: RequestConfiguration<CustomersRequestBuilderGetQueryParameters> | undefined): Promise<Customer[] | undefined>;
25
25
  /**
26
- * Creates a customer for your organization.
26
+ * Creates a customer for your organization. Anonymous: the organization is named by the X-Organization-Id header, so your app can sign a new end user up without an API key.
27
27
  * @param body Payload to create a customer (your organization's own end user).
28
28
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
29
  * @returns {Promise<Customer>}
@@ -37,7 +37,7 @@ export interface CustomersRequestBuilder extends BaseRequestBuilder<CustomersReq
37
37
  */
38
38
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<CustomersRequestBuilderGetQueryParameters> | undefined): RequestInformation;
39
39
  /**
40
- * Creates a customer for your organization.
40
+ * Creates a customer for your organization. Anonymous: the organization is named by the X-Organization-Id header, so your app can sign a new end user up without an API key.
41
41
  * @param body Payload to create a customer (your organization's own end user).
42
42
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
43
43
  * @returns {RequestInformation}
@@ -0,0 +1,27 @@
1
+ import { type Announcement } from '../models/index.js';
2
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /announcements
5
+ */
6
+ export interface AnnouncementsRequestBuilder extends BaseRequestBuilder<AnnouncementsRequestBuilder> {
7
+ /**
8
+ * Returns the published announcements to show in the dashboard, most recent first.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<Announcement[]>}
11
+ */
12
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Announcement[] | undefined>;
13
+ /**
14
+ * Returns the published announcements to show in the dashboard, most recent first.
15
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
+ * @returns {RequestInformation}
17
+ */
18
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
19
+ }
20
+ /**
21
+ * Uri template for the request builder.
22
+ */
23
+ export declare const AnnouncementsRequestBuilderUriTemplate = "{+baseurl}/announcements";
24
+ /**
25
+ * Metadata for all the requests in the request builder.
26
+ */
27
+ export declare const AnnouncementsRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createAnnouncementFromDiscriminatorValue } from '../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const AnnouncementsRequestBuilderUriTemplate = "{+baseurl}/announcements";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const AnnouncementsRequestBuilderRequestsMetadata = {
14
+ get: {
15
+ uriTemplate: AnnouncementsRequestBuilderUriTemplate,
16
+ responseBodyContentType: "text/plain;q=0.9",
17
+ adapterMethodName: "sendCollection",
18
+ responseBodyFactory: createAnnouncementFromDiscriminatorValue,
19
+ },
20
+ };
21
+ /* tslint:enable */
22
+ /* eslint-enable */
@@ -0,0 +1,44 @@
1
+ import { type Capability } from '../../models/index.js';
2
+ import { type BaseRequestBuilder, type Guid, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /catalog/capabilities
5
+ */
6
+ export interface CapabilitiesRequestBuilder extends BaseRequestBuilder<CapabilitiesRequestBuilder> {
7
+ /**
8
+ * Returns the sellable proxy capabilities (title, description, icon) with their stock for the selection.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<Capability[]>}
11
+ */
12
+ get(requestConfiguration?: RequestConfiguration<CapabilitiesRequestBuilderGetQueryParameters> | undefined): Promise<Capability[] | undefined>;
13
+ /**
14
+ * Returns the sellable proxy capabilities (title, description, icon) with their stock for the selection.
15
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
+ * @returns {RequestInformation}
17
+ */
18
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<CapabilitiesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
19
+ }
20
+ /**
21
+ * Returns the sellable proxy capabilities (title, description, icon) with their stock for the selection.
22
+ */
23
+ export interface CapabilitiesRequestBuilderGetQueryParameters {
24
+ /**
25
+ * Narrow the stock to this datacenter (optional).
26
+ */
27
+ datacenterId?: Guid;
28
+ /**
29
+ * Narrow the stock to this ISP (optional).
30
+ */
31
+ ispId?: Guid;
32
+ /**
33
+ * Narrow the stock to this location (optional).
34
+ */
35
+ locationId?: Guid;
36
+ }
37
+ /**
38
+ * Uri template for the request builder.
39
+ */
40
+ export declare const CapabilitiesRequestBuilderUriTemplate = "{+baseurl}/catalog/capabilities{?datacenterId*,ispId*,locationId*}";
41
+ /**
42
+ * Metadata for all the requests in the request builder.
43
+ */
44
+ export declare const CapabilitiesRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createCapabilityFromDiscriminatorValue } from '../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const CapabilitiesRequestBuilderUriTemplate = "{+baseurl}/catalog/capabilities{?datacenterId*,ispId*,locationId*}";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const CapabilitiesRequestBuilderRequestsMetadata = {
14
+ get: {
15
+ uriTemplate: CapabilitiesRequestBuilderUriTemplate,
16
+ responseBodyContentType: "text/plain;q=0.9",
17
+ adapterMethodName: "sendCollection",
18
+ responseBodyFactory: createCapabilityFromDiscriminatorValue,
19
+ },
20
+ };
21
+ /* tslint:enable */
22
+ /* eslint-enable */
@@ -0,0 +1,45 @@
1
+ import { type Datacenter } from '../../models/index.js';
2
+ import { type BaseRequestBuilder, type Guid, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /catalog/datacenters
5
+ */
6
+ export interface DatacentersRequestBuilder extends BaseRequestBuilder<DatacentersRequestBuilder> {
7
+ /**
8
+ * Returns the available datacenters for a product, location and ISP.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<Datacenter[]>}
11
+ * @throws {ApiResponse} error when the service returns a 404 status code
12
+ */
13
+ get(requestConfiguration?: RequestConfiguration<DatacentersRequestBuilderGetQueryParameters> | undefined): Promise<Datacenter[] | undefined>;
14
+ /**
15
+ * Returns the available datacenters for a product, location and ISP.
16
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
17
+ * @returns {RequestInformation}
18
+ */
19
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<DatacentersRequestBuilderGetQueryParameters> | undefined): RequestInformation;
20
+ }
21
+ /**
22
+ * Returns the available datacenters for a product, location and ISP.
23
+ */
24
+ export interface DatacentersRequestBuilderGetQueryParameters {
25
+ /**
26
+ * Identifier of the selected ISP.
27
+ */
28
+ ispId?: Guid;
29
+ /**
30
+ * Identifier of the selected location.
31
+ */
32
+ locationId?: Guid;
33
+ /**
34
+ * Identifier of the product being priced.
35
+ */
36
+ productId?: Guid;
37
+ }
38
+ /**
39
+ * Uri template for the request builder.
40
+ */
41
+ export declare const DatacentersRequestBuilderUriTemplate = "{+baseurl}/catalog/datacenters?ispId={ispId}&locationId={locationId}&productId={productId}";
42
+ /**
43
+ * Metadata for all the requests in the request builder.
44
+ */
45
+ export declare const DatacentersRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,25 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createApiResponseFromDiscriminatorValue, createDatacenterFromDiscriminatorValue } from '../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const DatacentersRequestBuilderUriTemplate = "{+baseurl}/catalog/datacenters?ispId={ispId}&locationId={locationId}&productId={productId}";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const DatacentersRequestBuilderRequestsMetadata = {
14
+ get: {
15
+ uriTemplate: DatacentersRequestBuilderUriTemplate,
16
+ responseBodyContentType: "application/json",
17
+ errorMappings: {
18
+ 404: createApiResponseFromDiscriminatorValue,
19
+ },
20
+ adapterMethodName: "sendCollection",
21
+ responseBodyFactory: createDatacenterFromDiscriminatorValue,
22
+ },
23
+ };
24
+ /* tslint:enable */
25
+ /* eslint-enable */
@@ -0,0 +1,39 @@
1
+ import { type CapabilitiesRequestBuilder } from './capabilities/index.js';
2
+ import { type DatacentersRequestBuilder } from './datacenters/index.js';
3
+ import { type IspsRequestBuilder } from './isps/index.js';
4
+ import { type LocationsRequestBuilder } from './locations/index.js';
5
+ import { type ProductsRequestBuilder } from './products/index.js';
6
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
7
+ /**
8
+ * Builds and executes requests for operations under /catalog
9
+ */
10
+ export interface CatalogRequestBuilder extends BaseRequestBuilder<CatalogRequestBuilder> {
11
+ /**
12
+ * The capabilities property
13
+ */
14
+ get capabilities(): CapabilitiesRequestBuilder;
15
+ /**
16
+ * The datacenters property
17
+ */
18
+ get datacenters(): DatacentersRequestBuilder;
19
+ /**
20
+ * The isps property
21
+ */
22
+ get isps(): IspsRequestBuilder;
23
+ /**
24
+ * The locations property
25
+ */
26
+ get locations(): LocationsRequestBuilder;
27
+ /**
28
+ * The products property
29
+ */
30
+ get products(): ProductsRequestBuilder;
31
+ }
32
+ /**
33
+ * Uri template for the request builder.
34
+ */
35
+ export declare const CatalogRequestBuilderUriTemplate = "{+baseurl}/catalog";
36
+ /**
37
+ * Metadata for all the navigation properties in the request builder.
38
+ */
39
+ export declare const CatalogRequestBuilderNavigationMetadata: Record<Exclude<keyof CatalogRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
@@ -0,0 +1,39 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { CapabilitiesRequestBuilderRequestsMetadata } from './capabilities/index.js';
6
+ // @ts-ignore
7
+ import { DatacentersRequestBuilderRequestsMetadata } from './datacenters/index.js';
8
+ // @ts-ignore
9
+ import { IspsRequestBuilderRequestsMetadata } from './isps/index.js';
10
+ // @ts-ignore
11
+ import { LocationsRequestBuilderRequestsMetadata } from './locations/index.js';
12
+ // @ts-ignore
13
+ import { ProductsRequestBuilderRequestsMetadata } from './products/index.js';
14
+ /**
15
+ * Uri template for the request builder.
16
+ */
17
+ export const CatalogRequestBuilderUriTemplate = "{+baseurl}/catalog";
18
+ /**
19
+ * Metadata for all the navigation properties in the request builder.
20
+ */
21
+ export const CatalogRequestBuilderNavigationMetadata = {
22
+ capabilities: {
23
+ requestsMetadata: CapabilitiesRequestBuilderRequestsMetadata,
24
+ },
25
+ datacenters: {
26
+ requestsMetadata: DatacentersRequestBuilderRequestsMetadata,
27
+ },
28
+ isps: {
29
+ requestsMetadata: IspsRequestBuilderRequestsMetadata,
30
+ },
31
+ locations: {
32
+ requestsMetadata: LocationsRequestBuilderRequestsMetadata,
33
+ },
34
+ products: {
35
+ requestsMetadata: ProductsRequestBuilderRequestsMetadata,
36
+ },
37
+ };
38
+ /* tslint:enable */
39
+ /* eslint-enable */
@@ -0,0 +1,45 @@
1
+ import { type Isp } from '../../models/index.js';
2
+ import { type BaseRequestBuilder, type Guid, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /catalog/isps
5
+ */
6
+ export interface IspsRequestBuilder extends BaseRequestBuilder<IspsRequestBuilder> {
7
+ /**
8
+ * Returns the available ISPs for a product and location. Options the organization has disabled are hidden unless includeDisabled is set.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<Isp[]>}
11
+ * @throws {ApiResponse} error when the service returns a 404 status code
12
+ */
13
+ get(requestConfiguration?: RequestConfiguration<IspsRequestBuilderGetQueryParameters> | undefined): Promise<Isp[] | undefined>;
14
+ /**
15
+ * Returns the available ISPs for a product and location. Options the organization has disabled are hidden unless includeDisabled is set.
16
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
17
+ * @returns {RequestInformation}
18
+ */
19
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<IspsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
20
+ }
21
+ /**
22
+ * Returns the available ISPs for a product and location. Options the organization has disabled are hidden unless includeDisabled is set.
23
+ */
24
+ export interface IspsRequestBuilderGetQueryParameters {
25
+ /**
26
+ * Include options the organization has disabled (hidden by default).
27
+ */
28
+ includeDisabled?: boolean;
29
+ /**
30
+ * Identifier of the selected location.
31
+ */
32
+ locationId?: Guid;
33
+ /**
34
+ * Identifier of the product being priced.
35
+ */
36
+ productId?: Guid;
37
+ }
38
+ /**
39
+ * Uri template for the request builder.
40
+ */
41
+ export declare const IspsRequestBuilderUriTemplate = "{+baseurl}/catalog/isps?locationId={locationId}&productId={productId}{&includeDisabled*}";
42
+ /**
43
+ * Metadata for all the requests in the request builder.
44
+ */
45
+ export declare const IspsRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,25 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createApiResponseFromDiscriminatorValue, createIspFromDiscriminatorValue } from '../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const IspsRequestBuilderUriTemplate = "{+baseurl}/catalog/isps?locationId={locationId}&productId={productId}{&includeDisabled*}";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const IspsRequestBuilderRequestsMetadata = {
14
+ get: {
15
+ uriTemplate: IspsRequestBuilderUriTemplate,
16
+ responseBodyContentType: "application/json",
17
+ errorMappings: {
18
+ 404: createApiResponseFromDiscriminatorValue,
19
+ },
20
+ adapterMethodName: "sendCollection",
21
+ responseBodyFactory: createIspFromDiscriminatorValue,
22
+ },
23
+ };
24
+ /* tslint:enable */
25
+ /* eslint-enable */
@@ -0,0 +1,41 @@
1
+ import { type Location } from '../../models/index.js';
2
+ import { type BaseRequestBuilder, type Guid, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /catalog/locations
5
+ */
6
+ export interface LocationsRequestBuilder extends BaseRequestBuilder<LocationsRequestBuilder> {
7
+ /**
8
+ * Returns the available locations (with their ISPs) for a product. Options the organization has disabled are hidden unless includeDisabled is set.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<Location[]>}
11
+ * @throws {ApiResponse} error when the service returns a 404 status code
12
+ */
13
+ get(requestConfiguration?: RequestConfiguration<LocationsRequestBuilderGetQueryParameters> | undefined): Promise<Location[] | undefined>;
14
+ /**
15
+ * Returns the available locations (with their ISPs) for a product. Options the organization has disabled are hidden unless includeDisabled is set.
16
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
17
+ * @returns {RequestInformation}
18
+ */
19
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<LocationsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
20
+ }
21
+ /**
22
+ * Returns the available locations (with their ISPs) for a product. Options the organization has disabled are hidden unless includeDisabled is set.
23
+ */
24
+ export interface LocationsRequestBuilderGetQueryParameters {
25
+ /**
26
+ * Include options the organization has disabled (hidden by default).
27
+ */
28
+ includeDisabled?: boolean;
29
+ /**
30
+ * Identifier of the product whose locations to list.
31
+ */
32
+ productId?: Guid;
33
+ }
34
+ /**
35
+ * Uri template for the request builder.
36
+ */
37
+ export declare const LocationsRequestBuilderUriTemplate = "{+baseurl}/catalog/locations?productId={productId}{&includeDisabled*}";
38
+ /**
39
+ * Metadata for all the requests in the request builder.
40
+ */
41
+ export declare const LocationsRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,25 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createApiResponseFromDiscriminatorValue, createLocationFromDiscriminatorValue } from '../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const LocationsRequestBuilderUriTemplate = "{+baseurl}/catalog/locations?productId={productId}{&includeDisabled*}";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const LocationsRequestBuilderRequestsMetadata = {
14
+ get: {
15
+ uriTemplate: LocationsRequestBuilderUriTemplate,
16
+ responseBodyContentType: "application/json",
17
+ errorMappings: {
18
+ 404: createApiResponseFromDiscriminatorValue,
19
+ },
20
+ adapterMethodName: "sendCollection",
21
+ responseBodyFactory: createLocationFromDiscriminatorValue,
22
+ },
23
+ };
24
+ /* tslint:enable */
25
+ /* eslint-enable */
@@ -0,0 +1,33 @@
1
+ import { type Product } from '../../models/index.js';
2
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /catalog/products
5
+ */
6
+ export interface ProductsRequestBuilder extends BaseRequestBuilder<ProductsRequestBuilder> {
7
+ /**
8
+ * Returns the commercial catalog (products, pricing) enriched with available locations and ISPs. Options the organization has disabled are hidden unless includeDisabled is set.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<Product[]>}
11
+ */
12
+ get(requestConfiguration?: RequestConfiguration<ProductsRequestBuilderGetQueryParameters> | undefined): Promise<Product[] | undefined>;
13
+ /**
14
+ * Returns the commercial catalog (products, pricing) enriched with available locations and ISPs. Options the organization has disabled are hidden unless includeDisabled is set.
15
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
+ * @returns {RequestInformation}
17
+ */
18
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<ProductsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
19
+ }
20
+ /**
21
+ * Returns the commercial catalog (products, pricing) enriched with available locations and ISPs. Options the organization has disabled are hidden unless includeDisabled is set.
22
+ */
23
+ export interface ProductsRequestBuilderGetQueryParameters {
24
+ includeDisabled?: boolean;
25
+ }
26
+ /**
27
+ * Uri template for the request builder.
28
+ */
29
+ export declare const ProductsRequestBuilderUriTemplate = "{+baseurl}/catalog/products{?includeDisabled*}";
30
+ /**
31
+ * Metadata for all the requests in the request builder.
32
+ */
33
+ export declare const ProductsRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createProductFromDiscriminatorValue } from '../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const ProductsRequestBuilderUriTemplate = "{+baseurl}/catalog/products{?includeDisabled*}";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const ProductsRequestBuilderRequestsMetadata = {
14
+ get: {
15
+ uriTemplate: ProductsRequestBuilderUriTemplate,
16
+ responseBodyContentType: "text/plain;q=0.9",
17
+ adapterMethodName: "sendCollection",
18
+ responseBodyFactory: createProductFromDiscriminatorValue,
19
+ },
20
+ };
21
+ /* tslint:enable */
22
+ /* eslint-enable */
@@ -0,0 +1,54 @@
1
+ import { type AnnouncementsRequestBuilder } from './announcements/index.js';
2
+ import { type CatalogRequestBuilder } from './catalog/index.js';
3
+ import { type IncidentsRequestBuilder } from './incidents/index.js';
4
+ import { type OrdersRequestBuilder } from './orders/index.js';
5
+ import { type OrganizationsRequestBuilder } from './organizations/index.js';
6
+ import { type ProxiesRequestBuilder } from './proxies/index.js';
7
+ import { type ReviewsRequestBuilder } from './reviews/index.js';
8
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions';
9
+ /**
10
+ * Instantiates a new {@link CustomerApiClient} and sets the default values.
11
+ * @param requestAdapter The request adapter to use to execute the requests.
12
+ */
13
+ export declare function createCustomerApiClient(requestAdapter: RequestAdapter): any;
14
+ /**
15
+ * The main entry point of the SDK, exposes the configuration and the fluent API.
16
+ */
17
+ export interface CustomerApiClient extends BaseRequestBuilder<CustomerApiClient> {
18
+ /**
19
+ * The announcements property
20
+ */
21
+ get announcements(): AnnouncementsRequestBuilder;
22
+ /**
23
+ * The catalog property
24
+ */
25
+ get catalog(): CatalogRequestBuilder;
26
+ /**
27
+ * The incidents property
28
+ */
29
+ get incidents(): IncidentsRequestBuilder;
30
+ /**
31
+ * The orders property
32
+ */
33
+ get orders(): OrdersRequestBuilder;
34
+ /**
35
+ * The organizations property
36
+ */
37
+ get organizations(): OrganizationsRequestBuilder;
38
+ /**
39
+ * The proxies property
40
+ */
41
+ get proxies(): ProxiesRequestBuilder;
42
+ /**
43
+ * The reviews property
44
+ */
45
+ get reviews(): ReviewsRequestBuilder;
46
+ }
47
+ /**
48
+ * Uri template for the request builder.
49
+ */
50
+ export declare const CustomerApiClientUriTemplate = "{+baseurl}";
51
+ /**
52
+ * Metadata for all the navigation properties in the request builder.
53
+ */
54
+ export declare const CustomerApiClientNavigationMetadata: Record<Exclude<keyof CustomerApiClient, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;