@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.
Files changed (94) 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 +65 -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 +70 -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/signers/index.d.ts +68 -0
  39. package/dist/client/api/v1/documents/item/submissions/item/signers/index.d.ts.map +1 -0
  40. package/dist/client/api/v1/documents/item/submissions/item/signers/index.js +70 -0
  41. package/dist/client/api/v1/documents/item/submissions/item/signers/index.js.map +1 -0
  42. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.d.ts +137 -0
  43. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.d.ts.map +1 -0
  44. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.js +146 -0
  45. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.js.map +1 -0
  46. package/dist/client/api/v1/forms/index.d.ts +231 -0
  47. package/dist/client/api/v1/forms/index.d.ts.map +1 -0
  48. package/dist/client/api/v1/forms/index.js +244 -0
  49. package/dist/client/api/v1/forms/index.js.map +1 -0
  50. package/dist/client/api/v1/forms/item/index.d.ts +241 -0
  51. package/dist/client/api/v1/forms/item/index.d.ts.map +1 -0
  52. package/dist/client/api/v1/forms/item/index.js +261 -0
  53. package/dist/client/api/v1/forms/item/index.js.map +1 -0
  54. package/dist/client/api/v1/forms/item/questions/index.d.ts +111 -0
  55. package/dist/client/api/v1/forms/item/questions/index.d.ts.map +1 -0
  56. package/dist/client/api/v1/forms/item/questions/index.js +115 -0
  57. package/dist/client/api/v1/forms/item/questions/index.js.map +1 -0
  58. package/dist/client/api/v1/forms/item/questions/item/index.d.ts +196 -0
  59. package/dist/client/api/v1/forms/item/questions/item/index.d.ts.map +1 -0
  60. package/dist/client/api/v1/forms/item/questions/item/index.js +193 -0
  61. package/dist/client/api/v1/forms/item/questions/item/index.js.map +1 -0
  62. package/dist/client/api/v1/forms/item/recipients/index.d.ts +111 -0
  63. package/dist/client/api/v1/forms/item/recipients/index.d.ts.map +1 -0
  64. package/dist/client/api/v1/forms/item/recipients/index.js +115 -0
  65. package/dist/client/api/v1/forms/item/recipients/index.js.map +1 -0
  66. package/dist/client/api/v1/forms/item/recipients/item/index.d.ts +100 -0
  67. package/dist/client/api/v1/forms/item/recipients/item/index.d.ts.map +1 -0
  68. package/dist/client/api/v1/forms/item/recipients/item/index.js +106 -0
  69. package/dist/client/api/v1/forms/item/recipients/item/index.js.map +1 -0
  70. package/dist/client/api/v1/forms/item/sections/index.d.ts +111 -0
  71. package/dist/client/api/v1/forms/item/sections/index.d.ts.map +1 -0
  72. package/dist/client/api/v1/forms/item/sections/index.js +115 -0
  73. package/dist/client/api/v1/forms/item/sections/index.js.map +1 -0
  74. package/dist/client/api/v1/forms/item/sections/item/index.d.ts +100 -0
  75. package/dist/client/api/v1/forms/item/sections/item/index.d.ts.map +1 -0
  76. package/dist/client/api/v1/forms/item/sections/item/index.js +106 -0
  77. package/dist/client/api/v1/forms/item/sections/item/index.js.map +1 -0
  78. package/dist/client/api/v1/index.d.ts +25 -0
  79. package/dist/client/api/v1/index.d.ts.map +1 -0
  80. package/dist/client/api/v1/index.js +27 -0
  81. package/dist/client/api/v1/index.js.map +1 -0
  82. package/dist/client/formalingoClient.d.ts +20 -7
  83. package/dist/client/formalingoClient.d.ts.map +1 -1
  84. package/dist/client/formalingoClient.js +56 -2
  85. package/dist/client/formalingoClient.js.map +1 -1
  86. package/dist/client/models/index.d.ts +1376 -0
  87. package/dist/client/models/index.d.ts.map +1 -0
  88. package/dist/client/models/index.js +1333 -0
  89. package/dist/client/models/index.js.map +1 -0
  90. package/dist/index.d.ts +8 -2
  91. package/dist/index.d.ts.map +1 -1
  92. package/dist/index.js +11 -4
  93. package/dist/index.js.map +1 -1
  94. package/package.json +1 -1
