@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,115 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createQuestionFromDiscriminatorValue, serializeCreateQuestionBody, serializeQuestion } from '../../../../../models/index.js';
6
+ // @ts-ignore
7
+ import { WithQItemRequestBuilderRequestsMetadata } from './item/index.js';
8
+ /**
9
+ * Creates a new instance of the appropriate class based on discriminator value
10
+ * @param parseNode The parse node to use to read the discriminator value and create the object
11
+ * @returns {QuestionsGetResponse}
12
+ */
13
+ // @ts-ignore
14
+ export function createQuestionsGetResponseFromDiscriminatorValue(parseNode) {
15
+ return deserializeIntoQuestionsGetResponse;
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 {QuestionsPostResponse}
21
+ */
22
+ // @ts-ignore
23
+ export function createQuestionsPostResponseFromDiscriminatorValue(parseNode) {
24
+ return deserializeIntoQuestionsPostResponse;
25
+ }
26
+ /**
27
+ * The deserialization information for the current model
28
+ * @param QuestionsGetResponse The instance to deserialize into.
29
+ * @returns {Record<string, (node: ParseNode) => void>}
30
+ */
31
+ // @ts-ignore
32
+ export function deserializeIntoQuestionsGetResponse(questionsGetResponse = {}) {
33
+ return {
34
+ "data": n => { questionsGetResponse.data = n.getCollectionOfObjectValues(createQuestionFromDiscriminatorValue); },
35
+ "success": n => { questionsGetResponse.success = n.getBooleanValue(); },
36
+ };
37
+ }
38
+ /**
39
+ * The deserialization information for the current model
40
+ * @param QuestionsPostResponse The instance to deserialize into.
41
+ * @returns {Record<string, (node: ParseNode) => void>}
42
+ */
43
+ // @ts-ignore
44
+ export function deserializeIntoQuestionsPostResponse(questionsPostResponse = {}) {
45
+ return {
46
+ "data": n => { questionsPostResponse.data = n.getObjectValue(createQuestionFromDiscriminatorValue); },
47
+ "success": n => { questionsPostResponse.success = n.getBooleanValue(); },
48
+ };
49
+ }
50
+ /**
51
+ * Serializes information the current object
52
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
53
+ * @param QuestionsGetResponse The instance to serialize from.
54
+ * @param writer Serialization writer to use to serialize this model
55
+ */
56
+ // @ts-ignore
57
+ export function serializeQuestionsGetResponse(writer, questionsGetResponse = {}, isSerializingDerivedType = false) {
58
+ if (!questionsGetResponse || isSerializingDerivedType) {
59
+ return;
60
+ }
61
+ writer.writeCollectionOfObjectValues("data", questionsGetResponse.data, serializeQuestion);
62
+ writer.writeBooleanValue("success", questionsGetResponse.success);
63
+ writer.writeAdditionalData(questionsGetResponse.additionalData);
64
+ }
65
+ /**
66
+ * Serializes information the current object
67
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
68
+ * @param QuestionsPostResponse The instance to serialize from.
69
+ * @param writer Serialization writer to use to serialize this model
70
+ */
71
+ // @ts-ignore
72
+ export function serializeQuestionsPostResponse(writer, questionsPostResponse = {}, isSerializingDerivedType = false) {
73
+ if (!questionsPostResponse || isSerializingDerivedType) {
74
+ return;
75
+ }
76
+ writer.writeObjectValue("data", questionsPostResponse.data, serializeQuestion);
77
+ writer.writeBooleanValue("success", questionsPostResponse.success);
78
+ writer.writeAdditionalData(questionsPostResponse.additionalData);
79
+ }
80
+ /**
81
+ * Uri template for the request builder.
82
+ */
83
+ export const QuestionsRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/questions";
84
+ /**
85
+ * Metadata for all the navigation properties in the request builder.
86
+ */
87
+ export const QuestionsRequestBuilderNavigationMetadata = {
88
+ byQid: {
89
+ requestsMetadata: WithQItemRequestBuilderRequestsMetadata,
90
+ pathParametersMappings: ["qid"],
91
+ },
92
+ };
93
+ /**
94
+ * Metadata for all the requests in the request builder.
95
+ */
96
+ export const QuestionsRequestBuilderRequestsMetadata = {
97
+ get: {
98
+ uriTemplate: QuestionsRequestBuilderUriTemplate,
99
+ responseBodyContentType: "application/json",
100
+ adapterMethodName: "send",
101
+ responseBodyFactory: createQuestionsGetResponseFromDiscriminatorValue,
102
+ },
103
+ post: {
104
+ uriTemplate: QuestionsRequestBuilderUriTemplate,
105
+ responseBodyContentType: "application/json",
106
+ adapterMethodName: "send",
107
+ responseBodyFactory: createQuestionsPostResponseFromDiscriminatorValue,
108
+ requestBodyContentType: "application/json",
109
+ requestBodySerializer: serializeCreateQuestionBody,
110
+ requestInformationContentSetMethod: "setContentFromParsable",
111
+ },
112
+ };
113
+ /* tslint:enable */
114
+ /* eslint-enable */
115
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/client/api/v1/forms/item/questions/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,oCA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B,EAAE,2BAA2B;QAClD,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,196 @@
1
+ import { type Question } from '../../../../../../models/index.js';
2
+ import { type AdditionalDataHolder, type BaseRequestBuilder, type Guid, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter, type UntypedNode } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Creates a new instance of the appropriate class based on discriminator value
5
+ * @param parseNode The parse node to use to read the discriminator value and create the object
6
+ * @returns {WithQDeleteResponse}
7
+ */
8
+ export declare function createWithQDeleteResponseFromDiscriminatorValue(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 {WithQPutRequestBody}
13
+ */
14
+ export declare function createWithQPutRequestBodyFromDiscriminatorValue(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 {WithQPutResponse}
19
+ */
20
+ export declare function createWithQPutResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
21
+ /**
22
+ * The deserialization information for the current model
23
+ * @param WithQDeleteResponse The instance to deserialize into.
24
+ * @returns {Record<string, (node: ParseNode) => void>}
25
+ */
26
+ export declare function deserializeIntoWithQDeleteResponse(withQDeleteResponse?: Partial<WithQDeleteResponse> | undefined): Record<string, (node: ParseNode) => void>;
27
+ /**
28
+ * The deserialization information for the current model
29
+ * @param WithQPutRequestBody The instance to deserialize into.
30
+ * @returns {Record<string, (node: ParseNode) => void>}
31
+ */
32
+ export declare function deserializeIntoWithQPutRequestBody(withQPutRequestBody?: Partial<WithQPutRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
33
+ /**
34
+ * The deserialization information for the current model
35
+ * @param WithQPutResponse The instance to deserialize into.
36
+ * @returns {Record<string, (node: ParseNode) => void>}
37
+ */
38
+ export declare function deserializeIntoWithQPutResponse(withQPutResponse?: Partial<WithQPutResponse> | undefined): Record<string, (node: ParseNode) => void>;
39
+ /**
40
+ * Serializes information the current object
41
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
42
+ * @param WithQDeleteResponse The instance to serialize from.
43
+ * @param writer Serialization writer to use to serialize this model
44
+ */
45
+ export declare function serializeWithQDeleteResponse(writer: SerializationWriter, withQDeleteResponse?: Partial<WithQDeleteResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
46
+ /**
47
+ * Serializes information the current object
48
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
49
+ * @param WithQPutRequestBody The instance to serialize from.
50
+ * @param writer Serialization writer to use to serialize this model
51
+ */
52
+ export declare function serializeWithQPutRequestBody(writer: SerializationWriter, withQPutRequestBody?: Partial<WithQPutRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
53
+ /**
54
+ * Serializes information the current object
55
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
56
+ * @param WithQPutResponse The instance to serialize from.
57
+ * @param writer Serialization writer to use to serialize this model
58
+ */
59
+ export declare function serializeWithQPutResponse(writer: SerializationWriter, withQPutResponse?: Partial<WithQPutResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
60
+ export interface WithQDeleteResponse extends AdditionalDataHolder, Parsable {
61
+ /**
62
+ * The data property
63
+ */
64
+ data?: UntypedNode | null;
65
+ /**
66
+ * The success property
67
+ */
68
+ success?: boolean | null;
69
+ }
70
+ /**
71
+ * Builds and executes requests for operations under /api/v1/forms/{id}/questions/{qid}
72
+ */
73
+ export interface WithQItemRequestBuilder extends BaseRequestBuilder<WithQItemRequestBuilder> {
74
+ /**
75
+ * Delete a question
76
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
77
+ * @returns {Promise<WithQDeleteResponse>}
78
+ */
79
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<WithQDeleteResponse | undefined>;
80
+ /**
81
+ * Update a question
82
+ * @param body The request body
83
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
84
+ * @returns {Promise<WithQPutResponse>}
85
+ */
86
+ put(body: WithQPutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<WithQPutResponse | undefined>;
87
+ /**
88
+ * Delete a question
89
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
90
+ * @returns {RequestInformation}
91
+ */
92
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
93
+ /**
94
+ * Update a question
95
+ * @param body The request body
96
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
97
+ * @returns {RequestInformation}
98
+ */
99
+ toPutRequestInformation(body: WithQPutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
100
+ }
101
+ export interface WithQPutRequestBody extends AdditionalDataHolder, Parsable {
102
+ /**
103
+ * The context property
104
+ */
105
+ context?: string | null;
106
+ /**
107
+ * The is_pii property
108
+ */
109
+ isPii?: boolean | null;
110
+ /**
111
+ * The is_required property
112
+ */
113
+ isRequired?: boolean | null;
114
+ /**
115
+ * Type-specific options (choices, min/max, etc.)
116
+ */
117
+ options?: UntypedNode | null;
118
+ /**
119
+ * The order property
120
+ */
121
+ order?: number | null;
122
+ /**
123
+ * The priority property
124
+ */
125
+ priority?: WithQPutRequestBody_priority | null;
126
+ /**
127
+ * The question_text property
128
+ */
129
+ questionText?: string | null;
130
+ /**
131
+ * Assign to a section (optional)
132
+ */
133
+ sectionId?: Guid | null;
134
+ /**
135
+ * The type property
136
+ */
137
+ type?: WithQPutRequestBody_type | null;
138
+ }
139
+ export type WithQPutRequestBody_priority = (typeof WithQPutRequestBody_priorityObject)[keyof typeof WithQPutRequestBody_priorityObject];
140
+ export type WithQPutRequestBody_type = (typeof WithQPutRequestBody_typeObject)[keyof typeof WithQPutRequestBody_typeObject];
141
+ export interface WithQPutResponse extends AdditionalDataHolder, Parsable {
142
+ /**
143
+ * The data property
144
+ */
145
+ data?: Question | null;
146
+ /**
147
+ * The success property
148
+ */
149
+ success?: boolean | null;
150
+ }
151
+ /**
152
+ * Uri template for the request builder.
153
+ */
154
+ export declare const WithQItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/questions/{qid}";
155
+ /**
156
+ * Metadata for all the requests in the request builder.
157
+ */
158
+ export declare const WithQItemRequestBuilderRequestsMetadata: RequestsMetadata;
159
+ export declare const WithQPutRequestBody_priorityObject: {
160
+ readonly Low: "low";
161
+ readonly Medium: "medium";
162
+ readonly High: "high";
163
+ readonly Critical: "critical";
164
+ };
165
+ export declare const WithQPutRequestBody_typeObject: {
166
+ readonly Short_text: "short_text";
167
+ readonly Long_text: "long_text";
168
+ readonly Mcq: "mcq";
169
+ readonly Multi_select: "multi_select";
170
+ readonly Rating: "rating";
171
+ readonly Date: "date";
172
+ readonly Number: "number";
173
+ readonly Yes_no: "yes_no";
174
+ readonly File_upload: "file_upload";
175
+ readonly Dropdown: "dropdown";
176
+ readonly Digital_signature: "digital_signature";
177
+ readonly Email: "email";
178
+ readonly Phone: "phone";
179
+ readonly Initials: "initials";
180
+ readonly Url: "url";
181
+ readonly Time: "time";
182
+ readonly Date_range: "date_range";
183
+ readonly Address: "address";
184
+ readonly Slider: "slider";
185
+ readonly Currency: "currency";
186
+ readonly Heading: "heading";
187
+ readonly Divider: "divider";
188
+ readonly Picture_choice: "picture_choice";
189
+ readonly Checkbox: "checkbox";
190
+ readonly Ranking: "ranking";
191
+ readonly Matrix: "matrix";
192
+ readonly Opinion_scale: "opinion_scale";
193
+ readonly Calculation: "calculation";
194
+ readonly Payment: "payment";
195
+ };
196
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {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,CAAC,CAAC;AAC5H,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB,EAAE,QAAQ;IACpE;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5B;AACD;;GAEG;AACH,eAAO,MAAM,kCAAkC,iDAAiD,CAAC;AACjG;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,gBAgBrD,CAAC;AACF,eAAO,MAAM,kCAAkC;;;;;CAKrC,CAAC;AACX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BjC,CAAC"}
@@ -0,0 +1,193 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createQuestionFromDiscriminatorValue, serializeQuestion } 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 {WithQDeleteResponse}
12
+ */
13
+ // @ts-ignore
14
+ export function createWithQDeleteResponseFromDiscriminatorValue(parseNode) {
15
+ return deserializeIntoWithQDeleteResponse;
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 {WithQPutRequestBody}
21
+ */
22
+ // @ts-ignore
23
+ export function createWithQPutRequestBodyFromDiscriminatorValue(parseNode) {
24
+ return deserializeIntoWithQPutRequestBody;
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 {WithQPutResponse}
30
+ */
31
+ // @ts-ignore
32
+ export function createWithQPutResponseFromDiscriminatorValue(parseNode) {
33
+ return deserializeIntoWithQPutResponse;
34
+ }
35
+ /**
36
+ * The deserialization information for the current model
37
+ * @param WithQDeleteResponse The instance to deserialize into.
38
+ * @returns {Record<string, (node: ParseNode) => void>}
39
+ */
40
+ // @ts-ignore
41
+ export function deserializeIntoWithQDeleteResponse(withQDeleteResponse = {}) {
42
+ return {
43
+ "data": n => { withQDeleteResponse.data = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
44
+ "success": n => { withQDeleteResponse.success = n.getBooleanValue(); },
45
+ };
46
+ }
47
+ /**
48
+ * The deserialization information for the current model
49
+ * @param WithQPutRequestBody The instance to deserialize into.
50
+ * @returns {Record<string, (node: ParseNode) => void>}
51
+ */
52
+ // @ts-ignore
53
+ export function deserializeIntoWithQPutRequestBody(withQPutRequestBody = {}) {
54
+ return {
55
+ "context": n => { withQPutRequestBody.context = n.getStringValue(); },
56
+ "is_pii": n => { withQPutRequestBody.isPii = n.getBooleanValue(); },
57
+ "is_required": n => { withQPutRequestBody.isRequired = n.getBooleanValue(); },
58
+ "options": n => { withQPutRequestBody.options = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
59
+ "order": n => { withQPutRequestBody.order = n.getNumberValue(); },
60
+ "priority": n => { withQPutRequestBody.priority = n.getEnumValue(WithQPutRequestBody_priorityObject) ?? WithQPutRequestBody_priorityObject.Low; },
61
+ "question_text": n => { withQPutRequestBody.questionText = n.getStringValue(); },
62
+ "section_id": n => { withQPutRequestBody.sectionId = n.getGuidValue(); },
63
+ "type": n => { withQPutRequestBody.type = n.getEnumValue(WithQPutRequestBody_typeObject); },
64
+ };
65
+ }
66
+ /**
67
+ * The deserialization information for the current model
68
+ * @param WithQPutResponse The instance to deserialize into.
69
+ * @returns {Record<string, (node: ParseNode) => void>}
70
+ */
71
+ // @ts-ignore
72
+ export function deserializeIntoWithQPutResponse(withQPutResponse = {}) {
73
+ return {
74
+ "data": n => { withQPutResponse.data = n.getObjectValue(createQuestionFromDiscriminatorValue); },
75
+ "success": n => { withQPutResponse.success = n.getBooleanValue(); },
76
+ };
77
+ }
78
+ /**
79
+ * Serializes information the current object
80
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
81
+ * @param WithQDeleteResponse The instance to serialize from.
82
+ * @param writer Serialization writer to use to serialize this model
83
+ */
84
+ // @ts-ignore
85
+ export function serializeWithQDeleteResponse(writer, withQDeleteResponse = {}, isSerializingDerivedType = false) {
86
+ if (!withQDeleteResponse || isSerializingDerivedType) {
87
+ return;
88
+ }
89
+ writer.writeObjectValue("data", withQDeleteResponse.data);
90
+ writer.writeBooleanValue("success", withQDeleteResponse.success);
91
+ writer.writeAdditionalData(withQDeleteResponse.additionalData);
92
+ }
93
+ /**
94
+ * Serializes information the current object
95
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
96
+ * @param WithQPutRequestBody The instance to serialize from.
97
+ * @param writer Serialization writer to use to serialize this model
98
+ */
99
+ // @ts-ignore
100
+ export function serializeWithQPutRequestBody(writer, withQPutRequestBody = {}, isSerializingDerivedType = false) {
101
+ if (!withQPutRequestBody || isSerializingDerivedType) {
102
+ return;
103
+ }
104
+ writer.writeStringValue("context", withQPutRequestBody.context);
105
+ writer.writeBooleanValue("is_pii", withQPutRequestBody.isPii);
106
+ writer.writeBooleanValue("is_required", withQPutRequestBody.isRequired);
107
+ writer.writeObjectValue("options", withQPutRequestBody.options);
108
+ writer.writeNumberValue("order", withQPutRequestBody.order);
109
+ writer.writeEnumValue("priority", withQPutRequestBody.priority ?? WithQPutRequestBody_priorityObject.Low);
110
+ writer.writeStringValue("question_text", withQPutRequestBody.questionText);
111
+ writer.writeGuidValue("section_id", withQPutRequestBody.sectionId);
112
+ writer.writeEnumValue("type", withQPutRequestBody.type);
113
+ writer.writeAdditionalData(withQPutRequestBody.additionalData);
114
+ }
115
+ /**
116
+ * Serializes information the current object
117
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
118
+ * @param WithQPutResponse The instance to serialize from.
119
+ * @param writer Serialization writer to use to serialize this model
120
+ */
121
+ // @ts-ignore
122
+ export function serializeWithQPutResponse(writer, withQPutResponse = {}, isSerializingDerivedType = false) {
123
+ if (!withQPutResponse || isSerializingDerivedType) {
124
+ return;
125
+ }
126
+ writer.writeObjectValue("data", withQPutResponse.data, serializeQuestion);
127
+ writer.writeBooleanValue("success", withQPutResponse.success);
128
+ writer.writeAdditionalData(withQPutResponse.additionalData);
129
+ }
130
+ /**
131
+ * Uri template for the request builder.
132
+ */
133
+ export const WithQItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/questions/{qid}";
134
+ /**
135
+ * Metadata for all the requests in the request builder.
136
+ */
137
+ export const WithQItemRequestBuilderRequestsMetadata = {
138
+ delete: {
139
+ uriTemplate: WithQItemRequestBuilderUriTemplate,
140
+ responseBodyContentType: "application/json",
141
+ adapterMethodName: "send",
142
+ responseBodyFactory: createWithQDeleteResponseFromDiscriminatorValue,
143
+ },
144
+ put: {
145
+ uriTemplate: WithQItemRequestBuilderUriTemplate,
146
+ responseBodyContentType: "application/json",
147
+ adapterMethodName: "send",
148
+ responseBodyFactory: createWithQPutResponseFromDiscriminatorValue,
149
+ requestBodyContentType: "application/json",
150
+ requestBodySerializer: serializeWithQPutRequestBody,
151
+ requestInformationContentSetMethod: "setContentFromParsable",
152
+ },
153
+ };
154
+ export const WithQPutRequestBody_priorityObject = {
155
+ Low: "low",
156
+ Medium: "medium",
157
+ High: "high",
158
+ Critical: "critical",
159
+ };
160
+ export const WithQPutRequestBody_typeObject = {
161
+ Short_text: "short_text",
162
+ Long_text: "long_text",
163
+ Mcq: "mcq",
164
+ Multi_select: "multi_select",
165
+ Rating: "rating",
166
+ Date: "date",
167
+ Number: "number",
168
+ Yes_no: "yes_no",
169
+ File_upload: "file_upload",
170
+ Dropdown: "dropdown",
171
+ Digital_signature: "digital_signature",
172
+ Email: "email",
173
+ Phone: "phone",
174
+ Initials: "initials",
175
+ Url: "url",
176
+ Time: "time",
177
+ Date_range: "date_range",
178
+ Address: "address",
179
+ Slider: "slider",
180
+ Currency: "currency",
181
+ Heading: "heading",
182
+ Divider: "divider",
183
+ Picture_choice: "picture_choice",
184
+ Checkbox: "checkbox",
185
+ Ranking: "ranking",
186
+ Matrix: "matrix",
187
+ Opinion_scale: "opinion_scale",
188
+ Calculation: "calculation",
189
+ Payment: "payment",
190
+ };
191
+ /* tslint:enable */
192
+ /* eslint-enable */
193
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/client/api/v1/forms/item/questions/item/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,oCAAoC,EAAE,iBAAiB,EAAiB,MAAM,mCAAmC,CAAC;AAC3H,aAAa;AACb,OAAO,EAAE,uCAAuC,EAA6O,MAAM,+BAA+B,CAAC;AAEnU;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,+CAA+C,CAAC,SAAgC;IAC5F,OAAO,kCAAkC,CAAC;AAC9C,CAAC;AACD;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,+CAA+C,CAAC,SAAgC;IAC5F,OAAO,kCAAkC,CAAC;AAC9C,CAAC;AACD;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,4CAA4C,CAAC,SAAgC;IACzF,OAAO,+BAA+B,CAAC;AAC3C,CAAC;AACD;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,kCAAkC,CAAC,sBAAgE,EAAE;IACjH,OAAO;QACH,MAAM,EAAE,CAAC,CAAC,EAAE,GAAG,mBAAmB,CAAC,IAAI,GAAG,CAAC,CAAC,cAAc,CAAc,uCAAuC,CAAC,CAAC,CAAC,CAAC;QACnH,SAAS,EAAE,CAAC,CAAC,EAAE,GAAG,mBAAmB,CAAC,OAAO,GAAG,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC;KACzE,CAAA;AACL,CAAC;AACD;;;;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ACzB,mBAAmB,EAAG,4CAA4C;QAClE,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,4BAA4B;QACnD,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAC9C,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;CACd,CAAC;AACX,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC1C,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,WAAW;IACtB,GAAG,EAAE,KAAK;IACV,YAAY,EAAE,cAAc;IAC5B,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;IACpB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,cAAc,EAAE,gBAAgB;IAChC,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,SAAS;CACZ,CAAC;AACX,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,111 @@
1
+ import { type CreateRecipientBody, type Recipient } from '../../../../../models/index.js';
2
+ import { type WithRItemRequestBuilder } 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 {RecipientsGetResponse}
8
+ */
9
+ export declare function createRecipientsGetResponseFromDiscriminatorValue(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 {RecipientsPostResponse}
14
+ */
15
+ export declare function createRecipientsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
16
+ /**
17
+ * The deserialization information for the current model
18
+ * @param RecipientsGetResponse The instance to deserialize into.
19
+ * @returns {Record<string, (node: ParseNode) => void>}
20
+ */
21
+ export declare function deserializeIntoRecipientsGetResponse(recipientsGetResponse?: Partial<RecipientsGetResponse> | undefined): Record<string, (node: ParseNode) => void>;
22
+ /**
23
+ * The deserialization information for the current model
24
+ * @param RecipientsPostResponse The instance to deserialize into.
25
+ * @returns {Record<string, (node: ParseNode) => void>}
26
+ */
27
+ export declare function deserializeIntoRecipientsPostResponse(recipientsPostResponse?: Partial<RecipientsPostResponse> | undefined): Record<string, (node: ParseNode) => void>;
28
+ export interface RecipientsGetResponse extends AdditionalDataHolder, Parsable {
29
+ /**
30
+ * The data property
31
+ */
32
+ data?: Recipient[] | null;
33
+ /**
34
+ * The success property
35
+ */
36
+ success?: boolean | null;
37
+ }
38
+ export interface RecipientsPostResponse extends AdditionalDataHolder, Parsable {
39
+ /**
40
+ * The data property
41
+ */
42
+ data?: Recipient | 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}/recipients
50
+ */
51
+ export interface RecipientsRequestBuilder extends BaseRequestBuilder<RecipientsRequestBuilder> {
52
+ /**
53
+ * Gets an item from the formalingo.api.v1.forms.item.recipients.item collection
54
+ * @param rid Unique identifier of the item
55
+ * @returns {WithRItemRequestBuilder}
56
+ */
57
+ byRid(rid: Guid): WithRItemRequestBuilder;
58
+ /**
59
+ * List recipients
60
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
61
+ * @returns {Promise<RecipientsGetResponse>}
62
+ */
63
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<RecipientsGetResponse | undefined>;
64
+ /**
65
+ * Creates a form recipient with an optional pre-fill map. The `prefill` field accepts `{ questionId: value }` pairs that are saved as Response records immediately.
66
+ * @param body The request body
67
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
68
+ * @returns {Promise<RecipientsPostResponse>}
69
+ */
70
+ post(body: CreateRecipientBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<RecipientsPostResponse | undefined>;
71
+ /**
72
+ * List recipients
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
+ * Creates a form recipient with an optional pre-fill map. The `prefill` field accepts `{ questionId: value }` pairs that are saved as Response records immediately.
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: CreateRecipientBody, 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 RecipientsGetResponse The instance to serialize from.
89
+ * @param writer Serialization writer to use to serialize this model
90
+ */
91
+ export declare function serializeRecipientsGetResponse(writer: SerializationWriter, recipientsGetResponse?: Partial<RecipientsGetResponse> | 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 RecipientsPostResponse The instance to serialize from.
96
+ * @param writer Serialization writer to use to serialize this model
97
+ */
98
+ export declare function serializeRecipientsPostResponse(writer: SerializationWriter, recipientsPostResponse?: Partial<RecipientsPostResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
99
+ /**
100
+ * Uri template for the request builder.
101
+ */
102
+ export declare const RecipientsRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/recipients";
103
+ /**
104
+ * Metadata for all the navigation properties in the request builder.
105
+ */
106
+ export declare const RecipientsRequestBuilderNavigationMetadata: Record<Exclude<keyof RecipientsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
107
+ /**
108
+ * Metadata for all the requests in the request builder.
109
+ */
110
+ export declare const RecipientsRequestBuilderRequestsMetadata: 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/recipients/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2F,KAAK,mBAAmB,EAAE,KAAK,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAEnL,OAAO,EAAE,KAAK,uBAAuB,EAAsF,MAAM,iBAAiB,CAAC;AAEnJ,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,iDAAiD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC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