@salable/sdk 1.0.8 → 1.0.10

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
@@ -18941,7 +18941,7 @@ const CancelRequestBuilderRequestsMetadata = {
18941
18941
  /**
18942
18942
  * Uri template for the request builder.
18943
18943
  */
18944
- const InvoicesRequestBuilderUriTemplate = "{+baseurl}/api/subscriptions/{id}/invoices";
18944
+ const InvoicesRequestBuilderUriTemplate = "{+baseurl}/api/subscriptions/{id}/invoices?id={id}{&expand}";
18945
18945
  /**
18946
18946
  * Metadata for all the requests in the request builder.
18947
18947
  */
package/dist/index.js CHANGED
@@ -18943,7 +18943,7 @@ const CancelRequestBuilderRequestsMetadata = {
18943
18943
  /**
18944
18944
  * Uri template for the request builder.
18945
18945
  */
18946
- const InvoicesRequestBuilderUriTemplate = "{+baseurl}/api/subscriptions/{id}/invoices";
18946
+ const InvoicesRequestBuilderUriTemplate = "{+baseurl}/api/subscriptions/{id}/invoices?id={id}{&expand}";
18947
18947
  /**
18948
18948
  * Metadata for all the requests in the request builder.
18949
18949
  */
@@ -1,5 +1,6 @@
1
1
  import { type GetSubscriptionInvoicesSchema } from '../../../../models/index.js';
2
2
  import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObject)[keyof typeof GetExpandQueryParameterTypeObject];
3
4
  /**
4
5
  * Builds and executes requests for operations under /api/subscriptions/{id}/invoices
5
6
  */
@@ -15,18 +16,28 @@ export interface InvoicesRequestBuilder extends BaseRequestBuilder<InvoicesReque
15
16
  * @throws {ErrorResponseBody} error when the service returns a 405 status code
16
17
  * @throws {ErrorResponseBody} error when the service returns a 500 status code
17
18
  */
18
- get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<GetSubscriptionInvoicesSchema | undefined>;
19
+ get(requestConfiguration?: RequestConfiguration<InvoicesRequestBuilderGetQueryParameters> | undefined): Promise<GetSubscriptionInvoicesSchema | undefined>;
19
20
  /**
20
21
  * Returns a list of invoices for the specified subscription, including an upcoming invoice preview if the subscription is active and not set to cancel at period end. Not available for Salable-only or perpetual subscriptions.
21
22
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
22
23
  * @returns {RequestInformation}
23
24
  */
24
- toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
25
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<InvoicesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
26
+ }
27
+ /**
28
+ * Returns a list of invoices for the specified subscription, including an upcoming invoice preview if the subscription is active and not set to cancel at period end. Not available for Salable-only or perpetual subscriptions.
29
+ */
30
+ export interface InvoicesRequestBuilderGetQueryParameters {
31
+ expand?: GetExpandQueryParameterType[];
32
+ id?: string;
25
33
  }
26
34
  /**
27
35
  * Uri template for the request builder.
28
36
  */
29
- export declare const InvoicesRequestBuilderUriTemplate = "{+baseurl}/api/subscriptions/{id}/invoices";
37
+ export declare const InvoicesRequestBuilderUriTemplate = "{+baseurl}/api/subscriptions/{id}/invoices?id={id}{&expand}";
38
+ export declare const GetExpandQueryParameterTypeObject: {
39
+ readonly Discounts: "discounts";
40
+ };
30
41
  /**
31
42
  * Metadata for all the requests in the request builder.
32
43
  */
@@ -2662,7 +2662,7 @@ export interface CreateGroupRequestSchema_grantees extends Parsable {
2662
2662
  */
2663
2663
  granteeId?: string | null;
2664
2664
  /**
2665
- * Name of the grantee, only applicable when creating new grantees.
2665
+ * Name of the grantee. If the grantee already exists, this value will update the grantee's name.
2666
2666
  */
2667
2667
  name?: string | null;
2668
2668
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salable/sdk",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",