@@ -0,0 +1,218 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createDocumentFieldFromDiscriminatorValue, serializeDocumentField } 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 {WithFDeleteResponse}
12
+ */
13
+ // @ts-ignore
14
+ export function createWithFDeleteResponseFromDiscriminatorValue(parseNode) {
15
+ return deserializeIntoWithFDeleteResponse;
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 {WithFPutRequestBody_options}
21
+ */
22
+ // @ts-ignore
23
+ export function createWithFPutRequestBody_optionsFromDiscriminatorValue(parseNode) {
24
+ return deserializeIntoWithFPutRequestBody_options;
25
+ }
26
+ /**
27
+ * Creates a new instance of the appropriate class based on discriminator value
28
+ * @param parseNode The parse node to use to read the discriminator value and create the object
29
+ * @returns {WithFPutRequestBody}
30
+ */
31
+ // @ts-ignore
32
+ export function createWithFPutRequestBodyFromDiscriminatorValue(parseNode) {
33
+ return deserializeIntoWithFPutRequestBody;
34
+ }
35
+ /**
36
+ * Creates a new instance of the appropriate class based on discriminator value
37
+ * @param parseNode The parse node to use to read the discriminator value and create the object
38
+ * @returns {WithFPutResponse}
39
+ */
40
+ // @ts-ignore
41
+ export function createWithFPutResponseFromDiscriminatorValue(parseNode) {
42
+ return deserializeIntoWithFPutResponse;
43
+ }
44
+ /**
45
+ * The deserialization information for the current model
46
+ * @param WithFDeleteResponse The instance to deserialize into.
47
+ * @returns {Record<string, (node: ParseNode) => void>}
48
+ */
49
+ // @ts-ignore
50
+ export function deserializeIntoWithFDeleteResponse(withFDeleteResponse = {}) {
51
+ return {
52
+ "data": n => { withFDeleteResponse.data = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
53
+ "success": n => { withFDeleteResponse.success = n.getBooleanValue(); },
54
+ };
55
+ }
56
+ /**
57
+ * The deserialization information for the current model
58
+ * @param WithFPutRequestBody The instance to deserialize into.
59
+ * @returns {Record<string, (node: ParseNode) => void>}
60
+ */
61
+ // @ts-ignore
62
+ export function deserializeIntoWithFPutRequestBody(withFPutRequestBody = {}) {
63
+ return {
64
+ "assigneeRole": n => { withFPutRequestBody.assigneeRole = n.getStringValue(); },
65
+ "defaultValue": n => { withFPutRequestBody.defaultValue = n.getStringValue(); },
66
+ "direction": n => { withFPutRequestBody.direction = n.getEnumValue(WithFPutRequestBody_directionObject) ?? WithFPutRequestBody_directionObject.Auto; },
67
+ "height": n => { withFPutRequestBody.height = n.getNumberValue(); },
68
+ "isReadOnly": n => { withFPutRequestBody.isReadOnly = n.getBooleanValue(); },
69
+ "isRequired": n => { withFPutRequestBody.isRequired = n.getBooleanValue(); },
70
+ "label": n => { withFPutRequestBody.label = n.getStringValue(); },
71
+ "options": n => { withFPutRequestBody.options = n.getObjectValue(createWithFPutRequestBody_optionsFromDiscriminatorValue); },
72
+ "order": n => { withFPutRequestBody.order = n.getNumberValue(); },
73
+ "pageNumber": n => { withFPutRequestBody.pageNumber = n.getNumberValue(); },
74
+ "type": n => { withFPutRequestBody.type = n.getEnumValue(WithFPutRequestBody_typeObject); },
75
+ "width": n => { withFPutRequestBody.width = n.getNumberValue(); },
76
+ "x": n => { withFPutRequestBody.x = n.getNumberValue(); },
77
+ "y": n => { withFPutRequestBody.y = n.getNumberValue(); },
78
+ };
79
+ }
80
+ /**
81
+ * The deserialization information for the current model
82
+ * @param WithFPutRequestBody_options The instance to deserialize into.
83
+ * @returns {Record<string, (node: ParseNode) => void>}
84
+ */
85
+ // @ts-ignore
86
+ export function deserializeIntoWithFPutRequestBody_options(withFPutRequestBody_options = {}) {
87
+ return {};
88
+ }
89
+ /**
90
+ * The deserialization information for the current model
91
+ * @param WithFPutResponse The instance to deserialize into.
92
+ * @returns {Record<string, (node: ParseNode) => void>}
93
+ */
94
+ // @ts-ignore
95
+ export function deserializeIntoWithFPutResponse(withFPutResponse = {}) {
96
+ return {
97
+ "data": n => { withFPutResponse.data = n.getObjectValue(createDocumentFieldFromDiscriminatorValue); },
98
+ "success": n => { withFPutResponse.success = n.getBooleanValue(); },
99
+ };
100
+ }
101
+ /**
102
+ * Serializes information the current object
103
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
104
+ * @param WithFDeleteResponse The instance to serialize from.
105
+ * @param writer Serialization writer to use to serialize this model
106
+ */
107
+ // @ts-ignore
108
+ export function serializeWithFDeleteResponse(writer, withFDeleteResponse = {}, isSerializingDerivedType = false) {
109
+ if (!withFDeleteResponse || isSerializingDerivedType) {
110
+ return;
111
+ }
112
+ writer.writeObjectValue("data", withFDeleteResponse.data);
113
+ writer.writeBooleanValue("success", withFDeleteResponse.success);
114
+ writer.writeAdditionalData(withFDeleteResponse.additionalData);
115
+ }
116
+ /**
117
+ * Serializes information the current object
118
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
119
+ * @param WithFPutRequestBody The instance to serialize from.
120
+ * @param writer Serialization writer to use to serialize this model
121
+ */
122
+ // @ts-ignore
123
+ export function serializeWithFPutRequestBody(writer, withFPutRequestBody = {}, isSerializingDerivedType = false) {
124
+ if (!withFPutRequestBody || isSerializingDerivedType) {
125
+ return;
126
+ }
127
+ writer.writeStringValue("assigneeRole", withFPutRequestBody.assigneeRole);
128
+ writer.writeStringValue("defaultValue", withFPutRequestBody.defaultValue);
129
+ writer.writeEnumValue("direction", withFPutRequestBody.direction ?? WithFPutRequestBody_directionObject.Auto);
130
+ writer.writeNumberValue("height", withFPutRequestBody.height);
131
+ writer.writeBooleanValue("isReadOnly", withFPutRequestBody.isReadOnly);
132
+ writer.writeBooleanValue("isRequired", withFPutRequestBody.isRequired);
133
+ writer.writeStringValue("label", withFPutRequestBody.label);
134
+ writer.writeObjectValue("options", withFPutRequestBody.options, serializeWithFPutRequestBody_options);
135
+ writer.writeNumberValue("order", withFPutRequestBody.order);
136
+ writer.writeNumberValue("pageNumber", withFPutRequestBody.pageNumber);
137
+ writer.writeEnumValue("type", withFPutRequestBody.type);
138
+ writer.writeNumberValue("width", withFPutRequestBody.width);
139
+ writer.writeNumberValue("x", withFPutRequestBody.x);
140
+ writer.writeNumberValue("y", withFPutRequestBody.y);
141
+ writer.writeAdditionalData(withFPutRequestBody.additionalData);
142
+ }
143
+ /**
144
+ * Serializes information the current object
145
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
146
+ * @param WithFPutRequestBody_options The instance to serialize from.
147
+ * @param writer Serialization writer to use to serialize this model
148
+ */
149
+ // @ts-ignore
150
+ export function serializeWithFPutRequestBody_options(writer, withFPutRequestBody_options = {}, isSerializingDerivedType = false) {
151
+ if (!withFPutRequestBody_options || isSerializingDerivedType) {
152
+ return;
153
+ }
154
+ writer.writeAdditionalData(withFPutRequestBody_options.additionalData);
155
+ }
156
+ /**
157
+ * Serializes information the current object
158
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
159
+ * @param WithFPutResponse The instance to serialize from.
160
+ * @param writer Serialization writer to use to serialize this model
161
+ */
162
+ // @ts-ignore
163
+ export function serializeWithFPutResponse(writer, withFPutResponse = {}, isSerializingDerivedType = false) {
164
+ if (!withFPutResponse || isSerializingDerivedType) {
165
+ return;
166
+ }
167
+ writer.writeObjectValue("data", withFPutResponse.data, serializeDocumentField);
168
+ writer.writeBooleanValue("success", withFPutResponse.success);
169
+ writer.writeAdditionalData(withFPutResponse.additionalData);
170
+ }
171
+ /**
172
+ * Uri template for the request builder.
173
+ */
174
+ export const WithFItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/documents/{id}/fields/{fid}";
175
+ /**
176
+ * Metadata for all the requests in the request builder.
177
+ */
178
+ export const WithFItemRequestBuilderRequestsMetadata = {
179
+ delete: {
180
+ uriTemplate: WithFItemRequestBuilderUriTemplate,
181
+ responseBodyContentType: "application/json",
182
+ adapterMethodName: "send",
183
+ responseBodyFactory: createWithFDeleteResponseFromDiscriminatorValue,
184
+ },
185
+ put: {
186
+ uriTemplate: WithFItemRequestBuilderUriTemplate,
187
+ responseBodyContentType: "application/json",
188
+ adapterMethodName: "send",
189
+ responseBodyFactory: createWithFPutResponseFromDiscriminatorValue,
190
+ requestBodyContentType: "application/json",
191
+ requestBodySerializer: serializeWithFPutRequestBody,
192
+ requestInformationContentSetMethod: "setContentFromParsable",
193
+ },
194
+ };
195
+ export const WithFPutRequestBody_directionObject = {
196
+ Auto: "auto",
197
+ Rtl: "rtl",
198
+ Ltr: "ltr",
199
+ };
200
+ export const WithFPutRequestBody_typeObject = {
201
+ Short_text: "short_text",
202
+ Long_text: "long_text",
203
+ Mcq: "mcq",
204
+ Multi_select: "multi_select",
205
+ Rating: "rating",
206
+ Date: "date",
207
+ Number: "number",
208
+ Yes_no: "yes_no",
209
+ File_upload: "file_upload",
210
+ Dropdown: "dropdown",
211
+ Digital_signature: "digital_signature",
212
+ Email: "email",
213
+ Phone: "phone",
214
+ Initials: "initials",
215
+ };
216
+ /* tslint:enable */
217
+ /* eslint-enable */
218
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/client/api/v1/documents/item/fields/item/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,yCAAyC,EAAE,sBAAsB,EAAsB,MAAM,mCAAmC,CAAC;AAC1I,aAAa;AACb,OAAO,EAAE,uCAAuC,EAAkO,MAAM,+BAA+B,CAAC;AAExT;;;;GAIG;AACH,aAAa;AACb,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,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,iBAAiB,EAAE,mBAAmB;IACtC,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACd,CAAC;AACX,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,207 @@
1
+ import { type Document } from '../../../../models/index.js';
2
+ import { type FieldsRequestBuilder } from './fields/index.js';
3
+ import { type SignerRolesRequestBuilder } from './signerRoles/index.js';
4
+ import { type SubmissionsRequestBuilder } from './submissions/index.js';
5
+ 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';
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 {DocumentsDeleteResponse}
10
+ */
11
+ export declare function createDocumentsDeleteResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
12
+ /**
13
+ * Creates a new instance of the appropriate class based on discriminator value
14
+ * @param parseNode The parse node to use to read the discriminator value and create the object
15
+ * @returns {DocumentsGetResponse}
16
+ */
17
+ export declare function createDocumentsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
18
+ /**
19
+ * Creates a new instance of the appropriate class based on discriminator value
20
+ * @param parseNode The parse node to use to read the discriminator value and create the object
21
+ * @returns {DocumentsPutRequestBody}
22
+ */
23
+ export declare function createDocumentsPutRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
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 {DocumentsPutResponse}
28
+ */
29
+ export declare function createDocumentsPutResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
30
+ export type DeletePermanentQueryParameterType = (typeof DeletePermanentQueryParameterTypeObject)[keyof typeof DeletePermanentQueryParameterTypeObject];
31
+ /**
32
+ * The deserialization information for the current model
33
+ * @param DocumentsDeleteResponse The instance to deserialize into.
34
+ * @returns {Record<string, (node: ParseNode) => void>}
35
+ */
36
+ export declare function deserializeIntoDocumentsDeleteResponse(documentsDeleteResponse?: Partial<DocumentsDeleteResponse> | undefined): Record<string, (node: ParseNode) => void>;
37
+ /**
38
+ * The deserialization information for the current model
39
+ * @param DocumentsGetResponse The instance to deserialize into.
40
+ * @returns {Record<string, (node: ParseNode) => void>}
41
+ */
42
+ export declare function deserializeIntoDocumentsGetResponse(documentsGetResponse?: Partial<DocumentsGetResponse> | undefined): Record<string, (node: ParseNode) => void>;
43
+ /**
44
+ * The deserialization information for the current model
45
+ * @param DocumentsPutRequestBody The instance to deserialize into.
46
+ * @returns {Record<string, (node: ParseNode) => void>}
47
+ */
48
+ export declare function deserializeIntoDocumentsPutRequestBody(documentsPutRequestBody?: Partial<DocumentsPutRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
49
+ /**
50
+ * The deserialization information for the current model
51
+ * @param DocumentsPutResponse The instance to deserialize into.
52
+ * @returns {Record<string, (node: ParseNode) => void>}
53
+ */
54
+ export declare function deserializeIntoDocumentsPutResponse(documentsPutResponse?: Partial<DocumentsPutResponse> | undefined): Record<string, (node: ParseNode) => void>;
55
+ export interface DocumentsDeleteResponse extends AdditionalDataHolder, Parsable {
56
+ /**
57
+ * The data property
58
+ */
59
+ data?: UntypedNode | null;
60
+ /**
61
+ * The success property
62
+ */
63
+ success?: boolean | null;
64
+ }
65
+ export interface DocumentsGetResponse extends AdditionalDataHolder, Parsable {
66
+ /**
67
+ * The data property
68
+ */
69
+ data?: Document | null;
70
+ /**
71
+ * The success property
72
+ */
73
+ success?: boolean | null;
74
+ }
75
+ /**
76
+ * Builds and executes requests for operations under /api/v1/documents/{id}
77
+ */
78
+ export interface DocumentsItemRequestBuilder extends BaseRequestBuilder<DocumentsItemRequestBuilder> {
79
+ /**
80
+ * The fields property
81
+ */
82
+ get fields(): FieldsRequestBuilder;
83
+ /**
84
+ * The signerRoles property
85
+ */
86
+ get signerRoles(): SignerRolesRequestBuilder;
87
+ /**
88
+ * The submissions property
89
+ */
90
+ get submissions(): SubmissionsRequestBuilder;
91
+ /**
92
+ * Soft-deletes by default. Pass `?permanent=true` to permanently delete.
93
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
94
+ * @returns {Promise<DocumentsDeleteResponse>}
95
+ */
96
+ delete(requestConfiguration?: RequestConfiguration<DocumentsItemRequestBuilderDeleteQueryParameters> | undefined): Promise<DocumentsDeleteResponse | undefined>;
97
+ /**
98
+ * Get a document
99
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
100
+ * @returns {Promise<DocumentsGetResponse>}
101
+ */
102
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DocumentsGetResponse | undefined>;
103
+ /**
104
+ * Update a document
105
+ * @param body The request body
106
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
107
+ * @returns {Promise<DocumentsPutResponse>}
108
+ */
109
+ put(body: DocumentsPutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DocumentsPutResponse | undefined>;
110
+ /**
111
+ * Soft-deletes by default. Pass `?permanent=true` to permanently delete.
112
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
113
+ * @returns {RequestInformation}
114
+ */
115
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<DocumentsItemRequestBuilderDeleteQueryParameters> | undefined): RequestInformation;
116
+ /**
117
+ * Get a document
118
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
119
+ * @returns {RequestInformation}
120
+ */
121
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
122
+ /**
123
+ * Update a document
124
+ * @param body The request body
125
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
126
+ * @returns {RequestInformation}
127
+ */
128
+ toPutRequestInformation(body: DocumentsPutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
129
+ }
130
+ /**
131
+ * Soft-deletes by default. Pass `?permanent=true` to permanently delete.
132
+ */
133
+ export interface DocumentsItemRequestBuilderDeleteQueryParameters {
134
+ permanent?: DeletePermanentQueryParameterType;
135
+ }
136
+ export interface DocumentsPutRequestBody extends AdditionalDataHolder, Parsable {
137
+ /**
138
+ * The status property
139
+ */
140
+ status?: DocumentsPutRequestBody_status | null;
141
+ /**
142
+ * The title property
143
+ */
144
+ title?: string | null;
145
+ }
146
+ export type DocumentsPutRequestBody_status = (typeof DocumentsPutRequestBody_statusObject)[keyof typeof DocumentsPutRequestBody_statusObject];
147
+ export interface DocumentsPutResponse extends AdditionalDataHolder, Parsable {
148
+ /**
149
+ * The data property
150
+ */
151
+ data?: Document | null;
152
+ /**
153
+ * The success property
154
+ */
155
+ success?: boolean | null;
156
+ }
157
+ /**
158
+ * Serializes information the current object
159
+ * @param DocumentsDeleteResponse The instance to serialize from.
160
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
161
+ * @param writer Serialization writer to use to serialize this model
162
+ */
163
+ export declare function serializeDocumentsDeleteResponse(writer: SerializationWriter, documentsDeleteResponse?: Partial<DocumentsDeleteResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
164
+ /**
165
+ * Serializes information the current object
166
+ * @param DocumentsGetResponse The instance to serialize from.
167
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
168
+ * @param writer Serialization writer to use to serialize this model
169
+ */
170
+ export declare function serializeDocumentsGetResponse(writer: SerializationWriter, documentsGetResponse?: Partial<DocumentsGetResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
171
+ /**
172
+ * Serializes information the current object
173
+ * @param DocumentsPutRequestBody The instance to serialize from.
174
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
175
+ * @param writer Serialization writer to use to serialize this model
176
+ */
177
+ export declare function serializeDocumentsPutRequestBody(writer: SerializationWriter, documentsPutRequestBody?: Partial<DocumentsPutRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
178
+ /**
179
+ * Serializes information the current object
180
+ * @param DocumentsPutResponse The instance to serialize from.
181
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
182
+ * @param writer Serialization writer to use to serialize this model
183
+ */
184
+ export declare function serializeDocumentsPutResponse(writer: SerializationWriter, documentsPutResponse?: Partial<DocumentsPutResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
185
+ /**
186
+ * Uri template for the request builder.
187
+ */
188
+ export declare const DocumentsItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/documents/{id}{?permanent*}";
189
+ export declare const DeletePermanentQueryParameterTypeObject: {
190
+ readonly TrueEscaped: "true";
191
+ readonly FalseEscaped: "false";
192
+ };
193
+ /**
194
+ * Metadata for all the navigation properties in the request builder.
195
+ */
196
+ export declare const DocumentsItemRequestBuilderNavigationMetadata: Record<Exclude<keyof DocumentsItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
197
+ /**
198
+ * Metadata for all the requests in the request builder.
199
+ */
200
+ export declare const DocumentsItemRequestBuilderRequestsMetadata: RequestsMetadata;
201
+ export declare const DocumentsPutRequestBody_statusObject: {
202
+ readonly Draft: "draft";
203
+ readonly Sent: "sent";
204
+ readonly Completed: "completed";
205
+ readonly Expired: "expired";
206
+ };
207
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/client/api/v1/docum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uC;;;CAG1C,CAAC;AACX;;GAEG;AACH,eAAO,MAAM,6CAA6C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,2BAA2B,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAapK,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,2CAA2C,EAAE,gBAsBzD,CAAC;AACF,eAAO,MAAM,oCAAoC;;;;;CAKvC,CAAC"}
@@ -0,0 +1,217 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createDocumentFromDiscriminatorValue, serializeDocument } from '../../../../models/index.js';
6
+ // @ts-ignore
7
+ import { FieldsRequestBuilderNavigationMetadata, FieldsRequestBuilderRequestsMetadata } from './fields/index.js';
8
+ // @ts-ignore
9
+ import { SignerRolesRequestBuilderNavigationMetadata, SignerRolesRequestBuilderRequestsMetadata } from './signerRoles/index.js';
10
+ // @ts-ignore
11
+ import { SubmissionsRequestBuilderNavigationMetadata, SubmissionsRequestBuilderRequestsMetadata } from './submissions/index.js';
12
+ // @ts-ignore
13
+ import { createUntypedNodeFromDiscriminatorValue } from '@microsoft/kiota-abstractions';
14
+ /**
15
+ * Creates a new instance of the appropriate class based on discriminator value
16
+ * @param parseNode The parse node to use to read the discriminator value and create the object
17
+ * @returns {DocumentsDeleteResponse}
18
+ */
19
+ // @ts-ignore
20
+ export function createDocumentsDeleteResponseFromDiscriminatorValue(parseNode) {
21
+ return deserializeIntoDocumentsDeleteResponse;
22
+ }
23
+ /**
24
+ * Creates a new instance of the appropriate class based on discriminator value
25
+ * @param parseNode The parse node to use to read the discriminator value and create the object
26
+ * @returns {DocumentsGetResponse}
27
+ */
28
+ // @ts-ignore
29
+ export function createDocumentsGetResponseFromDiscriminatorValue(parseNode) {
30
+ return deserializeIntoDocumentsGetResponse;
31
+ }
32
+ /**
33
+ * Creates a new instance of the appropriate class based on discriminator value
34
+ * @param parseNode The parse node to use to read the discriminator value and create the object
35
+ * @returns {DocumentsPutRequestBody}
36
+ */
37
+ // @ts-ignore
38
+ export function createDocumentsPutRequestBodyFromDiscriminatorValue(parseNode) {
39
+ return deserializeIntoDocumentsPutRequestBody;
40
+ }
41
+ /**
42
+ * Creates a new instance of the appropriate class based on discriminator value
43
+ * @param parseNode The parse node to use to read the discriminator value and create the object
44
+ * @returns {DocumentsPutResponse}
45
+ */
46
+ // @ts-ignore
47
+ export function createDocumentsPutResponseFromDiscriminatorValue(parseNode) {
48
+ return deserializeIntoDocumentsPutResponse;
49
+ }
50
+ /**
51
+ * The deserialization information for the current model
52
+ * @param DocumentsDeleteResponse The instance to deserialize into.
53
+ * @returns {Record<string, (node: ParseNode) => void>}
54
+ */
55
+ // @ts-ignore
56
+ export function deserializeIntoDocumentsDeleteResponse(documentsDeleteResponse = {}) {
57
+ return {
58
+ "data": n => { documentsDeleteResponse.data = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
59
+ "success": n => { documentsDeleteResponse.success = n.getBooleanValue(); },
60
+ };
61
+ }
62
+ /**
63
+ * The deserialization information for the current model
64
+ * @param DocumentsGetResponse The instance to deserialize into.
65
+ * @returns {Record<string, (node: ParseNode) => void>}
66
+ */
67
+ // @ts-ignore
68
+ export function deserializeIntoDocumentsGetResponse(documentsGetResponse = {}) {
69
+ return {
70
+ "data": n => { documentsGetResponse.data = n.getObjectValue(createDocumentFromDiscriminatorValue); },
71
+ "success": n => { documentsGetResponse.success = n.getBooleanValue(); },
72
+ };
73
+ }
74
+ /**
75
+ * The deserialization information for the current model
76
+ * @param DocumentsPutRequestBody The instance to deserialize into.
77
+ * @returns {Record<string, (node: ParseNode) => void>}
78
+ */
79
+ // @ts-ignore
80
+ export function deserializeIntoDocumentsPutRequestBody(documentsPutRequestBody = {}) {
81
+ return {
82
+ "status": n => { documentsPutRequestBody.status = n.getEnumValue(DocumentsPutRequestBody_statusObject); },
83
+ "title": n => { documentsPutRequestBody.title = n.getStringValue(); },
84
+ };
85
+ }
86
+ /**
87
+ * The deserialization information for the current model
88
+ * @param DocumentsPutResponse The instance to deserialize into.
89
+ * @returns {Record<string, (node: ParseNode) => void>}
90
+ */
91
+ // @ts-ignore
92
+ export function deserializeIntoDocumentsPutResponse(documentsPutResponse = {}) {
93
+ return {
94
+ "data": n => { documentsPutResponse.data = n.getObjectValue(createDocumentFromDiscriminatorValue); },
95
+ "success": n => { documentsPutResponse.success = n.getBooleanValue(); },
96
+ };
97
+ }
98
+ /**
99
+ * Serializes information the current object
100
+ * @param DocumentsDeleteResponse The instance to serialize from.
101
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
102
+ * @param writer Serialization writer to use to serialize this model
103
+ */
104
+ // @ts-ignore
105
+ export function serializeDocumentsDeleteResponse(writer, documentsDeleteResponse = {}, isSerializingDerivedType = false) {
106
+ if (!documentsDeleteResponse || isSerializingDerivedType) {
107
+ return;
108
+ }
109
+ writer.writeObjectValue("data", documentsDeleteResponse.data);
110
+ writer.writeBooleanValue("success", documentsDeleteResponse.success);
111
+ writer.writeAdditionalData(documentsDeleteResponse.additionalData);
112
+ }
113
+ /**
114
+ * Serializes information the current object
115
+ * @param DocumentsGetResponse The instance to serialize from.
116
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
117
+ * @param writer Serialization writer to use to serialize this model
118
+ */
119
+ // @ts-ignore
120
+ export function serializeDocumentsGetResponse(writer, documentsGetResponse = {}, isSerializingDerivedType = false) {
121
+ if (!documentsGetResponse || isSerializingDerivedType) {
122
+ return;
123
+ }
124
+ writer.writeObjectValue("data", documentsGetResponse.data, serializeDocument);
125
+ writer.writeBooleanValue("success", documentsGetResponse.success);
126
+ writer.writeAdditionalData(documentsGetResponse.additionalData);
127
+ }
128
+ /**
129
+ * Serializes information the current object
130
+ * @param DocumentsPutRequestBody The instance to serialize from.
131
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
132
+ * @param writer Serialization writer to use to serialize this model
133
+ */
134
+ // @ts-ignore
135
+ export function serializeDocumentsPutRequestBody(writer, documentsPutRequestBody = {}, isSerializingDerivedType = false) {
136
+ if (!documentsPutRequestBody || isSerializingDerivedType) {
137
+ return;
138
+ }
139
+ writer.writeEnumValue("status", documentsPutRequestBody.status);
140
+ writer.writeStringValue("title", documentsPutRequestBody.title);
141
+ writer.writeAdditionalData(documentsPutRequestBody.additionalData);
142
+ }
143
+ /**
144
+ * Serializes information the current object
145
+ * @param DocumentsPutResponse The instance to serialize from.
146
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
147
+ * @param writer Serialization writer to use to serialize this model
148
+ */
149
+ // @ts-ignore
150
+ export function serializeDocumentsPutResponse(writer, documentsPutResponse = {}, isSerializingDerivedType = false) {
151
+ if (!documentsPutResponse || isSerializingDerivedType) {
152
+ return;
153
+ }
154
+ writer.writeObjectValue("data", documentsPutResponse.data, serializeDocument);
155
+ writer.writeBooleanValue("success", documentsPutResponse.success);
156
+ writer.writeAdditionalData(documentsPutResponse.additionalData);
157
+ }
158
+ /**
159
+ * Uri template for the request builder.
160
+ */
161
+ export const DocumentsItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/documents/{id}{?permanent*}";
162
+ export const DeletePermanentQueryParameterTypeObject = {
163
+ TrueEscaped: "true",
164
+ FalseEscaped: "false",
165
+ };
166
+ /**
167
+ * Metadata for all the navigation properties in the request builder.
168
+ */
169
+ export const DocumentsItemRequestBuilderNavigationMetadata = {
170
+ fields: {
171
+ requestsMetadata: FieldsRequestBuilderRequestsMetadata,
172
+ navigationMetadata: FieldsRequestBuilderNavigationMetadata,
173
+ },
174
+ signerRoles: {
175
+ requestsMetadata: SignerRolesRequestBuilderRequestsMetadata,
176
+ navigationMetadata: SignerRolesRequestBuilderNavigationMetadata,
177
+ },
178
+ submissions: {
179
+ requestsMetadata: SubmissionsRequestBuilderRequestsMetadata,
180
+ navigationMetadata: SubmissionsRequestBuilderNavigationMetadata,
181
+ },
182
+ };
183
+ /**
184
+ * Metadata for all the requests in the request builder.
185
+ */
186
+ export const DocumentsItemRequestBuilderRequestsMetadata = {
187
+ delete: {
188
+ uriTemplate: DocumentsItemRequestBuilderUriTemplate,
189
+ responseBodyContentType: "application/json",
190
+ adapterMethodName: "send",
191
+ responseBodyFactory: createDocumentsDeleteResponseFromDiscriminatorValue,
192
+ },
193
+ get: {
194
+ uriTemplate: DocumentsItemRequestBuilderUriTemplate,
195
+ responseBodyContentType: "application/json",
196
+ adapterMethodName: "send",
197
+ responseBodyFactory: createDocumentsGetResponseFromDiscriminatorValue,
198
+ },
199
+ put: {
200
+ uriTemplate: DocumentsItemRequestBuilderUriTemplate,
201
+ responseBodyContentType: "application/json",
202
+ adapterMethodName: "send",
203
+ responseBodyFactory: createDocumentsPutResponseFromDiscriminatorValue,
204
+ requestBodyContentType: "application/json",
205
+ requestBodySerializer: serializeDocumentsPutRequestBody,
206
+ requestInformationContentSetMethod: "setContentFromParsable",
207
+ },
208
+ };
209
+ export const DocumentsPutRequestBody_statusObject = {
210
+ Draft: "draft",
211
+ Sent: "sent",
212
+ Completed: "completed",
213
+ Expired: "expired",
214
+ };
215
+ /* tslint:enable */
216
+ /* eslint-enable */
217
+ //# sourceMappingURL=index.js.map