@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,111 @@
1
+ import { type CreateSectionBody, type Section } from '../../../../../models/index.js';
2
+ import { type WithSItemRequestBuilder } 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 {SectionsGetResponse}
8
+ */
9
+ export declare function createSectionsGetResponseFromDiscriminatorValue(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 {SectionsPostResponse}
14
+ */
15
+ export declare function createSectionsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
16
+ /**
17
+ * The deserialization information for the current model
18
+ * @param SectionsGetResponse The instance to deserialize into.
19
+ * @returns {Record<string, (node: ParseNode) => void>}
20
+ */
21
+ export declare function deserializeIntoSectionsGetResponse(sectionsGetResponse?: Partial<SectionsGetResponse> | undefined): Record<string, (node: ParseNode) => void>;
22
+ /**
23
+ * The deserialization information for the current model
24
+ * @param SectionsPostResponse The instance to deserialize into.
25
+ * @returns {Record<string, (node: ParseNode) => void>}
26
+ */
27
+ export declare function deserializeIntoSectionsPostResponse(sectionsPostResponse?: Partial<SectionsPostResponse> | undefined): Record<string, (node: ParseNode) => void>;
28
+ export interface SectionsGetResponse extends AdditionalDataHolder, Parsable {
29
+ /**
30
+ * The data property
31
+ */
32
+ data?: Section[] | null;
33
+ /**
34
+ * The success property
35
+ */
36
+ success?: boolean | null;
37
+ }
38
+ export interface SectionsPostResponse extends AdditionalDataHolder, Parsable {
39
+ /**
40
+ * The data property
41
+ */
42
+ data?: Section | 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}/sections
50
+ */
51
+ export interface SectionsRequestBuilder extends BaseRequestBuilder<SectionsRequestBuilder> {
52
+ /**
53
+ * Gets an item from the formalingo.api.v1.forms.item.sections.item collection
54
+ * @param sid Unique identifier of the item
55
+ * @returns {WithSItemRequestBuilder}
56
+ */
57
+ bySid(sid: Guid): WithSItemRequestBuilder;
58
+ /**
59
+ * List sections
60
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
61
+ * @returns {Promise<SectionsGetResponse>}
62
+ */
63
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SectionsGetResponse | undefined>;
64
+ /**
65
+ * Create a section
66
+ * @param body The request body
67
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
68
+ * @returns {Promise<SectionsPostResponse>}
69
+ */
70
+ post(body: CreateSectionBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SectionsPostResponse | undefined>;
71
+ /**
72
+ * List sections
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 section
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: CreateSectionBody, 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 SectionsGetResponse The instance to serialize from.
89
+ * @param writer Serialization writer to use to serialize this model
90
+ */
91
+ export declare function serializeSectionsGetResponse(writer: SerializationWriter, sectionsGetResponse?: Partial<SectionsGetResponse> | 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 SectionsPostResponse The instance to serialize from.
96
+ * @param writer Serialization writer to use to serialize this model
97
+ */
98
+ export declare function serializeSectionsPostResponse(writer: SerializationWriter, sectionsPostResponse?: Partial<SectionsPostResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
99
+ /**
100
+ * Uri template for the request builder.
101
+ */
102
+ export declare const SectionsRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/sections";
103
+ /**
104
+ * Metadata for all the navigation properties in the request builder.
105
+ */
106
+ export declare const SectionsRequestBuilderNavigationMetadata: Record<Exclude<keyof SectionsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
107
+ /**
108
+ * Metadata for all the requests in the request builder.
109
+ */
110
+ export declare const SectionsRequestBuilderRequestsMetadata: 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/sections/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqF,KAAK,iBAAiB,EAAE,KAAK,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEzK,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,+CAA+C,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAEvK;AACD;;;;GAIG;AAEH,wBAAgB,gDAAgD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAExK;AACD;;;;GAIG;AAEH,wBAAgB,kCAAkC,CAAC,mBAAmB,GAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,SAAc,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAKjK;AACD;;;;GAIG;AAEH,wB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CAAC;CAC5I;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,6BAA6B,CAAC,MAAM,EAAE,mBAAmB,EAAE,oBAAoB,GAAE,OAAO,CAAC,oBAAoB,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAKxM;AACD;;GAEG;AACH,eAAO,MAAM,iCAAiC,0CAA0C,CAAC;AACzF;;GAEG;AACH,eAAO,MAAM,wCAAwC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,sBAAsB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAK1J,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,sCAAsC,EAAE,gBAgBpD,CAAC"}
@@ -0,0 +1,115 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createSectionFromDiscriminatorValue, serializeCreateSectionBody, serializeSection } from '../../../../../models/index.js';
6
+ // @ts-ignore
7
+ import { WithSItemRequestBuilderRequestsMetadata } 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 {SectionsGetResponse}
12
+ */
13
+ // @ts-ignore
14
+ export function createSectionsGetResponseFromDiscriminatorValue(parseNode) {
15
+ return deserializeIntoSectionsGetResponse;
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 {SectionsPostResponse}
21
+ */
22
+ // @ts-ignore
23
+ export function createSectionsPostResponseFromDiscriminatorValue(parseNode) {
24
+ return deserializeIntoSectionsPostResponse;
25
+ }
26
+ /**
27
+ * The deserialization information for the current model
28
+ * @param SectionsGetResponse The instance to deserialize into.
29
+ * @returns {Record<string, (node: ParseNode) => void>}
30
+ */
31
+ // @ts-ignore
32
+ export function deserializeIntoSectionsGetResponse(sectionsGetResponse = {}) {
33
+ return {
34
+ "data": n => { sectionsGetResponse.data = n.getCollectionOfObjectValues(createSectionFromDiscriminatorValue); },
35
+ "success": n => { sectionsGetResponse.success = n.getBooleanValue(); },
36
+ };
37
+ }
38
+ /**
39
+ * The deserialization information for the current model
40
+ * @param SectionsPostResponse The instance to deserialize into.
41
+ * @returns {Record<string, (node: ParseNode) => void>}
42
+ */
43
+ // @ts-ignore
44
+ export function deserializeIntoSectionsPostResponse(sectionsPostResponse = {}) {
45
+ return {
46
+ "data": n => { sectionsPostResponse.data = n.getObjectValue(createSectionFromDiscriminatorValue); },
47
+ "success": n => { sectionsPostResponse.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 SectionsGetResponse The instance to serialize from.
54
+ * @param writer Serialization writer to use to serialize this model
55
+ */
56
+ // @ts-ignore
57
+ export function serializeSectionsGetResponse(writer, sectionsGetResponse = {}, isSerializingDerivedType = false) {
58
+ if (!sectionsGetResponse || isSerializingDerivedType) {
59
+ return;
60
+ }
61
+ writer.writeCollectionOfObjectValues("data", sectionsGetResponse.data, serializeSection);
62
+ writer.writeBooleanValue("success", sectionsGetResponse.success);
63
+ writer.writeAdditionalData(sectionsGetResponse.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 SectionsPostResponse The instance to serialize from.
69
+ * @param writer Serialization writer to use to serialize this model
70
+ */
71
+ // @ts-ignore
72
+ export function serializeSectionsPostResponse(writer, sectionsPostResponse = {}, isSerializingDerivedType = false) {
73
+ if (!sectionsPostResponse || isSerializingDerivedType) {
74
+ return;
75
+ }
76
+ writer.writeObjectValue("data", sectionsPostResponse.data, serializeSection);
77
+ writer.writeBooleanValue("success", sectionsPostResponse.success);
78
+ writer.writeAdditionalData(sectionsPostResponse.additionalData);
79
+ }
80
+ /**
81
+ * Uri template for the request builder.
82
+ */
83
+ export const SectionsRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/sections";
84
+ /**
85
+ * Metadata for all the navigation properties in the request builder.
86
+ */
87
+ export const SectionsRequestBuilderNavigationMetadata = {
88
+ bySid: {
89
+ requestsMetadata: WithSItemRequestBuilderRequestsMetadata,
90
+ pathParametersMappings: ["sid"],
91
+ },
92
+ };
93
+ /**
94
+ * Metadata for all the requests in the request builder.
95
+ */
96
+ export const SectionsRequestBuilderRequestsMetadata = {
97
+ get: {
98
+ uriTemplate: SectionsRequestBuilderUriTemplate,
99
+ responseBodyContentType: "application/json",
100
+ adapterMethodName: "send",
101
+ responseBodyFactory: createSectionsGetResponseFromDiscriminatorValue,
102
+ },
103
+ post: {
104
+ uriTemplate: SectionsRequestBuilderUriTemplate,
105
+ responseBodyContentType: "application/json",
106
+ adapterMethodName: "send",
107
+ responseBodyFactory: createSectionsPostResponseFromDiscriminatorValue,
108
+ requestBodyContentType: "application/json",
109
+ requestBodySerializer: serializeCreateSectionBody,
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/sections/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,mCAAmC,EAAE,0BAA0B,EAAE,gBAAgB,EAAwC,MAAM,gCAAgC,CAAC;AACzK,aAAa;AACb,OAAO,EAAgC,uCAAuC,EAAE,MAAM,iBAAiB,CAAC;AAIxG;;;;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from '../../../../../../models/index.js';
2
+ import { type AdditionalDataHolder, type BaseRequestBuilder, 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 {WithSDeleteResponse}
7
+ */
8
+ export declare function createWithSDeleteResponseFromDiscriminatorValue(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 {WithSPutResponse}
13
+ */
14
+ export declare function createWithSPutResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
15
+ /**
16
+ * The deserialization information for the current model
17
+ * @param WithSDeleteResponse The instance to deserialize into.
18
+ * @returns {Record<string, (node: ParseNode) => void>}
19
+ */
20
+ export declare function deserializeIntoWithSDeleteResponse(withSDeleteResponse?: Partial<WithSDeleteResponse> | undefined): Record<string, (node: ParseNode) => void>;
21
+ /**
22
+ * The deserialization information for the current model
23
+ * @param WithSPutResponse The instance to deserialize into.
24
+ * @returns {Record<string, (node: ParseNode) => void>}
25
+ */
26
+ export declare function deserializeIntoWithSPutResponse(withSPutResponse?: Partial<WithSPutResponse> | undefined): Record<string, (node: ParseNode) => void>;
27
+ /**
28
+ * Serializes information the current object
29
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
30
+ * @param WithSDeleteResponse The instance to serialize from.
31
+ * @param writer Serialization writer to use to serialize this model
32
+ */
33
+ export declare function serializeWithSDeleteResponse(writer: SerializationWriter, withSDeleteResponse?: Partial<WithSDeleteResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
34
+ /**
35
+ * Serializes information the current object
36
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
37
+ * @param WithSPutResponse The instance to serialize from.
38
+ * @param writer Serialization writer to use to serialize this model
39
+ */
40
+ export declare function serializeWithSPutResponse(writer: SerializationWriter, withSPutResponse?: Partial<WithSPutResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
41
+ export interface WithSDeleteResponse extends AdditionalDataHolder, Parsable {
42
+ /**
43
+ * The data property
44
+ */
45
+ data?: UntypedNode | null;
46
+ /**
47
+ * The success property
48
+ */
49
+ success?: boolean | null;
50
+ }
51
+ /**
52
+ * Builds and executes requests for operations under /api/v1/forms/{id}/sections/{sid}
53
+ */
54
+ export interface WithSItemRequestBuilder extends BaseRequestBuilder<WithSItemRequestBuilder> {
55
+ /**
56
+ * Delete a section
57
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
58
+ * @returns {Promise<WithSDeleteResponse>}
59
+ */
60
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<WithSDeleteResponse | undefined>;
61
+ /**
62
+ * Update a section
63
+ * @param body The request body
64
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
65
+ * @returns {Promise<WithSPutResponse>}
66
+ */
67
+ put(body: UpdateSectionBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<WithSPutResponse | undefined>;
68
+ /**
69
+ * Delete a section
70
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
71
+ * @returns {RequestInformation}
72
+ */
73
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
74
+ /**
75
+ * Update a section
76
+ * @param body The request body
77
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
78
+ * @returns {RequestInformation}
79
+ */
80
+ toPutRequestInformation(body: UpdateSectionBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
81
+ }
82
+ export interface WithSPutResponse extends AdditionalDataHolder, Parsable {
83
+ /**
84
+ * The data property
85
+ */
86
+ data?: Section | null;
87
+ /**
88
+ * The success property
89
+ */
90
+ success?: boolean | null;
91
+ }
92
+ /**
93
+ * Uri template for the request builder.
94
+ */
95
+ export declare const WithSItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/sections/{sid}";
96
+ /**
97
+ * Metadata for all the requests in the request builder.
98
+ */
99
+ export declare const WithSItemRequestBuilderRequestsMetadata: RequestsMetadata;
100
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/api/v1/forms/item/sections/item/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqF,KAAK,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE5K,OAAO,EAA2C,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,KAAK,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAExT;;;;GAIG;AAEH,wBAAgB,+CAA+C,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAEvK;AACD;;;;GAIG;AAEH,wBAAgB,4CAA4C,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAEpK;AACD;;;;GAIG;AAEH,wBAAgB,kCAAkC,CAAC,mBAAmB,GAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,SAAc,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,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ClH;;;;;OAKG;IACF,uBAAuB,CAAC,IAAI,EAAE,iBAAiB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC3I;AACD,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB,EAAE,QAAQ;IACpE;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5B;AACD;;GAEG;AACH,eAAO,MAAM,kCAAkC,gDAAgD,CAAC;AAChG;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,gBAgBrD,CAAC"}
@@ -0,0 +1,106 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createSectionFromDiscriminatorValue, serializeSection, serializeUpdateSectionBody } 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 {WithSDeleteResponse}
12
+ */
13
+ // @ts-ignore
14
+ export function createWithSDeleteResponseFromDiscriminatorValue(parseNode) {
15
+ return deserializeIntoWithSDeleteResponse;
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 {WithSPutResponse}
21
+ */
22
+ // @ts-ignore
23
+ export function createWithSPutResponseFromDiscriminatorValue(parseNode) {
24
+ return deserializeIntoWithSPutResponse;
25
+ }
26
+ /**
27
+ * The deserialization information for the current model
28
+ * @param WithSDeleteResponse The instance to deserialize into.
29
+ * @returns {Record<string, (node: ParseNode) => void>}
30
+ */
31
+ // @ts-ignore
32
+ export function deserializeIntoWithSDeleteResponse(withSDeleteResponse = {}) {
33
+ return {
34
+ "data": n => { withSDeleteResponse.data = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
35
+ "success": n => { withSDeleteResponse.success = n.getBooleanValue(); },
36
+ };
37
+ }
38
+ /**
39
+ * The deserialization information for the current model
40
+ * @param WithSPutResponse The instance to deserialize into.
41
+ * @returns {Record<string, (node: ParseNode) => void>}
42
+ */
43
+ // @ts-ignore
44
+ export function deserializeIntoWithSPutResponse(withSPutResponse = {}) {
45
+ return {
46
+ "data": n => { withSPutResponse.data = n.getObjectValue(createSectionFromDiscriminatorValue); },
47
+ "success": n => { withSPutResponse.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 WithSDeleteResponse The instance to serialize from.
54
+ * @param writer Serialization writer to use to serialize this model
55
+ */
56
+ // @ts-ignore
57
+ export function serializeWithSDeleteResponse(writer, withSDeleteResponse = {}, isSerializingDerivedType = false) {
58
+ if (!withSDeleteResponse || isSerializingDerivedType) {
59
+ return;
60
+ }
61
+ writer.writeObjectValue("data", withSDeleteResponse.data);
62
+ writer.writeBooleanValue("success", withSDeleteResponse.success);
63
+ writer.writeAdditionalData(withSDeleteResponse.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 WithSPutResponse The instance to serialize from.
69
+ * @param writer Serialization writer to use to serialize this model
70
+ */
71
+ // @ts-ignore
72
+ export function serializeWithSPutResponse(writer, withSPutResponse = {}, isSerializingDerivedType = false) {
73
+ if (!withSPutResponse || isSerializingDerivedType) {
74
+ return;
75
+ }
76
+ writer.writeObjectValue("data", withSPutResponse.data, serializeSection);
77
+ writer.writeBooleanValue("success", withSPutResponse.success);
78
+ writer.writeAdditionalData(withSPutResponse.additionalData);
79
+ }
80
+ /**
81
+ * Uri template for the request builder.
82
+ */
83
+ export const WithSItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/forms/{id}/sections/{sid}";
84
+ /**
85
+ * Metadata for all the requests in the request builder.
86
+ */
87
+ export const WithSItemRequestBuilderRequestsMetadata = {
88
+ delete: {
89
+ uriTemplate: WithSItemRequestBuilderUriTemplate,
90
+ responseBodyContentType: "application/json",
91
+ adapterMethodName: "send",
92
+ responseBodyFactory: createWithSDeleteResponseFromDiscriminatorValue,
93
+ },
94
+ put: {
95
+ uriTemplate: WithSItemRequestBuilderUriTemplate,
96
+ responseBodyContentType: "application/json",
97
+ adapterMethodName: "send",
98
+ responseBodyFactory: createWithSPutResponseFromDiscriminatorValue,
99
+ requestBodyContentType: "application/json",
100
+ requestBodySerializer: serializeUpdateSectionBody,
101
+ requestInformationContentSetMethod: "setContentFromParsable",
102
+ },
103
+ };
104
+ /* tslint:enable */
105
+ /* eslint-enable */
106
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/client/api/v1/forms/item/sections/item/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,mCAAmC,EAAE,gBAAgB,EAAE,0BAA0B,EAAwC,MAAM,mCAAmC,CAAC;AAC5K,aAAa;AACb,OAAO,EAAE,uCAAuC,EAAkO,MAAM,+BAA+B,CAAC;AAExT;;;;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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AC,iBAAiB,CAAC,SAAS,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC9D,MAAM,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;AAChE,CAAC;AAoDD;;GAEG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,6CAA6C,CAAC;AAChG;;GAEG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAqB;IACrE,MAAM,EAAE;QACJ,WAAW,EAAE,kCAAkC;QAC/C,uBAAuB,EAAE,kBAAkB;QAC3C,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,+CAA+C;KACxE;IACD,GAAG,EAAE;QACD,WAAW,EAAE,kCAAkC;QAC/C,uBAAuB,EAAE,kBAAkB;QAC3C,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,4CAA4C;QAClE,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,0BAA0B;QACjD,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,25 @@
1
+ import { type DocumentsRequestBuilder } from './documents/index.js';
2
+ import { type FormsRequestBuilder } from './forms/index.js';
3
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Builds and executes requests for operations under /api/v1
6
+ */
7
+ export interface V1RequestBuilder extends BaseRequestBuilder<V1RequestBuilder> {
8
+ /**
9
+ * The documents property
10
+ */
11
+ get documents(): DocumentsRequestBuilder;
12
+ /**
13
+ * The forms property
14
+ */
15
+ get forms(): FormsRequestBuilder;
16
+ }
17
+ /**
18
+ * Uri template for the request builder.
19
+ */
20
+ export declare const V1RequestBuilderUriTemplate = "{+baseurl}/api/v1";
21
+ /**
22
+ * Metadata for all the navigation properties in the request builder.
23
+ */
24
+ export declare const V1RequestBuilderNavigationMetadata: Record<Exclude<keyof V1RequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/api/v1/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAsF,KAAK,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAExJ,OAAO,EAA8E,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAExI,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAE1I;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB,CAAC,gBAAgB,CAAC;IAC1E;;OAEG;IACH,IAAI,SAAS,IAAI,uBAAuB,CAAC;IACzC;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;CACpC;AACD;;GAEG;AACH,eAAO,MAAM,2BAA2B,sBAAsB,CAAC;AAC/D;;GAEG;AACH,eAAO,MAAM,kCAAkC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,gBAAgB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAS9I,CAAC"}
@@ -0,0 +1,27 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { DocumentsRequestBuilderNavigationMetadata, DocumentsRequestBuilderRequestsMetadata } from './documents/index.js';
6
+ // @ts-ignore
7
+ import { FormsRequestBuilderNavigationMetadata, FormsRequestBuilderRequestsMetadata } from './forms/index.js';
8
+ /**
9
+ * Uri template for the request builder.
10
+ */
11
+ export const V1RequestBuilderUriTemplate = "{+baseurl}/api/v1";
12
+ /**
13
+ * Metadata for all the navigation properties in the request builder.
14
+ */
15
+ export const V1RequestBuilderNavigationMetadata = {
16
+ documents: {
17
+ requestsMetadata: DocumentsRequestBuilderRequestsMetadata,
18
+ navigationMetadata: DocumentsRequestBuilderNavigationMetadata,
19
+ },
20
+ forms: {
21
+ requestsMetadata: FormsRequestBuilderRequestsMetadata,
22
+ navigationMetadata: FormsRequestBuilderNavigationMetadata,
23
+ },
24
+ };
25
+ /* tslint:enable */
26
+ /* eslint-enable */
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/api/v1/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,yCAAyC,EAAE,uCAAuC,EAAgC,MAAM,sBAAsB,CAAC;AACxJ,aAAa;AACb,OAAO,EAAE,qCAAqC,EAAE,mCAAmC,EAA4B,MAAM,kBAAkB,CAAC;AAiBxI;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;AAC/D;;GAEG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAoG;IAC/I,SAAS,EAAE;QACP,gBAAgB,EAAE,uCAAuC;QACzD,kBAAkB,EAAE,yCAAyC;KAChE;IACD,KAAK,EAAE;QACH,gBAAgB,EAAE,mCAAmC;QACrD,kBAAkB,EAAE,qCAAqC;KAC5D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -1,12 +1,25 @@
1
+ import { type ApiRequestBuilder } from './api/index.js';
2
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions';
1
3
  /**
2
- * STUB This file is replaced by Kiota-generated code when you run:
3
- * yarn sdk:generate
4
- *
5
- * It exists so the handwritten wrapper in index.ts compiles before
6
- * the first generation pass.
4
+ * Instantiates a new {@link FormalingoClient} and sets the default values.
5
+ * @param requestAdapter The request adapter to use to execute the requests.
6
+ */
7
+ export declare function createFormalingoClient(requestAdapter: RequestAdapter): FormalingoClient;
8
+ /**
9
+ * The main entry point of the SDK, exposes the configuration and the fluent API.
7
10
  */
8
- import { type RequestAdapter, BaseRequestBuilder } from "@microsoft/kiota-abstractions";
9
11
  export interface FormalingoClient extends BaseRequestBuilder<FormalingoClient> {
12
+ /**
13
+ * The api property
14
+ */
15
+ get api(): ApiRequestBuilder;
10
16
  }
11
- export declare function createFormalingoClient(requestAdapter: RequestAdapter): FormalingoClient;
17
+ /**
18
+ * Uri template for the request builder.
19
+ */
20
+ export declare const FormalingoClientUriTemplate = "{+baseurl}";
21
+ /**
22
+ * Metadata for all the navigation properties in the request builder.
23
+ */
24
+ export declare const FormalingoClientNavigationMetadata: Record<Exclude<keyof FormalingoClient, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
12
25
  //# sourceMappingURL=formalingoClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formalingoClient.d.ts","sourceRoot":"","sources":["../../src/client/formalingoClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EACL,KAAK,cAAc,EACnB,kBAAkB,EACnB,MAAM,+BAA+B,CAAA;AAGtC,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB,CAAC,gBAAgB,CAAC;CAAG;AAEjF,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,cAAc,GAC7B,gBAAgB,CAKlB"}
1
+ {"version":3,"file":"formalingoClient.d.ts","sourceRoot":"","sources":["../../src/client/formalingoClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuC,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE7F,OAAO,EAAoF,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,KAAK,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAUjP;;;GAGG;AAEH,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,cAAc,oBA4BpE;AACD;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB,CAAC,gBAAgB,CAAC;IAC1E;;OAEG;IACH,IAAI,GAAG,IAAI,iBAAiB,CAAC;CAChC;AACD;;GAEG;AACH,eAAO,MAAM,2BAA2B,eAAe,CAAC;AACxD;;GAEG;AACH,eAAO,MAAM,kCAAkC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,gBAAgB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAI9I,CAAC"}
@@ -1,7 +1,61 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { ApiRequestBuilderNavigationMetadata } from './api/index.js';
6
+ // @ts-ignore
7
+ import { apiClientProxifier } from '@microsoft/kiota-abstractions';
8
+ // @ts-ignore
9
+ import { FormParseNodeFactory, FormSerializationWriterFactory } from '@microsoft/kiota-serialization-form';
10
+ // @ts-ignore
11
+ import { JsonParseNodeFactory, JsonSerializationWriterFactory } from '@microsoft/kiota-serialization-json';
12
+ // @ts-ignore
13
+ import { MultipartSerializationWriterFactory } from '@microsoft/kiota-serialization-multipart';
14
+ // @ts-ignore
15
+ import { TextParseNodeFactory, TextSerializationWriterFactory } from '@microsoft/kiota-serialization-text';
16
+ /**
17
+ * Instantiates a new {@link FormalingoClient} and sets the default values.
18
+ * @param requestAdapter The request adapter to use to execute the requests.
19
+ */
20
+ // @ts-ignore
1
21
  export function createFormalingoClient(requestAdapter) {
2
- if (!requestAdapter) {
22
+ if (requestAdapter === undefined) {
3
23
  throw new Error("requestAdapter cannot be undefined");
4
24
  }
5
- return {};
25
+ const serializationWriterFactory = requestAdapter.getSerializationWriterFactory();
26
+ const parseNodeFactoryRegistry = requestAdapter.getParseNodeFactory();
27
+ const backingStoreFactory = requestAdapter.getBackingStoreFactory();
28
+ if (parseNodeFactoryRegistry.registerDefaultDeserializer) {
29
+ parseNodeFactoryRegistry.registerDefaultDeserializer(JsonParseNodeFactory, backingStoreFactory);
30
+ parseNodeFactoryRegistry.registerDefaultDeserializer(TextParseNodeFactory, backingStoreFactory);
31
+ parseNodeFactoryRegistry.registerDefaultDeserializer(FormParseNodeFactory, backingStoreFactory);
32
+ }
33
+ if (serializationWriterFactory.registerDefaultSerializer) {
34
+ serializationWriterFactory.registerDefaultSerializer(JsonSerializationWriterFactory);
35
+ serializationWriterFactory.registerDefaultSerializer(TextSerializationWriterFactory);
36
+ serializationWriterFactory.registerDefaultSerializer(FormSerializationWriterFactory);
37
+ serializationWriterFactory.registerDefaultSerializer(MultipartSerializationWriterFactory);
38
+ }
39
+ if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === null || requestAdapter.baseUrl === "") {
40
+ requestAdapter.baseUrl = "http://localhost:3001";
41
+ }
42
+ const pathParameters = {
43
+ "baseurl": requestAdapter.baseUrl,
44
+ };
45
+ return apiClientProxifier(requestAdapter, pathParameters, FormalingoClientNavigationMetadata, undefined);
6
46
  }
47
+ /**
48
+ * Uri template for the request builder.
49
+ */
50
+ export const FormalingoClientUriTemplate = "{+baseurl}";
51
+ /**
52
+ * Metadata for all the navigation properties in the request builder.
53
+ */
54
+ export const FormalingoClientNavigationMetadata = {
55
+ api: {
56
+ navigationMetadata: ApiRequestBuilderNavigationMetadata,
57
+ },
58
+ };
59
+ /* tslint:enable */
60
+ /* eslint-enable */
7
61
  //# sourceMappingURL=formalingoClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"formalingoClient.js","sourceRoot":"","sources":["../../src/client/formalingoClient.ts"],"names":[],"mappings":"AAeA,MAAM,UAAU,sBAAsB,CACpC,cAA8B;IAE9B,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAA;IACvD,CAAC;IACD,OAAO,EAAsB,CAAA;AAC/B,CAAC"}
1
+ {"version":3,"file":"formalingoClient.js","sourceRoot":"","sources":["../../src/client/formalingoClient.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,mCAAmC,EAA0B,MAAM,gBAAgB,CAAC;AAC7F,aAAa;AACb,OAAO,EAAE,kBAAkB,EAAg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