@hypelabs-llc/ts-sdk 0.1.2 → 0.1.3

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.
@@ -0,0 +1,41 @@
1
+ import { type Organization, type OrganizationEmail2, type UpdateOrganizationEmailRequest } 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 /organizations/{organizationId}/email
5
+ */
6
+ export interface EmailRequestBuilder extends BaseRequestBuilder<EmailRequestBuilder> {
7
+ /**
8
+ * Returns the organization's email-sending settings, or null if none are set. The Mailgun API key is never returned.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<OrganizationEmail2>}
11
+ */
12
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<OrganizationEmail2 | undefined>;
13
+ /**
14
+ * Saves the organization's email-sending settings (Mailgun key, region, sending domain, from and reply-to).
15
+ * @param body The request body
16
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
17
+ * @returns {Promise<Organization>}
18
+ */
19
+ put(body: UpdateOrganizationEmailRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Organization | undefined>;
20
+ /**
21
+ * Returns the organization's email-sending settings, or null if none are set. The Mailgun API key is never returned.
22
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
23
+ * @returns {RequestInformation}
24
+ */
25
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
26
+ /**
27
+ * Saves the organization's email-sending settings (Mailgun key, region, sending domain, from and reply-to).
28
+ * @param body The request body
29
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
30
+ * @returns {RequestInformation}
31
+ */
32
+ toPutRequestInformation(body: UpdateOrganizationEmailRequest, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
33
+ }
34
+ /**
35
+ * Uri template for the request builder.
36
+ */
37
+ export declare const EmailRequestBuilderUriTemplate = "{+baseurl}/organizations/{organizationId}/email";
38
+ /**
39
+ * Metadata for all the requests in the request builder.
40
+ */
41
+ export declare const EmailRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createOrganizationEmail2FromDiscriminatorValue, createOrganizationFromDiscriminatorValue, serializeUpdateOrganizationEmailRequest } from '../../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const EmailRequestBuilderUriTemplate = "{+baseurl}/organizations/{organizationId}/email";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const EmailRequestBuilderRequestsMetadata = {
14
+ get: {
15
+ uriTemplate: EmailRequestBuilderUriTemplate,
16
+ responseBodyContentType: "application/json, text/plain;q=0.9",
17
+ adapterMethodName: "send",
18
+ responseBodyFactory: createOrganizationEmail2FromDiscriminatorValue,
19
+ },
20
+ put: {
21
+ uriTemplate: EmailRequestBuilderUriTemplate,
22
+ responseBodyContentType: "application/json, text/plain;q=0.9",
23
+ adapterMethodName: "send",
24
+ responseBodyFactory: createOrganizationFromDiscriminatorValue,
25
+ requestBodyContentType: "application/json",
26
+ requestBodySerializer: serializeUpdateOrganizationEmailRequest,
27
+ requestInformationContentSetMethod: "setContentFromParsable",
28
+ },
29
+ };
30
+ /* tslint:enable */
31
+ /* eslint-enable */
@@ -2,8 +2,10 @@ import { type Organization, type UpdateOrganizationRequest } from '../../models/
2
2
  import { type BalanceRequestBuilder } from './balance/index.js';
3
3
  import { type BillingRequestBuilder } from './billing/index.js';
4
4
  import { type BrandingRequestBuilder } from './branding/index.js';
5
+ import { type EmailRequestBuilder } from './email/index.js';
5
6
  import { type InfrastructureRequestBuilder } from './infrastructure/index.js';
6
7
  import { type MembersRequestBuilder } from './members/index.js';
8
+ import { type PricingRequestBuilder } from './pricing/index.js';
7
9
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
8
10
  /**
9
11
  * Builds and executes requests for operations under /organizations/{organizationId}
@@ -21,6 +23,10 @@ export interface WithOrganizationItemRequestBuilder extends BaseRequestBuilder<W
21
23
  * The branding property
22
24
  */
23
25
  get branding(): BrandingRequestBuilder;
26
+ /**
27
+ * The email property
28
+ */
29
+ get email(): EmailRequestBuilder;
24
30
  /**
25
31
  * The infrastructure property
26
32
  */
@@ -29,6 +35,10 @@ export interface WithOrganizationItemRequestBuilder extends BaseRequestBuilder<W
29
35
  * The members property
30
36
  */
