@salable/sdk 1.0.0 → 1.0.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.
@@ -1,6 +1,7 @@
1
1
  import { type GetOwnerListSchema } from '../../models/index.js';
2
2
  import { type OwnersItemRequestBuilder } from './item/index.js';
3
3
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
4
+ export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObject)[keyof typeof GetExpandQueryParameterTypeObject];
4
5
  /**
5
6
  * Builds and executes requests for operations under /api/owners
6
7
  */
@@ -33,6 +34,7 @@ export interface OwnersRequestBuilder extends BaseRequestBuilder<OwnersRequestBu
33
34
  export interface OwnersRequestBuilderGetQueryParameters {
34
35
  after?: string;
35
36
  before?: string;
37
+ expand?: GetExpandQueryParameterType[];
36
38
  limit?: string;
37
39
  search?: string;
38
40
  stripeCustomerId?: string;
@@ -40,7 +42,11 @@ export interface OwnersRequestBuilderGetQueryParameters {
40
42
  /**
41
43
  * Uri template for the request builder.
42
44
  */
43
- export declare const OwnersRequestBuilderUriTemplate = "{+baseurl}/api/owners{?after*,before*,limit*,search*,stripeCustomerId*}";
45
+ export declare const OwnersRequestBuilderUriTemplate = "{+baseurl}/api/owners{?after*,before*,expand,limit*,search*,stripeCustomerId*}";
46
+ export declare const GetExpandQueryParameterTypeObject: {
47
+ readonly Subscriptions: "subscriptions";
48
+ readonly Receipts: "receipts";
49
+ };
44
50
  /**
45
51
  * Metadata for all the navigation properties in the request builder.
46
52
  */
@@ -5,6 +5,17 @@ export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObj
5
5
  * Builds and executes requests for operations under /api/owners/{id}
6
6
  */
7
7
  export interface OwnersItemRequestBuilder extends BaseRequestBuilder<OwnersItemRequestBuilder> {
8
+ /**
9
+ * Delete Owner
10
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
11
+ * @throws {ErrorResponseBody} error when the service returns a 401 status code
12
+ * @throws {ErrorResponseBody} error when the service returns a 403 status code
13
+ * @throws {ErrorResponseBody} error when the service returns a 404 status code
14
+ * @throws {ErrorResponseBody} error when the service returns a 405 status code
15
+ * @throws {ErrorResponseBody} error when the service returns a 409 status code
16
+ * @throws {ErrorResponseBody} error when the service returns a 500 status code
17
+ */
18
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
8
19
  /**
9
20
  * Retrieve Owner
10
21
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -28,6 +39,12 @@ export interface OwnersItemRequestBuilder extends BaseRequestBuilder<OwnersItemR
28
39
  * @throws {ErrorResponseBody} error when the service returns a 500 status code
29
40
  */
30
41
  put(body: UpdateOwnerRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
42
+ /**
43
+ * Delete Owner
44
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
45
+ * @returns {RequestInformation}
46
+ */
47
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
31
48
  /**
32
49
  * Retrieve Owner
33
50
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -1470,6 +1470,30 @@ export declare function createGetOwnerDetailSchema_dataFromDiscriminatorValue(pa
1470
1470
  * @returns {GetOwnerDetailSchema}
1471
1471
  */
1472
1472
  export declare function createGetOwnerDetailSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1473
+ /**
1474
+ * Creates a new instance of the appropriate class based on discriminator value
1475
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1476
+ * @returns {GetOwnerListSchema_data_receipts_data}
1477
+ */
1478
+ export declare function createGetOwnerListSchema_data_receipts_dataFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1479
+ /**
1480
+ * Creates a new instance of the appropriate class based on discriminator value
1481
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1482
+ * @returns {GetOwnerListSchema_data_receipts}
1483
+ */
1484
+ export declare function createGetOwnerListSchema_data_receiptsFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1485
+ /**
1486
+ * Creates a new instance of the appropriate class based on discriminator value
1487
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1488
+ * @returns {GetOwnerListSchema_data_subscriptions_data}
1489
+ */
1490
+ export declare function createGetOwnerListSchema_data_subscriptions_dataFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1491
+ /**
1492
+ * Creates a new instance of the appropriate class based on discriminator value
1493
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1494
+ * @returns {GetOwnerListSchema_data_subscriptions}
1495
+ */
1496
+ export declare function createGetOwnerListSchema_data_subscriptionsFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1473
1497
  /**
1474
1498
  * Creates a new instance of the appropriate class based on discriminator value
1475
1499
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -4226,6 +4250,30 @@ export declare function deserializeIntoGetOwnerListSchema(getOwnerListSchema?: P
4226
4250
  * @returns {Record<string, (node: ParseNode) => void>}
4227
4251
  */
4228
4252
  export declare function deserializeIntoGetOwnerListSchema_data(getOwnerListSchema_data?: Partial<GetOwnerListSchema_data> | undefined): Record<string, (node: ParseNode) => void>;
4253
+ /**
4254
+ * The deserialization information for the current model
4255
+ * @param GetOwnerListSchema_data_receipts The instance to deserialize into.
4256
+ * @returns {Record<string, (node: ParseNode) => void>}
4257
+ */
4258
+ export declare function deserializeIntoGetOwnerListSchema_data_receipts(getOwnerListSchema_data_receipts?: Partial<GetOwnerListSchema_data_receipts> | undefined): Record<string, (node: ParseNode) => void>;
4259
+ /**
4260
+ * The deserialization information for the current model
4261
+ * @param GetOwnerListSchema_data_receipts_data The instance to deserialize into.
4262
+ * @returns {Record<string, (node: ParseNode) => void>}
4263
+ */
4264
+ export declare function deserializeIntoGetOwnerListSchema_data_receipts_data(getOwnerListSchema_data_receipts_data?: Partial<GetOwnerListSchema_data_receipts_data> | undefined): Record<string, (node: ParseNode) => void>;
4265
+ /**
4266
+ * The deserialization information for the current model
4267
+ * @param GetOwnerListSchema_data_subscriptions The instance to deserialize into.
4268
+ * @returns {Record<string, (node: ParseNode) => void>}
4269
+ */
4270
+ export declare function deserializeIntoGetOwnerListSchema_data_subscriptions(getOwnerListSchema_data_subscriptions?: Partial<GetOwnerListSchema_data_subscriptions> | undefined): Record<string, (node: ParseNode) => void>;
4271
+ /**
4272
+ * The deserialization information for the current model
4273
+ * @param GetOwnerListSchema_data_subscriptions_data The instance to deserialize into.
4274
+ * @returns {Record<string, (node: ParseNode) => void>}
4275
+ */
4276
+ export declare function deserializeIntoGetOwnerListSchema_data_subscriptions_data(getOwnerListSchema_data_subscriptions_data?: Partial<GetOwnerListSchema_data_subscriptions_data> | undefined): Record<string, (node: ParseNode) => void>;
4229
4277
  /**
4230
4278
  * The deserialization information for the current model
4231
4279
  * @param GetPaymentIntegrationListSchema The instance to deserialize into.
@@ -9000,10 +9048,18 @@ export interface GetOwnerListSchema_data extends Parsable {
9000
9048
  * The organisation property
9001
9049
  */
9002
9050
  organisation?: string | null;
9051
+ /**
9052
+ * The receipts property
9053
+ */
9054
+ receipts?: GetOwnerListSchema_data_receipts | null;
9003
9055
  /**
9004
9056
  * The stripeCustomerId property
9005
9057
  */
9006
9058
  stripeCustomerId?: string | null;
9059
+ /**
9060
+ * The subscriptions property
9061
+ */
9062
+ subscriptions?: GetOwnerListSchema_data_subscriptions | null;
9007
9063
  /**
9008
9064
  * The updatedAt property
9009
9065
  */
@@ -9013,6 +9069,134 @@ export interface GetOwnerListSchema_data extends Parsable {
9013
9069
  */
9014
9070
  value?: string | null;
9015
9071
  }
9072
+ export interface GetOwnerListSchema_data_receipts extends Parsable {
9073
+ /**
9074
+ * The data property
9075
+ */
9076
+ data?: GetOwnerListSchema_data_receipts_data[] | null;
9077
+ /**
9078
+ * The hasMore property
9079
+ */
9080
+ hasMore?: boolean | null;
9081
+ /**
9082
+ * The path property
9083
+ */
9084
+ path?: string | null;
9085
+ /**
9086
+ * The type property
9087
+ */
9088
+ type?: string | null;
9089
+ }
9090
+ export interface GetOwnerListSchema_data_receipts_data extends Parsable {
9091
+ /**
9092
+ * The createdAt property
9093
+ */
9094
+ createdAt?: string | null;
9095
+ /**
9096
+ * The id property
9097
+ */
9098
+ id?: string | null;
9099
+ /**
9100
+ * The organisation property
9101
+ */
9102
+ organisation?: string | null;
9103
+ /**
9104
+ * The ownerId property
9105
+ */
9106
+ ownerId?: string | null;
9107
+ /**
9108
+ * The subscriptionId property
9109
+ */
9110
+ subscriptionId?: string | null;
9111
+ /**
9112
+ * The updatedAt property
9113
+ */
9114
+ updatedAt?: string | null;
9115
+ }
9116
+ export interface GetOwnerListSchema_data_subscriptions extends Parsable {
9117
+ /**
9118
+ * The data property
9119
+ */
9120
+ data?: GetOwnerListSchema_data_subscriptions_data[] | null;
9121
+ /**
9122
+ * The hasMore property
9123
+ */
9124
+ hasMore?: boolean | null;
9125
+ /**
9126
+ * The path property
9127
+ */
9128
+ path?: string | null;
9129
+ /**
9130
+ * The type property
9131
+ */
9132
+ type?: string | null;
9133
+ }
9134
+ export interface GetOwnerListSchema_data_subscriptions_data extends Parsable {
9135
+ /**
9136
+ * The cancelAtPeriodEnd property
9137
+ */
9138
+ cancelAtPeriodEnd?: boolean | null;
9139
+ /**
9140
+ * The cancelledAt property
9141
+ */
9142
+ cancelledAt?: string | null;
9143
+ /**
9144
+ * The createdAt property
9145
+ */
9146
+ createdAt?: string | null;
9147
+ /**
9148
+ * The currencyShortCode property
9149
+ */
9150
+ currencyShortCode?: string | null;
9151
+ /**
9152
+ * The customerId property
9153
+ */
9154
+ customerId?: string | null;
9155
+ /**
9156
+ * The id property
9157
+ */
9158
+ id?: string | null;
9159
+ /**
9160
+ * The interval property
9161
+ */
9162
+ interval?: UntypedNode | null;
9163
+ /**
9164
+ * The intervalCount property
9165
+ */
9166
+ intervalCount?: number | null;
9167
+ /**
9168
+ * The isPerpetual property
9169
+ */
9170
+ isPerpetual?: boolean | null;
9171
+ /**
9172
+ * The isSalableOnly property
9173
+ */
9174
+ isSalableOnly?: boolean | null;
9175
+ /**
9176
+ * The organisation property
9177
+ */
9178
+ organisation?: string | null;
9179
+ /**
9180
+ * The ownerId property
9181
+ */
9182
+ ownerId?: string | null;
9183
+ /**
9184
+ * The startDate property
9185
+ */
9186
+ startDate?: string | null;
9187
+ /**
9188
+ * The status property
9189
+ */
9190
+ status?: string | null;
9191
+ /**
9192
+ * The stripeSubscriptionId property
9193
+ */
9194
+ stripeSubscriptionId?: string | null;
9195
+ /**
9196
+ * The updatedAt property
9197
+ */
9198
+ updatedAt?: string | null;
9199
+ }
9016
9200
  export interface GetPaymentIntegrationListSchema extends Parsable {
9017
9201
  /**
9018
9202
  * The data property
@@ -15192,6 +15376,34 @@ export declare function serializeGetOwnerListSchema(writer: SerializationWriter,
15192
15376
  * @param writer Serialization writer to use to serialize this model
15193
15377
  */
15194
15378
  export declare function serializeGetOwnerListSchema_data(writer: SerializationWriter, getOwnerListSchema_data?: Partial<GetOwnerListSchema_data> | undefined | null, isSerializingDerivedType?: boolean): void;
15379
+ /**
15380
+ * Serializes information the current object
15381
+ * @param GetOwnerListSchema_data_receipts The instance to serialize from.
15382
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
15383
+ * @param writer Serialization writer to use to serialize this model
15384
+ */
15385
+ export declare function serializeGetOwnerListSchema_data_receipts(writer: SerializationWriter, getOwnerListSchema_data_receipts?: Partial<GetOwnerListSchema_data_receipts> | undefined | null, isSerializingDerivedType?: boolean): void;
15386
+ /**
15387
+ * Serializes information the current object
15388
+ * @param GetOwnerListSchema_data_receipts_data The instance to serialize from.
15389
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
15390
+ * @param writer Serialization writer to use to serialize this model
15391
+ */
15392
+ export declare function serializeGetOwnerListSchema_data_receipts_data(writer: SerializationWriter, getOwnerListSchema_data_receipts_data?: Partial<GetOwnerListSchema_data_receipts_data> | undefined | null, isSerializingDerivedType?: boolean): void;
15393
+ /**
15394
+ * Serializes information the current object
15395
+ * @param GetOwnerListSchema_data_subscriptions The instance to serialize from.
15396
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
15397
+ * @param writer Serialization writer to use to serialize this model
15398
+ */
15399
+ export declare function serializeGetOwnerListSchema_data_subscriptions(writer: SerializationWriter, getOwnerListSchema_data_subscriptions?: Partial<GetOwnerListSchema_data_subscriptions> | undefined | null, isSerializingDerivedType?: boolean): void;
15400
+ /**
15401
+ * Serializes information the current object
15402
+ * @param GetOwnerListSchema_data_subscriptions_data The instance to serialize from.
15403
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
15404
+ * @param writer Serialization writer to use to serialize this model
15405
+ */
15406
+ export declare function serializeGetOwnerListSchema_data_subscriptions_data(writer: SerializationWriter, getOwnerListSchema_data_subscriptions_data?: Partial<GetOwnerListSchema_data_subscriptions_data> | undefined | null, isSerializingDerivedType?: boolean): void;
15195
15407
  /**
15196
15408
  * Serializes information the current object
15197
15409
  * @param GetPaymentIntegrationListSchema The instance to serialize from.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salable/sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",