@hypelabs-llc/ts-sdk 0.1.0 → 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.
package/README.md CHANGED
@@ -26,7 +26,7 @@
26
26
  ## Install
27
27
 
28
28
  ```bash
29
- npm install @hypelabs-llc/ts-sdk
29
+ pnpm add @hypelabs-llc/ts-sdk
30
30
  ```
31
31
 
32
32
  ## Usage
@@ -0,0 +1,29 @@
1
+ import { type AuthenticateCustomerRequest, type Customer } 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 /customers/authenticate
5
+ */
6
+ export interface AuthenticateRequestBuilder extends BaseRequestBuilder<AuthenticateRequestBuilder> {
7
+ /**
8
+ * Verifies one of your customers' email and password, returning the customer on success. Use this to sign your own end users in.
9
+ * @param body The request body
10
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
11
+ * @returns {Promise<Customer>}
12
+ */
13
+ post(body: AuthenticateCustomerRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Customer | undefined>;
14
+ /**
15
+ * Verifies one of your customers' email and password, returning the customer on success. Use this to sign your own end users in.
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
+ toPostRequestInformation(body: AuthenticateCustomerRequest, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
21
+ }
22
+ /**
23
+ * Uri template for the request builder.
24
+ */
25
+ export declare const AuthenticateRequestBuilderUriTemplate = "{+baseurl}/customers/authenticate";
26
+ /**
27
+ * Metadata for all the requests in the request builder.
28
+ */
29
+ export declare const AuthenticateRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,25 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createCustomerFromDiscriminatorValue, serializeAuthenticateCustomerRequest } from '../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const AuthenticateRequestBuilderUriTemplate = "{+baseurl}/customers/authenticate";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const AuthenticateRequestBuilderRequestsMetadata = {
14
+ post: {
15
+ uriTemplate: AuthenticateRequestBuilderUriTemplate,
16
+ responseBodyContentType: "application/json, text/plain;q=0.9",
17
+ adapterMethodName: "send",
18
+ responseBodyFactory: createCustomerFromDiscriminatorValue,
19
+ requestBodyContentType: "application/json",
20
+ requestBodySerializer: serializeAuthenticateCustomerRequest,
21
+ requestInformationContentSetMethod: "setContentFromParsable",
22
+ },
23
+ };
24
+ /* tslint:enable */
25
+ /* eslint-enable */
@@ -1,10 +1,15 @@
1
1
  import { type CreateCustomerRequest, type Customer } from '../models/index.js';
2
+ import { type AuthenticateRequestBuilder } from './authenticate/index.js';
2
3
  import { type WithCustomerItemRequestBuilder } from './item/index.js';
3
4
  import { type BaseRequestBuilder, type Guid, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
4
5
  /**
5
6
  * Builds and executes requests for operations under /customers
6
7
  */
7
8
  export interface CustomersRequestBuilder extends BaseRequestBuilder<CustomersRequestBuilder> {
9
+ /**
10
+ * The authenticate property
11
+ */
12
+ get authenticate(): AuthenticateRequestBuilder;
8
13
  /**
9
14
  * Gets an item from the ApiSdk.customers.item collection
10
15
  * @param customerId Unique identifier of the item
@@ -4,6 +4,8 @@
4
4
  // @ts-ignore
5
5
  import { createCustomerFromDiscriminatorValue, serializeCreateCustomerRequest } from '../models/index.js';
6
6
  // @ts-ignore
7
+ import { AuthenticateRequestBuilderRequestsMetadata } from './authenticate/index.js';
8
+ // @ts-ignore
7
9
  import { WithCustomerItemRequestBuilderNavigationMetadata, WithCustomerItemRequestBuilderRequestsMetadata } from './item/index.js';
8
10
  /**
9
11
  * Uri template for the request builder.
@@ -18,6 +20,9 @@ export const CustomersRequestBuilderNavigationMetadata = {
18
20
  navigationMetadata: WithCustomerItemRequestBuilderNavigationMetadata,
19
21
  pathParametersMappings: ["customerId"],
20
22
  },
23
+ authenticate: {
24
+ requestsMetadata: AuthenticateRequestBuilderRequestsMetadata,
25
+ },
21
26
  };
22
27
  /**
23
28
  * Metadata for all the requests in the request builder.