@salable/sdk 1.0.50 → 1.0.51

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.
@@ -0,0 +1,53 @@
1
+ import { type GetEventTypeListSchema } 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/event-types
5
+ */
6
+ export interface EventTypesRequestBuilder extends BaseRequestBuilder<EventTypesRequestBuilder> {
7
+ /**
8
+ * Returns a list of event types subscribed to by a webhook. They are sorted by `createdAt`, with the most recently created appearing first.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<GetEventTypeListSchema>}
11
+ * @throws {ErrorResponseBody} error when the service returns a 400 status code
12
+ * @throws {ErrorResponseBody} error when the service returns a 401 status code
13
+ * @throws {ErrorResponseBody} error when the service returns a 405 status code
14
+ * @throws {ErrorResponseBody} error when the service returns a 429 status code
15
+ * @throws {ErrorResponseBody} error when the service returns a 500 status code
16
+ */
17
+ get(requestConfiguration?: RequestConfiguration<EventTypesRequestBuilderGetQueryParameters> | undefined): Promise<GetEventTypeListSchema | undefined>;
18
+ /**
19
+ * Returns a list of event types subscribed to by a webhook. They are sorted by `createdAt`, with the most recently created appearing first.
20
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
21
+ * @returns {RequestInformation}
22
+ */
23
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<EventTypesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
24
+ }
25
+ /**
26
+ * Returns a list of event types subscribed to by a webhook. They are sorted by `createdAt`, with the most recently created appearing first.
27
+ */
28
+ export interface EventTypesRequestBuilderGetQueryParameters {
29
+ /**
30
+ * Return records after this cursor for forward pagination. Use the `nextCursor` from a previous response.
31
+ */
32
+ after?: string;
33
+ /**
34
+ * Return records before this cursor for backwards pagination. Use the `previousCursor` from a previous response.
35
+ */
36
+ before?: string;
37
+ /**
38
+ * The number of records returned in a response. Value between 1 and 100. Defaults to 25.
39
+ */
40
+ limit?: string;
41
+ /**
42
+ * Returns only event types linked to this webhook ID.
43
+ */
44
+ webhook?: string;
45
+ }
46
+ /**
47
+ * Uri template for the request builder.
48
+ */
49
+ export declare const EventTypesRequestBuilderUriTemplate = "{+baseurl}/api/event-types{?after*,before*,limit*,webhook*}";
50
+ /**
51
+ * Metadata for all the requests in the request builder.
52
+ */
53
+ export declare const EventTypesRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -8,6 +8,7 @@ import { type DestinationsRequestBuilder } from './destinations/index.js';
8
8
  import { type EntitlementsRequestBuilder } from './entitlements/index.js';
9
9
  import { type EventAttemptsRequestBuilder } from './eventAttempts/index.js';
10
10
  import { type EventsRequestBuilder } from './events/index.js';
11
+ import { type EventTypesRequestBuilder } from './eventTypes/index.js';
11
12
  import { type GranteesRequestBuilder } from './grantees/index.js';
12
13
  import { type GroupsRequestBuilder } from './groups/index.js';
13
14
  import { type LineItemsRequestBuilder } from './lineItems/index.js';
@@ -18,6 +19,7 @@ import { type PaymentIntegrationsRequestBuilder } from './paymentIntegrations/in
18
19
  import { type PlansRequestBuilder } from './plans/index.js';
19
20
  import { type PricesRequestBuilder } from './prices/index.js';
20
21
  import { type ProductsRequestBuilder } from './products/index.js';
22
+ import { type ReceiptItemsRequestBuilder } from './receiptItems/index.js';
21
23
  import { type ReceiptsRequestBuilder } from './receipts/index.js';
22
24
  import { type SigningKeysRequestBuilder } from './signingKeys/index.js';
23
25
  import { type StripeRequestBuilder } from './stripe/index.js';
@@ -75,6 +77,10 @@ export interface ApiRequestBuilder extends BaseRequestBuilder<ApiRequestBuilder>
75
77
  * The events property