31
37
  get members(): MembersRequestBuilder;
38
+ /**
39
+ * The pricing property
40
+ */
41
+ get pricing(): PricingRequestBuilder;
32
42
  /**
33
43
  * Permanently deletes an organization. Only its owner can do this.
34
44
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -10,9 +10,13 @@ import { BillingRequestBuilderRequestsMetadata } from './billing/index.js';
10
10
  // @ts-ignore
11
11
  import { BrandingRequestBuilderRequestsMetadata } from './branding/index.js';
12
12
  // @ts-ignore
13
- import { InfrastructureRequestBuilderRequestsMetadata } from './infrastructure/index.js';
13
+ import { EmailRequestBuilderRequestsMetadata } from './email/index.js';
14
+ // @ts-ignore
15
+ import { InfrastructureRequestBuilderNavigationMetadata, InfrastructureRequestBuilderRequestsMetadata } from './infrastructure/index.js';
14
16
  // @ts-ignore
15
17
  import { MembersRequestBuilderNavigationMetadata, MembersRequestBuilderRequestsMetadata } from './members/index.js';
18
+ // @ts-ignore
19
+ import { PricingRequestBuilderRequestsMetadata } from './pricing/index.js';
16
20
  /**
17
21
  * Uri template for the request builder.
18
22
  */
@@ -31,13 +35,20 @@ export const WithOrganizationItemRequestBuilderNavigationMetadata = {
31
35
  branding: {
32
36
  requestsMetadata: BrandingRequestBuilderRequestsMetadata,
33
37
  },
38
+ email: {
39
+ requestsMetadata: EmailRequestBuilderRequestsMetadata,
40
+ },
34
41
  infrastructure: {
35
42
  requestsMetadata: InfrastructureRequestBuilderRequestsMetadata,
43
+ navigationMetadata: InfrastructureRequestBuilderNavigationMetadata,
36
44
  },
37
45
  members: {
38
46
  requestsMetadata: MembersRequestBuilderRequestsMetadata,
39
47
  navigationMetadata: MembersRequestBuilderNavigationMetadata,
40
48
  },
49
+ pricing: {
50
+ requestsMetadata: PricingRequestBuilderRequestsMetadata,
51
+ },
41
52
  };
42
53
  /**
43
54
  * Metadata for all the requests in the request builder.
@@ -0,0 +1,33 @@
1
+ import { type DnsCheckResponse } 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 /organizations/{organizationId}/infrastructure/dns-check
5
+ */
6
+ export interface DnsCheckRequestBuilder extends BaseRequestBuilder<DnsCheckRequestBuilder> {
7
+ /**
8
+ * Reports whether the given domain is delegated to our nameservers.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<DnsCheckResponse>}
11
+ */
12
+ post(requestConfiguration?: RequestConfiguration<DnsCheckRequestBuilderPostQueryParameters> | undefined): Promise<DnsCheckResponse | undefined>;
13
+ /**
14
+ * Reports whether the given domain is delegated to our nameservers.
15
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
+ * @returns {RequestInformation}
17
+ */
18
+ toPostRequestInformation(requestConfiguration?: RequestConfiguration<DnsCheckRequestBuilderPostQueryParameters> | undefined): RequestInformation;
19
+ }
20
+ /**
21
+ * Reports whether the given domain is delegated to our nameservers.
22
+ */
23
+ export interface DnsCheckRequestBuilderPostQueryParameters {
24
+ domain?: string;
25
+ }
26
+ /**
27
+ * Uri template for the request builder.
28
+ */
29
+ export declare const DnsCheckRequestBuilderUriTemplate = "{+baseurl}/organizations/{organizationId}/infrastructure/dns-check{?domain*}";
30
+ /**
31
+ * Metadata for all the requests in the request builder.
32
+ */
33
+ export declare const DnsCheckRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createDnsCheckResponseFromDiscriminatorValue } from '../../../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const DnsCheckRequestBuilderUriTemplate = "{+baseurl}/organizations/{organizationId}/infrastructure/dns-check{?domain*}";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const DnsCheckRequestBuilderRequestsMetadata = {
14
+ post: {
15
+ uriTemplate: DnsCheckRequestBuilderUriTemplate,
16
+ responseBodyContentType: "application/json, text/plain;q=0.9",
17
+ adapterMethodName: "send",
18
+ responseBodyFactory: createDnsCheckResponseFromDiscriminatorValue,
19
+ },
20
+ };
21
+ /* tslint:enable */
22
+ /* eslint-enable */
@@ -1,9 +1,14 @@
1
1
  import { type Organization, type OrganizationInfrastructure2, type UpdateOrganizationInfrastructureRequest } from '../../../models/index.js';
