@formalingo/sdk 0.1.0 → 0.1.2

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.
Files changed (106) hide show
  1. package/README.md +214 -0
  2. package/dist/client/api/index.d.ts +20 -0
  3. package/dist/client/api/index.d.ts.map +1 -0
  4. package/dist/client/api/index.js +20 -0
  5. package/dist/client/api/index.js.map +1 -0
  6. package/dist/client/api/v1/documents/index.d.ts +163 -0
  7. package/dist/client/api/v1/documents/index.d.ts.map +1 -0
  8. package/dist/client/api/v1/documents/index.js +164 -0
  9. package/dist/client/api/v1/documents/index.js.map +1 -0
  10. package/dist/client/api/v1/documents/item/fields/index.d.ts +111 -0
  11. package/dist/client/api/v1/documents/item/fields/index.d.ts.map +1 -0
  12. package/dist/client/api/v1/documents/item/fields/index.js +115 -0
  13. package/dist/client/api/v1/documents/item/fields/index.js.map +1 -0
  14. package/dist/client/api/v1/documents/item/fields/item/index.d.ts +221 -0
  15. package/dist/client/api/v1/documents/item/fields/item/index.d.ts.map +1 -0
  16. package/dist/client/api/v1/documents/item/fields/item/index.js +218 -0
  17. package/dist/client/api/v1/documents/item/fields/item/index.js.map +1 -0
  18. package/dist/client/api/v1/documents/item/index.d.ts +207 -0
  19. package/dist/client/api/v1/documents/item/index.d.ts.map +1 -0
  20. package/dist/client/api/v1/documents/item/index.js +217 -0
  21. package/dist/client/api/v1/documents/item/index.js.map +1 -0
  22. package/dist/client/api/v1/documents/item/signerRoles/index.d.ts +111 -0
  23. package/dist/client/api/v1/documents/item/signerRoles/index.d.ts.map +1 -0
  24. package/dist/client/api/v1/documents/item/signerRoles/index.js +115 -0
  25. package/dist/client/api/v1/documents/item/signerRoles/index.js.map +1 -0
  26. package/dist/client/api/v1/documents/item/signerRoles/item/index.d.ts +56 -0
  27. package/dist/client/api/v1/documents/item/signerRoles/item/index.d.ts.map +1 -0
  28. package/dist/client/api/v1/documents/item/signerRoles/item/index.js +59 -0
  29. package/dist/client/api/v1/documents/item/signerRoles/item/index.js.map +1 -0
  30. package/dist/client/api/v1/documents/item/submissions/index.d.ts +111 -0
  31. package/dist/client/api/v1/documents/item/submissions/index.d.ts.map +1 -0
  32. package/dist/client/api/v1/documents/item/submissions/index.js +116 -0
  33. package/dist/client/api/v1/documents/item/submissions/index.js.map +1 -0
  34. package/dist/client/api/v1/documents/item/submissions/item/index.d.ts +70 -0
  35. package/dist/client/api/v1/documents/item/submissions/item/index.d.ts.map +1 -0
  36. package/dist/client/api/v1/documents/item/submissions/item/index.js +75 -0
  37. package/dist/client/api/v1/documents/item/submissions/item/index.js.map +1 -0
  38. package/dist/client/api/v1/documents/item/submissions/item/pdf/index.d.ts +91 -0
  39. package/dist/client/api/v1/documents/item/submissions/item/pdf/index.d.ts.map +1 -0
  40. package/dist/client/api/v1/documents/item/submissions/item/pdf/index.js +100 -0
  41. package/dist/client/api/v1/documents/item/submissions/item/pdf/index.js.map +1 -0
  42. package/dist/client/api/v1/documents/item/submissions/item/signers/index.d.ts +68 -0
  43. package/dist/client/api/v1/documents/item/submissions/item/signers/index.d.ts.map +1 -0
  44. package/dist/client/api/v1/documents/item/submissions/item/signers/index.js +71 -0
  45. package/dist/client/api/v1/documents/item/submissions/item/signers/index.js.map +1 -0
  46. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.d.ts +146 -0
  47. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.d.ts.map +1 -0
  48. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.js +156 -0
  49. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.js.map +1 -0
  50. package/dist/client/api/v1/documents/item/submissions/item/signers/item/responses/index.d.ts +134 -0
  51. package/dist/client/api/v1/documents/item/submissions/item/signers/item/responses/index.d.ts.map +1 -0
  52. package/dist/client/api/v1/documents/item/submissions/item/signers/item/responses/index.js +145 -0
  53. package/dist/client/api/v1/documents/item/submissions/item/signers/item/responses/index.js.map +1 -0
  54. package/dist/client/api/v1/forms/index.d.ts +231 -0
  55. package/dist/client/api/v1/forms/index.d.ts.map +1 -0
  56. package/dist/client/api/v1/forms/index.js +244 -0
  57. package/dist/client/api/v1/forms/index.js.map +1 -0
  58. package/dist/client/api/v1/forms/item/index.d.ts +241 -0
  59. package/dist/client/api/v1/forms/item/index.d.ts.map +1 -0
  60. package/dist/client/api/v1/forms/item/index.js +261 -0
  61. package/dist/client/api/v1/forms/item/index.js.map +1 -0
  62. package/dist/client/api/v1/forms/item/questions/index.d.ts +111 -0
  63. package/dist/client/api/v1/forms/item/questions/index.d.ts.map +1 -0
  64. package/dist/client/api/v1/forms/item/questions/index.js +115 -0
  65. package/dist/client/api/v1/forms/item/questions/index.js.map +1 -0
  66. package/dist/client/api/v1/forms/item/questions/item/index.d.ts +196 -0
  67. package/dist/client/api/v1/forms/item/questions/item/index.d.ts.map +1 -0
  68. package/dist/client/api/v1/forms/item/questions/item/index.js +193 -0
  69. package/dist/client/api/v1/forms/item/questions/item/index.js.map +1 -0
  70. package/dist/client/api/v1/forms/item/recipients/index.d.ts +111 -0
  71. package/dist/client/api/v1/forms/item/recipients/index.d.ts.map +1 -0
  72. package/dist/client/api/v1/forms/item/recipients/index.js +116 -0
  73. package/dist/client/api/v1/forms/item/recipients/index.js.map +1 -0
  74. package/dist/client/api/v1/forms/item/recipients/item/index.d.ts +109 -0
  75. package/dist/client/api/v1/forms/item/recipients/item/index.d.ts.map +1 -0
  76. package/dist/client/api/v1/forms/item/recipients/item/index.js +116 -0
  77. package/dist/client/api/v1/forms/item/recipients/item/index.js.map +1 -0
  78. package/dist/client/api/v1/forms/item/recipients/item/responses/index.d.ts +134 -0
  79. package/dist/client/api/v1/forms/item/recipients/item/responses/index.d.ts.map +1 -0
  80. package/dist/client/api/v1/forms/item/recipients/item/responses/index.js +145 -0
  81. package/dist/client/api/v1/forms/item/recipients/item/responses/index.js.map +1 -0
  82. package/dist/client/api/v1/forms/item/sections/index.d.ts +111 -0
  83. package/dist/client/api/v1/forms/item/sections/index.d.ts.map +1 -0
  84. package/dist/client/api/v1/forms/item/sections/index.js +115 -0
  85. package/dist/client/api/v1/forms/item/sections/index.js.map +1 -0
  86. package/dist/client/api/v1/forms/item/sections/item/index.d.ts +100 -0
  87. package/dist/client/api/v1/forms/item/sections/item/index.d.ts.map +1 -0
  88. package/dist/client/api/v1/forms/item/sections/item/index.js +106 -0
  89. package/dist/client/api/v1/forms/item/sections/item/index.js.map +1 -0
  90. package/dist/client/api/v1/index.d.ts +25 -0
  91. package/dist/client/api/v1/index.d.ts.map +1 -0
  92. package/dist/client/api/v1/index.js +27 -0
  93. package/dist/client/api/v1/index.js.map +1 -0
  94. package/dist/client/formalingoClient.d.ts +20 -7
  95. package/dist/client/formalingoClient.d.ts.map +1 -1
  96. package/dist/client/formalingoClient.js +56 -2
  97. package/dist/client/formalingoClient.js.map +1 -1
  98. package/dist/client/models/index.d.ts +1597 -0
  99. package/dist/client/models/index.d.ts.map +1 -0
  100. package/dist/client/models/index.js +1589 -0
  101. package/dist/client/models/index.js.map +1 -0
  102. package/dist/index.d.ts +8 -2
  103. package/dist/index.d.ts.map +1 -1
  104. package/dist/index.js +12 -5
  105. package/dist/index.js.map +1 -1
  106. package/package.json +1 -1
