@salable/sdk 1.0.64 → 1.0.65
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,34 @@
|
|
|
1
|
+
import { type BatchCreateGranteesRequestSchema, type BatchCreateGranteesResponseSchema } 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/grantees/batch
|
|
5
|
+
*/
|
|
6
|
+
export interface BatchRequestBuilder extends BaseRequestBuilder<BatchRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Creates up to 500 grantees in a single request. Duplicate granteeIds in the request, grantees that already exist in the organisation, and grantees created concurrently are skipped. For repeated request entries, the first occurrence is used for creation.
|
|
9
|
+
* @param body The request body
|
|
10
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
11
|
+
* @returns {Promise<BatchCreateGranteesResponseSchema>}
|
|
12
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
13
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
14
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
15
|
+
* @throws {ErrorResponseBody} error when the service returns a 429 status code
|
|
16
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
17
|
+
*/
|
|
18
|
+
post(body: BatchCreateGranteesRequestSchema[], requestConfiguration?: RequestConfiguration<object> | undefined): Promise<BatchCreateGranteesResponseSchema | undefined>;
|
|
19
|
+
/**
|
|
20
|
+
* Creates up to 500 grantees in a single request. Duplicate granteeIds in the request, grantees that already exist in the organisation, and grantees created concurrently are skipped. For repeated request entries, the first occurrence is used for creation.
|
|
21
|
+
* @param body The request body
|
|
22
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
23
|
+
* @returns {RequestInformation}
|
|
24
|
+
*/
|
|
25
|
+
toPostRequestInformation(body: BatchCreateGranteesRequestSchema[], requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Uri template for the request builder.
|
|
29
|
+
*/
|
|
30
|
+
export declare const BatchRequestBuilderUriTemplate = "{+baseurl}/api/grantees/batch";
|
|
31
|
+
/**
|
|
32
|
+
* Metadata for all the requests in the request builder.
|
|
33
|
+
*/
|
|
34
|
+
export declare const BatchRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { type CreateGranteeRequestSchema, type CreateGranteeResponseSchema, type GetGranteeListSchema } from '../../models/index.js';
|
|
2
|
+
import { type BatchRequestBuilder } from './batch/index.js';
|
|
2
3
|
import { type GranteesItemRequestBuilder } from './item/index.js';
|
|
3
4
|
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
4
5
|
/**
|
|
5
6
|
* Builds and executes requests for operations under /api/grantees
|
|
6
7
|
*/
|
|
7
8
|
export interface GranteesRequestBuilder extends BaseRequestBuilder<GranteesRequestBuilder> {
|
|
9
|
+
/**
|
|
10
|
+
* The batch property
|
|
11
|
+
*/
|
|
12
|
+
get batch(): BatchRequestBuilder;
|
|
8
13
|
/**
|
|
9
14
|
* Gets an item from the ApiSdk.api.grantees.item collection
|
|
10
15
|
* @param id Resource ID
|
|
@@ -57,6 +57,40 @@ export interface BatchCartActionsResponseSchema_data_results extends Parsable {
|
|
|
57
57
|
status?: string | null;
|
|
58
58
|
}
|
|
59
59
|
export type BatchCartActionsResponseSchema_data_results_status = string;
|
|
60
|
+
export interface BatchCreateGranteesRequestSchema extends Parsable {
|
|
61
|
+
/**
|
|
62
|
+
* The ID of the entity receiving access in your system, like a user ID or workspace ID.
|
|
63
|
+
*/
|
|
64
|
+
granteeId?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* A readable name to identify the grantee.
|
|
67
|
+
*/
|
|
68
|
+
name?: string | null;
|
|
69
|
+
}
|
|
70
|
+
export interface BatchCreateGranteesResponseSchema extends Parsable {
|
|
71
|
+
/**
|
|
72
|
+
* The data property
|
|
73
|
+
*/
|
|
74
|
+
data?: BatchCreateGranteesResponseSchema_data | null;
|
|
75
|
+
/**
|
|
76
|
+
* The type property
|
|
77
|
+
*/
|
|
78
|
+
type?: string | null;
|
|
79
|
+
}
|
|
80
|
+
export interface BatchCreateGranteesResponseSchema_data extends Parsable {
|
|
81
|
+
/**
|
|
82
|
+
* The number of duplicate or existing grantees that were not created.
|
|
83
|
+
*/
|
|
84
|
+
skipped?: number | null;
|
|
85
|
+
/**
|
|
86
|
+
* The number of grantees that were created.
|
|
87
|
+
*/
|
|
88
|
+
succeeded?: number | null;
|
|
89
|
+
/**
|
|
90
|
+
* The number of grantees submitted in the request.
|
|
91
|
+
*/
|
|
92
|
+
total?: number | null;
|
|
93
|
+
}
|
|
60
94
|
export interface BatchReceiptActionsRequestSchema extends Parsable {
|
|
61
95
|
/**
|
|
62
96
|
* The action property
|
|
@@ -317,6 +351,24 @@ export declare function createBatchCartActionsResponseSchema_dataFromDiscriminat
|
|
|
317
351
|
* @returns {BatchCartActionsResponseSchema}
|
|
318
352
|
*/
|
|
319
353
|
export declare function createBatchCartActionsResponseSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
354
|
+
/**
|
|
355
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
356
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
357
|
+
* @returns {BatchCreateGranteesRequestSchema}
|
|
358
|
+
*/
|
|
359
|
+
export declare function createBatchCreateGranteesRequestSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
360
|
+
/**
|
|
361
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
362
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
363
|
+
* @returns {BatchCreateGranteesResponseSchema_data}
|
|
364
|
+
*/
|
|
365
|
+
export declare function createBatchCreateGranteesResponseSchema_dataFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
366
|
+
/**
|
|
367
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
368
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
369
|
+
* @returns {BatchCreateGranteesResponseSchema}
|
|
370
|
+
*/
|
|
371
|
+
export declare function createBatchCreateGranteesResponseSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
320
372
|
/**
|
|
321
373
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
322
374
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -2795,11 +2847,11 @@ export declare function createGetWebhookListSchema_dataFromDiscriminatorValue(pa
|
|
|
2795
2847
|
export declare function createGetWebhookListSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
2796
2848
|
export interface CreateGranteeRequestSchema extends Parsable {
|
|
2797
2849
|
/**
|
|
2798
|
-
* The
|
|
2850
|
+
* The ID of the entity receiving access in your system, like a user ID or workspace ID.
|
|
2799
2851
|
*/
|
|
2800
2852
|
granteeId?: string | null;
|
|
2801
2853
|
/**
|
|
2802
|
-
*
|
|
2854
|
+
* A readable name to identify the grantee.
|
|
2803
2855
|
*/
|
|
2804
2856
|
name?: string | null;
|
|
2805
2857
|
}
|
|
@@ -3708,6 +3760,24 @@ export declare function deserializeIntoBatchCartActionsResponseSchema_data(batch
|
|
|
3708
3760
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3709
3761
|
*/
|
|
3710
3762
|
export declare function deserializeIntoBatchCartActionsResponseSchema_data_results(batchCartActionsResponseSchema_data_results?: Partial<BatchCartActionsResponseSchema_data_results> | undefined): Record<string, (node: ParseNode) => void>;
|
|
3763
|
+
/**
|
|
3764
|
+
* The deserialization information for the current model
|
|
3765
|
+
* @param BatchCreateGranteesRequestSchema The instance to deserialize into.
|
|
3766
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3767
|
+
*/
|
|
3768
|
+
export declare function deserializeIntoBatchCreateGranteesRequestSchema(batchCreateGranteesRequestSchema?: Partial<BatchCreateGranteesRequestSchema> | undefined): Record<string, (node: ParseNode) => void>;
|
|
3769
|
+
/**
|
|
3770
|
+
* The deserialization information for the current model
|
|
3771
|
+
* @param BatchCreateGranteesResponseSchema The instance to deserialize into.
|
|
3772
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3773
|
+
*/
|
|
3774
|
+
export declare function deserializeIntoBatchCreateGranteesResponseSchema(batchCreateGranteesResponseSchema?: Partial<BatchCreateGranteesResponseSchema> | undefined): Record<string, (node: ParseNode) => void>;
|
|
3775
|
+
/**
|
|
3776
|
+
* The deserialization information for the current model
|
|
3777
|
+
* @param BatchCreateGranteesResponseSchema_data The instance to deserialize into.
|
|
3778
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3779
|
+
*/
|
|
3780
|
+
export declare function deserializeIntoBatchCreateGranteesResponseSchema_data(batchCreateGranteesResponseSchema_data?: Partial<BatchCreateGranteesResponseSchema_data> | undefined): Record<string, (node: ParseNode) => void>;
|
|
3711
3781
|
/**
|
|
3712
3782
|
* The deserialization information for the current model
|
|
3713
3783
|
* @param BatchReceiptActionsRequestSchema The instance to deserialize into.
|
|
@@ -14912,6 +14982,27 @@ export declare function serializeBatchCartActionsResponseSchema_data_results(wri
|
|
|
14912
14982
|
* @param writer Serialization writer to use to serialize this model
|
|
14913
14983
|
*/
|
|
14914
14984
|
export declare function serializeBatchCartActionsResponseSchema_data_results_status(writer: SerializationWriter, key: string, batchCartActionsResponseSchema_data_results_status: Parsable | BatchCartActionsResponseSchema_data_results_status | undefined, isSerializingDerivedType?: boolean): void;
|
|
14985
|
+
/**
|
|
14986
|
+
* Serializes information the current object
|
|
14987
|
+
* @param BatchCreateGranteesRequestSchema The instance to serialize from.
|
|
14988
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14989
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14990
|
+
*/
|
|
14991
|
+
export declare function serializeBatchCreateGranteesRequestSchema(writer: SerializationWriter, batchCreateGranteesRequestSchema?: Partial<BatchCreateGranteesRequestSchema> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
14992
|
+
/**
|
|
14993
|
+
* Serializes information the current object
|
|
14994
|
+
* @param BatchCreateGranteesResponseSchema The instance to serialize from.
|
|
14995
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14996
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14997
|
+
*/
|
|
14998
|
+
export declare function serializeBatchCreateGranteesResponseSchema(writer: SerializationWriter, batchCreateGranteesResponseSchema?: Partial<BatchCreateGranteesResponseSchema> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
14999
|
+
/**
|
|
15000
|
+
* Serializes information the current object
|
|
15001
|
+
* @param BatchCreateGranteesResponseSchema_data The instance to serialize from.
|
|
15002
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
15003
|
+
* @param writer Serialization writer to use to serialize this model
|
|
15004
|
+
*/
|
|
15005
|
+
export declare function serializeBatchCreateGranteesResponseSchema_data(writer: SerializationWriter, batchCreateGranteesResponseSchema_data?: Partial<BatchCreateGranteesResponseSchema_data> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
14915
15006
|
/**
|
|
14916
15007
|
* Serializes information the current object
|
|
14917
15008
|
* @param BatchReceiptActionsRequestSchema The instance to serialize from.
|