@salable/sdk 1.0.0-beta.1
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/LICENSE +201 -0
- package/README.md +93 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.es.js +19915 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.js +19917 -0
- package/dist/index.js.map +1 -0
- package/dist/sdk/api/apiKeys/index.d.ts +66 -0
- package/dist/sdk/api/apiKeys/item/index.d.ts +48 -0
- package/dist/sdk/api/cartItems/index.d.ts +131 -0
- package/dist/sdk/api/cartItems/item/index.d.ts +31 -0
- package/dist/sdk/api/carts/batch/index.d.ts +36 -0
- package/dist/sdk/api/carts/index.d.ts +88 -0
- package/dist/sdk/api/carts/item/checkout/index.d.ts +35 -0
- package/dist/sdk/api/carts/item/index.d.ts +78 -0
- package/dist/sdk/api/checkout/index.d.ts +360 -0
- package/dist/sdk/api/currencyOptions/index.d.ts +56 -0
- package/dist/sdk/api/currencyOptions/item/index.d.ts +42 -0
- package/dist/sdk/api/destinations/index.d.ts +52 -0
- package/dist/sdk/api/destinations/item/index.d.ts +58 -0
- package/dist/sdk/api/entitlements/check/index.d.ts +40 -0
- package/dist/sdk/api/entitlements/index.d.ts +74 -0
- package/dist/sdk/api/entitlements/item/index.d.ts +67 -0
- package/dist/sdk/api/eventAttempts/index.d.ts +57 -0
- package/dist/sdk/api/events/index.d.ts +60 -0
- package/dist/sdk/api/events/item/index.d.ts +42 -0
- package/dist/sdk/api/grantees/index.d.ts +68 -0
- package/dist/sdk/api/grantees/item/index.d.ts +77 -0
- package/dist/sdk/api/groups/index.d.ts +73 -0
- package/dist/sdk/api/groups/item/grantees/index.d.ts +53 -0
- package/dist/sdk/api/groups/item/index.d.ts +88 -0
- package/dist/sdk/api/index.d.ts +164 -0
- package/dist/sdk/api/lineItems/index.d.ts +51 -0
- package/dist/sdk/api/lineItems/item/archive/index.d.ts +32 -0
- package/dist/sdk/api/lineItems/item/index.d.ts +109 -0
- package/dist/sdk/api/memberships/index.d.ts +52 -0
- package/dist/sdk/api/memberships/item/index.d.ts +42 -0
- package/dist/sdk/api/meters/index.d.ts +39 -0
- package/dist/sdk/api/owners/index.d.ts +51 -0
- package/dist/sdk/api/owners/item/index.d.ts +63 -0
- package/dist/sdk/api/paymentIntegrations/index.d.ts +91 -0
- package/dist/sdk/api/paymentIntegrations/item/index.d.ts +40 -0
- package/dist/sdk/api/paymentIntegrations/item/onboarding/index.d.ts +32 -0
- package/dist/sdk/api/plans/index.d.ts +236 -0
- package/dist/sdk/api/plans/item/archive/index.d.ts +32 -0
- package/dist/sdk/api/plans/item/index.d.ts +97 -0
- package/dist/sdk/api/plans/save/index.d.ts +33 -0
- package/dist/sdk/api/prices/index.d.ts +49 -0
- package/dist/sdk/api/prices/item/archive/index.d.ts +32 -0
- package/dist/sdk/api/prices/item/index.d.ts +57 -0
- package/dist/sdk/api/products/exportEscaped/index.d.ts +21 -0
- package/dist/sdk/api/products/exportEscaped/item/index.d.ts +32 -0
- package/dist/sdk/api/products/importEscaped/index.d.ts +32 -0
- package/dist/sdk/api/products/index.d.ts +92 -0
- package/dist/sdk/api/products/item/archive/index.d.ts +32 -0
- package/dist/sdk/api/products/item/index.d.ts +90 -0
- package/dist/sdk/api/receipts/index.d.ts +59 -0
- package/dist/sdk/api/receipts/item/index.d.ts +43 -0
- package/dist/sdk/api/signingKeys/index.d.ts +31 -0
- package/dist/sdk/api/stripe/accountSession/index.d.ts +31 -0
- package/dist/sdk/api/stripe/index.d.ts +19 -0
- package/dist/sdk/api/subscriptionPlanLineItems/index.d.ts +21 -0
- package/dist/sdk/api/subscriptionPlanLineItems/item/index.d.ts +86 -0
- package/dist/sdk/api/subscriptionPlanLineItems/item/sync/index.d.ts +31 -0
- package/dist/sdk/api/subscriptionPlans/index.d.ts +447 -0
- package/dist/sdk/api/subscriptionPlans/item/index.d.ts +1138 -0
- package/dist/sdk/api/subscriptionPlans/item/seats/index.d.ts +58 -0
- package/dist/sdk/api/subscriptions/batch/index.d.ts +35 -0
- package/dist/sdk/api/subscriptions/index.d.ts +312 -0
- package/dist/sdk/api/subscriptions/item/autoRenew/index.d.ts +43 -0
- package/dist/sdk/api/subscriptions/item/cancel/index.d.ts +32 -0
- package/dist/sdk/api/subscriptions/item/index.d.ts +90 -0
- package/dist/sdk/api/subscriptions/item/invoices/index.d.ts +33 -0
- package/dist/sdk/api/subscriptions/item/items/index.d.ts +34 -0
- package/dist/sdk/api/subscriptions/item/portal/index.d.ts +34 -0
- package/dist/sdk/api/tierTags/index.d.ts +58 -0
- package/dist/sdk/api/tiers/index.d.ts +50 -0
- package/dist/sdk/api/tiers/item/index.d.ts +31 -0
- package/dist/sdk/api/usage/index.d.ts +19 -0
- package/dist/sdk/api/usage/record/index.d.ts +33 -0
- package/dist/sdk/api/usageRecords/index.d.ts +55 -0
- package/dist/sdk/api/webhooks/index.d.ts +72 -0
- package/dist/sdk/api/webhooks/item/index.d.ts +77 -0
- package/dist/sdk/models/index.d.ts +16552 -0
- package/dist/sdk/salable.d.ts +24 -0
- package/package.json +48 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type CreateApiKeyResponseSchema, type GetApiKeyListSchema } from '../../models/index.js';
|
|
2
|
+
import { type ApiKeysItemRequestBuilder } from './item/index.js';
|
|
3
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
4
|
+
/**
|
|
5
|
+
* Builds and executes requests for operations under /api/api-keys
|
|
6
|
+
*/
|
|
7
|
+
export interface ApiKeysRequestBuilder extends BaseRequestBuilder<ApiKeysRequestBuilder> {
|
|
8
|
+
/**
|
|
9
|
+
* Gets an item from the ApiSdk.api.apiKeys.item collection
|
|
10
|
+
* @param id Resource ID
|
|
11
|
+
* @returns {ApiKeysItemRequestBuilder}
|
|
12
|
+
*/
|
|
13
|
+
byId(id: string): ApiKeysItemRequestBuilder;
|
|
14
|
+
/**
|
|
15
|
+
* List Api Keys
|
|
16
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
17
|
+
* @returns {Promise<GetApiKeyListSchema>}
|
|
18
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
19
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
20
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
21
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
22
|
+
*/
|
|
23
|
+
get(requestConfiguration?: RequestConfiguration<ApiKeysRequestBuilderGetQueryParameters> | undefined): Promise<GetApiKeyListSchema | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Create API key
|
|
26
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
27
|
+
* @returns {Promise<CreateApiKeyResponseSchema>}
|
|
28
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
29
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
30
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
31
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
32
|
+
*/
|
|
33
|
+
post(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CreateApiKeyResponseSchema | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* List Api Keys
|
|
36
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
37
|
+
* @returns {RequestInformation}
|
|
38
|
+
*/
|
|
39
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ApiKeysRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
40
|
+
/**
|
|
41
|
+
* Create API key
|
|
42
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
43
|
+
* @returns {RequestInformation}
|
|
44
|
+
*/
|
|
45
|
+
toPostRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* List Api Keys
|
|
49
|
+
*/
|
|
50
|
+
export interface ApiKeysRequestBuilderGetQueryParameters {
|
|
51
|
+
after?: string;
|
|
52
|
+
before?: string;
|
|
53
|
+
limit?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Uri template for the request builder.
|
|
57
|
+
*/
|
|
58
|
+
export declare const ApiKeysRequestBuilderUriTemplate = "{+baseurl}/api/api-keys{?after*,before*,limit*}";
|
|
59
|
+
/**
|
|
60
|
+
* Metadata for all the navigation properties in the request builder.
|
|
61
|
+
*/
|
|
62
|
+
export declare const ApiKeysRequestBuilderNavigationMetadata: Record<Exclude<keyof ApiKeysRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
63
|
+
/**
|
|
64
|
+
* Metadata for all the requests in the request builder.
|
|
65
|
+
*/
|
|
66
|
+
export declare const ApiKeysRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type GetApiKeyDetailSchema } 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 /api/api-keys/{id}
|
|
5
|
+
*/
|
|
6
|
+
export interface ApiKeysItemRequestBuilder extends BaseRequestBuilder<ApiKeysItemRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Delete API Key
|
|
9
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
11
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
12
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
13
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
14
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
15
|
+
*/
|
|
16
|
+
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve API Key
|
|
19
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
20
|
+
* @returns {Promise<GetApiKeyDetailSchema>}
|
|
21
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
22
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
23
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
24
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
25
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
26
|
+
*/
|
|
27
|
+
get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<GetApiKeyDetailSchema | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* Delete API Key
|
|
30
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
31
|
+
* @returns {RequestInformation}
|
|
32
|
+
*/
|
|
33
|
+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
34
|
+
/**
|
|
35
|
+
* Retrieve API Key
|
|
36
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
37
|
+
* @returns {RequestInformation}
|
|
38
|
+
*/
|
|
39
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Uri template for the request builder.
|
|
43
|
+
*/
|
|
44
|
+
export declare const ApiKeysItemRequestBuilderUriTemplate = "{+baseurl}/api/api-keys/{id}";
|
|
45
|
+
/**
|
|
46
|
+
* Metadata for all the requests in the request builder.
|
|
47
|
+
*/
|
|
48
|
+
export declare const ApiKeysItemRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { type CreateCartItemRequestSchema } from '../../models/index.js';
|
|
2
|
+
import { type CartItemsItemRequestBuilder } from './item/index.js';
|
|
3
|
+
import { type AdditionalDataHolder, type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter, type UntypedNode } from '@microsoft/kiota-abstractions';
|
|
4
|
+
export interface CartItemsPostResponse extends AdditionalDataHolder, Parsable {
|
|
5
|
+
/**
|
|
6
|
+
* The data property
|
|
7
|
+
*/
|
|
8
|
+
data?: CartItemsPostResponse_data | null;
|
|
9
|
+
/**
|
|
10
|
+
* The type property
|
|
11
|
+
*/
|
|
12
|
+
type?: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface CartItemsPostResponse_data extends Parsable {
|
|
15
|
+
/**
|
|
16
|
+
* The cartId property
|
|
17
|
+
*/
|
|
18
|
+
cartId?: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* The createdAt property
|
|
21
|
+
*/
|
|
22
|
+
createdAt?: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* The granteeId property
|
|
25
|
+
*/
|
|
26
|
+
granteeId?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* The groupId property
|
|
29
|
+
*/
|
|
30
|
+
groupId?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* The id property
|
|
33
|
+
*/
|
|
34
|
+
id?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* The metadata property
|
|
37
|
+
*/
|
|
38
|
+
metadata?: UntypedNode | null;
|
|
39
|
+
/**
|
|
40
|
+
* The organisation property
|
|
41
|
+
*/
|
|
42
|
+
organisation?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* The planId property
|
|
45
|
+
*/
|
|
46
|
+
planId?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* The updatedAt property
|
|
49
|
+
*/
|
|
50
|
+
updatedAt?: string | null;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Builds and executes requests for operations under /api/cart-items
|
|
54
|
+
*/
|
|
55
|
+
export interface CartItemsRequestBuilder extends BaseRequestBuilder<CartItemsRequestBuilder> {
|
|
56
|
+
/**
|
|
57
|
+
* Gets an item from the ApiSdk.api.cartItems.item collection
|
|
58
|
+
* @param id Resource ID
|
|
59
|
+
* @returns {CartItemsItemRequestBuilder}
|
|
60
|
+
*/
|
|
61
|
+
byId(id: string): CartItemsItemRequestBuilder;
|
|
62
|
+
/**
|
|
63
|
+
* Create a cart item which will be linked to a plan. The plan is a collection of line items. To set metadata for a specific line item, use the metadata object with the key as the line item slug.
|
|
64
|
+
* @param body The request body
|
|
65
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
66
|
+
* @returns {Promise<CartItemsPostResponse>}
|
|
67
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
68
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
69
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
70
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
71
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
72
|
+
*/
|
|
73
|
+
post(body: CreateCartItemRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CartItemsPostResponse | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* Create a cart item which will be linked to a plan. The plan is a collection of line items. To set metadata for a specific line item, use the metadata object with the key as the line item slug.
|
|
76
|
+
* @param body The request body
|
|
77
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
78
|
+
* @returns {RequestInformation}
|
|
79
|
+
*/
|
|
80
|
+
toPostRequestInformation(body: CreateCartItemRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
84
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
85
|
+
* @returns {CartItemsPostResponse_data}
|
|
86
|
+
*/
|
|
87
|
+
export declare function createCartItemsPostResponse_dataFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
88
|
+
/**
|
|
89
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
90
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
91
|
+
* @returns {CartItemsPostResponse}
|
|
92
|
+
*/
|
|
93
|
+
export declare function createCartItemsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
94
|
+
/**
|
|
95
|
+
* The deserialization information for the current model
|
|
96
|
+
* @param CartItemsPostResponse The instance to deserialize into.
|
|
97
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
98
|
+
*/
|
|
99
|
+
export declare function deserializeIntoCartItemsPostResponse(cartItemsPostResponse?: Partial<CartItemsPostResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
100
|
+
/**
|
|
101
|
+
* The deserialization information for the current model
|
|
102
|
+
* @param CartItemsPostResponse_data The instance to deserialize into.
|
|
103
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
104
|
+
*/
|
|
105
|
+
export declare function deserializeIntoCartItemsPostResponse_data(cartItemsPostResponse_data?: Partial<CartItemsPostResponse_data> | undefined): Record<string, (node: ParseNode) => void>;
|
|
106
|
+
/**
|
|
107
|
+
* Serializes information the current object
|
|
108
|
+
* @param CartItemsPostResponse The instance to serialize from.
|
|
109
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
110
|
+
* @param writer Serialization writer to use to serialize this model
|
|
111
|
+
*/
|
|
112
|
+
export declare function serializeCartItemsPostResponse(writer: SerializationWriter, cartItemsPostResponse?: Partial<CartItemsPostResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
113
|
+
/**
|
|
114
|
+
* Serializes information the current object
|
|
115
|
+
* @param CartItemsPostResponse_data The instance to serialize from.
|
|
116
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
117
|
+
* @param writer Serialization writer to use to serialize this model
|
|
118
|
+
*/
|
|
119
|
+
export declare function serializeCartItemsPostResponse_data(writer: SerializationWriter, cartItemsPostResponse_data?: Partial<CartItemsPostResponse_data> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
120
|
+
/**
|
|
121
|
+
* Uri template for the request builder.
|
|
122
|
+
*/
|
|
123
|
+
export declare const CartItemsRequestBuilderUriTemplate = "{+baseurl}/api/cart-items";
|
|
124
|
+
/**
|
|
125
|
+
* Metadata for all the navigation properties in the request builder.
|
|
126
|
+
*/
|
|
127
|
+
export declare const CartItemsRequestBuilderNavigationMetadata: Record<Exclude<keyof CartItemsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
128
|
+
/**
|
|
129
|
+
* Metadata for all the requests in the request builder.
|
|
130
|
+
*/
|
|
131
|
+
export declare const CartItemsRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Builds and executes requests for operations under /api/cart-items/{id}
|
|
4
|
+
*/
|
|
5
|
+
export interface CartItemsItemRequestBuilder extends BaseRequestBuilder<CartItemsItemRequestBuilder> {
|
|
6
|
+
/**
|
|
7
|
+
* Delete Cart
|
|
8
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
9
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
10
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
11
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
12
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
13
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
14
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
15
|
+
*/
|
|
16
|
+
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Delete Cart
|
|
19
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
20
|
+
* @returns {RequestInformation}
|
|
21
|
+
*/
|
|
22
|
+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Uri template for the request builder.
|
|
26
|
+
*/
|
|
27
|
+
export declare const CartItemsItemRequestBuilderUriTemplate = "{+baseurl}/api/cart-items/{id}";
|
|
28
|
+
/**
|
|
29
|
+
* Metadata for all the requests in the request builder.
|
|
30
|
+
*/
|
|
31
|
+
export declare const CartItemsItemRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type BatchCartActionsRequestSchema, type BatchCartActionsResponseSchema } 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 /api/carts/batch
|
|
5
|
+
*/
|
|
6
|
+
export interface BatchRequestBuilder extends BaseRequestBuilder<BatchRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Perform batch actions on multiple carts. Currently supports abandoning active carts. Returns detailed results for each cart including success, failure, or skip status.
|
|
9
|
+
* @param body The request body
|
|
10
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
11
|
+
* @returns {Promise<BatchCartActionsResponseSchema>}
|
|
12
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
13
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
14
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
15
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
16
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
17
|
+
* @throws {ErrorResponseBody} error when the service returns a 429 status code
|
|
18
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
19
|
+
*/
|
|
20
|
+
post(body: BatchCartActionsRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<BatchCartActionsResponseSchema | undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* Perform batch actions on multiple carts. Currently supports abandoning active carts. Returns detailed results for each cart including success, failure, or skip status.
|
|
23
|
+
* @param body The request body
|
|
24
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
25
|
+
* @returns {RequestInformation}
|
|
26
|
+
*/
|
|
27
|
+
toPostRequestInformation(body: BatchCartActionsRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Uri template for the request builder.
|
|
31
|
+
*/
|
|
32
|
+
export declare const BatchRequestBuilderUriTemplate = "{+baseurl}/api/carts/batch";
|
|
33
|
+
/**
|
|
34
|
+
* Metadata for all the requests in the request builder.
|
|
35
|
+
*/
|
|
36
|
+
export declare const BatchRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { type CreateCartRequestSchema, type CreateCartResponseSchema, type GetCartListSchema } from '../../models/index.js';
|
|
2
|
+
import { type BatchRequestBuilder } from './batch/index.js';
|
|
3
|
+
import { type CartsItemRequestBuilder } from './item/index.js';
|
|
4
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
5
|
+
/**
|
|
6
|
+
* Builds and executes requests for operations under /api/carts
|
|
7
|
+
*/
|
|
8
|
+
export interface CartsRequestBuilder extends BaseRequestBuilder<CartsRequestBuilder> {
|
|
9
|
+
/**
|
|
10
|
+
* The batch property
|
|
11
|
+
*/
|
|
12
|
+
get batch(): BatchRequestBuilder;
|
|
13
|
+
/**
|
|
14
|
+
* Gets an item from the ApiSdk.api.carts.item collection
|
|
15
|
+
* @param id Resource ID
|
|
16
|
+
* @returns {CartsItemRequestBuilder}
|
|
17
|
+
*/
|
|
18
|
+
byId(id: string): CartsItemRequestBuilder;
|
|
19
|
+
/**
|
|
20
|
+
* List Carts
|
|
21
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
22
|
+
* @returns {Promise<GetCartListSchema>}
|
|
23
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
24
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
25
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
26
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
27
|
+
*/
|
|
28
|
+
get(requestConfiguration?: RequestConfiguration<CartsRequestBuilderGetQueryParameters> | undefined): Promise<GetCartListSchema | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* Create Cart
|
|
31
|
+
* @param body The request body
|
|
32
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
33
|
+
* @returns {Promise<CreateCartResponseSchema>}
|
|
34
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
35
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
36
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
37
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
38
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
39
|
+
*/
|
|
40
|
+
post(body: CreateCartRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CreateCartResponseSchema | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* List Carts
|
|
43
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
44
|
+
* @returns {RequestInformation}
|
|
45
|
+
*/
|
|
46
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CartsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
47
|
+
/**
|
|
48
|
+
* Create Cart
|
|
49
|
+
* @param body The request body
|
|
50
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
51
|
+
* @returns {RequestInformation}
|
|
52
|
+
*/
|
|
53
|
+
toPostRequestInformation(body: CreateCartRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* List Carts
|
|
57
|
+
*/
|
|
58
|
+
export interface CartsRequestBuilderGetQueryParameters {
|
|
59
|
+
after?: string;
|
|
60
|
+
before?: string;
|
|
61
|
+
expand?: GetExpandQueryParameterType[];
|
|
62
|
+
limit?: string;
|
|
63
|
+
ownerId?: string[];
|
|
64
|
+
search?: string;
|
|
65
|
+
status?: GetStatusQueryParameterType[];
|
|
66
|
+
}
|
|
67
|
+
export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObject)[keyof typeof GetExpandQueryParameterTypeObject];
|
|
68
|
+
export type GetStatusQueryParameterType = (typeof GetStatusQueryParameterTypeObject)[keyof typeof GetStatusQueryParameterTypeObject];
|
|
69
|
+
/**
|
|
70
|
+
* Uri template for the request builder.
|
|
71
|
+
*/
|
|
72
|
+
export declare const CartsRequestBuilderUriTemplate = "{+baseurl}/api/carts{?after*,before*,expand,limit*,ownerId,search*,status}";
|
|
73
|
+
/**
|
|
74
|
+
* Metadata for all the navigation properties in the request builder.
|
|
75
|
+
*/
|
|
76
|
+
export declare const CartsRequestBuilderNavigationMetadata: Record<Exclude<keyof CartsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
77
|
+
/**
|
|
78
|
+
* Metadata for all the requests in the request builder.
|
|
79
|
+
*/
|
|
80
|
+
export declare const CartsRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
81
|
+
export declare const GetExpandQueryParameterTypeObject: {
|
|
82
|
+
readonly Owner: "owner";
|
|
83
|
+
};
|
|
84
|
+
export declare const GetStatusQueryParameterTypeObject: {
|
|
85
|
+
readonly Active: "active";
|
|
86
|
+
readonly Abandoned: "abandoned";
|
|
87
|
+
readonly Complete: "complete";
|
|
88
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type GenerateCheckoutLinkRequestSchema, type GenerateCheckoutLinkSchema } 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 /api/carts/{id}/checkout
|
|
5
|
+
*/
|
|
6
|
+
export interface CheckoutRequestBuilder extends BaseRequestBuilder<CheckoutRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Generate Checkout Link
|
|
9
|
+
* @param body The request body
|
|
10
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
11
|
+
* @returns {Promise<GenerateCheckoutLinkSchema>}
|
|
12
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
13
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
14
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
15
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
16
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
17
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
18
|
+
*/
|
|
19
|
+
post(body: GenerateCheckoutLinkRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<GenerateCheckoutLinkSchema | undefined>;
|
|
20
|
+
/**
|
|
21
|
+
* Generate Checkout Link
|
|
22
|
+
* @param body The request body
|
|
23
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
24
|
+
* @returns {RequestInformation}
|
|
25
|
+
*/
|
|
26
|
+
toPostRequestInformation(body: GenerateCheckoutLinkRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Uri template for the request builder.
|
|
30
|
+
*/
|
|
31
|
+
export declare const CheckoutRequestBuilderUriTemplate = "{+baseurl}/api/carts/{id}/checkout";
|
|
32
|
+
/**
|
|
33
|
+
* Metadata for all the requests in the request builder.
|
|
34
|
+
*/
|
|
35
|
+
export declare const CheckoutRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { type GetCartDetailSchema, type UpdateCartRequestSchema } from '../../../models/index.js';
|
|
2
|
+
import { type CheckoutRequestBuilder } from './checkout/index.js';
|
|
3
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
4
|
+
/**
|
|
5
|
+
* Builds and executes requests for operations under /api/carts/{id}
|
|
6
|
+
*/
|
|
7
|
+
export interface CartsItemRequestBuilder extends BaseRequestBuilder<CartsItemRequestBuilder> {
|
|
8
|
+
/**
|
|
9
|
+
* The checkout property
|
|
10
|
+
*/
|
|
11
|
+
get checkout(): CheckoutRequestBuilder;
|
|
12
|
+
/**
|
|
13
|
+
* Abandon Cart
|
|
14
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
15
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
16
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
17
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
18
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
19
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
20
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
21
|
+
*/
|
|
22
|
+
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieve Cart
|
|
25
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
26
|
+
* @returns {Promise<GetCartDetailSchema>}
|
|
27
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
28
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
29
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
30
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
31
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
32
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
33
|
+
*/
|
|
34
|
+
get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<GetCartDetailSchema | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* Update Cart
|
|
37
|
+
* @param body The request body
|
|
38
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
39
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
40
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
41
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
42
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
43
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
44
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
45
|
+
*/
|
|
46
|
+
put(body: UpdateCartRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* Abandon Cart
|
|
49
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
50
|
+
* @returns {RequestInformation}
|
|
51
|
+
*/
|
|
52
|
+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
53
|
+
/**
|
|
54
|
+
* Retrieve Cart
|
|
55
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
56
|
+
* @returns {RequestInformation}
|
|
57
|
+
*/
|
|
58
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
59
|
+
/**
|
|
60
|
+
* Update Cart
|
|
61
|
+
* @param body The request body
|
|
62
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
63
|
+
* @returns {RequestInformation}
|
|
64
|
+
*/
|
|
65
|
+
toPutRequestInformation(body: UpdateCartRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Uri template for the request builder.
|
|
69
|
+
*/
|
|
70
|
+
export declare const CartsItemRequestBuilderUriTemplate = "{+baseurl}/api/carts/{id}";
|
|
71
|
+
/**
|
|
72
|
+
* Metadata for all the navigation properties in the request builder.
|
|
73
|
+
*/
|
|
74
|
+
export declare const CartsItemRequestBuilderNavigationMetadata: Record<Exclude<keyof CartsItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
75
|
+
/**
|
|
76
|
+
* Metadata for all the requests in the request builder.
|
|
77
|
+
*/
|
|
78
|
+
export declare const CartsItemRequestBuilderRequestsMetadata: RequestsMetadata;
|