@@ -0,0 +1,116 @@
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 { WithRItemRequestBuilderNavigationMetadata, 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
+ navigationMetadata: WithRItemRequestBuilderNavigationMetadata,
91
+ pathParametersMappings: ["rid"],
92
+ },
93
+ };
94
+ /**
95
+ * Metadata for all the requests in the request builder.
96
+ */
97
+ export const RecipientsRequestBuilderRequestsMetadata = {
98
+ get: {
99
+ uriTemplate: RecipientsRequestBuilderUriTemplate,
100
+ responseBodyContentType: "application/json",
101
+ adapterMethodName: "send",
102
+ responseBodyFactory: createRecipientsGetResponseFromDiscriminatorValue,
103
+ },
104
+ post: {
105
+ uriTemplate: RecipientsRequestBuilderUriTemplate,
106
+ responseBodyContentType: "application/json",
107
+ adapterMethodName: "send",
108
+ responseBodyFactory: createRecipientsPostResponseFromDiscriminatorValue,
109
+ requestBodyContentType: "application/json",
110
+ requestBodySerializer: serializeCreateRecipientBody,
111
+ requestInformationContentSetMethod: "setContentFromParsable",
112
+ },
113
+ };
114
+ /* tslint:enable */
115
+ /* eslint-enable */
116
+ //# 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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;QAChD,uBAAuB,EAAE,kBAAkB;QAC3C,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,kDAAkD;QACxE,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,4BAA4B;QACnD,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,109 @@
1
+ import { type Recipient, type UpdateRecipientBody } from '../../../../../../models/index.js';
2
+ import { type ResponsesRequestBuilder } from './responses/index.js';
3
+ import { type AdditionalDataHolder, type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter, type UntypedNode } 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 {WithRDeleteResponse}
8
+ */
9
+ export declare function createWithRDeleteResponseFromDiscriminatorValue(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 {WithRPutResponse}
14
+ */
15
+ export declare function createWithRPutResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
16
+ /**
17
+ * The deserialization information for the current model
18
+ * @param WithRDeleteResponse The instance to deserialize into.
19
+ * @returns {Record<string, (node: ParseNode) => void>}
20
+ */
21
+ export declare function deserializeIntoWithRDeleteResponse(withRDeleteResponse?: Partial<WithRDeleteResponse> | undefined): Record<string, (node: ParseNode) => void>;
22
+ /**
23
+ * The deserialization information for the current model
24
+ * @param WithRPutResponse The instance to deserialize into.
25
+ * @returns {Record<string, (node: ParseNode) => void>}
26
+ */
27
+ export declare function deserializeIntoWithRPutResponse(withRPutResponse?: Partial<WithRPutResponse> | undefined): Record<string, (node: ParseNode) => void>;
28
+ /**
29
+ * Serializes information the current object
30
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
31
+ * @param WithRDeleteResponse The instance to serialize from.
32
+ * @param writer Serialization writer to use to serialize this model
33
+ */
34
+ export declare function serializeWithRDeleteResponse(writer: SerializationWriter, withRDeleteResponse?: Partial<WithRDeleteResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
35
+ /**
36
+ * Serializes information the current object
37
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
38
+ * @param WithRPutResponse The instance to serialize from.
39
+ * @param writer Serialization writer to use to serialize this model
40
+ */
41
+ export declare function serializeWithRPutResponse(writer: SerializationWriter, withRPutResponse?: Partial<WithRPutResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
42
+ export interface WithRDeleteResponse extends AdditionalDataHolder, Parsable {
43
+ /**
44
+ * The data property
45
+ */
46
+ data?: UntypedNode | null;
47
+ /**
48
+ * The success property
49
+ */
50
+ success?: boolean | null;
51
+ }
52
+ /**
53
+ * Builds and executes requests for operations under /api/v1/forms/{id}/recipients/{rid}
54
+ */
55
+ export interface WithRItemRequestBuilder extends BaseRequestBuilder<WithRItemRequestBuilder> {
56
+ /**
57
+ * The responses property
58
+ */
59
+ get responses(): ResponsesRequestBuilder;
60
+ /**
61
+ * Delete a recipient
62
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
63
+ * @returns {Promise<WithRDeleteResponse>}
64
+ */
65
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<WithRDeleteResponse | undefined>;
66
+ /**
67
+ * Update a recipient
68
+ * @param body The request body
69
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
70
+ * @returns {Promise<WithRPutResponse>}
71
+ */
72
+ put(body: UpdateRecipientBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<WithRPutResponse | undefined>;
73
+ /**
74
+ * Delete a recipient
75
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
76
+ * @returns {RequestInformation}
77
+ */
78
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
79
+ /**
80
+ * Update a recipient
81
+ * @param body The request body
82
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
83
+ * @returns {RequestInformation}
84
+ */
85
+ toPutRequestInformation(body: UpdateRecipientBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
86
+ }
87
+ export interface WithRPutResponse extends AdditionalDataHolder, Parsable {
88
+ /**
89
+ * The data property
90
+ */
91
+ data?: Recipient | null;
92
+ /**
93
+ * The success property
94
+ */
95
+ success?: boolean | null;
96
+ }
97
+ /**
98
+ * Uri template for the request builder.
99
+ */
100
+ export declare const WithRItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/recipients/{rid}";
101
+ /**
102
+ * Metadata for all the navigation properties in the request builder.
103
+ */
104
+ export declare const WithRItemRequestBuilderNavigationMetadata: Record<Exclude<keyof WithRItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
105
+ /**
106
+ * Metadata for all the requests in the request builder.
107
+ */
108
+ export declare const WithRItemRequestBuilderRequestsMetadata: RequestsMetadata;
109
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/api/v1/forms/item/recipients/item/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2F,KAAK,SAAS,EAAE,KAAK,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAEtL,OAAO,EAA2C,KAAK,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE7G,OAAO,EAA2C,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB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GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,gBAgBrD,CAAC"}
@@ -0,0 +1,116 @@
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 { ResponsesRequestBuilderRequestsMetadata } from './responses/index.js';
8
+ // @ts-ignore
9
+ import { createUntypedNodeFromDiscriminatorValue } from '@microsoft/kiota-abstractions';
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 {WithRDeleteResponse}
14
+ */
15
+ // @ts-ignore
16
+ export function createWithRDeleteResponseFromDiscriminatorValue(parseNode) {
17
+ return deserializeIntoWithRDeleteResponse;
18
+ }
19
+ /**
20
+ * Creates a new instance of the appropriate class based on discriminator value
21
+ * @param parseNode The parse node to use to read the discriminator value and create the object
22
+ * @returns {WithRPutResponse}
23
+ */
24
+ // @ts-ignore
25
+ export function createWithRPutResponseFromDiscriminatorValue(parseNode) {
26
+ return deserializeIntoWithRPutResponse;
27
+ }
28
+ /**
29
+ * The deserialization information for the current model
30
+ * @param WithRDeleteResponse The instance to deserialize into.
31
+ * @returns {Record<string, (node: ParseNode) => void>}
32
+ */
33
+ // @ts-ignore
34
+ export function deserializeIntoWithRDeleteResponse(withRDeleteResponse = {}) {
35
+ return {
36
+ "data": n => { withRDeleteResponse.data = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
37
+ "success": n => { withRDeleteResponse.success = n.getBooleanValue(); },
38
+ };
39
+ }
40
+ /**
41
+ * The deserialization information for the current model
42
+ * @param WithRPutResponse The instance to deserialize into.
43
+ * @returns {Record<string, (node: ParseNode) => void>}
44
+ */
45
+ // @ts-ignore
46
+ export function deserializeIntoWithRPutResponse(withRPutResponse = {}) {
47
+ return {
48
+ "data": n => { withRPutResponse.data = n.getObjectValue(createRecipientFromDiscriminatorValue); },
49
+ "success": n => { withRPutResponse.success = n.getBooleanValue(); },
50
+ };
51
+ }
52
+ /**
53
+ * Serializes information the current object
54
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
55
+ * @param WithRDeleteResponse The instance to serialize from.
56
+ * @param writer Serialization writer to use to serialize this model
57
+ */
58
+ // @ts-ignore
59
+ export function serializeWithRDeleteResponse(writer, withRDeleteResponse = {}, isSerializingDerivedType = false) {
60
+ if (!withRDeleteResponse || isSerializingDerivedType) {
61
+ return;
62
+ }
63
+ writer.writeObjectValue("data", withRDeleteResponse.data);
64
+ writer.writeBooleanValue("success", withRDeleteResponse.success);
65
+ writer.writeAdditionalData(withRDeleteResponse.additionalData);
66
+ }
67
+ /**
68
+ * Serializes information the current object
69
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
70
+ * @param WithRPutResponse The instance to serialize from.
71
+ * @param writer Serialization writer to use to serialize this model
72
+ */
73
+ // @ts-ignore
74
+ export function serializeWithRPutResponse(writer, withRPutResponse = {}, isSerializingDerivedType = false) {
75
+ if (!withRPutResponse || isSerializingDerivedType) {
76
+ return;
77
+ }
78
+ writer.writeObjectValue("data", withRPutResponse.data, serializeRecipient);
79
+ writer.writeBooleanValue("success", withRPutResponse.success);
80
+ writer.writeAdditionalData(withRPutResponse.additionalData);
81
+ }
82
+ /**
83
+ * Uri template for the request builder.
84
+ */
85
+ export const WithRItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/recipients/{rid}";
86
+ /**
87
+ * Metadata for all the navigation properties in the request builder.
88
+ */
89
+ export const WithRItemRequestBuilderNavigationMetadata = {
90
+ responses: {
91
+ requestsMetadata: ResponsesRequestBuilderRequestsMetadata,
92
+ },
93
+ };
94
+ /**
95
+ * Metadata for all the requests in the request builder.
96
+ */
97
+ export const WithRItemRequestBuilderRequestsMetadata = {
98
+ delete: {
99
+ uriTemplate: WithRItemRequestBuilderUriTemplate,
100
+ responseBodyContentType: "application/json",
101
+ adapterMethodName: "send",
102
+ responseBodyFactory: createWithRDeleteResponseFromDiscriminatorValue,
103
+ },
104
+ put: {
105
+ uriTemplate: WithRItemRequestBuilderUriTemplate,
106
+ responseBodyContentType: "application/json",
107
+ adapterMethodName: "send",
108
+ responseBodyFactory: createWithRPutResponseFromDiscriminatorValue,
109
+ requestBodyContentType: "application/json",
110
+ requestBodySerializer: serializeUpdateRecipientBody,
111
+ requestInformationContentSetMethod: "setContentFromParsable",
112
+ },
113
+ };
114
+ /* tslint:enable */
115
+ /* eslint-enable */
116
+ //# 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;AAC/B,aAAa;AACb,OAAO,EAAE,qCAAqC,EAAE,kBAAkB,EAAE,4BAA4B,EAA4C,MAAM,mCAAmC,CAAC;AACtL,aAAa;AACb,OAAO,EAAE,uCAAuC,EAAgC,MAAM,sBAAsB,CAAC;AAC7G,aAAa;AACb,OAAO,EAAE,uCAAuC,EAAoS,MAAM,+BAA+B,CAAC;AAE1X;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,+CAA+C,CAAC,SAAgC;IAC5F,OAAO,kCAAkC,CAAC;AAC9C,CAAC;AACD;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,4CAA4C,CAAC,SAAgC;IACzF,OAAO,+BAA+B,CAAC;AAC3C,CAAC;AACD;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,kCAAkC,CAAC,sBAAgE,EAAE;IACjH,OAAO;QACH,MAAM,EAAE,CAAC,CAAC,EAAE,GAAG,mBAAmB,CAAC,IAAI,GAAG,CAAC,CAAC,cAAc,CAAc,uCAAuC,CAAC,CAAC,CAAC,CAAC;QACnH,SAAS,EAAE,CAAC,CAAC,EAAE,GAAG,mBAAmB,C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B,CAAC,cAAc,CAAC,CAAC;AAChE,CAAC;AAwDD;;GAEG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,+CAA+C,CAAC;AAClG;;GAEG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAA2G;IAC7J,SAAS,EAAE;QACP,gBAAgB,EAAE,uCAAuC;KAC5D;CACJ,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAqB;IACrE,MAAM,EAAE;QACJ,WAAW,EAAE,kCAAkC;QAC/C,uBAAuB,EAAE,kBAAkB;QAC3C,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,+CAA+C;KACxE;IACD,GAAG,EAAE;QACD,WAAW,EAAE,kCAAkC;QAC/C,uBAAuB,EAAE,kBAAkB;QAC3C,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,4CAA4C;QAClE,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,4BAA4B;QACnD,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,134 @@
1
+ import { type RecipientResponse, type UpdateRecipientResponsesBody } from '../../../../../../../models/index.js';
2
+ import { type AdditionalDataHolder, type ApiError, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } 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 {Responses409Error}
7
+ */
8
+ export declare function createResponses409ErrorFromDiscriminatorValue(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 {ResponsesGetResponse}
13
+ */
14
+ export declare function createResponsesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
15
+ /**
16
+ * Creates a new instance of the appropriate class based on discriminator value
17
+ * @param parseNode The parse node to use to read the discriminator value and create the object
18
+ * @returns {ResponsesPatchResponse}
19
+ */
20
+ export declare function createResponsesPatchResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
21
+ /**
22
+ * The deserialization information for the current model
23
+ * @param Responses409Error The instance to deserialize into.
24
+ * @returns {Record<string, (node: ParseNode) => void>}
25
+ */
26
+ export declare function deserializeIntoResponses409Error(responses409Error?: Partial<Responses409Error> | undefined): Record<string, (node: ParseNode) => void>;
27
+ /**
28
+ * The deserialization information for the current model
29
+ * @param ResponsesGetResponse The instance to deserialize into.
30
+ * @returns {Record<string, (node: ParseNode) => void>}
31
+ */
32
+ export declare function deserializeIntoResponsesGetResponse(responsesGetResponse?: Partial<ResponsesGetResponse> | undefined): Record<string, (node: ParseNode) => void>;
33
+ /**
34
+ * The deserialization information for the current model
35
+ * @param ResponsesPatchResponse The instance to deserialize into.
36
+ * @returns {Record<string, (node: ParseNode) => void>}
37
+ */
38
+ export declare function deserializeIntoResponsesPatchResponse(responsesPatchResponse?: Partial<ResponsesPatchResponse> | undefined): Record<string, (node: ParseNode) => void>;
39
+ export interface Responses409Error extends AdditionalDataHolder, ApiError, Parsable {
40
+ /**
41
+ * The error property
42
+ */
43
+ errorEscaped?: string | null;
44
+ /**
45
+ * The hint property
46
+ */
47
+ hint?: string | null;
48
+ /**
49
+ * The success property
50
+ */
51
+ success?: boolean | null;
52
+ }
53
+ export interface ResponsesGetResponse extends AdditionalDataHolder, Parsable {
54
+ /**
55
+ * The data property
56
+ */
57
+ data?: RecipientResponse[] | null;
58
+ /**
59
+ * The success property
60
+ */
61
+ success?: boolean | null;
62
+ }
63
+ export interface ResponsesPatchResponse extends AdditionalDataHolder, Parsable {
64
+ /**
65
+ * The data property
66
+ */
67
+ data?: RecipientResponse[] | null;
68
+ /**
69
+ * The success property
70
+ */
71
+ success?: boolean | null;
72
+ }
73
+ /**
74
+ * Builds and executes requests for operations under /api/v1/forms/{id}/recipients/{rid}/responses
75
+ */
76
+ export interface ResponsesRequestBuilder extends BaseRequestBuilder<ResponsesRequestBuilder> {
77
+ /**
78
+ * Returns all saved responses for this recipient.
79
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
80
+ * @returns {Promise<ResponsesGetResponse>}
81
+ */
82
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ResponsesGetResponse | undefined>;
83
+ /**
84
+ * Update question values for a recipient. Rejected with 409 if the recipient has already completed the form.
85
+ * @param body The request body
86
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
87
+ * @returns {Promise<ResponsesPatchResponse>}
88
+ * @throws {Responses409Error} error when the service returns a 409 status code
89
+ */
90
+ patch(body: UpdateRecipientResponsesBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ResponsesPatchResponse | undefined>;
91
+ /**
92
+ * Returns all saved responses for this recipient.
93
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
94
+ * @returns {RequestInformation}
95
+ */
96
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
97
+ /**
98
+ * Update question values for a recipient. Rejected with 409 if the recipient has already completed the form.
99
+ * @param body The request body
100
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
101
+ * @returns {RequestInformation}
102
+ */
103
+ toPatchRequestInformation(body: UpdateRecipientResponsesBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
104
+ }
105
+ /**
106
+ * Serializes information the current object
107
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
108
+ * @param Responses409Error The instance to serialize from.
109
+ * @param writer Serialization writer to use to serialize this model
110
+ */
111
+ export declare function serializeResponses409Error(writer: SerializationWriter, responses409Error?: Partial<Responses409Error> | undefined | null, isSerializingDerivedType?: boolean): void;
112
+ /**
113
+ * Serializes information the current object
114
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
115
+ * @param ResponsesGetResponse The instance to serialize from.
116
+ * @param writer Serialization writer to use to serialize this model
117
+ */
118
+ export declare function serializeResponsesGetResponse(writer: SerializationWriter, responsesGetResponse?: Partial<ResponsesGetResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
119
+ /**
120
+ * Serializes information the current object
121
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
122
+ * @param ResponsesPatchResponse The instance to serialize from.
123
+ * @param writer Serialization writer to use to serialize this model
124
+ */
125
+ export declare function serializeResponsesPatchResponse(writer: SerializationWriter, responsesPatchResponse?: Partial<ResponsesPatchResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
126
+ /**
127
+ * Uri template for the request builder.
128
+ */
129
+ export declare const ResponsesRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/recipients/{rid}/responses";
130
+ /**
131
+ * Metadata for all the requests in the request builder.
132
+ */
133
+ export declare const ResponsesRequestBuilderRequestsMetadata: RequestsMetadata;
134
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/api/v1/forms/item/recipients/item/responses/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoH,KAAK,iBAAiB,EAAE,KAAK,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAEnO,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,QAAQ,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;AAE5Q;;;;GAIG;AAEH,wBAAgB,6CAA6C,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CA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E,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAM/L;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;;;;;GAKG;AAEH,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,mBAAmB,EAAE,sBAAsB,GAAE,OAAO,CAAC,sBAAsB,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAK9M;AACD;;GAEG;AACH,eAAO,MAAM,kCAAkC,4DAA4D,CAAC;AAC5G;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,gBAmBrD,CAAC"}
@@ -0,0 +1,145 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createRecipientResponseFromDiscriminatorValue, serializeRecipientResponse, serializeUpdateRecipientResponsesBody } from '../../../../../../../models/index.js';
6
+ /**
7
+ * Creates a new instance of the appropriate class based on discriminator value
8
+ * @param parseNode The parse node to use to read the discriminator value and create the object
9
+ * @returns {Responses409Error}
10
+ */
11
+ // @ts-ignore
12
+ export function createResponses409ErrorFromDiscriminatorValue(parseNode) {
13
+ return deserializeIntoResponses409Error;
14
+ }
15
+ /**
16
+ * Creates a new instance of the appropriate class based on discriminator value
17
+ * @param parseNode The parse node to use to read the discriminator value and create the object
18
+ * @returns {ResponsesGetResponse}
19
+ */
20
+ // @ts-ignore
21
+ export function createResponsesGetResponseFromDiscriminatorValue(parseNode) {
22
+ return deserializeIntoResponsesGetResponse;
23
+ }
24
+ /**
25
+ * Creates a new instance of the appropriate class based on discriminator value
26
+ * @param parseNode The parse node to use to read the discriminator value and create the object
27
+ * @returns {ResponsesPatchResponse}
28
+ */
29
+ // @ts-ignore
30
+ export function createResponsesPatchResponseFromDiscriminatorValue(parseNode) {
31
+ return deserializeIntoResponsesPatchResponse;
32
+ }
33
+ /**
34
+ * The deserialization information for the current model
35
+ * @param Responses409Error The instance to deserialize into.
36
+ * @returns {Record<string, (node: ParseNode) => void>}
37
+ */
38
+ // @ts-ignore
39
+ export function deserializeIntoResponses409Error(responses409Error = {}) {
40
+ return {
41
+ "error": n => { responses409Error.errorEscaped = n.getStringValue(); },
42
+ "hint": n => { responses409Error.hint = n.getStringValue(); },
43
+ "success": n => { responses409Error.success = n.getBooleanValue(); },
44
+ };
45
+ }
46
+ /**
47
+ * The deserialization information for the current model
48
+ * @param ResponsesGetResponse The instance to deserialize into.
49
+ * @returns {Record<string, (node: ParseNode) => void>}
50
+ */
51
+ // @ts-ignore
52
+ export function deserializeIntoResponsesGetResponse(responsesGetResponse = {}) {
53
+ return {
54
+ "data": n => { responsesGetResponse.data = n.getCollectionOfObjectValues(createRecipientResponseFromDiscriminatorValue); },
55
+ "success": n => { responsesGetResponse.success = n.getBooleanValue(); },
56
+ };
57
+ }
58
+ /**
59
+ * The deserialization information for the current model
60
+ * @param ResponsesPatchResponse The instance to deserialize into.
61
+ * @returns {Record<string, (node: ParseNode) => void>}
62
+ */
63
+ // @ts-ignore
64
+ export function deserializeIntoResponsesPatchResponse(responsesPatchResponse = {}) {
65
+ return {
66
+ "data": n => { responsesPatchResponse.data = n.getCollectionOfObjectValues(createRecipientResponseFromDiscriminatorValue); },
67
+ "success": n => { responsesPatchResponse.success = n.getBooleanValue(); },
68
+ };
69
+ }
70
+ /**
71
+ * Serializes information the current object
72
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
73
+ * @param Responses409Error The instance to serialize from.
74
+ * @param writer Serialization writer to use to serialize this model
75
+ */
76
+ // @ts-ignore
77
+ export function serializeResponses409Error(writer, responses409Error = {}, isSerializingDerivedType = false) {
78
+ if (!responses409Error || isSerializingDerivedType) {
79
+ return;
80
+ }
81
+ writer.writeStringValue("error", responses409Error.errorEscaped);
82
+ writer.writeStringValue("hint", responses409Error.hint);
83
+ writer.writeBooleanValue("success", responses409Error.success);
84
+ writer.writeAdditionalData(responses409Error.additionalData);
85
+ }
86
+ /**
87
+ * Serializes information the current object
88
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
89
+ * @param ResponsesGetResponse The instance to serialize from.
90
+ * @param writer Serialization writer to use to serialize this model
91
+ */
92
+ // @ts-ignore
93
+ export function serializeResponsesGetResponse(writer, responsesGetResponse = {}, isSerializingDerivedType = false) {
94
+ if (!responsesGetResponse || isSerializingDerivedType) {
95
+ return;
96
+ }
97
+ writer.writeCollectionOfObjectValues("data", responsesGetResponse.data, serializeRecipientResponse);
98
+ writer.writeBooleanValue("success", responsesGetResponse.success);
99
+ writer.writeAdditionalData(responsesGetResponse.additionalData);
100
+ }
101
+ /**
102
+ * Serializes information the current object
103
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
104
+ * @param ResponsesPatchResponse The instance to serialize from.
105
+ * @param writer Serialization writer to use to serialize this model
106
+ */
107
+ // @ts-ignore
108
+ export function serializeResponsesPatchResponse(writer, responsesPatchResponse = {}, isSerializingDerivedType = false) {
109
+ if (!responsesPatchResponse || isSerializingDerivedType) {
110
+ return;
111
+ }
112
+ writer.writeCollectionOfObjectValues("data", responsesPatchResponse.data, serializeRecipientResponse);
113
+ writer.writeBooleanValue("success", responsesPatchResponse.success);
114
+ writer.writeAdditionalData(responsesPatchResponse.additionalData);
115
+ }
116
+ /**
117
+ * Uri template for the request builder.
118
+ */
119
+ export const ResponsesRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/recipients/{rid}/responses";
120
+ /**
121
+ * Metadata for all the requests in the request builder.
122
+ */
123
+ export const ResponsesRequestBuilderRequestsMetadata = {
124
+ get: {
125
+ uriTemplate: ResponsesRequestBuilderUriTemplate,
126
+ responseBodyContentType: "application/json",
127
+ adapterMethodName: "send",
128
+ responseBodyFactory: createResponsesGetResponseFromDiscriminatorValue,
129
+ },
130
+ patch: {
131
+ uriTemplate: ResponsesRequestBuilderUriTemplate,
132
+ responseBodyContentType: "application/json",
133
+ errorMappings: {
134
+ 409: createResponses409ErrorFromDiscriminatorValue,
135
+ },
136
+ adapterMethodName: "send",
137
+ responseBodyFactory: createResponsesPatchResponseFromDiscriminatorValue,
138
+ requestBodyContentType: "application/json",
139
+ requestBodySerializer: serializeUpdateRecipientResponsesBody,
140
+ requestInformationContentSetMethod: "setContentFromParsable",
141
+ },
142
+ };
143
+ /* tslint:enable */
144
+ /* eslint-enable */
145
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/client/api/v1/forms/item/recipients/item/responses/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,6CAA6C,EAAE,0BAA0B,EAAE,qCAAqC,EAA6D,MAAM,sCAAsC,CAAC;AAInO;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,6CAA6C,CAAC,SAAgC;IAC1F,OAAO,gCAAgC,CAAC;AAC5C,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,kDAAkD,CAAC,SAAgC;IAC/F,OAAO,qCAAqC,CAAC;AACjD,CAAC;AACD;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,gCAAgC,CAAC,oBAA4D,EAAE;IAC3G,OAAO;QACH,OAAO,EAAE,CAAC,CAAC,EAAE,GAAG,iBAAiB,CAAC,YAAY,GAAG,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;QACtE,MAAM,EAAE,CAAC,CAAC,EAAE,GAAG,iBAAiB,CAAC,IAAI,GAAG,CAAC,CAAC,cAAc,EAAE,CAAC,CAA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