@salable/sdk 1.0.2 → 1.0.4

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 CHANGED
@@ -15250,6 +15250,20 @@ function serializeUpdateSubscriptionItemsRequestSchema_itemsMember3_metadata(wri
15250
15250
  }
15251
15251
  writer.writeAdditionalData(updateSubscriptionItemsRequestSchema_itemsMember3_metadata.additionalData);
15252
15252
  }
15253
+ /**
15254
+ * Serializes information the current object
15255
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
15256
+ * @param UpdateSubscriptionPlanLineItemSchema The instance to serialize from.
15257
+ * @param writer Serialization writer to use to serialize this model
15258
+ */
15259
+ // @ts-ignore
15260
+ function serializeUpdateSubscriptionPlanLineItemSchema(writer, updateSubscriptionPlanLineItemSchema = {}, isSerializingDerivedType = false) {
15261
+ if (!updateSubscriptionPlanLineItemSchema || isSerializingDerivedType) {
15262
+ return;
15263
+ }
15264
+ writer.writeEnumValue("proration", updateSubscriptionPlanLineItemSchema.proration);
15265
+ writer.writeNumberValue("quantity", updateSubscriptionPlanLineItemSchema.quantity);
15266
+ }
15253
15267
  /**
15254
15268
  * Serializes information the current object
15255
15269
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -17728,20 +17742,6 @@ const SyncRequestBuilderRequestsMetadata = {
17728
17742
  /* eslint-disable */
17729
17743
  // Generated by Microsoft Kiota
17730
17744
  // @ts-ignore
17731
- /**
17732
- * Serializes information the current object
17733
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
17734
- * @param SubscriptionPlanLineItemsPutRequestBody The instance to serialize from.
17735
- * @param writer Serialization writer to use to serialize this model
17736
- */
17737
- // @ts-ignore
17738
- function serializeSubscriptionPlanLineItemsPutRequestBody(writer, subscriptionPlanLineItemsPutRequestBody = {}, isSerializingDerivedType = false) {
17739
- if (!subscriptionPlanLineItemsPutRequestBody || isSerializingDerivedType) {
17740
- return;
17741
- }
17742
- writer.writeNumberValue("quantity", subscriptionPlanLineItemsPutRequestBody.quantity);
17743
- writer.writeAdditionalData(subscriptionPlanLineItemsPutRequestBody.additionalData);
17744
- }
17745
17745
  /**
17746
17746
  * Uri template for the request builder.
17747
17747
  */
@@ -17785,7 +17785,7 @@ const SubscriptionPlanLineItemsItemRequestBuilderRequestsMetadata = {
17785
17785
  },
17786
17786
  adapterMethodName: "sendNoResponseContent",
17787
17787
  requestBodyContentType: "application/json",
17788
- requestBodySerializer: serializeSubscriptionPlanLineItemsPutRequestBody,
17788
+ requestBodySerializer: serializeUpdateSubscriptionPlanLineItemSchema,
17789
17789
  requestInformationContentSetMethod: "setContentFromParsable",
17790
17790
  },
17791
17791
  };
package/dist/index.js CHANGED
@@ -15252,6 +15252,20 @@ function serializeUpdateSubscriptionItemsRequestSchema_itemsMember3_metadata(wri
15252
15252
  }
15253
15253
  writer.writeAdditionalData(updateSubscriptionItemsRequestSchema_itemsMember3_metadata.additionalData);
15254
15254
  }
15255
+ /**
15256
+ * Serializes information the current object
15257
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
15258
+ * @param UpdateSubscriptionPlanLineItemSchema The instance to serialize from.
15259
+ * @param writer Serialization writer to use to serialize this model
15260
+ */
15261
+ // @ts-ignore
15262
+ function serializeUpdateSubscriptionPlanLineItemSchema(writer, updateSubscriptionPlanLineItemSchema = {}, isSerializingDerivedType = false) {
15263
+ if (!updateSubscriptionPlanLineItemSchema || isSerializingDerivedType) {
15264
+ return;
15265
+ }
15266
+ writer.writeEnumValue("proration", updateSubscriptionPlanLineItemSchema.proration);
15267
+ writer.writeNumberValue("quantity", updateSubscriptionPlanLineItemSchema.quantity);
15268
+ }
15255
15269
  /**
15256
15270
  * Serializes information the current object
15257
15271
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -17730,20 +17744,6 @@ const SyncRequestBuilderRequestsMetadata = {
17730
17744
  /* eslint-disable */
