@formalingo/sdk 0.1.0 → 0.1.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.
- package/README.md +214 -0
- package/dist/client/api/index.d.ts +20 -0
- package/dist/client/api/index.d.ts.map +1 -0
- package/dist/client/api/index.js +20 -0
- package/dist/client/api/index.js.map +1 -0
- package/dist/client/api/v1/documents/index.d.ts +163 -0
- package/dist/client/api/v1/documents/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/index.js +164 -0
- package/dist/client/api/v1/documents/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/fields/index.d.ts +111 -0
- package/dist/client/api/v1/documents/item/fields/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/fields/index.js +115 -0
- package/dist/client/api/v1/documents/item/fields/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/fields/item/index.d.ts +221 -0
- package/dist/client/api/v1/documents/item/fields/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/fields/item/index.js +218 -0
- package/dist/client/api/v1/documents/item/fields/item/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/index.d.ts +207 -0
- package/dist/client/api/v1/documents/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/index.js +217 -0
- package/dist/client/api/v1/documents/item/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/signerRoles/index.d.ts +111 -0
- package/dist/client/api/v1/documents/item/signerRoles/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/signerRoles/index.js +115 -0
- package/dist/client/api/v1/documents/item/signerRoles/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/signerRoles/item/index.d.ts +56 -0
- package/dist/client/api/v1/documents/item/signerRoles/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/signerRoles/item/index.js +59 -0
- package/dist/client/api/v1/documents/item/signerRoles/item/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/index.d.ts +111 -0
- package/dist/client/api/v1/documents/item/submissions/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/index.js +116 -0
- package/dist/client/api/v1/documents/item/submissions/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/index.d.ts +65 -0
- package/dist/client/api/v1/documents/item/submissions/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/index.js +70 -0
- package/dist/client/api/v1/documents/item/submissions/item/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/index.d.ts +68 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/index.js +70 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.d.ts +137 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.js +146 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.js.map +1 -0
- package/dist/client/api/v1/forms/index.d.ts +231 -0
- package/dist/client/api/v1/forms/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/index.js +244 -0
- package/dist/client/api/v1/forms/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/index.d.ts +241 -0
- package/dist/client/api/v1/forms/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/index.js +261 -0
- package/dist/client/api/v1/forms/item/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/questions/index.d.ts +111 -0
- package/dist/client/api/v1/forms/item/questions/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/questions/index.js +115 -0
- package/dist/client/api/v1/forms/item/questions/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/questions/item/index.d.ts +196 -0
- package/dist/client/api/v1/forms/item/questions/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/questions/item/index.js +193 -0
- package/dist/client/api/v1/forms/item/questions/item/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/recipients/index.d.ts +111 -0
- package/dist/client/api/v1/forms/item/recipients/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/recipients/index.js +115 -0
- package/dist/client/api/v1/forms/item/recipients/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/recipients/item/index.d.ts +100 -0
- package/dist/client/api/v1/forms/item/recipients/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/recipients/item/index.js +106 -0
- package/dist/client/api/v1/forms/item/recipients/item/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/sections/index.d.ts +111 -0
- package/dist/client/api/v1/forms/item/sections/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/sections/index.js +115 -0
- package/dist/client/api/v1/forms/item/sections/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/sections/item/index.d.ts +100 -0
- package/dist/client/api/v1/forms/item/sections/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/sections/item/index.js +106 -0
- package/dist/client/api/v1/forms/item/sections/item/index.js.map +1 -0
- package/dist/client/api/v1/index.d.ts +25 -0
- package/dist/client/api/v1/index.d.ts.map +1 -0
- package/dist/client/api/v1/index.js +27 -0
- package/dist/client/api/v1/index.js.map +1 -0
- package/dist/client/formalingoClient.d.ts +20 -7
- package/dist/client/formalingoClient.d.ts.map +1 -1
- package/dist/client/formalingoClient.js +56 -2
- package/dist/client/formalingoClient.js.map +1 -1
- package/dist/client/models/index.d.ts +1376 -0
- package/dist/client/models/index.d.ts.map +1 -0
- package/dist/client/models/index.js +1333 -0
- package/dist/client/models/index.js.map +1 -0
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { createRecipientFromDiscriminatorValue, serializeCreateRecipientBody, serializeRecipient } from '../../../../../models/index.js';
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import { WithRItemRequestBuilderRequestsMetadata } from './item/index.js';
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
10
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
11
|
+
* @returns {RecipientsGetResponse}
|
|
12
|
+
*/
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
export function createRecipientsGetResponseFromDiscriminatorValue(parseNode) {
|
|
15
|
+
return deserializeIntoRecipientsGetResponse;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
19
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
20
|
+
* @returns {RecipientsPostResponse}
|
|
21
|
+
*/
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
export function createRecipientsPostResponseFromDiscriminatorValue(parseNode) {
|
|
24
|
+
return deserializeIntoRecipientsPostResponse;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The deserialization information for the current model
|
|
28
|
+
* @param RecipientsGetResponse The instance to deserialize into.
|
|
29
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
30
|
+
*/
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
export function deserializeIntoRecipientsGetResponse(recipientsGetResponse = {}) {
|
|
33
|
+
return {
|
|
34
|
+
"data": n => { recipientsGetResponse.data = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); },
|
|
35
|
+
"success": n => { recipientsGetResponse.success = n.getBooleanValue(); },
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The deserialization information for the current model
|
|
40
|
+
* @param RecipientsPostResponse The instance to deserialize into.
|
|
41
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
42
|
+
*/
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
export function deserializeIntoRecipientsPostResponse(recipientsPostResponse = {}) {
|
|
45
|
+
return {
|
|
46
|
+
"data": n => { recipientsPostResponse.data = n.getObjectValue(createRecipientFromDiscriminatorValue); },
|
|
47
|
+
"success": n => { recipientsPostResponse.success = n.getBooleanValue(); },
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Serializes information the current object
|
|
52
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
53
|
+
* @param RecipientsGetResponse The instance to serialize from.
|
|
54
|
+
* @param writer Serialization writer to use to serialize this model
|
|
55
|
+
*/
|
|
56
|
+
// @ts-ignore
|
|
57
|
+
export function serializeRecipientsGetResponse(writer, recipientsGetResponse = {}, isSerializingDerivedType = false) {
|
|
58
|
+
if (!recipientsGetResponse || isSerializingDerivedType) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
writer.writeCollectionOfObjectValues("data", recipientsGetResponse.data, serializeRecipient);
|
|
62
|
+
writer.writeBooleanValue("success", recipientsGetResponse.success);
|
|
63
|
+
writer.writeAdditionalData(recipientsGetResponse.additionalData);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Serializes information the current object
|
|
67
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
68
|
+
* @param RecipientsPostResponse The instance to serialize from.
|
|
69
|
+
* @param writer Serialization writer to use to serialize this model
|
|
70
|
+
*/
|
|
71
|
+
// @ts-ignore
|
|
72
|
+
export function serializeRecipientsPostResponse(writer, recipientsPostResponse = {}, isSerializingDerivedType = false) {
|
|
73
|
+
if (!recipientsPostResponse || isSerializingDerivedType) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
writer.writeObjectValue("data", recipientsPostResponse.data, serializeRecipient);
|
|
77
|
+
writer.writeBooleanValue("success", recipientsPostResponse.success);
|
|
78
|
+
writer.writeAdditionalData(recipientsPostResponse.additionalData);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Uri template for the request builder.
|
|
82
|
+
*/
|
|
83
|
+
export const RecipientsRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/recipients";
|
|
84
|
+
/**
|
|
85
|
+
* Metadata for all the navigation properties in the request builder.
|
|
86
|
+
*/
|
|
87
|
+
export const RecipientsRequestBuilderNavigationMetadata = {
|
|
88
|
+
byRid: {
|
|
89
|
+
requestsMetadata: WithRItemRequestBuilderRequestsMetadata,
|
|
90
|
+
pathParametersMappings: ["rid"],
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Metadata for all the requests in the request builder.
|
|
95
|
+
*/
|
|
96
|
+
export const RecipientsRequestBuilderRequestsMetadata = {
|
|
97
|
+
get: {
|
|
98
|
+
uriTemplate: RecipientsRequestBuilderUriTemplate,
|
|
99
|
+
responseBodyContentType: "application/json",
|
|
100
|
+
adapterMethodName: "send",
|
|
101
|
+
responseBodyFactory: createRecipientsGetResponseFromDiscriminatorValue,
|
|
102
|
+
},
|
|
103
|
+
post: {
|
|
104
|
+
uriTemplate: RecipientsRequestBuilderUriTemplate,
|
|
105
|
+
responseBodyContentType: "application/json",
|
|
106
|
+
adapterMethodName: "send",
|
|
107
|
+
responseBodyFactory: createRecipientsPostResponseFromDiscriminatorValue,
|
|
108
|
+
requestBodyContentType: "application/json",
|
|
109
|
+
requestBodySerializer: serializeCreateRecipientBody,
|
|
110
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
/* tslint:enable */
|
|
114
|
+
/* eslint-enable */
|
|
115
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/client/api/v1/forms/item/recipients/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/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AE,kBAAkB;QAC1C,qBAAqB,EAAE,4BAA4B;QACnD,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { type Recipient, type UpdateRecipientBody } from '../../../../../../models/index.js';
|
|
2
|
+
import { type AdditionalDataHolder, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter, type UntypedNode } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
5
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6
|
+
* @returns {WithRDeleteResponse}
|
|
7
|
+
*/
|
|
8
|
+
export declare function createWithRDeleteResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
11
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
12
|
+
* @returns {WithRPutResponse}
|
|
13
|
+
*/
|
|
14
|
+
export declare function createWithRPutResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
15
|
+
/**
|
|
16
|
+
* The deserialization information for the current model
|
|
17
|
+
* @param WithRDeleteResponse The instance to deserialize into.
|
|
18
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
19
|
+
*/
|
|
20
|
+
export declare function deserializeIntoWithRDeleteResponse(withRDeleteResponse?: Partial<WithRDeleteResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
21
|
+
/**
|
|
22
|
+
* The deserialization information for the current model
|
|
23
|
+
* @param WithRPutResponse The instance to deserialize into.
|
|
24
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
25
|
+
*/
|
|
26
|
+
export declare function deserializeIntoWithRPutResponse(withRPutResponse?: Partial<WithRPutResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
27
|
+
/**
|
|
28
|
+
* Serializes information the current object
|
|
29
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
30
|
+
* @param WithRDeleteResponse The instance to serialize from.
|
|
31
|
+
* @param writer Serialization writer to use to serialize this model
|
|
32
|
+
*/
|
|
33
|
+
export declare function serializeWithRDeleteResponse(writer: SerializationWriter, withRDeleteResponse?: Partial<WithRDeleteResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
34
|
+
/**
|
|
35
|
+
* Serializes information the current object
|
|
36
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
37
|
+
* @param WithRPutResponse The instance to serialize from.
|
|
38
|
+
* @param writer Serialization writer to use to serialize this model
|
|
39
|
+
*/
|
|
40
|
+
export declare function serializeWithRPutResponse(writer: SerializationWriter, withRPutResponse?: Partial<WithRPutResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
41
|
+
export interface WithRDeleteResponse extends AdditionalDataHolder, Parsable {
|
|
42
|
+
/**
|
|
43
|
+
* The data property
|
|
44
|
+
*/
|
|
45
|
+
data?: UntypedNode | null;
|
|
46
|
+
/**
|
|
47
|
+
* The success property
|
|
48
|
+
*/
|
|
49
|
+
success?: boolean | null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Builds and executes requests for operations under /api/v1/forms/{id}/recipients/{rid}
|
|
53
|
+
*/
|
|
54
|
+
export interface WithRItemRequestBuilder extends BaseRequestBuilder<WithRItemRequestBuilder> {
|
|
55
|
+
/**
|
|
56
|
+
* Delete a recipient
|
|
57
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
58
|
+
* @returns {Promise<WithRDeleteResponse>}
|
|
59
|
+
*/
|
|
60
|
+
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<WithRDeleteResponse | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* Update a recipient
|
|
63
|
+
* @param body The request body
|
|
64
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
65
|
+
* @returns {Promise<WithRPutResponse>}
|
|
66
|
+
*/
|
|
67
|
+
put(body: UpdateRecipientBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<WithRPutResponse | undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* Delete a recipient
|
|
70
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
71
|
+
* @returns {RequestInformation}
|
|
72
|
+
*/
|
|
73
|
+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
74
|
+
/**
|
|
75
|
+
* Update a recipient
|
|
76
|
+
* @param body The request body
|
|
77
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
78
|
+
* @returns {RequestInformation}
|
|
79
|
+
*/
|
|
80
|
+
toPutRequestInformation(body: UpdateRecipientBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
81
|
+
}
|
|
82
|
+
export interface WithRPutResponse extends AdditionalDataHolder, Parsable {
|
|
83
|
+
/**
|
|
84
|
+
* The data property
|
|
85
|
+
*/
|
|
86
|
+
data?: Recipient | null;
|
|
87
|
+
/**
|
|
88
|
+
* The success property
|
|
89
|
+
*/
|
|
90
|
+
success?: boolean | null;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Uri template for the request builder.
|
|
94
|
+
*/
|
|
95
|
+
export declare const WithRItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/recipients/{rid}";
|
|
96
|
+
/**
|
|
97
|
+
* Metadata for all the requests in the request builder.
|
|
98
|
+
*/
|
|
99
|
+
export declare const WithRItemRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
100
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.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AO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5B;AACD;;GAEG;AACH,eAAO,MAAM,kCAAkC,kDAAkD,CAAC;AAClG;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,gBAgBrD,CAAC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { createRecipientFromDiscriminatorValue, serializeRecipient, serializeUpdateRecipientBody } from '../../../../../../models/index.js';
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import { createUntypedNodeFromDiscriminatorValue } from '@microsoft/kiota-abstractions';
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
10
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
11
|
+
* @returns {WithRDeleteResponse}
|
|
12
|
+
*/
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
export function createWithRDeleteResponseFromDiscriminatorValue(parseNode) {
|
|
15
|
+
return deserializeIntoWithRDeleteResponse;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
19
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
20
|
+
* @returns {WithRPutResponse}
|
|
21
|
+
*/
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
export function createWithRPutResponseFromDiscriminatorValue(parseNode) {
|
|
24
|
+
return deserializeIntoWithRPutResponse;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The deserialization information for the current model
|
|
28
|
+
* @param WithRDeleteResponse The instance to deserialize into.
|
|
29
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
30
|
+
*/
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
export function deserializeIntoWithRDeleteResponse(withRDeleteResponse = {}) {
|
|
33
|
+
return {
|
|
34
|
+
"data": n => { withRDeleteResponse.data = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
35
|
+
"success": n => { withRDeleteResponse.success = n.getBooleanValue(); },
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The deserialization information for the current model
|
|
40
|
+
* @param WithRPutResponse The instance to deserialize into.
|
|
41
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
42
|
+
*/
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
export function deserializeIntoWithRPutResponse(withRPutResponse = {}) {
|
|
45
|
+
return {
|
|
46
|
+
"data": n => { withRPutResponse.data = n.getObjectValue(createRecipientFromDiscriminatorValue); },
|
|
47
|
+
"success": n => { withRPutResponse.success = n.getBooleanValue(); },
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Serializes information the current object
|
|
52
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
53
|
+
* @param WithRDeleteResponse The instance to serialize from.
|
|
54
|
+
* @param writer Serialization writer to use to serialize this model
|
|
55
|
+
*/
|
|
56
|
+
// @ts-ignore
|
|
57
|
+
export function serializeWithRDeleteResponse(writer, withRDeleteResponse = {}, isSerializingDerivedType = false) {
|
|
58
|
+
if (!withRDeleteResponse || isSerializingDerivedType) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
writer.writeObjectValue("data", withRDeleteResponse.data);
|
|
62
|
+
writer.writeBooleanValue("success", withRDeleteResponse.success);
|
|
63
|
+
writer.writeAdditionalData(withRDeleteResponse.additionalData);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Serializes information the current object
|
|
67
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
68
|
+
* @param WithRPutResponse The instance to serialize from.
|
|
69
|
+
* @param writer Serialization writer to use to serialize this model
|
|
70
|
+
*/
|
|
71
|
+
// @ts-ignore
|
|
72
|
+
export function serializeWithRPutResponse(writer, withRPutResponse = {}, isSerializingDerivedType = false) {
|
|
73
|
+
if (!withRPutResponse || isSerializingDerivedType) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
writer.writeObjectValue("data", withRPutResponse.data, serializeRecipient);
|
|
77
|
+
writer.writeBooleanValue("success", withRPutResponse.success);
|
|
78
|
+
writer.writeAdditionalData(withRPutResponse.additionalData);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Uri template for the request builder.
|
|
82
|
+
*/
|
|
83
|
+
export const WithRItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/recipients/{rid}";
|
|
84
|
+
/**
|
|
85
|
+
* Metadata for all the requests in the request builder.
|
|
86
|
+
*/
|
|
87
|
+
export const WithRItemRequestBuilderRequestsMetadata = {
|
|
88
|
+
delete: {
|
|
89
|
+
uriTemplate: WithRItemRequestBuilderUriTemplate,
|
|
90
|
+
responseBodyContentType: "application/json",
|
|
91
|
+
adapterMethodName: "send",
|
|
92
|
+
responseBodyFactory: createWithRDeleteResponseFromDiscriminatorValue,
|
|
93
|
+
},
|
|
94
|
+
put: {
|
|
95
|
+
uriTemplate: WithRItemRequestBuilderUriTemplate,
|
|
96
|
+
responseBodyContentType: "application/json",
|
|
97
|
+
adapterMethodName: "send",
|
|
98
|
+
responseBodyFactory: createWithRPutResponseFromDiscriminatorValue,
|
|
99
|
+
requestBodyContentType: "application/json",
|
|
100
|
+
requestBodySerializer: serializeUpdateRecipientBody,
|
|
101
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
/* tslint:enable */
|
|
105
|
+
/* eslint-enable */
|
|
106
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/client/api/v1/forms/item/recipients/item/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B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reateSectionBody, type Section } from '../../../../../models/index.js';
|
|
2
|
+
import { type WithSItemRequestBuilder } from './item/index.js';
|
|
3
|
+
import { type AdditionalDataHolder, type BaseRequestBuilder, type Guid, 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 {SectionsGetResponse}
|
|
8
|
+
*/
|
|
9
|
+
export declare function createSectionsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
12
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
13
|
+
* @returns {SectionsPostResponse}
|
|
14
|
+
*/
|
|
15
|
+
export declare function createSectionsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
16
|
+
/**
|
|
17
|
+
* The deserialization information for the current model
|
|
18
|
+
* @param SectionsGetResponse The instance to deserialize into.
|
|
19
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
20
|
+
*/
|
|
21
|
+
export declare function deserializeIntoSectionsGetResponse(sectionsGetResponse?: Partial<SectionsGetResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
22
|
+
/**
|
|
23
|
+
* The deserialization information for the current model
|
|
24
|
+
* @param SectionsPostResponse The instance to deserialize into.
|
|
25
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
26
|
+
*/
|
|
27
|
+
export declare function deserializeIntoSectionsPostResponse(sectionsPostResponse?: Partial<SectionsPostResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
28
|
+
export interface SectionsGetResponse extends AdditionalDataHolder, Parsable {
|
|
29
|
+
/**
|
|
30
|
+
* The data property
|
|
31
|
+
*/
|
|
32
|
+
data?: Section[] | null;
|
|
33
|
+
/**
|
|
34
|
+
* The success property
|
|
35
|
+
*/
|
|
36
|
+
success?: boolean | null;
|
|
37
|
+
}
|
|
38
|
+
export interface SectionsPostResponse extends AdditionalDataHolder, Parsable {
|
|
39
|
+
/**
|
|
40
|
+
* The data property
|
|
41
|
+
*/
|
|
42
|
+
data?: Section | null;
|
|
43
|
+
/**
|
|
44
|
+
* The success property
|
|
45
|
+
*/
|
|
46
|
+
success?: boolean | null;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Builds and executes requests for operations under /api/v1/forms/{id}/sections
|
|
50
|
+
*/
|
|
51
|
+
export interface SectionsRequestBuilder extends BaseRequestBuilder<SectionsRequestBuilder> {
|
|
52
|
+
/**
|
|
53
|
+
* Gets an item from the formalingo.api.v1.forms.item.sections.item collection
|
|
54
|
+
* @param sid Unique identifier of the item
|
|
55
|
+
* @returns {WithSItemRequestBuilder}
|
|
56
|
+
*/
|
|
57
|
+
bySid(sid: Guid): WithSItemRequestBuilder;
|
|
58
|
+
/**
|
|
59
|
+
* List sections
|
|
60
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
61
|
+
* @returns {Promise<SectionsGetResponse>}
|
|
62
|
+
*/
|
|
63
|
+
get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SectionsGetResponse | undefined>;
|
|
64
|
+
/**
|
|
65
|
+
* Create a section
|
|
66
|
+
* @param body The request body
|
|
67
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
68
|
+
* @returns {Promise<SectionsPostResponse>}
|
|
69
|
+
*/
|
|
70
|
+
post(body: CreateSectionBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SectionsPostResponse | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* List sections
|
|
73
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
74
|
+
* @returns {RequestInformation}
|
|
75
|
+
*/
|
|
76
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
77
|
+
/**
|
|
78
|
+
* Create a section
|
|
79
|
+
* @param body The request body
|
|
80
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
81
|
+
* @returns {RequestInformation}
|
|
82
|
+
*/
|
|
83
|
+
toPostRequestInformation(body: CreateSectionBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Serializes information the current object
|
|
87
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
88
|
+
* @param SectionsGetResponse The instance to serialize from.
|
|
89
|
+
* @param writer Serialization writer to use to serialize this model
|
|
90
|
+
*/
|
|
91
|
+
export declare function serializeSectionsGetResponse(writer: SerializationWriter, sectionsGetResponse?: Partial<SectionsGetResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
92
|
+
/**
|
|
93
|
+
* Serializes information the current object
|
|
94
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
95
|
+
* @param SectionsPostResponse The instance to serialize from.
|
|
96
|
+
* @param writer Serialization writer to use to serialize this model
|
|
97
|
+
*/
|
|
98
|
+
export declare function serializeSectionsPostResponse(writer: SerializationWriter, sectionsPostResponse?: Partial<SectionsPostResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
99
|
+
/**
|
|
100
|
+
* Uri template for the request builder.
|
|
101
|
+
*/
|
|
102
|
+
export declare const SectionsRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/sections";
|
|
103
|
+
/**
|
|
104
|
+
* Metadata for all the navigation properties in the request builder.
|
|
105
|
+
*/
|
|
106
|
+
export declare const SectionsRequestBuilderNavigationMetadata: Record<Exclude<keyof SectionsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
107
|
+
/**
|
|
108
|
+
* Metadata for all the requests in the request builder.
|
|
109
|
+
*/
|
|
110
|
+
export declare const SectionsRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
111
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/api/v1/forms/item/sections/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqF,KAAK,iBAAiB,EAAE,KAAK,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEzK,OAAO,EAAE,KAAK,uBAAuB,EAA2C,MAAM,iBAAiB,CAAC;AAExG,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,IAAI,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAE1U;;;;GAIG;AAEH,wBAAgB,+CAA+C,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAEvK;AACD;;;;GAIG;AAEH,wBAAgB,gDAAgD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAExK;AACD;;;;GAIG;AAEH,wBAAgB,kCAAkC,CAAC,mBAAmB,GAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,SAAc,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IA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AAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC5I;AACD;;;;;GAKG;AAEH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,mBAAmB,EAAE,mBAAmB,GAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAKrM;AACD;;;;;GAKG;AAEH,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,mBAAmB,EAAE,oBAAoB,GAAE,OAAO,CAAC,oBAAoB,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAKxM;AACD;;GAEG;AACH,eAAO,MAAM,iCAAiC,0CAA0C,CAAC;AACzF;;GAEG;AACH,eAAO,MAAM,wCAAwC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,sBAAsB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAK1J,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,sCAAsC,EAAE,gBAgBpD,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { createSectionFromDiscriminatorValue, serializeCreateSectionBody, serializeSection } from '../../../../../models/index.js';
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import { WithSItemRequestBuilderRequestsMetadata } from './item/index.js';
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
10
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
11
|
+
* @returns {SectionsGetResponse}
|
|
12
|
+
*/
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
export function createSectionsGetResponseFromDiscriminatorValue(parseNode) {
|
|
15
|
+
return deserializeIntoSectionsGetResponse;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
19
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
20
|
+
* @returns {SectionsPostResponse}
|
|
21
|
+
*/
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
export function createSectionsPostResponseFromDiscriminatorValue(parseNode) {
|
|
24
|
+
return deserializeIntoSectionsPostResponse;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The deserialization information for the current model
|
|
28
|
+
* @param SectionsGetResponse The instance to deserialize into.
|
|
29
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
30
|
+
*/
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
export function deserializeIntoSectionsGetResponse(sectionsGetResponse = {}) {
|
|
33
|
+
return {
|
|
34
|
+
"data": n => { sectionsGetResponse.data = n.getCollectionOfObjectValues(createSectionFromDiscriminatorValue); },
|
|
35
|
+
"success": n => { sectionsGetResponse.success = n.getBooleanValue(); },
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The deserialization information for the current model
|
|
40
|
+
* @param SectionsPostResponse The instance to deserialize into.
|
|
41
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
42
|
+
*/
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
export function deserializeIntoSectionsPostResponse(sectionsPostResponse = {}) {
|
|
45
|
+
return {
|
|
46
|
+
"data": n => { sectionsPostResponse.data = n.getObjectValue(createSectionFromDiscriminatorValue); },
|
|
47
|
+
"success": n => { sectionsPostResponse.success = n.getBooleanValue(); },
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Serializes information the current object
|
|
52
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
53
|
+
* @param SectionsGetResponse The instance to serialize from.
|
|
54
|
+
* @param writer Serialization writer to use to serialize this model
|
|
55
|
+
*/
|
|
56
|
+
// @ts-ignore
|
|
57
|
+
export function serializeSectionsGetResponse(writer, sectionsGetResponse = {}, isSerializingDerivedType = false) {
|
|
58
|
+
if (!sectionsGetResponse || isSerializingDerivedType) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
writer.writeCollectionOfObjectValues("data", sectionsGetResponse.data, serializeSection);
|
|
62
|
+
writer.writeBooleanValue("success", sectionsGetResponse.success);
|
|
63
|
+
writer.writeAdditionalData(sectionsGetResponse.additionalData);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Serializes information the current object
|
|
67
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
68
|
+
* @param SectionsPostResponse The instance to serialize from.
|
|
69
|
+
* @param writer Serialization writer to use to serialize this model
|
|
70
|
+
*/
|
|
71
|
+
// @ts-ignore
|
|
72
|
+
export function serializeSectionsPostResponse(writer, sectionsPostResponse = {}, isSerializingDerivedType = false) {
|
|
73
|
+
if (!sectionsPostResponse || isSerializingDerivedType) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
writer.writeObjectValue("data", sectionsPostResponse.data, serializeSection);
|
|
77
|
+
writer.writeBooleanValue("success", sectionsPostResponse.success);
|
|
78
|
+
writer.writeAdditionalData(sectionsPostResponse.additionalData);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Uri template for the request builder.
|
|
82
|
+
*/
|
|
83
|
+
export const SectionsRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/sections";
|
|
84
|
+
/**
|
|
85
|
+
* Metadata for all the navigation properties in the request builder.
|
|
86
|
+
*/
|
|
87
|
+
export const SectionsRequestBuilderNavigationMetadata = {
|
|
88
|
+
bySid: {
|
|
89
|
+
requestsMetadata: WithSItemRequestBuilderRequestsMetadata,
|
|
90
|
+
pathParametersMappings: ["sid"],
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Metadata for all the requests in the request builder.
|
|
95
|
+
*/
|
|
96
|
+
export const SectionsRequestBuilderRequestsMetadata = {
|
|
97
|
+
get: {
|
|
98
|
+
uriTemplate: SectionsRequestBuilderUriTemplate,
|
|
99
|
+
responseBodyContentType: "application/json",
|
|
100
|
+
adapterMethodName: "send",
|
|
101
|
+
responseBodyFactory: createSectionsGetResponseFromDiscriminatorValue,
|
|
102
|
+
},
|
|
103
|
+
post: {
|
|
104
|
+
uriTemplate: SectionsRequestBuilderUriTemplate,
|
|
105
|
+
responseBodyContentType: "application/json",
|
|
106
|
+
adapterMethodName: "send",
|
|
107
|
+
responseBodyFactory: createSectionsPostResponseFromDiscriminatorValue,
|
|
108
|
+
requestBodyContentType: "application/json",
|
|
109
|
+
requestBodySerializer: serializeCreateSectionBody,
|
|
110
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
/* tslint:enable */
|
|
114
|
+
/* eslint-enable */
|
|
115
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/client/api/v1/forms/item/sections/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,mCAAmC,EAAE,0BAA0B,EAAE,gBAAgB,EAAwC,MAAM,gCAAgC,CAAC;AACzK,aAAa;AACb,OAAO,EAAgC,uCAAuC,EAAE,MAAM,iBAAiB,CAAC;AAIxG;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,+CAA+C,CAAC,SAAgC;IAC5F,OAAO,kCAAkC,CAAC;AAC9C,CAAC;AACD;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,gDAAgD,CAAC,SAAgC;IAC7F,OAAO,mCAAmC,CAAC;AAC/C,CAAC;AACD;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,kCAAkC,CAAC,sBAAgE,EAAE;IACjH,OAAO;QACH,MAAM,EAAE,CAAC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