76
78
  */
77
79
  get events(): EventsRequestBuilder;
80
+ /**
81
+ * The eventTypes property
82
+ */
83
+ get eventTypes(): EventTypesRequestBuilder;
78
84
  /**
79
85
  * The grantees property
80
86
  */
@@ -115,6 +121,10 @@ export interface ApiRequestBuilder extends BaseRequestBuilder<ApiRequestBuilder>
115
121
  * The products property
116
122
  */
117
123
  get products(): ProductsRequestBuilder;
124
+ /**
125
+ * The receiptItems property
126
+ */
127
+ get receiptItems(): ReceiptItemsRequestBuilder;
118
128
  /**
119
129
  * The receipts property
120
130
  */
@@ -0,0 +1,53 @@
1
+ import { type GetReceiptItemListSchema } 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/receipt-items
5
+ */
6
+ export interface ReceiptItemsRequestBuilder extends BaseRequestBuilder<ReceiptItemsRequestBuilder> {
7
+ /**
8
+ * Returns a list of your receipt items. They are sorted by `createdAt`, with the most recently created appearing first.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<GetReceiptItemListSchema>}
11
+ * @throws {ErrorResponseBody} error when the service returns a 400 status code
12
+ * @throws {ErrorResponseBody} error when the service returns a 401 status code
13
+ * @throws {ErrorResponseBody} error when the service returns a 405 status code
14
+ * @throws {ErrorResponseBody} error when the service returns a 429 status code
15
+ * @throws {ErrorResponseBody} error when the service returns a 500 status code
16
+ */
17
+ get(requestConfiguration?: RequestConfiguration<ReceiptItemsRequestBuilderGetQueryParameters> | undefined): Promise<GetReceiptItemListSchema | undefined>;
18
+ /**
19
+ * Returns a list of your receipt items. They are sorted by `createdAt`, with the most recently created appearing first.
20
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
21
+ * @returns {RequestInformation}
22
+ */
23
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<ReceiptItemsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
24
+ }
25
+ /**
26
+ * Returns a list of your receipt items. They are sorted by `createdAt`, with the most recently created appearing first.
27
+ */
28
+ export interface ReceiptItemsRequestBuilderGetQueryParameters {
29
+ /**
30
+ * Return records after this cursor for forward pagination. Use the `nextCursor` from a previous response.
31
+ */
32
+ after?: string;
33
+ /**
34
+ * Return records before this cursor for backwards pagination. Use the `previousCursor` from a previous response.
35
+ */
36
+ before?: string;
37
+ /**
38
+ * The number of records returned in a response. Value between 1 and 100. Defaults to 25.
39
+ */
40
+ limit?: string;
41
+ /**
42
+ * Returns only receipt items linked to this receipt ID.
43
+ */
44
+ receipt?: string;
45
+ }
46
+ /**
47
+ * Uri template for the request builder.
48
+ */
49
+ export declare const ReceiptItemsRequestBuilderUriTemplate = "{+baseurl}/api/receipt-items{?after*,before*,limit*,receipt*}";
50
+ /**
51
+ * Metadata for all the requests in the request builder.
52
+ */
53
+ export declare const ReceiptItemsRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -1329,6 +1329,24 @@ export declare function createGetEventListSchema_dataFromDiscriminatorValue(pars
1329
1329
  * @returns {GetEventListSchema}
1330
1330
  */
1331
1331
  export declare function createGetEventListSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1332
+ /**
1333
+ * Creates a new instance of the appropriate class based on discriminator value
1334
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1335
+ * @returns {string}
1336
+ */
1337
+ export declare function createGetEventTypeListSchema_data_eventFromDiscriminatorValue(parseNode: ParseNode | undefined): string | undefined;
1338
+ /**
1339
+ * Creates a new instance of the appropriate class based on discriminator value
1340
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1341
+ * @returns {GetEventTypeListSchema_data}
1342
+ */
1343
+ export declare function createGetEventTypeListSchema_dataFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1344
+ /**
1345
+ * Creates a new instance of the appropriate class based on discriminator value
1346
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1347
+ * @returns {GetEventTypeListSchema}
1348
+ */
1349
+ export declare function createGetEventTypeListSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1332
1350
  /**
1333
1351
  * Creates a new instance of the appropriate class based on discriminator value
1334
1352
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2085,6 +2103,18 @@ export declare function createGetReceiptDetailSchema_dataFromDiscriminatorValue(
2085
2103
  * @returns {GetReceiptDetailSchema}
2086
2104
  */
2087
2105
  export declare function createGetReceiptDetailSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
2106
+ /**
2107
+ * Creates a new instance of the appropriate class based on discriminator value
2108
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2109
+ * @returns {GetReceiptItemListSchema_data}
2110
+ */
2111
+ export declare function createGetReceiptItemListSchema_dataFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
2112
+ /**
2113
+ * Creates a new instance of the appropriate class based on discriminator value
2114
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2115
+ * @returns {GetReceiptItemListSchema}
2116
+ */
2117
+ export declare function createGetReceiptItemListSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
2088
2118
  /**
2089
2119
  * Creates a new instance of the appropriate class based on discriminator value
2090
2120
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -4404,6 +4434,18 @@ export declare function deserializeIntoGetEventListSchema(getEventListSchema?: P
4404
4434
  * @returns {Record<string, (node: ParseNode) => void>}
4405
4435
  */
4406
4436
  export declare function deserializeIntoGetEventListSchema_data(getEventListSchema_data?: Partial<GetEventListSchema_data> | undefined): Record<string, (node: ParseNode) => void>;
4437
+ /**
4438
+ * The deserialization information for the current model
4439
+ * @param GetEventTypeListSchema The instance to deserialize into.
4440
+ * @returns {Record<string, (node: ParseNode) => void>}
4441
+ */
4442
+ export declare function deserializeIntoGetEventTypeListSchema(getEventTypeListSchema?: Partial<GetEventTypeListSchema> | undefined): Record<string, (node: ParseNode) => void>;
4443
+ /**
4444
+ * The deserialization information for the current model
4445
+ * @param GetEventTypeListSchema_data The instance to deserialize into.
4446
+ * @returns {Record<string, (node: ParseNode) => void>}
4447
+ */
4448
+ export declare function deserializeIntoGetEventTypeListSchema_data(getEventTypeListSchema_data?: Partial<GetEventTypeListSchema_data> | undefined): Record<string, (node: ParseNode) => void>;
4407
4449
  /**
4408
4450
  * The deserialization information for the current model
4409
4451
  * @param GetGranteeDetailSchema The instance to deserialize into.
@@ -5106,6 +5148,18 @@ export declare function deserializeIntoGetReceiptDetailSchema_data_receiptItems_
5106
5148
  * @returns {Record<string, (node: ParseNode) => void>}
5107
5149
  */
5108
5150
  export declare function deserializeIntoGetReceiptDetailSchema_data_receiptItems_data_lineItem(getReceiptDetailSchema_data_receiptItems_data_lineItem?: Partial<GetReceiptDetailSchema_data_receiptItems_data_lineItem> | undefined): Record<string, (node: ParseNode) => void>;
5151
+ /**
5152
+ * The deserialization information for the current model
5153
+ * @param GetReceiptItemListSchema The instance to deserialize into.
5154
+ * @returns {Record<string, (node: ParseNode) => void>}
5155
+ */
5156
+ export declare function deserializeIntoGetReceiptItemListSchema(getReceiptItemListSchema?: Partial<GetReceiptItemListSchema> | undefined): Record<string, (node: ParseNode) => void>;
5157
+ /**
5158
+ * The deserialization information for the current model
5159
+ * @param GetReceiptItemListSchema_data The instance to deserialize into.
5160
+ * @returns {Record<string, (node: ParseNode) => void>}
5161
+ */
5162
+ export declare function deserializeIntoGetReceiptItemListSchema_data(getReceiptItemListSchema_data?: Partial<GetReceiptItemListSchema_data> | undefined): Record<string, (node: ParseNode) => void>;
5109
5163
  /**
5110
5164
  * The deserialization information for the current model
5111
5165
  * @param GetReceiptListSchema The instance to deserialize into.
@@ -7717,6 +7771,59 @@ export interface GetEventListSchema_data extends Parsable {
7717
7771
  */
7718
7772
  updatedAt?: string | null;
7719
7773
  }