17731
17745
  // Generated by Microsoft Kiota
17732
17746
  // @ts-ignore
17733
- /**
17734
- * Serializes information the current object
17735
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
17736
- * @param SubscriptionPlanLineItemsPutRequestBody The instance to serialize from.
17737
- * @param writer Serialization writer to use to serialize this model
17738
- */
17739
- // @ts-ignore
17740
- function serializeSubscriptionPlanLineItemsPutRequestBody(writer, subscriptionPlanLineItemsPutRequestBody = {}, isSerializingDerivedType = false) {
17741
- if (!subscriptionPlanLineItemsPutRequestBody || isSerializingDerivedType) {
17742
- return;
17743
- }
17744
- writer.writeNumberValue("quantity", subscriptionPlanLineItemsPutRequestBody.quantity);
17745
- writer.writeAdditionalData(subscriptionPlanLineItemsPutRequestBody.additionalData);
17746
- }
17747
17747
  /**
17748
17748
  * Uri template for the request builder.
17749
17749
  */
@@ -17787,7 +17787,7 @@ const SubscriptionPlanLineItemsItemRequestBuilderRequestsMetadata = {
17787
17787
  },
17788
17788
  adapterMethodName: "sendNoResponseContent",
17789
17789
  requestBodyContentType: "application/json",
17790
- requestBodySerializer: serializeSubscriptionPlanLineItemsPutRequestBody,
17790
+ requestBodySerializer: serializeUpdateSubscriptionPlanLineItemSchema,
17791
17791
  requestInformationContentSetMethod: "setContentFromParsable",
17792
17792
  },
17793
17793
  };
@@ -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 AdditionalDataHolder, type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
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: SubscriptionPlanLineItemsPutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
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: SubscriptionPlanLineItemsPutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
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.
@@ -2520,7 +2520,7 @@ export interface CreateGranteeResponseSchema_data extends Parsable {
2520
2520
  }
2521
2521
  export interface CreateGroupRequestSchema extends Parsable {
2522
2522
  /**
2523
- * The grantees property
2523
+ * Create new or connect existing grantees to the group. To connect an existing grantee use it's granteeId value.
2524
2524
  */
2525
2525
  grantees?: CreateGroupRequestSchema_grantees[] | null;
2526
2526
  /**
@@ -2538,7 +2538,7 @@ export interface CreateGroupRequestSchema_grantees extends Parsable {
2538
2538
  */
2539
2539
  granteeId?: string | null;
2540
2540
  /**
2541
- * The name property
2541
+ * Name of the grantee, only applicable when creating new grantees.
2542
2542
  */
2543
2543
  name?: string | null;
2544
2544
  }
@@ -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.
@@ -16865,6 +16877,13 @@ export declare function serializeUpdateSubscriptionItemsRequestSchema_itemsMembe
16865
16877
  * @param writer Serialization writer to use to serialize this model
16866
16878
  */
16867
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;
16868
16887
  /**
16869
16888
  * Serializes information the current object
16870
16889
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -17422,6 +17441,17 @@ export interface UpdateSubscriptionItemsRequestSchema_itemsMember3 extends Parsa
17422
17441
  export interface UpdateSubscriptionItemsRequestSchema_itemsMember3_metadata extends AdditionalDataHolder, Parsable {
17423
17442
  }
17424
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];
17425
17455
  export interface UpdateWebhookRequestSchema extends Parsable {
17426
17456
  /**
17427
17457
  * The events property
@@ -18115,6 +18145,11 @@ export declare const UpdateSubscriptionItemsRequestSchema_prorationObject: {
18115
18145
  readonly Create_prorations: "create_prorations";
18116
18146
  readonly None: "none";
18117
18147
  };
18148
+ export declare const UpdateSubscriptionPlanLineItemSchema_prorationObject: {
18149
+ readonly Always_invoice: "always_invoice";
18150
+ readonly Create_prorations: "create_prorations";
18151
+ readonly None: "none";
18152
+ };
18118
18153
  export declare const UpdateWebhookRequestSchema_eventsObject: {
18119
18154
  readonly Subscription_created: "subscription_created";
18120
18155
  readonly Subscription_updated: "subscription_updated";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salable/sdk",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",