@salable/sdk 1.0.1 → 1.0.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/dist/index.es.js +20 -16
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +20 -16
- package/dist/index.js.map +1 -1
- package/dist/sdk/api/plans/index.d.ts +5 -4
- package/dist/sdk/api/subscriptionPlanLineItems/item/index.d.ts +4 -29
- package/dist/sdk/models/index.d.ts +51 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { type CreatePlanResponseSchema, type GetPlanListSchema, type PlanRequest
|
|
|
2
2
|
import { type PlansItemRequestBuilder } from './item/index.js';
|
|
3
3
|
import { type SaveRequestBuilder } from './save/index.js';
|
|
4
4
|
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
5
|
-
export type
|
|
5
|
+
export type GetCurrencyQueryParameterType = (typeof GetCurrencyQueryParameterTypeObject)[keyof typeof GetCurrencyQueryParameterTypeObject];
|
|
6
6
|
export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObject)[keyof typeof GetExpandQueryParameterTypeObject];
|
|
7
7
|
export type GetIntervalQueryParameterType = (typeof GetIntervalQueryParameterTypeObject)[keyof typeof GetIntervalQueryParameterTypeObject];
|
|
8
8
|
/**
|
|
@@ -59,7 +59,7 @@ export interface PlansRequestBuilder extends BaseRequestBuilder<PlansRequestBuil
|
|
|
59
59
|
export interface PlansRequestBuilderGetQueryParameters {
|
|
60
60
|
after?: string;
|
|
61
61
|
before?: string;
|
|
62
|
-
|
|
62
|
+
currency?: GetCurrencyQueryParameterType;
|
|
63
63
|
expand?: GetExpandQueryParameterType[];
|
|
64
64
|
includeArchived?: string;
|
|
65
65
|
includeFilterOptions?: string;
|
|
@@ -73,8 +73,8 @@ export interface PlansRequestBuilderGetQueryParameters {
|
|
|
73
73
|
/**
|
|
74
74
|
* Uri template for the request builder.
|
|
75
75
|
*/
|
|
76
|
-
export declare const PlansRequestBuilderUriTemplate = "{+baseurl}/api/plans{?after*,before*,
|
|
77
|
-
export declare const
|
|
76
|
+
export declare const PlansRequestBuilderUriTemplate = "{+baseurl}/api/plans{?after*,before*,currency*,expand,includeArchived*,includeFilterOptions*,interval*,intervalCount*,isActive*,limit*,productId*,search*}";
|
|
77
|
+
export declare const GetCurrencyQueryParameterTypeObject: {
|
|
78
78
|
readonly USD: "USD";
|
|
79
79
|
readonly AED: "AED";
|
|
80
80
|
readonly AFN: "AFN";
|
|
@@ -225,6 +225,7 @@ export declare const GetIntervalQueryParameterTypeObject: {
|
|
|
225
225
|
readonly Week: "week";
|
|
226
226
|
readonly Month: "month";
|
|
227
227
|
readonly Year: "year";
|
|
228
|
+
readonly One_off: "one_off";
|
|
228
229
|
};
|
|
229
230
|
/**
|
|
230
231
|
* Metadata for all the navigation properties in the request builder.
|
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
import { type GetSubscriptionPlanLineItemSchema } from '../../../models/index.js';
|
|
1
|
+
import { type GetSubscriptionPlanLineItemSchema, type UpdateSubscriptionPlanLineItemSchema } from '../../../models/index.js';
|
|
2
2
|
import { type SyncRequestBuilder } from './sync/index.js';
|
|
3
|
-
import { type
|
|
4
|
-
/**
|
|
5
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
6
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
7
|
-
* @returns {SubscriptionPlanLineItemsPutRequestBody}
|
|
8
|
-
*/
|
|
9
|
-
export declare function createSubscriptionPlanLineItemsPutRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
10
|
-
/**
|
|
11
|
-
* The deserialization information for the current model
|
|
12
|
-
* @param SubscriptionPlanLineItemsPutRequestBody The instance to deserialize into.
|
|
13
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
14
|
-
*/
|
|
15
|
-
export declare function deserializeIntoSubscriptionPlanLineItemsPutRequestBody(subscriptionPlanLineItemsPutRequestBody?: Partial<SubscriptionPlanLineItemsPutRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
|
|
16
|
-
/**
|
|
17
|
-
* Serializes information the current object
|
|
18
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
19
|
-
* @param SubscriptionPlanLineItemsPutRequestBody The instance to serialize from.
|
|
20
|
-
* @param writer Serialization writer to use to serialize this model
|
|
21
|
-
*/
|
|
22
|
-
export declare function serializeSubscriptionPlanLineItemsPutRequestBody(writer: SerializationWriter, subscriptionPlanLineItemsPutRequestBody?: Partial<SubscriptionPlanLineItemsPutRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
3
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
23
4
|
/**
|
|
24
5
|
* Builds and executes requests for operations under /api/subscription-plan-line-items/{id}
|
|
25
6
|
*/
|
|
@@ -51,7 +32,7 @@ export interface SubscriptionPlanLineItemsItemRequestBuilder extends BaseRequest
|
|
|
51
32
|
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
52
33
|
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
53
34
|
*/
|
|
54
|
-
put(body:
|
|
35
|
+
put(body: UpdateSubscriptionPlanLineItemSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
55
36
|
/**
|
|
56
37
|
* Get Subscription Plan Line Item
|
|
57
38
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
@@ -64,13 +45,7 @@ export interface SubscriptionPlanLineItemsItemRequestBuilder extends BaseRequest
|
|
|
64
45
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
65
46
|
* @returns {RequestInformation}
|
|
66
47
|
*/
|
|
67
|
-
toPutRequestInformation(body:
|
|
68
|
-
}
|
|
69
|
-
export interface SubscriptionPlanLineItemsPutRequestBody extends AdditionalDataHolder, Parsable {
|
|
70
|
-
/**
|
|
71
|
-
* The new quantity of the item. If the item is per-seat, the quantity cannot exceed minimum or maximum seat limits.
|
|
72
|
-
*/
|
|
73
|
-
quantity?: number | null;
|
|
48
|
+
toPutRequestInformation(body: UpdateSubscriptionPlanLineItemSchema, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
74
49
|
}
|
|
75
50
|
/**
|
|
76
51
|
* Uri template for the request builder.
|
|
@@ -3075,6 +3075,12 @@ export declare function createUpdateSubscriptionItemsRequestSchema_itemsMember3F
|
|
|
3075
3075
|
* @returns {UpdateSubscriptionItemsRequestSchema}
|
|
3076
3076
|
*/
|
|
3077
3077
|
export declare function createUpdateSubscriptionItemsRequestSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
3078
|
+
/**
|
|
3079
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
3080
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
3081
|
+
* @returns {UpdateSubscriptionPlanLineItemSchema}
|
|
3082
|
+
*/
|
|
3083
|
+
export declare function createUpdateSubscriptionPlanLineItemSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
3078
3084
|
/**
|
|
3079
3085
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
3080
3086
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -5492,6 +5498,12 @@ export declare function deserializeIntoUpdateSubscriptionItemsRequestSchema_item
|
|
|
5492
5498
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5493
5499
|
*/
|
|
5494
5500
|
export declare function deserializeIntoUpdateSubscriptionItemsRequestSchema_itemsMember3_metadata(updateSubscriptionItemsRequestSchema_itemsMember3_metadata?: Partial<UpdateSubscriptionItemsRequestSchema_itemsMember3_metadata> | undefined): Record<string, (node: ParseNode) => void>;
|
|
5501
|
+
/**
|
|
5502
|
+
* The deserialization information for the current model
|
|
5503
|
+
* @param UpdateSubscriptionPlanLineItemSchema The instance to deserialize into.
|
|
5504
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5505
|
+
*/
|
|
5506
|
+
export declare function deserializeIntoUpdateSubscriptionPlanLineItemSchema(updateSubscriptionPlanLineItemSchema?: Partial<UpdateSubscriptionPlanLineItemSchema> | undefined): Record<string, (node: ParseNode) => void>;
|
|
5495
5507
|
/**
|
|
5496
5508
|
* The deserialization information for the current model
|
|
5497
5509
|
* @param UpdateWebhookRequestSchema The instance to deserialize into.
|
|
@@ -10314,14 +10326,30 @@ export interface GetPlanListSchema_data_product extends Parsable {
|
|
|
10314
10326
|
* The archivedAt property
|
|
10315
10327
|
*/
|
|
10316
10328
|
archivedAt?: string | null;
|
|
10329
|
+
/**
|
|
10330
|
+
* The createdAt property
|
|
10331
|
+
*/
|
|
10332
|
+
createdAt?: string | null;
|
|
10317
10333
|
/**
|
|
10318
10334
|
* The id property
|
|
10319
10335
|
*/
|
|
10320
10336
|
id?: string | null;
|
|
10337
|
+
/**
|
|
10338
|
+
* The isActive property
|
|
10339
|
+
*/
|
|
10340
|
+
isActive?: boolean | null;
|
|
10321
10341
|
/**
|
|
10322
10342
|
* The name property
|
|
10323
10343
|
*/
|
|
10324
10344
|
name?: string | null;
|
|
10345
|
+
/**
|
|
10346
|
+
* The organisation property
|
|
10347
|
+
*/
|
|
10348
|
+
organisation?: string | null;
|
|
10349
|
+
/**
|
|
10350
|
+
* The updatedAt property
|
|
10351
|
+
*/
|
|
10352
|
+
updatedAt?: string | null;
|
|
10325
10353
|
}
|
|
10326
10354
|
export interface GetPlanListSchema_data_tierTag extends Parsable {
|
|
10327
10355
|
/**
|
|
@@ -16849,6 +16877,13 @@ export declare function serializeUpdateSubscriptionItemsRequestSchema_itemsMembe
|
|
|
16849
16877
|
* @param writer Serialization writer to use to serialize this model
|
|
16850
16878
|
*/
|
|
16851
16879
|
export declare function serializeUpdateSubscriptionItemsRequestSchema_itemsMember3_metadata(writer: SerializationWriter, updateSubscriptionItemsRequestSchema_itemsMember3_metadata?: Partial<UpdateSubscriptionItemsRequestSchema_itemsMember3_metadata> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
16880
|
+
/**
|
|
16881
|
+
* Serializes information the current object
|
|
16882
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
16883
|
+
* @param UpdateSubscriptionPlanLineItemSchema The instance to serialize from.
|
|
16884
|
+
* @param writer Serialization writer to use to serialize this model
|
|
16885
|
+
*/
|
|
16886
|
+
export declare function serializeUpdateSubscriptionPlanLineItemSchema(writer: SerializationWriter, updateSubscriptionPlanLineItemSchema?: Partial<UpdateSubscriptionPlanLineItemSchema> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
16852
16887
|
/**
|
|
16853
16888
|
* Serializes information the current object
|
|
16854
16889
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -17406,6 +17441,17 @@ export interface UpdateSubscriptionItemsRequestSchema_itemsMember3 extends Parsa
|
|
|
17406
17441
|
export interface UpdateSubscriptionItemsRequestSchema_itemsMember3_metadata extends AdditionalDataHolder, Parsable {
|
|
17407
17442
|
}
|
|
17408
17443
|
export type UpdateSubscriptionItemsRequestSchema_proration = (typeof UpdateSubscriptionItemsRequestSchema_prorationObject)[keyof typeof UpdateSubscriptionItemsRequestSchema_prorationObject];
|
|
17444
|
+
export interface UpdateSubscriptionPlanLineItemSchema extends Parsable {
|
|
17445
|
+
/**
|
|
17446
|
+
* The proration property
|
|
17447
|
+
*/
|
|
17448
|
+
proration?: UpdateSubscriptionPlanLineItemSchema_proration | null;
|
|
17449
|
+
/**
|
|
17450
|
+
* The quantity property
|
|
17451
|
+
*/
|
|
17452
|
+
quantity?: number | null;
|
|
17453
|
+
}
|
|
17454
|
+
export type UpdateSubscriptionPlanLineItemSchema_proration = (typeof UpdateSubscriptionPlanLineItemSchema_prorationObject)[keyof typeof UpdateSubscriptionPlanLineItemSchema_prorationObject];
|
|
17409
17455
|
export interface UpdateWebhookRequestSchema extends Parsable {
|
|
17410
17456
|
/**
|
|
17411
17457
|
* The events property
|
|
@@ -18099,6 +18145,11 @@ export declare const UpdateSubscriptionItemsRequestSchema_prorationObject: {
|
|
|
18099
18145
|
readonly Create_prorations: "create_prorations";
|
|
18100
18146
|
readonly None: "none";
|
|
18101
18147
|
};
|
|
18148
|
+
export declare const UpdateSubscriptionPlanLineItemSchema_prorationObject: {
|
|
18149
|
+
readonly Always_invoice: "always_invoice";
|
|
18150
|
+
readonly Create_prorations: "create_prorations";
|
|
18151
|
+
readonly None: "none";
|
|
18152
|
+
};
|
|
18102
18153
|
export declare const UpdateWebhookRequestSchema_eventsObject: {
|
|
18103
18154
|
readonly Subscription_created: "subscription_created";
|
|
18104
18155
|
readonly Subscription_updated: "subscription_updated";
|