2
- import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
2
+ import { type DnsCheckRequestBuilder } from './dnsCheck/index.js';
3
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
4
  /**
4
5
  * Builds and executes requests for operations under /organizations/{organizationId}/infrastructure
5
6
  */
6
7
  export interface InfrastructureRequestBuilder extends BaseRequestBuilder<InfrastructureRequestBuilder> {
8
+ /**
9
+ * The dnsCheck property
10
+ */
11
+ get dnsCheck(): DnsCheckRequestBuilder;
7
12
  /**
8
13
  * Returns the organization's proxy plumbing, or null if none is set.
9
14
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -35,6 +40,10 @@ export interface InfrastructureRequestBuilder extends BaseRequestBuilder<Infrast
35
40
  * Uri template for the request builder.
36
41
  */
37
42
  export declare const InfrastructureRequestBuilderUriTemplate = "{+baseurl}/organizations/{organizationId}/infrastructure";
43
+ /**
44
+ * Metadata for all the navigation properties in the request builder.
45
+ */
46
+ export declare const InfrastructureRequestBuilderNavigationMetadata: Record<Exclude<keyof InfrastructureRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
38
47
  /**
39
48
  * Metadata for all the requests in the request builder.
40
49
  */
@@ -3,10 +3,20 @@
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
5
  import { createOrganizationFromDiscriminatorValue, createOrganizationInfrastructure2FromDiscriminatorValue, serializeUpdateOrganizationInfrastructureRequest } from '../../../models/index.js';
6
+ // @ts-ignore
7
+ import { DnsCheckRequestBuilderRequestsMetadata } from './dnsCheck/index.js';
6
8
  /**
7
9
  * Uri template for the request builder.
8
10
  */
9
11
  export const InfrastructureRequestBuilderUriTemplate = "{+baseurl}/organizations/{organizationId}/infrastructure";
12
+ /**
13
+ * Metadata for all the navigation properties in the request builder.
14
+ */
15
+ export const InfrastructureRequestBuilderNavigationMetadata = {
16
+ dnsCheck: {
17
+ requestsMetadata: DnsCheckRequestBuilderRequestsMetadata,
18
+ },
19
+ };
10
20
  /**
11
21
  * Metadata for all the requests in the request builder.
12
22
  */
@@ -0,0 +1,29 @@
1
+ import { type UpdateOrganizationPricingRequest } 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 /organizations/{organizationId}/pricing
5
+ */
6
+ export interface PricingRequestBuilder extends BaseRequestBuilder<PricingRequestBuilder> {
7
+ /**
8
+ * Disables and/or overrides the price of a product, location or ISP for the organization. Upserts a single org-scoped price row, and clears it when the item is left enabled and un-priced.
9
+ * @param body The request body
10
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
11
+ * @returns {Promise<ArrayBuffer>}
12
+ */
13
+ put(body: UpdateOrganizationPricingRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ArrayBuffer | undefined>;
14
+ /**
15
+ * Disables and/or overrides the price of a product, location or ISP for the organization. Upserts a single org-scoped price row, and clears it when the item is left enabled and un-priced.
16
+ * @param body The request body
17
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
18
+ * @returns {RequestInformation}
19
+ */
20
+ toPutRequestInformation(body: UpdateOrganizationPricingRequest, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
21
+ }
22
+ /**
23
+ * Uri template for the request builder.
24
+ */
25
+ export declare const PricingRequestBuilderUriTemplate = "{+baseurl}/organizations/{organizationId}/pricing";
26
+ /**
27
+ * Metadata for all the requests in the request builder.
28
+ */
29
+ export declare const PricingRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,24 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { serializeUpdateOrganizationPricingRequest } from '../../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const PricingRequestBuilderUriTemplate = "{+baseurl}/organizations/{organizationId}/pricing";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const PricingRequestBuilderRequestsMetadata = {
14
+ put: {
15
+ uriTemplate: PricingRequestBuilderUriTemplate,
16
+ adapterMethodName: "sendPrimitive",
17
+ responseBodyFactory: "ArrayBuffer",
18
+ requestBodyContentType: "application/json",
19
+ requestBodySerializer: serializeUpdateOrganizationPricingRequest,
20
+ requestInformationContentSetMethod: "setContentFromParsable",
21
+ },
22
+ };
23
+ /* tslint:enable */
24
+ /* eslint-enable */
@@ -8,6 +8,7 @@ import { type OrganizationsRequestBuilder } from './organizations/index.js';
8
8
  import { type PaymentProcessorsRequestBuilder } from './paymentProcessors/index.js';
9
9
  import { type ProductsRequestBuilder } from './products/index.js';
10
10
  import { type ProxiesRequestBuilder } from './proxies/index.js';
11
+ import { type SystemAlertRequestBuilder } from './systemAlert/index.js';
11
12
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions';
12
13
  /**
13
14
  * Instantiates a new {@link PartnerApiClient} and sets the default values.
@@ -58,6 +59,10 @@ export interface PartnerApiClient extends BaseRequestBuilder<PartnerApiClient> {
58
59
  * The proxies property
59
60
  */
60
61
  get proxies(): ProxiesRequestBuilder;
62
+ /**
63
+ * The systemAlert property
64
+ */
65
+ get systemAlert(): SystemAlertRequestBuilder;
61
66
  }
62
67
  /**
63
68
  * Uri template for the request builder.
@@ -22,6 +22,8 @@ import { ProductsRequestBuilderRequestsMetadata } from './products/index.js';
22
22
  // @ts-ignore
23
23
  import { ProxiesRequestBuilderNavigationMetadata, ProxiesRequestBuilderRequestsMetadata } from './proxies/index.js';
24
24
  // @ts-ignore
25
+ import { SystemAlertRequestBuilderRequestsMetadata } from './systemAlert/index.js';
26
+ // @ts-ignore
25
27
  import { apiClientProxifier } from '@microsoft/kiota-abstractions';
26
28
  // @ts-ignore
27
29
  import { FormParseNodeFactory, FormSerializationWriterFactory } from '@microsoft/kiota-serialization-form';
@@ -105,6 +107,9 @@ export const PartnerApiClientNavigationMetadata = {
105
107
  requestsMetadata: ProxiesRequestBuilderRequestsMetadata,
106
108
  navigationMetadata: ProxiesRequestBuilderNavigationMetadata,
107
109
  },
110
+ systemAlert: {
111
+ requestsMetadata: SystemAlertRequestBuilderRequestsMetadata,
112
+ },
108
113
  };
109
114
  /* tslint:enable */
110
115
  /* eslint-enable */
@@ -0,0 +1,27 @@
1
+ import { type SystemAlert } 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 /system-alert
5
+ */
6
+ export interface SystemAlertRequestBuilder extends BaseRequestBuilder<SystemAlertRequestBuilder> {
7
+ /**
8
+ * Returns the current platform-wide alert, or 204 when none is set.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<SystemAlert>}
11
+ */
12
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SystemAlert | undefined>;
13
+ /**
14
+ * Returns the current platform-wide alert, or 204 when none 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<object> | undefined): RequestInformation;
19
+ }
20
+ /**
21
+ * Uri template for the request builder.
22
+ */
23
+ export declare const SystemAlertRequestBuilderUriTemplate = "{+baseurl}/system-alert";
24
+ /**
25
+ * Metadata for all the requests in the request builder.
26
+ */
27
+ export declare const SystemAlertRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createSystemAlertFromDiscriminatorValue } from '../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const SystemAlertRequestBuilderUriTemplate = "{+baseurl}/system-alert";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const SystemAlertRequestBuilderRequestsMetadata = {
14
+ get: {
15
+ uriTemplate: SystemAlertRequestBuilderUriTemplate,
16
+ responseBodyContentType: "application/json, text/plain;q=0.9",
17
+ adapterMethodName: "send",
18
+ responseBodyFactory: createSystemAlertFromDiscriminatorValue,
19
+ },
20
+ };
21
+ /* tslint:enable */
22
+ /* eslint-enable */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypelabs-llc/ts-sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "The TypeScript client for the HypeLabs Partner API, for internal services.",
5
5
  "license": "MIT",
6
6
  "repository": {