7774
+ export interface GetEventTypeListSchema extends Parsable {
7775
+ /**
7776
+ * The data property
7777
+ */
7778
+ data?: GetEventTypeListSchema_data[] | null;
7779
+ /**
7780
+ * The hasMore property
7781
+ */
7782
+ hasMore?: boolean | null;
7783
+ /**
7784
+ * The nextCursor property
7785
+ */
7786
+ nextCursor?: string | null;
7787
+ /**
7788
+ * The previousCursor property
7789
+ */
7790
+ previousCursor?: string | null;
7791
+ /**
7792
+ * The type property
7793
+ */
7794
+ type?: string | null;
7795
+ }
7796
+ export interface GetEventTypeListSchema_data extends Parsable {
7797
+ /**
7798
+ * The createdAt property
7799
+ */
7800
+ createdAt?: string | null;
7801
+ /**
7802
+ * The deletedAt property
7803
+ */
7804
+ deletedAt?: string | null;
7805
+ /**
7806
+ * The event property
7807
+ */
7808
+ event?: string | null;
7809
+ /**
7810
+ * The id property
7811
+ */
7812
+ id?: string | null;
7813
+ /**
7814
+ * The organisation property
7815
+ */
7816
+ organisation?: string | null;
7817
+ /**
7818
+ * The updatedAt property
7819
+ */
7820
+ updatedAt?: string | null;
7821
+ /**
7822
+ * The webhookId property
7823
+ */
7824
+ webhookId?: string | null;
7825
+ }
7826
+ export type GetEventTypeListSchema_data_event = string;
7720
7827
  export interface GetGranteeDetailSchema extends Parsable {
7721
7828
  /**
7722
7829
  * The data property
@@ -11278,6 +11385,58 @@ export interface GetReceiptDetailSchema_data_receiptItems_data_lineItem extends
11278
11385
  updatedAt?: string | null;
11279
11386
  }
11280
11387
  export type GetReceiptDetailSchema_data_receiptItems_data_lineItem_priceType = string;
11388
+ export interface GetReceiptItemListSchema extends Parsable {
11389
+ /**
11390
+ * The data property
11391
+ */
11392
+ data?: GetReceiptItemListSchema_data[] | null;
11393
+ /**
11394
+ * The hasMore property
11395
+ */
11396
+ hasMore?: boolean | null;
11397
+ /**
11398
+ * The nextCursor property
11399
+ */
11400
+ nextCursor?: string | null;
11401
+ /**
11402
+ * The previousCursor property
11403
+ */
11404
+ previousCursor?: string | null;
11405
+ /**
11406
+ * The type property
11407
+ */
11408
+ type?: string | null;
11409
+ }
11410
+ export interface GetReceiptItemListSchema_data extends Parsable {
11411
+ /**
11412
+ * The createdAt property
11413
+ */
11414
+ createdAt?: string | null;
11415
+ /**
11416
+ * The id property
11417
+ */
11418
+ id?: string | null;
11419
+ /**
11420
+ * The lineItemStripeProductId property
11421
+ */
11422
+ lineItemStripeProductId?: string | null;
11423
+ /**
11424
+ * The organisation property
11425
+ */
11426
+ organisation?: string | null;
11427
+ /**
11428
+ * The quantity property
11429
+ */
11430
+ quantity?: number | null;
11431
+ /**
11432
+ * The receiptId property
11433
+ */
11434
+ receiptId?: string | null;
11435
+ /**
11436
+ * The updatedAt property
11437
+ */
11438
+ updatedAt?: string | null;
11439
+ }
11281
11440
  export interface GetReceiptListSchema extends Parsable {
11282
11441
  /**
11283
11442
  * The data property
@@ -15604,6 +15763,28 @@ export declare function serializeGetEventListSchema(writer: SerializationWriter,
15604
15763
  * @param writer Serialization writer to use to serialize this model
15605
15764
  */
15606
15765
  export declare function serializeGetEventListSchema_data(writer: SerializationWriter, getEventListSchema_data?: Partial<GetEventListSchema_data> | undefined | null, isSerializingDerivedType?: boolean): void;
15766
+ /**
15767
+ * Serializes information the current object
15768
+ * @param GetEventTypeListSchema The instance to serialize from.
15769
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
15770
+ * @param writer Serialization writer to use to serialize this model
15771
+ */
15772
+ export declare function serializeGetEventTypeListSchema(writer: SerializationWriter, getEventTypeListSchema?: Partial<GetEventTypeListSchema> | undefined | null, isSerializingDerivedType?: boolean): void;
15773
+ /**
15774
+ * Serializes information the current object
15775
+ * @param GetEventTypeListSchema_data The instance to serialize from.
15776
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
15777
+ * @param writer Serialization writer to use to serialize this model
15778
+ */
15779
+ export declare function serializeGetEventTypeListSchema_data(writer: SerializationWriter, getEventTypeListSchema_data?: Partial<GetEventTypeListSchema_data> | undefined | null, isSerializingDerivedType?: boolean): void;
15780
+ /**
15781
+ * Serializes information the current object
15782
+ * @param GetEventTypeListSchema_data_event The instance to serialize from.
15783
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
15784
+ * @param key The name of the property to write in the serialization.
15785
+ * @param writer Serialization writer to use to serialize this model
15786
+ */
15787
+ export declare function serializeGetEventTypeListSchema_data_event(writer: SerializationWriter, key: string, getEventTypeListSchema_data_event: Parsable | GetEventTypeListSchema_data_event | undefined, isSerializingDerivedType?: boolean): void;
15607
15788
  /**
15608
15789
  * Serializes information the current object
15609
15790
  * @param GetGranteeDetailSchema The instance to serialize from.
@@ -16495,6 +16676,20 @@ export declare function serializeGetReceiptDetailSchema_data_receiptItems_data_l
16495
16676
  * @param writer Serialization writer to use to serialize this model
16496
16677
  */
16497
16678
  export declare function serializeGetReceiptDetailSchema_data_receiptItems_data_lineItem_priceType(writer: SerializationWriter, key: string, getReceiptDetailSchema_data_receiptItems_data_lineItem_priceType: Parsable | GetReceiptDetailSchema_data_receiptItems_data_lineItem_priceType | undefined, isSerializingDerivedType?: boolean): void;
16679
+ /**
16680
+ * Serializes information the current object
16681
+ * @param GetReceiptItemListSchema The instance to serialize from.
16682
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
16683
+ * @param writer Serialization writer to use to serialize this model
16684
+ */
16685
+ export declare function serializeGetReceiptItemListSchema(writer: SerializationWriter, getReceiptItemListSchema?: Partial<GetReceiptItemListSchema> | undefined | null, isSerializingDerivedType?: boolean): void;
16686
+ /**
16687
+ * Serializes information the current object
16688
+ * @param GetReceiptItemListSchema_data The instance to serialize from.
16689
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
16690
+ * @param writer Serialization writer to use to serialize this model
16691
+ */
16692
+ export declare function serializeGetReceiptItemListSchema_data(writer: SerializationWriter, getReceiptItemListSchema_data?: Partial<GetReceiptItemListSchema_data> | undefined | null, isSerializingDerivedType?: boolean): void;
16498
16693
  /**
16499
16694
  * Serializes information the current object
16500
16695
  * @param GetReceiptListSchema The instance to serialize from.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salable/sdk",
3
- "version": "1.0.50",
3
+ "version": "1.0.51",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",