@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,241 @@
1
+ import { type Form, type UpdateFormBody } from '../../../../models/index.js';
2
+ import { type QuestionsRequestBuilder } from './questions/index.js';
3
+ import { type RecipientsRequestBuilder } from './recipients/index.js';
4
+ import { type SectionsRequestBuilder } from './sections/index.js';
5
+ import { type AdditionalDataHolder, type ApiError, 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 {Forms400Error}
10
+ */
11
+ export declare function createForms400ErrorFromDiscriminatorValue(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 {Forms404Error}
16
+ */
17
+ export declare function createForms404ErrorFromDiscriminatorValue(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 {FormsDeleteResponse}
22
+ */
23
+ export declare function createFormsDeleteResponseFromDiscriminatorValue(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 {FormsGetResponse}
28
+ */
29
+ export declare function createFormsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
30
+ /**
31
+ * Creates a new instance of the appropriate class based on discriminator value
32
+ * @param parseNode The parse node to use to read the discriminator value and create the object
33
+ * @returns {FormsPutResponse}
34
+ */
35
+ export declare function createFormsPutResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
36
+ export type DeletePermanentQueryParameterType = (typeof DeletePermanentQueryParameterTypeObject)[keyof typeof DeletePermanentQueryParameterTypeObject];
37
+ /**
38
+ * The deserialization information for the current model
39
+ * @param Forms400Error The instance to deserialize into.
40
+ * @returns {Record<string, (node: ParseNode) => void>}
41
+ */
42
+ export declare function deserializeIntoForms400Error(forms400Error?: Partial<Forms400Error> | undefined): Record<string, (node: ParseNode) => void>;
43
+ /**
44
+ * The deserialization information for the current model
45
+ * @param Forms404Error The instance to deserialize into.
46
+ * @returns {Record<string, (node: ParseNode) => void>}
47
+ */
48
+ export declare function deserializeIntoForms404Error(forms404Error?: Partial<Forms404Error> | undefined): Record<string, (node: ParseNode) => void>;
49
+ /**
50
+ * The deserialization information for the current model
51
+ * @param FormsDeleteResponse The instance to deserialize into.
52
+ * @returns {Record<string, (node: ParseNode) => void>}
53
+ */
54
+ export declare function deserializeIntoFormsDeleteResponse(formsDeleteResponse?: Partial<FormsDeleteResponse> | undefined): Record<string, (node: ParseNode) => void>;
55
+ /**
56
+ * The deserialization information for the current model
57
+ * @param FormsGetResponse The instance to deserialize into.
58
+ * @returns {Record<string, (node: ParseNode) => void>}
59
+ */
60
+ export declare function deserializeIntoFormsGetResponse(formsGetResponse?: Partial<FormsGetResponse> | undefined): Record<string, (node: ParseNode) => void>;
61
+ /**
62
+ * The deserialization information for the current model
63
+ * @param FormsPutResponse The instance to deserialize into.
64
+ * @returns {Record<string, (node: ParseNode) => void>}
65
+ */
66
+ export declare function deserializeIntoFormsPutResponse(formsPutResponse?: Partial<FormsPutResponse> | undefined): Record<string, (node: ParseNode) => void>;
67
+ export interface Forms400Error extends AdditionalDataHolder, ApiError, Parsable {
68
+ /**
69
+ * The error property
70
+ */
71
+ errorEscaped?: string | null;
72
+ /**
73
+ * The hint property
74
+ */
75
+ hint?: string | null;
76
+ /**
77
+ * The success property
78
+ */
79
+ success?: boolean | null;
80
+ }
81
+ export interface Forms404Error extends AdditionalDataHolder, ApiError, Parsable {
82
+ /**
83
+ * The error property
84
+ */
85
+ errorEscaped?: string | null;
86
+ /**
87
+ * The hint property
88
+ */
89
+ hint?: string | null;
90
+ /**
91
+ * The success property
92
+ */
93
+ success?: boolean | null;
94
+ }
95
+ export interface FormsDeleteResponse extends AdditionalDataHolder, Parsable {
96
+ /**
97
+ * The data property
98
+ */
99
+ data?: UntypedNode | null;
100
+ /**
101
+ * The success property
102
+ */
103
+ success?: boolean | null;
104
+ }
105
+ export interface FormsGetResponse extends AdditionalDataHolder, Parsable {
106
+ /**
107
+ * The data property
108
+ */
109
+ data?: Form | null;
110
+ /**
111
+ * The success property
112
+ */
113
+ success?: boolean | null;
114
+ }
115
+ /**
116
+ * Builds and executes requests for operations under /api/v1/forms/{id}
117
+ */
118
+ export interface FormsItemRequestBuilder extends BaseRequestBuilder<FormsItemRequestBuilder> {
119
+ /**
120
+ * The questions property
121
+ */
122
+ get questions(): QuestionsRequestBuilder;
123
+ /**
124
+ * The recipients property
125
+ */
126
+ get recipients(): RecipientsRequestBuilder;
127
+ /**
128
+ * The sections property
129
+ */
130
+ get sections(): SectionsRequestBuilder;
131
+ /**
132
+ * Soft-deletes the form by default. Pass `?permanent=true` to permanently delete (requires `delete:forms` scope).
133
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
134
+ * @returns {Promise<FormsDeleteResponse>}
135
+ * @throws {Forms404Error} error when the service returns a 404 status code
136
+ */
137
+ delete(requestConfiguration?: RequestConfiguration<FormsItemRequestBuilderDeleteQueryParameters> | undefined): Promise<FormsDeleteResponse | undefined>;
138
+ /**
139
+ * Get a form
140
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
141
+ * @returns {Promise<FormsGetResponse>}
142
+ * @throws {Forms404Error} error when the service returns a 404 status code
143
+ */
144
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<FormsGetResponse | undefined>;
145
+ /**
146
+ * Update a form
147
+ * @param body The request body
148
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
149
+ * @returns {Promise<FormsPutResponse>}
150
+ * @throws {Forms400Error} error when the service returns a 400 status code
151
+ * @throws {Forms404Error} error when the service returns a 404 status code
152
+ */
153
+ put(body: UpdateFormBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<FormsPutResponse | undefined>;
154
+ /**
155
+ * Soft-deletes the form by default. Pass `?permanent=true` to permanently delete (requires `delete:forms` scope).
156
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
157
+ * @returns {RequestInformation}
158
+ */
159
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<FormsItemRequestBuilderDeleteQueryParameters> | undefined): RequestInformation;
160
+ /**
161
+ * Get a form
162
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
163
+ * @returns {RequestInformation}
164
+ */
165
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
166
+ /**
167
+ * Update a form
168
+ * @param body The request body
169
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
170
+ * @returns {RequestInformation}
171
+ */
172
+ toPutRequestInformation(body: UpdateFormBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
173
+ }
174
+ /**
175
+ * Soft-deletes the form by default. Pass `?permanent=true` to permanently delete (requires `delete:forms` scope).
176
+ */
177
+ export interface FormsItemRequestBuilderDeleteQueryParameters {
178
+ permanent?: DeletePermanentQueryParameterType;
179
+ }
180
+ export interface FormsPutResponse extends AdditionalDataHolder, Parsable {
181
+ /**
182
+ * The data property
183
+ */
184
+ data?: Form | null;
185
+ /**
186
+ * The success property
187
+ */
188
+ success?: boolean | null;
189
+ }
190
+ /**
191
+ * Serializes information the current object
192
+ * @param Forms400Error The instance to serialize from.
193
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
194
+ * @param writer Serialization writer to use to serialize this model
195
+ */
196
+ export declare function serializeForms400Error(writer: SerializationWriter, forms400Error?: Partial<Forms400Error> | undefined | null, isSerializingDerivedType?: boolean): void;
197
+ /**
198
+ * Serializes information the current object
199
+ * @param Forms404Error The instance to serialize from.
200
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
201
+ * @param writer Serialization writer to use to serialize this model
202
+ */
203
+ export declare function serializeForms404Error(writer: SerializationWriter, forms404Error?: Partial<Forms404Error> | undefined | null, isSerializingDerivedType?: boolean): void;
204
+ /**
205
+ * Serializes information the current object
206
+ * @param FormsDeleteResponse The instance to serialize from.
207
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
208
+ * @param writer Serialization writer to use to serialize this model
209
+ */
210
+ export declare function serializeFormsDeleteResponse(writer: SerializationWriter, formsDeleteResponse?: Partial<FormsDeleteResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
211
+ /**
212
+ * Serializes information the current object
213
+ * @param FormsGetResponse The instance to serialize from.
214
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
215
+ * @param writer Serialization writer to use to serialize this model
216
+ */
217
+ export declare function serializeFormsGetResponse(writer: SerializationWriter, formsGetResponse?: Partial<FormsGetResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
218
+ /**
219
+ * Serializes information the current object
220
+ * @param FormsPutResponse The instance to serialize from.
221
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
222
+ * @param writer Serialization writer to use to serialize this model
223
+ */
224
+ export declare function serializeFormsPutResponse(writer: SerializationWriter, formsPutResponse?: Partial<FormsPutResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
225
+ /**
226
+ * Uri template for the request builder.
227
+ */
228
+ export declare const FormsItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}{?permanent*}";
229
+ export declare const DeletePermanentQueryParameterTypeObject: {
230
+ readonly TrueEscaped: "true";
231
+ readonly FalseEscaped: "false";
232
+ };
233
+ /**
234
+ * Metadata for all the navigation properties in the request builder.
235
+ */
236
+ export declare const FormsItemRequestBuilderNavigationMetadata: Record<Exclude<keyof FormsItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
237
+ /**
238
+ * Metadata for all the requests in the request builder.
239
+ */
240
+ export declare const FormsItemRequestBuilderRequestsMetadata: RequestsMetadata;
241
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/client/api/v1/forms/item/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA4E,KAAK,IAAI,EAAE,KAAK,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAEvJ,OAAO,EAAsF,KAAK,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAExJ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GAAI,IAAI,CAMnL;AACD;;;;;GAKG;AAEH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,mBAAmB,EAAE,mBAAmB,GAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAKrM;AACD;;;;;GAKG;AAEH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,mBAAmB,EAAE,gBAAgB,GAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAK5L;AACD;;;;;GAKG;AAEH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,mBAAmB,EAAE,gBAAgB,GAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAK5L;AACD;;GAEG;AACH,eAAO,MAAM,kCAAkC,8CAA8C,CAAC;AAC9F,eAAO,MAAM,uCAAuC;;;CAG1C,CAAC;AACX;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAa5J,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,gBAgCrD,CAAC"}
@@ -0,0 +1,261 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createFormFromDiscriminatorValue, serializeForm, serializeUpdateFormBody } from '../../../../models/index.js';
6
+ // @ts-ignore
7
+ import { QuestionsRequestBuilderNavigationMetadata, QuestionsRequestBuilderRequestsMetadata } from './questions/index.js';
8
+ // @ts-ignore
9
+ import { RecipientsRequestBuilderNavigationMetadata, RecipientsRequestBuilderRequestsMetadata } from './recipients/index.js';
10
+ // @ts-ignore
11
+ import { SectionsRequestBuilderNavigationMetadata, SectionsRequestBuilderRequestsMetadata } from './sections/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 {Forms400Error}
18
+ */
19
+ // @ts-ignore
20
+ export function createForms400ErrorFromDiscriminatorValue(parseNode) {
21
+ return deserializeIntoForms400Error;
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 {Forms404Error}
27
+ */
28
+ // @ts-ignore
29
+ export function createForms404ErrorFromDiscriminatorValue(parseNode) {
30
+ return deserializeIntoForms404Error;
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 {FormsDeleteResponse}
36
+ */
37
+ // @ts-ignore
38
+ export function createFormsDeleteResponseFromDiscriminatorValue(parseNode) {
39
+ return deserializeIntoFormsDeleteResponse;
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 {FormsGetResponse}
45
+ */
46
+ // @ts-ignore
47
+ export function createFormsGetResponseFromDiscriminatorValue(parseNode) {
48
+ return deserializeIntoFormsGetResponse;
49
+ }
50
+ /**
51
+ * Creates a new instance of the appropriate class based on discriminator value
52
+ * @param parseNode The parse node to use to read the discriminator value and create the object
53
+ * @returns {FormsPutResponse}
54
+ */
55
+ // @ts-ignore
56
+ export function createFormsPutResponseFromDiscriminatorValue(parseNode) {
57
+ return deserializeIntoFormsPutResponse;
58
+ }
59
+ /**
60
+ * The deserialization information for the current model
61
+ * @param Forms400Error The instance to deserialize into.
62
+ * @returns {Record<string, (node: ParseNode) => void>}
63
+ */
64
+ // @ts-ignore
65
+ export function deserializeIntoForms400Error(forms400Error = {}) {
66
+ return {
67
+ "error": n => { forms400Error.errorEscaped = n.getStringValue(); },
68
+ "hint": n => { forms400Error.hint = n.getStringValue(); },
69
+ "success": n => { forms400Error.success = n.getBooleanValue(); },
70
+ };
71
+ }
72
+ /**
73
+ * The deserialization information for the current model
74
+ * @param Forms404Error The instance to deserialize into.
75
+ * @returns {Record<string, (node: ParseNode) => void>}
76
+ */
77
+ // @ts-ignore
78
+ export function deserializeIntoForms404Error(forms404Error = {}) {
79
+ return {
80
+ "error": n => { forms404Error.errorEscaped = n.getStringValue(); },
81
+ "hint": n => { forms404Error.hint = n.getStringValue(); },
82
+ "success": n => { forms404Error.success = n.getBooleanValue(); },
83
+ };
84
+ }
85
+ /**
86
+ * The deserialization information for the current model
87
+ * @param FormsDeleteResponse The instance to deserialize into.
88
+ * @returns {Record<string, (node: ParseNode) => void>}
89
+ */
90
+ // @ts-ignore
91
+ export function deserializeIntoFormsDeleteResponse(formsDeleteResponse = {}) {
92
+ return {
93
+ "data": n => { formsDeleteResponse.data = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
94
+ "success": n => { formsDeleteResponse.success = n.getBooleanValue(); },
95
+ };
96
+ }
97
+ /**
98
+ * The deserialization information for the current model
99
+ * @param FormsGetResponse The instance to deserialize into.
100
+ * @returns {Record<string, (node: ParseNode) => void>}
101
+ */
102
+ // @ts-ignore
103
+ export function deserializeIntoFormsGetResponse(formsGetResponse = {}) {
104
+ return {
105
+ "data": n => { formsGetResponse.data = n.getObjectValue(createFormFromDiscriminatorValue); },
106
+ "success": n => { formsGetResponse.success = n.getBooleanValue(); },
107
+ };
108
+ }
109
+ /**
110
+ * The deserialization information for the current model
111
+ * @param FormsPutResponse The instance to deserialize into.
112
+ * @returns {Record<string, (node: ParseNode) => void>}
113
+ */
114
+ // @ts-ignore
115
+ export function deserializeIntoFormsPutResponse(formsPutResponse = {}) {
116
+ return {
117
+ "data": n => { formsPutResponse.data = n.getObjectValue(createFormFromDiscriminatorValue); },
118
+ "success": n => { formsPutResponse.success = n.getBooleanValue(); },
119
+ };
120
+ }
121
+ /**
122
+ * Serializes information the current object
123
+ * @param Forms400Error The instance to serialize from.
124
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
125
+ * @param writer Serialization writer to use to serialize this model
126
+ */
127
+ // @ts-ignore
128
+ export function serializeForms400Error(writer, forms400Error = {}, isSerializingDerivedType = false) {
129
+ if (!forms400Error || isSerializingDerivedType) {
130
+ return;
131
+ }
132
+ writer.writeStringValue("error", forms400Error.errorEscaped);
133
+ writer.writeStringValue("hint", forms400Error.hint);
134
+ writer.writeBooleanValue("success", forms400Error.success);
135
+ writer.writeAdditionalData(forms400Error.additionalData);
136
+ }
137
+ /**
138
+ * Serializes information the current object
139
+ * @param Forms404Error The instance to serialize from.
140
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
141
+ * @param writer Serialization writer to use to serialize this model
142
+ */
143
+ // @ts-ignore
144
+ export function serializeForms404Error(writer, forms404Error = {}, isSerializingDerivedType = false) {
145
+ if (!forms404Error || isSerializingDerivedType) {
146
+ return;
147
+ }
148
+ writer.writeStringValue("error", forms404Error.errorEscaped);
149
+ writer.writeStringValue("hint", forms404Error.hint);
150
+ writer.writeBooleanValue("success", forms404Error.success);
151
+ writer.writeAdditionalData(forms404Error.additionalData);
152
+ }
153
+ /**
154
+ * Serializes information the current object
155
+ * @param FormsDeleteResponse The instance to serialize from.
156
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
157
+ * @param writer Serialization writer to use to serialize this model
158
+ */
159
+ // @ts-ignore
160
+ export function serializeFormsDeleteResponse(writer, formsDeleteResponse = {}, isSerializingDerivedType = false) {
161
+ if (!formsDeleteResponse || isSerializingDerivedType) {
162
+ return;
163
+ }
164
+ writer.writeObjectValue("data", formsDeleteResponse.data);
165
+ writer.writeBooleanValue("success", formsDeleteResponse.success);
166
+ writer.writeAdditionalData(formsDeleteResponse.additionalData);
167
+ }
168
+ /**
169
+ * Serializes information the current object
170
+ * @param FormsGetResponse The instance to serialize from.
171
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
172
+ * @param writer Serialization writer to use to serialize this model
173
+ */
174
+ // @ts-ignore
175
+ export function serializeFormsGetResponse(writer, formsGetResponse = {}, isSerializingDerivedType = false) {
176
+ if (!formsGetResponse || isSerializingDerivedType) {
177
+ return;
178
+ }
179
+ writer.writeObjectValue("data", formsGetResponse.data, serializeForm);
180
+ writer.writeBooleanValue("success", formsGetResponse.success);
181
+ writer.writeAdditionalData(formsGetResponse.additionalData);
182
+ }
183
+ /**
184
+ * Serializes information the current object
185
+ * @param FormsPutResponse The instance to serialize from.
186
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
187
+ * @param writer Serialization writer to use to serialize this model
188
+ */
189
+ // @ts-ignore
190
+ export function serializeFormsPutResponse(writer, formsPutResponse = {}, isSerializingDerivedType = false) {
191
+ if (!formsPutResponse || isSerializingDerivedType) {
192
+ return;
193
+ }
194
+ writer.writeObjectValue("data", formsPutResponse.data, serializeForm);
195
+ writer.writeBooleanValue("success", formsPutResponse.success);
196
+ writer.writeAdditionalData(formsPutResponse.additionalData);
197
+ }
198
+ /**
199
+ * Uri template for the request builder.
200
+ */
201
+ export const FormsItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}{?permanent*}";
202
+ export const DeletePermanentQueryParameterTypeObject = {
203
+ TrueEscaped: "true",
204
+ FalseEscaped: "false",
205
+ };
206
+ /**
207
+ * Metadata for all the navigation properties in the request builder.
208
+ */
209
+ export const FormsItemRequestBuilderNavigationMetadata = {
210
+ questions: {
211
+ requestsMetadata: QuestionsRequestBuilderRequestsMetadata,
212
+ navigationMetadata: QuestionsRequestBuilderNavigationMetadata,
213
+ },
214
+ recipients: {
215
+ requestsMetadata: RecipientsRequestBuilderRequestsMetadata,
216
+ navigationMetadata: RecipientsRequestBuilderNavigationMetadata,
217
+ },
218
+ sections: {
219
+ requestsMetadata: SectionsRequestBuilderRequestsMetadata,
220
+ navigationMetadata: SectionsRequestBuilderNavigationMetadata,
221
+ },
222
+ };
223
+ /**
224
+ * Metadata for all the requests in the request builder.
225
+ */
226
+ export const FormsItemRequestBuilderRequestsMetadata = {
227
+ delete: {
228
+ uriTemplate: FormsItemRequestBuilderUriTemplate,
229
+ responseBodyContentType: "application/json",
230
+ errorMappings: {
231
+ 404: createForms404ErrorFromDiscriminatorValue,
232
+ },
233
+ adapterMethodName: "send",
234
+ responseBodyFactory: createFormsDeleteResponseFromDiscriminatorValue,
235
+ },
236
+ get: {
237
+ uriTemplate: FormsItemRequestBuilderUriTemplate,
238
+ responseBodyContentType: "application/json",
239
+ errorMappings: {
240
+ 404: createForms404ErrorFromDiscriminatorValue,
241
+ },
242
+ adapterMethodName: "send",
243
+ responseBodyFactory: createFormsGetResponseFromDiscriminatorValue,
244
+ },
245
+ put: {
246
+ uriTemplate: FormsItemRequestBuilderUriTemplate,
247
+ responseBodyContentType: "application/json",
248
+ errorMappings: {
249
+ 400: createForms400ErrorFromDiscriminatorValue,
250
+ 404: createForms404ErrorFromDiscriminatorValue,
251
+ },
252
+ adapterMethodName: "send",
253
+ responseBodyFactory: createFormsPutResponseFromDiscriminatorValue,
254
+ requestBodyContentType: "application/json",
255
+ requestBodySerializer: serializeUpdateFormBody,
256
+ requestInformationContentSetMethod: "setContentFromParsable",
257
+ },
258
+ };
259
+ /* tslint:enable */
260
+ /* eslint-enable */
261
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/client/api/v1/forms/item/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,gCAAgC,EAAE,aAAa,EAAE,uBAAuB,EAAkC,MAAM,6BAA6B,CAAC;AACvJ,aAAa;AACb,OAAO,EAAE,yCAAyC,EAAE,uCAAuC,EAAgC,MAAM,sBAAsB,CAAC;AACxJ,aAAa;AAC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{ type WithQItemRequestBuilder } from './item/index.js';
3
+ import { type AdditionalDataHolder, type BaseRequestBuilder, type Guid, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Creates a new instance of the appropriate class based on discriminator value
6
+ * @param parseNode The parse node to use to read the discriminator value and create the object
7
+ * @returns {QuestionsGetResponse}
8
+ */
9
+ export declare function createQuestionsGetResponseFromDiscriminatorValue(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 {QuestionsPostResponse}
14
+ */
15
+ export declare function createQuestionsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
16
+ /**
17
+ * The deserialization information for the current model
18
+ * @param QuestionsGetResponse The instance to deserialize into.
19
+ * @returns {Record<string, (node: ParseNode) => void>}
20
+ */
21
+ export declare function deserializeIntoQuestionsGetResponse(questionsGetResponse?: Partial<QuestionsGetResponse> | undefined): Record<string, (node: ParseNode) => void>;
22
+ /**
23
+ * The deserialization information for the current model
24
+ * @param QuestionsPostResponse The instance to deserialize into.
25
+ * @returns {Record<string, (node: ParseNode) => void>}
26
+ */
27
+ export declare function deserializeIntoQuestionsPostResponse(questionsPostResponse?: Partial<QuestionsPostResponse> | undefined): Record<string, (node: ParseNode) => void>;
28
+ export interface QuestionsGetResponse extends AdditionalDataHolder, Parsable {
29
+ /**
30
+ * The data property
31
+ */
32
+ data?: Question[] | null;
33
+ /**
34
+ * The success property
35
+ */
36
+ success?: boolean | null;
37
+ }
38
+ export interface QuestionsPostResponse extends AdditionalDataHolder, Parsable {
39
+ /**
40
+ * The data property
41
+ */
42
+ data?: Question | null;
43
+ /**
44
+ * The success property
45
+ */
46
+ success?: boolean | null;
47
+ }
48
+ /**
49
+ * Builds and executes requests for operations under /api/v1/forms/{id}/questions
50
+ */
51
+ export interface QuestionsRequestBuilder extends BaseRequestBuilder<QuestionsRequestBuilder> {
52
+ /**
53
+ * Gets an item from the formalingo.api.v1.forms.item.questions.item collection
54
+ * @param qid Unique identifier of the item
55
+ * @returns {WithQItemRequestBuilder}
56
+ */
57
+ byQid(qid: Guid): WithQItemRequestBuilder;
58
+ /**
59
+ * List questions
60
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
61
+ * @returns {Promise<QuestionsGetResponse>}
62
+ */
63
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<QuestionsGetResponse | undefined>;
64
+ /**
65
+ * Create a question
66
+ * @param body The request body
67
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
68
+ * @returns {Promise<QuestionsPostResponse>}
69
+ */
70
+ post(body: CreateQuestionBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<QuestionsPostResponse | undefined>;
71
+ /**
72
+ * List questions
73
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
74
+ * @returns {RequestInformation}
75
+ */
76
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
77
+ /**
78
+ * Create a question
79
+ * @param body The request body
80
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
81
+ * @returns {RequestInformation}
82
+ */
83
+ toPostRequestInformation(body: CreateQuestionBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
84
+ }
85
+ /**
86
+ * Serializes information the current object
87
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
88
+ * @param QuestionsGetResponse The instance to serialize from.
89
+ * @param writer Serialization writer to use to serialize this model
90
+ */
91
+ export declare function serializeQuestionsGetResponse(writer: SerializationWriter, questionsGetResponse?: Partial<QuestionsGetResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
92
+ /**
93
+ * Serializes information the current object
94
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
95
+ * @param QuestionsPostResponse The instance to serialize from.
96
+ * @param writer Serialization writer to use to serialize this model
97
+ */
98
+ export declare function serializeQuestionsPostResponse(writer: SerializationWriter, questionsPostResponse?: Partial<QuestionsPostResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
99
+ /**
100
+ * Uri template for the request builder.
101
+ */
102
+ export declare const QuestionsRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/questions";
103
+ /**
104
+ * Metadata for all the navigation properties in the request builder.
105
+ */
106
+ export declare const QuestionsRequestBuilderNavigationMetadata: Record<Exclude<keyof QuestionsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
107
+ /**
108
+ * Metadata for all the requests in the request builder.
109
+ */
110
+ export declare const QuestionsRequestBuilderRequestsMetadata: RequestsMetadata;
111
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/api/v1/forms/item/questions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAwF,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE9K,OAAO,EAAE,KAAK,uBAAuB,EAA2C,MAAM,iBAAiB,CAAC;AAExG,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,IAAI,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAE1U;;;;GAIG;AAEH,wBAAgB,gDAAgD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EA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