@hypelabs-llc/ts-sdk 0.2.1 → 0.2.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.
@@ -3,6 +3,7 @@ import { type CatalogRequestBuilder } from './catalog/index.js';
3
3
  import { type CustomersRequestBuilder } from './customers/index.js';
4
4
  import { type IncidentsRequestBuilder } from './incidents/index.js';
5
5
  import { type OrdersRequestBuilder } from './orders/index.js';
6
+ import { type OrganizationsRequestBuilder } from './organizations/index.js';
6
7
  import { type ProxiesRequestBuilder } from './proxies/index.js';
7
8
  import { type ReviewsRequestBuilder } from './reviews/index.js';
8
9
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions';
@@ -30,6 +31,10 @@ export interface ConnectApiClient extends BaseRequestBuilder<ConnectApiClient> {
30
31
  * The orders property
31
32
  */
32
33
  get orders(): OrdersRequestBuilder;
34
+ /**
35
+ * The organizations property
36
+ */
37
+ get organizations(): OrganizationsRequestBuilder;
33
38
  /**
34
39
  * The proxies property
35
40
  */
@@ -12,6 +12,8 @@ import { IncidentsRequestBuilderNavigationMetadata, IncidentsRequestBuilderReque
12
12
  // @ts-ignore
13
13
  import { OrdersRequestBuilderNavigationMetadata, OrdersRequestBuilderRequestsMetadata } from './orders/index.js';
14
14
  // @ts-ignore
15
+ import { OrganizationsRequestBuilderNavigationMetadata } from './organizations/index.js';
16
+ // @ts-ignore
15
17
  import { ProxiesRequestBuilderNavigationMetadata, ProxiesRequestBuilderRequestsMetadata } from './proxies/index.js';
16
18
  // @ts-ignore
17
19
  import { ReviewsRequestBuilderNavigationMetadata, ReviewsRequestBuilderRequestsMetadata } from './reviews/index.js';
@@ -82,6 +84,9 @@ export const ConnectApiClientNavigationMetadata = {
82
84
  requestsMetadata: OrdersRequestBuilderRequestsMetadata,
83
85
  navigationMetadata: OrdersRequestBuilderNavigationMetadata,
84
86
  },
87
+ organizations: {
88
+ navigationMetadata: OrganizationsRequestBuilderNavigationMetadata,
89
+ },
85
90
  proxies: {
86
91
  requestsMetadata: ProxiesRequestBuilderRequestsMetadata,
87
92
  navigationMetadata: ProxiesRequestBuilderNavigationMetadata,
@@ -496,6 +496,18 @@ export interface CreateOrderResponse extends AdditionalDataHolder, Parsable {
496
496
  */
497
497
  returnUrl?: string | null;
498
498
  }
499
+ /**
500
+ * Creates a new instance of the appropriate class based on discriminator value
501
+ * @param parseNode The parse node to use to read the discriminator value and create the object
502
+ * @returns {OrganizationBranding}
503
+ */
504
+ export declare function createOrganizationBrandingFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
505
+ /**
506
+ * Creates a new instance of the appropriate class based on discriminator value
507
+ * @param parseNode The parse node to use to read the discriminator value and create the object
508
+ * @returns {OrganizationStore}
509
+ */
510
+ export declare function createOrganizationStoreFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
499
511
  /**
500
512
  * Creates a new instance of the appropriate class based on discriminator value
501
513
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1202,6 +1214,18 @@ export declare function deserializeIntoOrderItem(orderItem?: Partial<OrderItem>
1202
1214
  * @returns {Record<string, (node: ParseNode) => void>}
1203
1215
  */
1204
1216
  export declare function deserializeIntoOrderItem_metadata(orderItem_metadata?: Partial<OrderItem_metadata> | undefined): Record<string, (node: ParseNode) => void>;
1217
+ /**
1218
+ * The deserialization information for the current model
1219
+ * @param OrganizationBranding The instance to deserialize into.
1220
+ * @returns {Record<string, (node: ParseNode) => void>}
1221
+ */
1222
+ export declare function deserializeIntoOrganizationBranding(organizationBranding?: Partial<OrganizationBranding> | undefined): Record<string, (node: ParseNode) => void>;
1223
+ /**
1224
+ * The deserialization information for the current model
1225
+ * @param OrganizationStore The instance to deserialize into.
1226
+ * @returns {Record<string, (node: ParseNode) => void>}
1227
+ */
1228
+ export declare function deserializeIntoOrganizationStore(organizationStore?: Partial<OrganizationStore> | undefined): Record<string, (node: ParseNode) => void>;
1205
1229
  /**
1206
1230
  * The deserialization information for the current model
1207
1231
  * @param PatchCustomerBillingRequest The instance to deserialize into.
@@ -1797,6 +1821,72 @@ export interface OrderItem extends AdditionalDataHolder, Parsable {
1797
1821
  export interface OrderItem_metadata extends AdditionalDataHolder, Parsable {
1798
1822
  }
1799
1823
  export type OrderStatuses = (typeof OrderStatusesObject)[keyof typeof OrderStatusesObject];
1824
+ /**
1825
+ * White-label branding for an organization (colors, logos, icon). A value object owned byOrganization with no identity of its own. All fields optional.Naming convention: an organization's sub-aspects are `Organization&lt;Aspect&gt;` value objectsexposed as a same-named property on Organization (e.g. this `Branding`, or a future`OrganizationBilling` as `Billing`). Same shape every time.
1826
+ */
1827
+ export interface OrganizationBranding extends AdditionalDataHolder, Parsable {
1828
+ /**
1829
+ * Accent color as a hex string (e.g. "#4F46E5"), used to theme the reseller's UI.
1830
+ */
1831
+ accentColor?: string | null;
1832
+ /**
1833
+ * Icon / favicon (URL).
1834
+ */
1835
+ iconUrl?: string | null;
1836
+ /**
1837
+ * Single logo to fall back on: the light variant if set, otherwise the dark one.
1838
+ */
1839
+ logo?: string | null;
1840
+ /**
1841
+ * Logo shown on dark backgrounds (URL).
1842
+ */
1843
+ logoDarkUrl?: string | null;
1844
+ /**
1845
+ * Logo shown on light backgrounds (URL).
1846
+ */
1847
+ logoLightUrl?: string | null;
1848
+ }
1849
+ /**
1850
+ * An organization's white-label store: the customer-facing storefront served under its own domain. A valueobject owned by Organization with no identity of its own; an organization has at most one, andit is null until a store is created. Follows the same convention as OrganizationBranding andOrganizationBilling: an `Organization&lt;Aspect&gt;` value object exposed as a same-namedproperty on Organization (here `Store`).
1851
+ */
1852
+ export interface OrganizationStore extends AdditionalDataHolder, Parsable {
1853
+ /**
1854
+ * Crisp workspace id for the store's live chat.
1855
+ */
1856
+ crispWorkspaceId?: string | null;
1857
+ /**
1858
+ * Store documentation shown to customers, as markdown.
1859
+ */
1860
+ documentationMd?: string | null;
1861
+ /**
1862
+ * Domain or subdomain the store is served on.
1863
+ */
1864
+ domain?: string | null;
1865
+ /**
1866
+ * Store name shown to customers.
1867
+ */
1868
+ name?: string | null;
1869
+ /**
1870
+ * Whether the store shows the documentation tab.
1871
+ */
1872
+ showDocumentationTab?: boolean | null;
1873
+ /**
1874
+ * Whether the store shows the reviews tab.
1875
+ */
1876
+ showReviewsTab?: boolean | null;
1877
+ /**
1878
+ * Link to the reseller's support channel, such as Telegram or Discord.
1879
+ */
1880
+ supportUrl?: string | null;
1881
+ /**
1882
+ * Short tagline shown on the store.
1883
+ */
1884
+ tagline?: string | null;
1885
+ /**
1886
+ * Message shown in the store's top banner; empty/null hides the banner.
1887
+ */
1888
+ topBannerMessage?: string | null;
1889
+ }
1800
1890
  export type PasswordHashSchemes = (typeof PasswordHashSchemesObject)[keyof typeof PasswordHashSchemesObject];
1801
1891
  /**
1802
1892
  * Partial update of a customer's billing details: only the provided fields are changed, the rest are left as they are.
@@ -2576,6 +2666,20 @@ export declare function serializeOrderItem(writer: SerializationWriter, orderIte
2576
2666
  * @param writer Serialization writer to use to serialize this model
2577
2667
  */
2578
2668
  export declare function serializeOrderItem_metadata(writer: SerializationWriter, orderItem_metadata?: Partial<OrderItem_metadata> | undefined | null, isSerializingDerivedType?: boolean): void;
2669
+ /**
2670
+ * Serializes information the current object
2671
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2672
+ * @param OrganizationBranding The instance to serialize from.
2673
+ * @param writer Serialization writer to use to serialize this model
2674
+ */
2675
+ export declare function serializeOrganizationBranding(writer: SerializationWriter, organizationBranding?: Partial<OrganizationBranding> | undefined | null, isSerializingDerivedType?: boolean): void;
2676
+ /**
2677
+ * Serializes information the current object
2678
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2679
+ * @param OrganizationStore The instance to serialize from.
2680
+ * @param writer Serialization writer to use to serialize this model
2681
+ */
2682
+ export declare function serializeOrganizationStore(writer: SerializationWriter, organizationStore?: Partial<OrganizationStore> | undefined | null, isSerializingDerivedType?: boolean): void;
2579
2683
  /**
2580
2684
  * Serializes information the current object
2581
2685
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -318,6 +318,24 @@ export function createOrderItem_metadataFromDiscriminatorValue(parseNode) {
318
318
  export function createOrderItemFromDiscriminatorValue(parseNode) {
319
319
  return deserializeIntoOrderItem;
320
320
  }
321
+ /**
322
+ * Creates a new instance of the appropriate class based on discriminator value
323
+ * @param parseNode The parse node to use to read the discriminator value and create the object
324
+ * @returns {OrganizationBranding}
325
+ */
326
+ // @ts-ignore
327
+ export function createOrganizationBrandingFromDiscriminatorValue(parseNode) {
328
+ return deserializeIntoOrganizationBranding;
329
+ }
330
+ /**
331
+ * Creates a new instance of the appropriate class based on discriminator value
332
+ * @param parseNode The parse node to use to read the discriminator value and create the object
333
+ * @returns {OrganizationStore}
334
+ */
335
+ // @ts-ignore
336
+ export function createOrganizationStoreFromDiscriminatorValue(parseNode) {
337
+ return deserializeIntoOrganizationStore;
338
+ }
321
339
  /**
322
340
  * Creates a new instance of the appropriate class based on discriminator value
323
341
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1177,6 +1195,40 @@ export function deserializeIntoOrderItem(orderItem = {}) {
1177
1195
  export function deserializeIntoOrderItem_metadata(orderItem_metadata = {}) {
1178
1196
  return {};
1179
1197
  }
1198
+ /**
1199
+ * The deserialization information for the current model
1200
+ * @param OrganizationBranding The instance to deserialize into.
1201
+ * @returns {Record<string, (node: ParseNode) => void>}
1202
+ */
1203
+ // @ts-ignore
1204
+ export function deserializeIntoOrganizationBranding(organizationBranding = {}) {
1205
+ return {
1206
+ "accentColor": n => { organizationBranding.accentColor = n.getStringValue(); },
1207
+ "iconUrl": n => { organizationBranding.iconUrl = n.getStringValue(); },
1208
+ "logo": n => { organizationBranding.logo = n.getStringValue(); },
1209
+ "logoDarkUrl": n => { organizationBranding.logoDarkUrl = n.getStringValue(); },
1210
+ "logoLightUrl": n => { organizationBranding.logoLightUrl = n.getStringValue(); },
1211
+ };
1212
+ }
1213
+ /**
1214
+ * The deserialization information for the current model
1215
+ * @param OrganizationStore The instance to deserialize into.
1216
+ * @returns {Record<string, (node: ParseNode) => void>}
1217
+ */
1218
+ // @ts-ignore
1219
+ export function deserializeIntoOrganizationStore(organizationStore = {}) {
1220
+ return {
1221
+ "crispWorkspaceId": n => { organizationStore.crispWorkspaceId = n.getStringValue(); },
1222
+ "documentationMd": n => { organizationStore.documentationMd = n.getStringValue(); },
1223
+ "domain": n => { organizationStore.domain = n.getStringValue(); },
1224
+ "name": n => { organizationStore.name = n.getStringValue(); },
1225
+ "showDocumentationTab": n => { organizationStore.showDocumentationTab = n.getBooleanValue(); },
1226
+ "showReviewsTab": n => { organizationStore.showReviewsTab = n.getBooleanValue(); },
1227
+ "supportUrl": n => { organizationStore.supportUrl = n.getStringValue(); },
1228
+ "tagline": n => { organizationStore.tagline = n.getStringValue(); },
1229
+ "topBannerMessage": n => { organizationStore.topBannerMessage = n.getStringValue(); },
1230
+ };
1231
+ }
1180
1232
  /**
1181
1233
  * The deserialization information for the current model
1182
1234
  * @param PatchCustomerBillingRequest The instance to deserialize into.
@@ -2294,6 +2346,46 @@ export function serializeOrderItem_metadata(writer, orderItem_metadata = {}, isS
2294
2346
  }
2295
2347
  writer.writeAdditionalData(orderItem_metadata.additionalData);
2296
2348
  }
2349
+ /**
2350
+ * Serializes information the current object
2351
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2352
+ * @param OrganizationBranding The instance to serialize from.
2353
+ * @param writer Serialization writer to use to serialize this model
2354
+ */
2355
+ // @ts-ignore
2356
+ export function serializeOrganizationBranding(writer, organizationBranding = {}, isSerializingDerivedType = false) {
2357
+ if (!organizationBranding || isSerializingDerivedType) {
2358
+ return;
2359
+ }
2360
+ writer.writeStringValue("accentColor", organizationBranding.accentColor);
2361
+ writer.writeStringValue("iconUrl", organizationBranding.iconUrl);
2362
+ writer.writeStringValue("logo", organizationBranding.logo);
2363
+ writer.writeStringValue("logoDarkUrl", organizationBranding.logoDarkUrl);
2364
+ writer.writeStringValue("logoLightUrl", organizationBranding.logoLightUrl);
2365
+ writer.writeAdditionalData(organizationBranding.additionalData);
2366
+ }
2367
+ /**
2368
+ * Serializes information the current object
2369
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2370
+ * @param OrganizationStore The instance to serialize from.
2371
+ * @param writer Serialization writer to use to serialize this model
2372
+ */
2373
+ // @ts-ignore
2374
+ export function serializeOrganizationStore(writer, organizationStore = {}, isSerializingDerivedType = false) {
2375
+ if (!organizationStore || isSerializingDerivedType) {
2376
+ return;
2377
+ }
2378
+ writer.writeStringValue("crispWorkspaceId", organizationStore.crispWorkspaceId);
2379
+ writer.writeStringValue("documentationMd", organizationStore.documentationMd);
2380
+ writer.writeStringValue("domain", organizationStore.domain);
2381
+ writer.writeStringValue("name", organizationStore.name);
2382
+ writer.writeBooleanValue("showDocumentationTab", organizationStore.showDocumentationTab);
2383
+ writer.writeBooleanValue("showReviewsTab", organizationStore.showReviewsTab);
2384
+ writer.writeStringValue("supportUrl", organizationStore.supportUrl);
2385
+ writer.writeStringValue("tagline", organizationStore.tagline);
2386
+ writer.writeStringValue("topBannerMessage", organizationStore.topBannerMessage);
2387
+ writer.writeAdditionalData(organizationStore.additionalData);
2388
+ }
2297
2389
  /**
2298
2390
  * Serializes information the current object
2299
2391
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -0,0 +1,27 @@
1
+ import { type OrganizationBranding } 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/branding
5
+ */
6
+ export interface BrandingRequestBuilder extends BaseRequestBuilder<BrandingRequestBuilder> {
7
+ /**
8
+ * Returns the organization's branding (accent color, logos, icon), or null if none has been set.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<OrganizationBranding>}
11
+ */
12
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<OrganizationBranding | undefined>;
13
+ /**
14
+ * Returns the organization's branding (accent color, logos, icon), or null if none has been 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 BrandingRequestBuilderUriTemplate = "{+baseurl}/organizations/branding";
24
+ /**
25
+ * Metadata for all the requests in the request builder.
26
+ */
27
+ export declare const BrandingRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createOrganizationBrandingFromDiscriminatorValue } from '../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const BrandingRequestBuilderUriTemplate = "{+baseurl}/organizations/branding";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const BrandingRequestBuilderRequestsMetadata = {
14
+ get: {
15
+ uriTemplate: BrandingRequestBuilderUriTemplate,
16
+ responseBodyContentType: "application/json, text/plain;q=0.9",
17
+ adapterMethodName: "send",
18
+ responseBodyFactory: createOrganizationBrandingFromDiscriminatorValue,
19
+ },
20
+ };
21
+ /* tslint:enable */
22
+ /* eslint-enable */
@@ -0,0 +1,24 @@
1
+ import { type BrandingRequestBuilder } from './branding/index.js';
2
+ import { type StoreRequestBuilder } from './store/index.js';
3
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Builds and executes requests for operations under /organizations
6
+ */
7
+ export interface OrganizationsRequestBuilder extends BaseRequestBuilder<OrganizationsRequestBuilder> {
8
+ /**
9
+ * The branding property
10
+ */
11
+ get branding(): BrandingRequestBuilder;
12
+ /**
13
+ * The store property
14
+ */
15
+ get store(): StoreRequestBuilder;
16
+ }
17
+ /**
18
+ * Uri template for the request builder.
19
+ */
20
+ export declare const OrganizationsRequestBuilderUriTemplate = "{+baseurl}/organizations";
21
+ /**
22
+ * Metadata for all the navigation properties in the request builder.
23
+ */
24
+ export declare const OrganizationsRequestBuilderNavigationMetadata: Record<Exclude<keyof OrganizationsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
@@ -0,0 +1,24 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { BrandingRequestBuilderRequestsMetadata } from './branding/index.js';
6
+ // @ts-ignore
7
+ import { StoreRequestBuilderRequestsMetadata } from './store/index.js';
8
+ /**
9
+ * Uri template for the request builder.
10
+ */
11
+ export const OrganizationsRequestBuilderUriTemplate = "{+baseurl}/organizations";
12
+ /**
13
+ * Metadata for all the navigation properties in the request builder.
14
+ */
15
+ export const OrganizationsRequestBuilderNavigationMetadata = {
16
+ branding: {
17
+ requestsMetadata: BrandingRequestBuilderRequestsMetadata,
18
+ },
19
+ store: {
20
+ requestsMetadata: StoreRequestBuilderRequestsMetadata,
21
+ },
22
+ };
23
+ /* tslint:enable */
24
+ /* eslint-enable */
@@ -0,0 +1,27 @@
1
+ import { type OrganizationStore } 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/store
5
+ */
6
+ export interface StoreRequestBuilder extends BaseRequestBuilder<StoreRequestBuilder> {
7
+ /**
8
+ * Returns the organization's white-label store, or null if none has been created.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<OrganizationStore>}
11
+ */
12
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<OrganizationStore | undefined>;
13
+ /**
14
+ * Returns the organization's white-label store, or null if none has been created.
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 StoreRequestBuilderUriTemplate = "{+baseurl}/organizations/store";
24
+ /**
25
+ * Metadata for all the requests in the request builder.
26
+ */
27
+ export declare const StoreRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createOrganizationStoreFromDiscriminatorValue } from '../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const StoreRequestBuilderUriTemplate = "{+baseurl}/organizations/store";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const StoreRequestBuilderRequestsMetadata = {
14
+ get: {
15
+ uriTemplate: StoreRequestBuilderUriTemplate,
16
+ responseBodyContentType: "application/json, text/plain;q=0.9",
17
+ adapterMethodName: "send",
18
+ responseBodyFactory: createOrganizationStoreFromDiscriminatorValue,
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.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "The TypeScript client for the HypeLabs Connect API, for internal services.",
5
5
  "license": "MIT",
6
6
  "repository": {