@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,146 @@
1
+ import { type Signer } 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 {WithSignerDeleteResponse}
8
+ */
9
+ export declare function createWithSignerDeleteResponseFromDiscriminatorValue(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 {WithSignerPutRequestBody}
14
+ */
15
+ export declare function createWithSignerPutRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
16
+ /**
17
+ * Creates a new instance of the appropriate class based on discriminator value
18
+ * @param parseNode The parse node to use to read the discriminator value and create the object
19
+ * @returns {WithSignerPutResponse}
20
+ */
21
+ export declare function createWithSignerPutResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
22
+ /**
23
+ * The deserialization information for the current model
24
+ * @param WithSignerDeleteResponse The instance to deserialize into.
25
+ * @returns {Record<string, (node: ParseNode) => void>}
26
+ */
27
+ export declare function deserializeIntoWithSignerDeleteResponse(withSignerDeleteResponse?: Partial<WithSignerDeleteResponse> | undefined): Record<string, (node: ParseNode) => void>;
28
+ /**
29
+ * The deserialization information for the current model
30
+ * @param WithSignerPutRequestBody The instance to deserialize into.
31
+ * @returns {Record<string, (node: ParseNode) => void>}
32
+ */
33
+ export declare function deserializeIntoWithSignerPutRequestBody(withSignerPutRequestBody?: Partial<WithSignerPutRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
34
+ /**
35
+ * The deserialization information for the current model
36
+ * @param WithSignerPutResponse The instance to deserialize into.
37
+ * @returns {Record<string, (node: ParseNode) => void>}
38
+ */
39
+ export declare function deserializeIntoWithSignerPutResponse(withSignerPutResponse?: Partial<WithSignerPutResponse> | undefined): Record<string, (node: ParseNode) => void>;
40
+ /**
41
+ * Serializes information the current object
42
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
43
+ * @param WithSignerDeleteResponse The instance to serialize from.
44
+ * @param writer Serialization writer to use to serialize this model
45
+ */
46
+ export declare function serializeWithSignerDeleteResponse(writer: SerializationWriter, withSignerDeleteResponse?: Partial<WithSignerDeleteResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
47
+ /**
48
+ * Serializes information the current object
49
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
50
+ * @param WithSignerPutRequestBody The instance to serialize from.
51
+ * @param writer Serialization writer to use to serialize this model
52
+ */
53
+ export declare function serializeWithSignerPutRequestBody(writer: SerializationWriter, withSignerPutRequestBody?: Partial<WithSignerPutRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
54
+ /**
55
+ * Serializes information the current object
56
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
57
+ * @param WithSignerPutResponse The instance to serialize from.
58
+ * @param writer Serialization writer to use to serialize this model
59
+ */
60
+ export declare function serializeWithSignerPutResponse(writer: SerializationWriter, withSignerPutResponse?: Partial<WithSignerPutResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
61
+ export interface WithSignerDeleteResponse extends AdditionalDataHolder, Parsable {
62
+ /**
63
+ * The data property
64
+ */
65
+ data?: UntypedNode | null;
66
+ /**
67
+ * The success property
68
+ */
69
+ success?: boolean | null;
70
+ }
71
+ /**
72
+ * Builds and executes requests for operations under /api/v1/documents/{id}/submissions/{sid}/signers/{signerId}
73
+ */
74
+ export interface WithSignerItemRequestBuilder extends BaseRequestBuilder<WithSignerItemRequestBuilder> {
75
+ /**
76
+ * The responses property
77
+ */
78
+ get responses(): ResponsesRequestBuilder;
79
+ /**
80
+ * Remove a signer
81
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
82
+ * @returns {Promise<WithSignerDeleteResponse>}
83
+ */
84
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<WithSignerDeleteResponse | undefined>;
85
+ /**
86
+ * Update a signer
87
+ * @param body The request body
88
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
89
+ * @returns {Promise<WithSignerPutResponse>}
90
+ */
91
+ put(body: WithSignerPutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<WithSignerPutResponse | undefined>;
92
+ /**
93
+ * Remove a signer
94
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
95
+ * @returns {RequestInformation}
96
+ */
97
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
98
+ /**
99
+ * Update a signer
100
+ * @param body The request body
101
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
102
+ * @returns {RequestInformation}
103
+ */
104
+ toPutRequestInformation(body: WithSignerPutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
105
+ }
106
+ export interface WithSignerPutRequestBody extends AdditionalDataHolder, Parsable {
107
+ /**
108
+ * The email property
109
+ */
110
+ email?: string | null;
111
+ /**
112
+ * The expiresAt property
113
+ */
114
+ expiresAt?: Date | null;
115
+ /**
116
+ * The label property
117
+ */
118
+ label?: string | null;
119
+ /**
120
+ * The name property
121
+ */
122
+ name?: string | null;
123
+ }
124
+ export interface WithSignerPutResponse extends AdditionalDataHolder, Parsable {
125
+ /**
126
+ * The data property
127
+ */
128
+ data?: Signer | null;
129
+ /**
130
+ * The success property
131
+ */
132
+ success?: boolean | null;
133
+ }
134
+ /**
135
+ * Uri template for the request builder.
136
+ */
137
+ export declare const WithSignerItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/documents/{id}/submissions/{sid}/signers/{signerId}";
138
+ /**
139
+ * Metadata for all the navigation properties in the request builder.
140
+ */
141
+ export declare const WithSignerItemRequestBuilderNavigationMetadata: Record<Exclude<keyof WithSignerItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
142
+ /**
143
+ * Metadata for all the requests in the request builder.
144
+ */
145
+ export declare const WithSignerItemRequestBuilderRequestsMetadata: RequestsMetadata;
146
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/client/api/v1/documents/item/submissions/item/signers/item/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuD,KAAK,MAAM,EAAE,MAAM,yCAA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oft Kiota
4
+ // @ts-ignore
5
+ import { createSignerFromDiscriminatorValue, serializeSigner } 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 {WithSignerDeleteResponse}
14
+ */
15
+ // @ts-ignore
16
+ export function createWithSignerDeleteResponseFromDiscriminatorValue(parseNode) {
17
+ return deserializeIntoWithSignerDeleteResponse;
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 {WithSignerPutRequestBody}
23
+ */
24
+ // @ts-ignore
25
+ export function createWithSignerPutRequestBodyFromDiscriminatorValue(parseNode) {
26
+ return deserializeIntoWithSignerPutRequestBody;
27
+ }
28
+ /**
29
+ * Creates a new instance of the appropriate class based on discriminator value
30
+ * @param parseNode The parse node to use to read the discriminator value and create the object
31
+ * @returns {WithSignerPutResponse}
32
+ */
33
+ // @ts-ignore
34
+ export function createWithSignerPutResponseFromDiscriminatorValue(parseNode) {
35
+ return deserializeIntoWithSignerPutResponse;
36
+ }
37
+ /**
38
+ * The deserialization information for the current model
39
+ * @param WithSignerDeleteResponse The instance to deserialize into.
40
+ * @returns {Record<string, (node: ParseNode) => void>}
41
+ */
42
+ // @ts-ignore
43
+ export function deserializeIntoWithSignerDeleteResponse(withSignerDeleteResponse = {}) {
44
+ return {
45
+ "data": n => { withSignerDeleteResponse.data = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
46
+ "success": n => { withSignerDeleteResponse.success = n.getBooleanValue(); },
47
+ };
48
+ }
49
+ /**
50
+ * The deserialization information for the current model
51
+ * @param WithSignerPutRequestBody The instance to deserialize into.
52
+ * @returns {Record<string, (node: ParseNode) => void>}
53
+ */
54
+ // @ts-ignore
55
+ export function deserializeIntoWithSignerPutRequestBody(withSignerPutRequestBody = {}) {
56
+ return {
57
+ "email": n => { withSignerPutRequestBody.email = n.getStringValue(); },
58
+ "expiresAt": n => { withSignerPutRequestBody.expiresAt = n.getDateValue(); },
59
+ "label": n => { withSignerPutRequestBody.label = n.getStringValue(); },
60
+ "name": n => { withSignerPutRequestBody.name = n.getStringValue(); },
61
+ };
62
+ }
63
+ /**
64
+ * The deserialization information for the current model
65
+ * @param WithSignerPutResponse The instance to deserialize into.
66
+ * @returns {Record<string, (node: ParseNode) => void>}
67
+ */
68
+ // @ts-ignore
69
+ export function deserializeIntoWithSignerPutResponse(withSignerPutResponse = {}) {
70
+ return {
71
+ "data": n => { withSignerPutResponse.data = n.getObjectValue(createSignerFromDiscriminatorValue); },
72
+ "success": n => { withSignerPutResponse.success = n.getBooleanValue(); },
73
+ };
74
+ }
75
+ /**
76
+ * Serializes information the current object
77
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
78
+ * @param WithSignerDeleteResponse The instance to serialize from.
79
+ * @param writer Serialization writer to use to serialize this model
80
+ */
81
+ // @ts-ignore
82
+ export function serializeWithSignerDeleteResponse(writer, withSignerDeleteResponse = {}, isSerializingDerivedType = false) {
83
+ if (!withSignerDeleteResponse || isSerializingDerivedType) {
84
+ return;
85
+ }
86
+ writer.writeObjectValue("data", withSignerDeleteResponse.data);
87
+ writer.writeBooleanValue("success", withSignerDeleteResponse.success);
88
+ writer.writeAdditionalData(withSignerDeleteResponse.additionalData);
89
+ }
90
+ /**
91
+ * Serializes information the current object
92
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
93
+ * @param WithSignerPutRequestBody The instance to serialize from.
94
+ * @param writer Serialization writer to use to serialize this model
95
+ */
96
+ // @ts-ignore
97
+ export function serializeWithSignerPutRequestBody(writer, withSignerPutRequestBody = {}, isSerializingDerivedType = false) {
98
+ if (!withSignerPutRequestBody || isSerializingDerivedType) {
99
+ return;
100
+ }
101
+ writer.writeStringValue("email", withSignerPutRequestBody.email);
102
+ writer.writeDateValue("expiresAt", withSignerPutRequestBody.expiresAt);
103
+ writer.writeStringValue("label", withSignerPutRequestBody.label);
104
+ writer.writeStringValue("name", withSignerPutRequestBody.name);
105
+ writer.writeAdditionalData(withSignerPutRequestBody.additionalData);
106
+ }
107
+ /**
108
+ * Serializes information the current object
109
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
110
+ * @param WithSignerPutResponse The instance to serialize from.
111
+ * @param writer Serialization writer to use to serialize this model
112
+ */
113
+ // @ts-ignore
114
+ export function serializeWithSignerPutResponse(writer, withSignerPutResponse = {}, isSerializingDerivedType = false) {
115
+ if (!withSignerPutResponse || isSerializingDerivedType) {
116
+ return;
117
+ }
118
+ writer.writeObjectValue("data", withSignerPutResponse.data, serializeSigner);
119
+ writer.writeBooleanValue("success", withSignerPutResponse.success);
120
+ writer.writeAdditionalData(withSignerPutResponse.additionalData);
121
+ }
122
+ /**
123
+ * Uri template for the request builder.
124
+ */
125
+ export const WithSignerItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/documents/{id}/submissions/{sid}/signers/{signerId}";
126
+ /**
127
+ * Metadata for all the navigation properties in the request builder.
128
+ */
129
+ export const WithSignerItemRequestBuilderNavigationMetadata = {
130
+ responses: {
131
+ requestsMetadata: ResponsesRequestBuilderRequestsMetadata,
132
+ },
133
+ };
134
+ /**
135
+ * Metadata for all the requests in the request builder.
136
+ */
137
+ export const WithSignerItemRequestBuilderRequestsMetadata = {
138
+ delete: {
139
+ uriTemplate: WithSignerItemRequestBuilderUriTemplate,
140
+ responseBodyContentType: "application/json",
141
+ adapterMethodName: "send",
142
+ responseBodyFactory: createWithSignerDeleteResponseFromDiscriminatorValue,
143
+ },
144
+ put: {
145
+ uriTemplate: WithSignerItemRequestBuilderUriTemplate,
146
+ responseBodyContentType: "application/json",
147
+ adapterMethodName: "send",
148
+ responseBodyFactory: createWithSignerPutResponseFromDiscriminatorValue,
149
+ requestBodyContentType: "application/json",
150
+ requestBodySerializer: serializeWithSignerPutRequestBody,
151
+ requestInformationContentSetMethod: "setContentFromParsable",
152
+ },
153
+ };
154
+ /* tslint:enable */
155
+ /* eslint-enable */
156
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../../src/client/api/v1/documents/item/submissions/item/signers/item/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,kCAAkC,EAAE,eAAe,EAAe,MAAM,yCAAyC,CAAC;AAC3H,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,oDAAoD,CAAC,SAAgC;IACjG,OAAO,uCAAuC,CAAC;AACnD,CAAC;AACD;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,oDAAoD,CAAC,SAAgC;IACjG,OAAO,uCAAuC,CAAC;AACnD,CAAC;AACD;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,iDAAiD,CAAC,SAAgC;IAC9F,OAAO,oCAAoC,CAAC;AAChD,CAAC;AACD;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,uCAAuC,CAAC,2BAA0E,EAAE;IAChI,OAAO;QACH,MAAM,EAAE,CAAC,CAAC,EAAE,GAAG,wBAAwB,CAAC,IAAI,GAAG,CAAC,CAAC,cAAc,CAAc,uCAAuC,CAAC,CAAC,CAAC,CAAC;QACxH,SAAS,EAAE,CAAC,CAAC,EAAE,GAAG,wBAAwB,CAAC,OAAO,GAAG,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC;KAC9E,CAAA;AACL,CAAC;AACD;;;;GAIG;AACH,aAAa;A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AEG;AACH,MAAM,CAAC,MAAM,4CAA4C,GAAqB;IAC1E,MAAM,EAAE;QACJ,WAAW,EAAE,uCAAuC;QACpD,uBAAuB,EAAE,kBAAkB;QAC3C,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,oDAAoD;KAC7E;IACD,GAAG,EAAE;QACD,WAAW,EAAE,uCAAuC;QACpD,uBAAuB,EAAE,kBAAkB;QAC3C,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,iDAAiD;QACvE,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,iCAAiC;QACxD,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,134 @@
1
+ import { type SignerResponse, type UpdateSignerResponsesBody } 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?: SignerResponse[] | 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?: SignerResponse[] | null;
68
+ /**
69
+ * The success property
70
+ */
71
+ success?: boolean | null;
72
+ }
73
+ /**
74
+ * Builds and executes requests for operations under /api/v1/documents/{id}/submissions/{sid}/signers/{signerId}/responses
75
+ */
76
+ export interface ResponsesRequestBuilder extends BaseRequestBuilder<ResponsesRequestBuilder> {
77
+ /**
78
+ * Returns all saved field responses for this signer.
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 field values for a signer. Returns 409 if any field’s assigned signer has already completed signing.
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: UpdateSignerResponsesBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ResponsesPatchResponse | undefined>;
91
+ /**
92
+ * Returns all saved field responses for this signer.
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 field values for a signer. Returns 409 if any field’s assigned signer has already completed signing.
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: UpdateSignerResponsesBody, 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/documents/{id}/submissions/{sid}/signers/{signerId}/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/documents/item/submissions/item/signers/item/responses/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2G,KAAK,cAAc,EAAE,KAAK,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AAE1N,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,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAErK;AACD;;;;GAIG;AAEH,wBAAgB,gDAAgD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CA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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,oFAAoF,CAAC;AACpI;;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 { createSignerResponseFromDiscriminatorValue, serializeSignerResponse, serializeUpdateSignerResponsesBody } 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(createSignerResponseFromDiscriminatorValue); },
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(createSignerResponseFromDiscriminatorValue); },
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, serializeSignerResponse);
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, serializeSignerResponse);
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/documents/{id}/submissions/{sid}/signers/{signerId}/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: serializeUpdateSignerResponsesBody,
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/documents/item/submissions/item/signers/item/responses/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,0CAA0C,EAAE,uBAAuB,EAAE,kCAAkC,EAAuD,MAAM,4CAA4C,CAAC;AAI1N;;;;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,CAAC,CAAC;QAC7D,SAAS,EAAE,CAAC,CAAC,EAAE,GAAG,iBAAiB,CAAC,OAAO,GAAG,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC;KACvE,CAAA;AACL,CAAC;AACD;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,mCAAmC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