@formalingo/sdk 0.1.2 → 0.1.4

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 (167) hide show
  1. package/README.md +31 -9
  2. package/dist/client/api/v1/analytics/index.d.ts +20 -0
  3. package/dist/client/api/v1/analytics/index.d.ts.map +1 -0
  4. package/dist/client/api/v1/analytics/index.js +20 -0
  5. package/dist/client/api/v1/analytics/index.js.map +1 -0
  6. package/dist/client/api/v1/analytics/summary/index.d.ts +131 -0
  7. package/dist/client/api/v1/analytics/summary/index.d.ts.map +1 -0
  8. package/dist/client/api/v1/analytics/summary/index.js +137 -0
  9. package/dist/client/api/v1/analytics/summary/index.js.map +1 -0
  10. package/dist/client/api/v1/deliveries/index.d.ts +192 -0
  11. package/dist/client/api/v1/deliveries/index.d.ts.map +1 -0
  12. package/dist/client/api/v1/deliveries/index.js +189 -0
  13. package/dist/client/api/v1/deliveries/index.js.map +1 -0
  14. package/dist/client/api/v1/documents/importEscaped/index.d.ts +144 -0
  15. package/dist/client/api/v1/documents/importEscaped/index.d.ts.map +1 -0
  16. package/dist/client/api/v1/documents/importEscaped/index.js +153 -0
  17. package/dist/client/api/v1/documents/importEscaped/index.js.map +1 -0
  18. package/dist/client/api/v1/documents/index.d.ts +5 -0
  19. package/dist/client/api/v1/documents/index.d.ts.map +1 -1
  20. package/dist/client/api/v1/documents/index.js +5 -0
  21. package/dist/client/api/v1/documents/index.js.map +1 -1
  22. package/dist/client/api/v1/documents/item/exportEscaped/index.d.ts +103 -0
  23. package/dist/client/api/v1/documents/item/exportEscaped/index.d.ts.map +1 -0
  24. package/dist/client/api/v1/documents/item/exportEscaped/index.js +102 -0
  25. package/dist/client/api/v1/documents/item/exportEscaped/index.js.map +1 -0
  26. package/dist/client/api/v1/documents/item/fields/index.d.ts +121 -7
  27. package/dist/client/api/v1/documents/item/fields/index.d.ts.map +1 -1
  28. package/dist/client/api/v1/documents/item/fields/index.js +125 -0
  29. package/dist/client/api/v1/documents/item/fields/index.js.map +1 -1
  30. package/dist/client/api/v1/documents/item/fields/item/index.d.ts +106 -16
  31. package/dist/client/api/v1/documents/item/fields/item/index.d.ts.map +1 -1
  32. package/dist/client/api/v1/documents/item/fields/item/index.js +97 -4
  33. package/dist/client/api/v1/documents/item/fields/item/index.js.map +1 -1
  34. package/dist/client/api/v1/documents/item/index.d.ts +104 -6
  35. package/dist/client/api/v1/documents/item/index.d.ts.map +1 -1
  36. package/dist/client/api/v1/documents/item/index.js +111 -4
  37. package/dist/client/api/v1/documents/item/index.js.map +1 -1
  38. package/dist/client/api/v1/documents/item/parseJobs/index.d.ts +155 -0
  39. package/dist/client/api/v1/documents/item/parseJobs/index.d.ts.map +1 -0
  40. package/dist/client/api/v1/documents/item/parseJobs/index.js +163 -0
  41. package/dist/client/api/v1/documents/item/parseJobs/index.js.map +1 -0
  42. package/dist/client/api/v1/documents/item/parseJobs/item/apply/index.d.ts +180 -0
  43. package/dist/client/api/v1/documents/item/parseJobs/item/apply/index.d.ts.map +1 -0
  44. package/dist/client/api/v1/documents/item/parseJobs/item/apply/index.js +189 -0
  45. package/dist/client/api/v1/documents/item/parseJobs/item/apply/index.js.map +1 -0
  46. package/dist/client/api/v1/documents/item/parseJobs/item/index.d.ts +75 -0
  47. package/dist/client/api/v1/documents/item/parseJobs/item/index.d.ts.map +1 -0
  48. package/dist/client/api/v1/documents/item/parseJobs/item/index.js +76 -0
  49. package/dist/client/api/v1/documents/item/parseJobs/item/index.js.map +1 -0
  50. package/dist/client/api/v1/documents/item/publish/index.d.ts +200 -0
  51. package/dist/client/api/v1/documents/item/publish/index.d.ts.map +1 -0
  52. package/dist/client/api/v1/documents/item/publish/index.js +220 -0
  53. package/dist/client/api/v1/documents/item/publish/index.js.map +1 -0
  54. package/dist/client/api/v1/documents/item/revisions/index.d.ts +112 -0
  55. package/dist/client/api/v1/documents/item/revisions/index.d.ts.map +1 -0
  56. package/dist/client/api/v1/documents/item/revisions/index.js +110 -0
  57. package/dist/client/api/v1/documents/item/revisions/index.js.map +1 -0
  58. package/dist/client/api/v1/documents/item/revisions/item/index.d.ts +95 -0
  59. package/dist/client/api/v1/documents/item/revisions/item/index.d.ts.map +1 -0
  60. package/dist/client/api/v1/documents/item/revisions/item/index.js +102 -0
  61. package/dist/client/api/v1/documents/item/revisions/item/index.js.map +1 -0
  62. package/dist/client/api/v1/documents/item/signerRoles/index.d.ts +1 -0
  63. package/dist/client/api/v1/documents/item/signerRoles/index.d.ts.map +1 -1
  64. package/dist/client/api/v1/documents/item/signerRoles/index.js +4 -1
  65. package/dist/client/api/v1/documents/item/signerRoles/index.js.map +1 -1
  66. package/dist/client/api/v1/documents/item/signerRoles/item/index.d.ts +121 -1
  67. package/dist/client/api/v1/documents/item/signerRoles/item/index.d.ts.map +1 -1
  68. package/dist/client/api/v1/documents/item/signerRoles/item/index.js +133 -0
  69. package/dist/client/api/v1/documents/item/signerRoles/item/index.js.map +1 -1
  70. package/dist/client/api/v1/documents/item/submissions/index.d.ts +40 -30
  71. package/dist/client/api/v1/documents/item/submissions/index.d.ts.map +1 -1
  72. package/dist/client/api/v1/documents/item/submissions/index.js +36 -28
  73. package/dist/client/api/v1/documents/item/submissions/index.js.map +1 -1
  74. package/dist/client/api/v1/documents/item/submissions/item/expire/index.d.ts +280 -0
  75. package/dist/client/api/v1/documents/item/submissions/item/expire/index.d.ts.map +1 -0
  76. package/dist/client/api/v1/documents/item/submissions/item/expire/index.js +301 -0
  77. package/dist/client/api/v1/documents/item/submissions/item/expire/index.js.map +1 -0
  78. package/dist/client/api/v1/documents/item/submissions/item/index.d.ts +86 -1
  79. package/dist/client/api/v1/documents/item/submissions/item/index.d.ts.map +1 -1
  80. package/dist/client/api/v1/documents/item/submissions/item/index.js +92 -0
  81. package/dist/client/api/v1/documents/item/submissions/item/index.js.map +1 -1
  82. package/dist/client/api/v1/documents/item/submissions/item/pdf/index.d.ts +42 -0
  83. package/dist/client/api/v1/documents/item/submissions/item/pdf/index.d.ts.map +1 -1
  84. package/dist/client/api/v1/documents/item/submissions/item/pdf/index.js +43 -0
  85. package/dist/client/api/v1/documents/item/submissions/item/pdf/index.js.map +1 -1
  86. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.d.ts +5 -41
  87. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.d.ts.map +1 -1
  88. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.js +7 -44
  89. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.js.map +1 -1
  90. package/dist/client/api/v1/documents/item/submissions/item/signers/item/responses/index.d.ts +7 -2
  91. package/dist/client/api/v1/documents/item/submissions/item/signers/item/responses/index.d.ts.map +1 -1
  92. package/dist/client/api/v1/documents/item/submissions/item/signers/item/responses/index.js +5 -0
  93. package/dist/client/api/v1/documents/item/submissions/item/signers/item/responses/index.js.map +1 -1
  94. package/dist/client/api/v1/files/index.d.ts +22 -0
  95. package/dist/client/api/v1/files/index.d.ts.map +1 -0
  96. package/dist/client/api/v1/files/index.js +21 -0
  97. package/dist/client/api/v1/files/index.js.map +1 -0
  98. package/dist/client/api/v1/files/item/download/index.d.ts +180 -0
  99. package/dist/client/api/v1/files/item/download/index.d.ts.map +1 -0
  100. package/dist/client/api/v1/files/item/download/index.js +189 -0
  101. package/dist/client/api/v1/files/item/download/index.js.map +1 -0
  102. package/dist/client/api/v1/files/item/index.d.ts +20 -0
  103. package/dist/client/api/v1/files/item/index.d.ts.map +1 -0
  104. package/dist/client/api/v1/files/item/index.js +20 -0
  105. package/dist/client/api/v1/files/item/index.js.map +1 -0
  106. package/dist/client/api/v1/forms/index.d.ts +46 -1
  107. package/dist/client/api/v1/forms/index.d.ts.map +1 -1
  108. package/dist/client/api/v1/forms/index.js +22 -1
  109. package/dist/client/api/v1/forms/index.js.map +1 -1
  110. package/dist/client/api/v1/forms/item/index.d.ts +18 -0
  111. package/dist/client/api/v1/forms/item/index.d.ts.map +1 -1
  112. package/dist/client/api/v1/forms/item/index.js +15 -0
  113. package/dist/client/api/v1/forms/item/index.js.map +1 -1
  114. package/dist/client/api/v1/forms/item/publish/index.d.ts +200 -0
  115. package/dist/client/api/v1/forms/item/publish/index.d.ts.map +1 -0
  116. package/dist/client/api/v1/forms/item/publish/index.js +220 -0
  117. package/dist/client/api/v1/forms/item/publish/index.js.map +1 -0
  118. package/dist/client/api/v1/forms/item/recipients/bulk/index.d.ts +274 -0
  119. package/dist/client/api/v1/forms/item/recipients/bulk/index.d.ts.map +1 -0
  120. package/dist/client/api/v1/forms/item/recipients/bulk/index.js +302 -0
  121. package/dist/client/api/v1/forms/item/recipients/bulk/index.js.map +1 -0
  122. package/dist/client/api/v1/forms/item/recipients/index.d.ts +10 -4
  123. package/dist/client/api/v1/forms/item/recipients/index.d.ts.map +1 -1
  124. package/dist/client/api/v1/forms/item/recipients/index.js +11 -3
  125. package/dist/client/api/v1/forms/item/recipients/index.js.map +1 -1
  126. package/dist/client/api/v1/forms/item/recipients/item/index.d.ts +3 -2
  127. package/dist/client/api/v1/forms/item/recipients/item/index.d.ts.map +1 -1
  128. package/dist/client/api/v1/forms/item/recipients/item/index.js +6 -3
  129. package/dist/client/api/v1/forms/item/recipients/item/index.js.map +1 -1
  130. package/dist/client/api/v1/forms/item/recipients/item/responses/index.d.ts +4 -0
  131. package/dist/client/api/v1/forms/item/recipients/item/responses/index.d.ts.map +1 -1
  132. package/dist/client/api/v1/forms/item/recipients/item/responses/index.js +2 -0
  133. package/dist/client/api/v1/forms/item/recipients/item/responses/index.js.map +1 -1
  134. package/dist/client/api/v1/forms/item/revisions/index.d.ts +112 -0
  135. package/dist/client/api/v1/forms/item/revisions/index.d.ts.map +1 -0
  136. package/dist/client/api/v1/forms/item/revisions/index.js +110 -0
  137. package/dist/client/api/v1/forms/item/revisions/index.js.map +1 -0
  138. package/dist/client/api/v1/forms/item/revisions/item/index.d.ts +95 -0
  139. package/dist/client/api/v1/forms/item/revisions/item/index.d.ts.map +1 -0
  140. package/dist/client/api/v1/forms/item/revisions/item/index.js +102 -0
  141. package/dist/client/api/v1/forms/item/revisions/item/index.js.map +1 -0
  142. package/dist/client/api/v1/index.d.ts +25 -0
  143. package/dist/client/api/v1/index.d.ts.map +1 -1
  144. package/dist/client/api/v1/index.js +25 -0
  145. package/dist/client/api/v1/index.js.map +1 -1
  146. package/dist/client/api/v1/integrations/index.d.ts +20 -0
  147. package/dist/client/api/v1/integrations/index.d.ts.map +1 -0
  148. package/dist/client/api/v1/integrations/index.js +20 -0
  149. package/dist/client/api/v1/integrations/index.js.map +1 -0
  150. package/dist/client/api/v1/integrations/status/index.d.ts +168 -0
  151. package/dist/client/api/v1/integrations/status/index.d.ts.map +1 -0
  152. package/dist/client/api/v1/integrations/status/index.js +177 -0
  153. package/dist/client/api/v1/integrations/status/index.js.map +1 -0
  154. package/dist/client/api/v1/quota/index.d.ts +93 -0
  155. package/dist/client/api/v1/quota/index.d.ts.map +1 -0
  156. package/dist/client/api/v1/quota/index.js +99 -0
  157. package/dist/client/api/v1/quota/index.js.map +1 -0
  158. package/dist/client/formalingoClient.js +1 -1
  159. package/dist/client/models/index.d.ts +1963 -139
  160. package/dist/client/models/index.d.ts.map +1 -1
  161. package/dist/client/models/index.js +2001 -211
  162. package/dist/client/models/index.js.map +1 -1
  163. package/dist/index.d.ts +15 -0
  164. package/dist/index.d.ts.map +1 -1
  165. package/dist/index.js +89 -1
  166. package/dist/index.js.map +1 -1
  167. package/package.json +1 -1
@@ -0,0 +1,200 @@
1
+ import { type Document, type DocumentRevision } from '../../../../../models/index.js';
2
+ import { type AdditionalDataHolder, type ApiError, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Creates a new instance of the appropriate class based on discriminator value
5
+ * @param parseNode The parse node to use to read the discriminator value and create the object
6
+ * @returns {Publish400Error}
7
+ */
8
+ export declare function createPublish400ErrorFromDiscriminatorValue(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 {Publish403Error}
13
+ */
14
+ export declare function createPublish403ErrorFromDiscriminatorValue(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 {Publish404Error}
19
+ */
20
+ export declare function createPublish404ErrorFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
21
+ /**
22
+ * Creates a new instance of the appropriate class based on discriminator value
23
+ * @param parseNode The parse node to use to read the discriminator value and create the object
24
+ * @returns {PublishPostResponse_data}
25
+ */
26
+ export declare function createPublishPostResponse_dataFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
27
+ /**
28
+ * Creates a new instance of the appropriate class based on discriminator value
29
+ * @param parseNode The parse node to use to read the discriminator value and create the object
30
+ * @returns {PublishPostResponse}
31
+ */
32
+ export declare function createPublishPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
33
+ /**
34
+ * The deserialization information for the current model
35
+ * @param Publish400Error The instance to deserialize into.
36
+ * @returns {Record<string, (node: ParseNode) => void>}
37
+ */
38
+ export declare function deserializeIntoPublish400Error(publish400Error?: Partial<Publish400Error> | undefined): Record<string, (node: ParseNode) => void>;
39
+ /**
40
+ * The deserialization information for the current model
41
+ * @param Publish403Error The instance to deserialize into.
42
+ * @returns {Record<string, (node: ParseNode) => void>}
43
+ */
44
+ export declare function deserializeIntoPublish403Error(publish403Error?: Partial<Publish403Error> | undefined): Record<string, (node: ParseNode) => void>;
45
+ /**
46
+ * The deserialization information for the current model
47
+ * @param Publish404Error The instance to deserialize into.
48
+ * @returns {Record<string, (node: ParseNode) => void>}
49
+ */
50
+ export declare function deserializeIntoPublish404Error(publish404Error?: Partial<Publish404Error> | undefined): Record<string, (node: ParseNode) => void>;
51
+ /**
52
+ * The deserialization information for the current model
53
+ * @param PublishPostResponse The instance to deserialize into.
54
+ * @returns {Record<string, (node: ParseNode) => void>}
55
+ */
56
+ export declare function deserializeIntoPublishPostResponse(publishPostResponse?: Partial<PublishPostResponse> | undefined): Record<string, (node: ParseNode) => void>;
57
+ /**
58
+ * The deserialization information for the current model
59
+ * @param PublishPostResponse_data The instance to deserialize into.
60
+ * @returns {Record<string, (node: ParseNode) => void>}
61
+ */
62
+ export declare function deserializeIntoPublishPostResponse_data(publishPostResponse_data?: Partial<PublishPostResponse_data> | undefined): Record<string, (node: ParseNode) => void>;
63
+ export interface Publish400Error extends AdditionalDataHolder, ApiError, Parsable {
64
+ /**
65
+ * Stable machine-readable error code when available.
66
+ */
67
+ code?: string | null;
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 Publish403Error extends AdditionalDataHolder, ApiError, Parsable {
82
+ /**
83
+ * Stable machine-readable error code when available.
84
+ */
85
+ code?: string | null;
86
+ /**
87
+ * The error property
88
+ */
89
+ errorEscaped?: string | null;
90
+ /**
91
+ * The hint property
92
+ */
93
+ hint?: string | null;
94
+ /**
95
+ * The success property
96
+ */
97
+ success?: boolean | null;
98
+ }
99
+ export interface Publish404Error extends AdditionalDataHolder, ApiError, Parsable {
100
+ /**
101
+ * Stable machine-readable error code when available.
102
+ */
103
+ code?: string | null;
104
+ /**
105
+ * The error property
106
+ */
107
+ errorEscaped?: string | null;
108
+ /**
109
+ * The hint property
110
+ */
111
+ hint?: string | null;
112
+ /**
113
+ * The success property
114
+ */
115
+ success?: boolean | null;
116
+ }
117
+ export interface PublishPostResponse extends AdditionalDataHolder, Parsable {
118
+ /**
119
+ * The data property
120
+ */
121
+ data?: PublishPostResponse_data | null;
122
+ /**
123
+ * The success property
124
+ */
125
+ success?: boolean | null;
126
+ }
127
+ export interface PublishPostResponse_data extends AdditionalDataHolder, Parsable {
128
+ /**
129
+ * The document property
130
+ */
131
+ document?: Document | null;
132
+ /**
133
+ * The revision property
134
+ */
135
+ revision?: DocumentRevision | null;
136
+ }
137
+ /**
138
+ * Builds and executes requests for operations under /api/v1/documents/{id}/publish
139
+ */
140
+ export interface PublishRequestBuilder extends BaseRequestBuilder<PublishRequestBuilder> {
141
+ /**
142
+ * Publishes the current document draft as the next revision. Requires the `documents:publish` permission and a user-backed auth context.
143
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
144
+ * @returns {Promise<PublishPostResponse>}
145
+ * @throws {Publish400Error} error when the service returns a 400 status code
146
+ * @throws {Publish403Error} error when the service returns a 403 status code
147
+ * @throws {Publish404Error} error when the service returns a 404 status code
148
+ */
149
+ post(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<PublishPostResponse | undefined>;
150
+ /**
151
+ * Publishes the current document draft as the next revision. Requires the `documents:publish` permission and a user-backed auth context.
152
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
153
+ * @returns {RequestInformation}
154
+ */
155
+ toPostRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
156
+ }
157
+ /**
158
+ * Serializes information the current object
159
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
160
+ * @param Publish400Error The instance to serialize from.
161
+ * @param writer Serialization writer to use to serialize this model
162
+ */
163
+ export declare function serializePublish400Error(writer: SerializationWriter, publish400Error?: Partial<Publish400Error> | undefined | null, isSerializingDerivedType?: boolean): void;
164
+ /**
165
+ * Serializes information the current object
166
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
167
+ * @param Publish403Error The instance to serialize from.
168
+ * @param writer Serialization writer to use to serialize this model
169
+ */
170
+ export declare function serializePublish403Error(writer: SerializationWriter, publish403Error?: Partial<Publish403Error> | undefined | null, isSerializingDerivedType?: boolean): void;
171
+ /**
172
+ * Serializes information the current object
173
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
174
+ * @param Publish404Error The instance to serialize from.
175
+ * @param writer Serialization writer to use to serialize this model
176
+ */
177
+ export declare function serializePublish404Error(writer: SerializationWriter, publish404Error?: Partial<Publish404Error> | undefined | null, isSerializingDerivedType?: boolean): void;
178
+ /**
179
+ * Serializes information the current object
180
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
181
+ * @param PublishPostResponse The instance to serialize from.
182
+ * @param writer Serialization writer to use to serialize this model
183
+ */
184
+ export declare function serializePublishPostResponse(writer: SerializationWriter, publishPostResponse?: Partial<PublishPostResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
185
+ /**
186
+ * Serializes information the current object
187
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
188
+ * @param PublishPostResponse_data The instance to serialize from.
189
+ * @param writer Serialization writer to use to serialize this model
190
+ */
191
+ export declare function serializePublishPostResponse_data(writer: SerializationWriter, publishPostResponse_data?: Partial<PublishPostResponse_data> | undefined | null, isSerializingDerivedType?: boolean): void;
192
+ /**
193
+ * Uri template for the request builder.
194
+ */
195
+ export declare const PublishRequestBuilderUriTemplate = "{+baseurl}/api/v1/documents/{id}/publish";
196
+ /**
197
+ * Metadata for all the requests in the request builder.
198
+ */
199
+ export declare const PublishRequestBuilderRequestsMetadata: RequestsMetadata;
200
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/api/v1/documents/item/publish/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoI,KAAK,QAAQ,EAAE,KAAK,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAExN,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,QAAQ,EAAE,KAAK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AC;CACnH;AACD;;;;;GAKG;AAEH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,mBAAmB,EAAE,eAAe,GAAE,OAAO,CAAC,eAAe,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAOzL;AACD;;;;;GAKG;AAEH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,mBAAmB,EAAE,eAAe,GAAE,OAAO,CAAC,eAAe,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAOzL;AACD;;;;;GAKG;AAEH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,mBAAmB,EAAE,eAAe,GAAE,OAAO,CAAC,eAAe,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAOzL;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,iCAAiC,CAAC,MAAM,EAAE,mBAAmB,EAAE,wBAAwB,GAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAKpN;AACD;;GAEG;AACH,eAAO,MAAM,gCAAgC,6CAA6C,CAAC;AAC3F;;GAEG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBAYnD,CAAC"}
@@ -0,0 +1,220 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createDocumentFromDiscriminatorValue, createDocumentRevisionFromDiscriminatorValue, serializeDocument, serializeDocumentRevision } from '../../../../../models/index.js';
6
+ /**
7
+ * Creates a new instance of the appropriate class based on discriminator value
8
+ * @param parseNode The parse node to use to read the discriminator value and create the object
9
+ * @returns {Publish400Error}
10
+ */
11
+ // @ts-ignore
12
+ export function createPublish400ErrorFromDiscriminatorValue(parseNode) {
13
+ return deserializeIntoPublish400Error;
14
+ }
15
+ /**
16
+ * Creates a new instance of the appropriate class based on discriminator value
17
+ * @param parseNode The parse node to use to read the discriminator value and create the object
18
+ * @returns {Publish403Error}
19
+ */
20
+ // @ts-ignore
21
+ export function createPublish403ErrorFromDiscriminatorValue(parseNode) {
22
+ return deserializeIntoPublish403Error;
23
+ }
24
+ /**
25
+ * Creates a new instance of the appropriate class based on discriminator value
26
+ * @param parseNode The parse node to use to read the discriminator value and create the object
27
+ * @returns {Publish404Error}
28
+ */
29
+ // @ts-ignore
30
+ export function createPublish404ErrorFromDiscriminatorValue(parseNode) {
31
+ return deserializeIntoPublish404Error;
32
+ }
33
+ /**
34
+ * Creates a new instance of the appropriate class based on discriminator value
35
+ * @param parseNode The parse node to use to read the discriminator value and create the object
36
+ * @returns {PublishPostResponse_data}
37
+ */
38
+ // @ts-ignore
39
+ export function createPublishPostResponse_dataFromDiscriminatorValue(parseNode) {
40
+ return deserializeIntoPublishPostResponse_data;
41
+ }
42
+ /**
43
+ * Creates a new instance of the appropriate class based on discriminator value
44
+ * @param parseNode The parse node to use to read the discriminator value and create the object
45
+ * @returns {PublishPostResponse}
46
+ */
47
+ // @ts-ignore
48
+ export function createPublishPostResponseFromDiscriminatorValue(parseNode) {
49
+ return deserializeIntoPublishPostResponse;
50
+ }
51
+ /**
52
+ * The deserialization information for the current model
53
+ * @param Publish400Error The instance to deserialize into.
54
+ * @returns {Record<string, (node: ParseNode) => void>}
55
+ */
56
+ // @ts-ignore
57
+ export function deserializeIntoPublish400Error(publish400Error = {}) {
58
+ return {
59
+ "code": n => { publish400Error.code = n.getStringValue(); },
60
+ "error": n => { publish400Error.errorEscaped = n.getStringValue(); },
61
+ "hint": n => { publish400Error.hint = n.getStringValue(); },
62
+ "success": n => { publish400Error.success = n.getBooleanValue(); },
63
+ };
64
+ }
65
+ /**
66
+ * The deserialization information for the current model
67
+ * @param Publish403Error The instance to deserialize into.
68
+ * @returns {Record<string, (node: ParseNode) => void>}
69
+ */
70
+ // @ts-ignore
71
+ export function deserializeIntoPublish403Error(publish403Error = {}) {
72
+ return {
73
+ "code": n => { publish403Error.code = n.getStringValue(); },
74
+ "error": n => { publish403Error.errorEscaped = n.getStringValue(); },
75
+ "hint": n => { publish403Error.hint = n.getStringValue(); },
76
+ "success": n => { publish403Error.success = n.getBooleanValue(); },
77
+ };
78
+ }
79
+ /**
80
+ * The deserialization information for the current model
81
+ * @param Publish404Error The instance to deserialize into.
82
+ * @returns {Record<string, (node: ParseNode) => void>}
83
+ */
84
+ // @ts-ignore
85
+ export function deserializeIntoPublish404Error(publish404Error = {}) {
86
+ return {
87
+ "code": n => { publish404Error.code = n.getStringValue(); },
88
+ "error": n => { publish404Error.errorEscaped = n.getStringValue(); },
89
+ "hint": n => { publish404Error.hint = n.getStringValue(); },
90
+ "success": n => { publish404Error.success = n.getBooleanValue(); },
91
+ };
92
+ }
93
+ /**
94
+ * The deserialization information for the current model
95
+ * @param PublishPostResponse The instance to deserialize into.
96
+ * @returns {Record<string, (node: ParseNode) => void>}
97
+ */
98
+ // @ts-ignore
99
+ export function deserializeIntoPublishPostResponse(publishPostResponse = {}) {
100
+ return {
101
+ "data": n => { publishPostResponse.data = n.getObjectValue(createPublishPostResponse_dataFromDiscriminatorValue); },
102
+ "success": n => { publishPostResponse.success = n.getBooleanValue(); },
103
+ };
104
+ }
105
+ /**
106
+ * The deserialization information for the current model
107
+ * @param PublishPostResponse_data The instance to deserialize into.
108
+ * @returns {Record<string, (node: ParseNode) => void>}
109
+ */
110
+ // @ts-ignore
111
+ export function deserializeIntoPublishPostResponse_data(publishPostResponse_data = {}) {
112
+ return {
113
+ "document": n => { publishPostResponse_data.document = n.getObjectValue(createDocumentFromDiscriminatorValue); },
114
+ "revision": n => { publishPostResponse_data.revision = n.getObjectValue(createDocumentRevisionFromDiscriminatorValue); },
115
+ };
116
+ }
117
+ /**
118
+ * Serializes information the current object
119
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
120
+ * @param Publish400Error The instance to serialize from.
121
+ * @param writer Serialization writer to use to serialize this model
122
+ */
123
+ // @ts-ignore
124
+ export function serializePublish400Error(writer, publish400Error = {}, isSerializingDerivedType = false) {
125
+ if (!publish400Error || isSerializingDerivedType) {
126
+ return;
127
+ }
128
+ writer.writeStringValue("code", publish400Error.code);
129
+ writer.writeStringValue("error", publish400Error.errorEscaped);
130
+ writer.writeStringValue("hint", publish400Error.hint);
131
+ writer.writeBooleanValue("success", publish400Error.success);
132
+ writer.writeAdditionalData(publish400Error.additionalData);
133
+ }
134
+ /**
135
+ * Serializes information the current object
136
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
137
+ * @param Publish403Error The instance to serialize from.
138
+ * @param writer Serialization writer to use to serialize this model
139
+ */
140
+ // @ts-ignore
141
+ export function serializePublish403Error(writer, publish403Error = {}, isSerializingDerivedType = false) {
142
+ if (!publish403Error || isSerializingDerivedType) {
143
+ return;
144
+ }
145
+ writer.writeStringValue("code", publish403Error.code);
146
+ writer.writeStringValue("error", publish403Error.errorEscaped);
147
+ writer.writeStringValue("hint", publish403Error.hint);
148
+ writer.writeBooleanValue("success", publish403Error.success);
149
+ writer.writeAdditionalData(publish403Error.additionalData);
150
+ }
151
+ /**
152
+ * Serializes information the current object
153
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
154
+ * @param Publish404Error The instance to serialize from.
155
+ * @param writer Serialization writer to use to serialize this model
156
+ */
157
+ // @ts-ignore
158
+ export function serializePublish404Error(writer, publish404Error = {}, isSerializingDerivedType = false) {
159
+ if (!publish404Error || isSerializingDerivedType) {
160
+ return;
161
+ }
162
+ writer.writeStringValue("code", publish404Error.code);
163
+ writer.writeStringValue("error", publish404Error.errorEscaped);
164
+ writer.writeStringValue("hint", publish404Error.hint);
165
+ writer.writeBooleanValue("success", publish404Error.success);
166
+ writer.writeAdditionalData(publish404Error.additionalData);
167
+ }
168
+ /**
169
+ * Serializes information the current object
170
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
171
+ * @param PublishPostResponse The instance to serialize from.
172
+ * @param writer Serialization writer to use to serialize this model
173
+ */
174
+ // @ts-ignore
175
+ export function serializePublishPostResponse(writer, publishPostResponse = {}, isSerializingDerivedType = false) {
176
+ if (!publishPostResponse || isSerializingDerivedType) {
177
+ return;
178
+ }
179
+ writer.writeObjectValue("data", publishPostResponse.data, serializePublishPostResponse_data);
180
+ writer.writeBooleanValue("success", publishPostResponse.success);
181
+ writer.writeAdditionalData(publishPostResponse.additionalData);
182
+ }
183
+ /**
184
+ * Serializes information the current object
185
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
186
+ * @param PublishPostResponse_data The instance to serialize from.
187
+ * @param writer Serialization writer to use to serialize this model
188
+ */
189
+ // @ts-ignore
190
+ export function serializePublishPostResponse_data(writer, publishPostResponse_data = {}, isSerializingDerivedType = false) {
191
+ if (!publishPostResponse_data || isSerializingDerivedType) {
192
+ return;
193
+ }
194
+ writer.writeObjectValue("document", publishPostResponse_data.document, serializeDocument);
195
+ writer.writeObjectValue("revision", publishPostResponse_data.revision, serializeDocumentRevision);
196
+ writer.writeAdditionalData(publishPostResponse_data.additionalData);
197
+ }
198
+ /**
199
+ * Uri template for the request builder.
200
+ */
201
+ export const PublishRequestBuilderUriTemplate = "{+baseurl}/api/v1/documents/{id}/publish";
202
+ /**
203
+ * Metadata for all the requests in the request builder.
204
+ */
205
+ export const PublishRequestBuilderRequestsMetadata = {
206
+ post: {
207
+ uriTemplate: PublishRequestBuilderUriTemplate,
208
+ responseBodyContentType: "application/json",
209
+ errorMappings: {
210
+ 400: createPublish400ErrorFromDiscriminatorValue,
211
+ 403: createPublish403ErrorFromDiscriminatorValue,
212
+ 404: createPublish404ErrorFromDiscriminatorValue,
213
+ },
214
+ adapterMethodName: "send",
215
+ responseBodyFactory: createPublishPostResponseFromDiscriminatorValue,
216
+ },
217
+ };
218
+ /* tslint:enable */
219
+ /* eslint-enable */
220
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/client/api/v1/documents/item/publish/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,oCAAoC,EAAE,4CAA4C,EAAE,iBAAiB,EAAE,yBAAyB,EAAwC,MAAM,gCAAgC,CAAC;AAIxN;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,2CAA2C,CAAC,SAAgC;IACxF,OAAO,8BAA8B,CAAC;AAC1C,CAAC;AACD;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,2CAA2C,CAAC,SAAgC;IACxF,OAAO,8BAA8B,CAAC;AAC1C,CAAC;AACD;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,2CAA2C,CAAC,SAAgC;IACxF,OAAO,8BAA8B,CAAC;AAC1C,CAAC;AACD;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,oDAAoD,CAAC,SAAgC;IACjG,OAAO,uCAAuC,CAAC;AACnD,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,8BAA8B,CAAC,kBAAwD,EAAE;IACrG,OAAO;QACH,MAAM,EAAE,CAAC,CAAC,EAAE,GAAG,eAAe,CAAC,IAAI,GAAG,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;QAC3D,OAAO,EAAE,CAAC,CAAC,EAAE,GAAG,eAAe,CAAC,YAAY,GAAG,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;QACpE,MAAM,EA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,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,112 @@
1
+ import { type DocumentRevision } from '../../../../../models/index.js';
2
+ import { type WithVersionItemRequestBuilder } from './item/index.js';
3
+ import { type AdditionalDataHolder, type BaseRequestBuilder, 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 {RevisionsGetResponse_meta}
8
+ */
9
+ export declare function createRevisionsGetResponse_metaFromDiscriminatorValue(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 {RevisionsGetResponse}
14
+ */
15
+ export declare function createRevisionsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
16
+ /**
17
+ * The deserialization information for the current model
18
+ * @param RevisionsGetResponse The instance to deserialize into.
19
+ * @returns {Record<string, (node: ParseNode) => void>}
20
+ */
21
+ export declare function deserializeIntoRevisionsGetResponse(revisionsGetResponse?: Partial<RevisionsGetResponse> | undefined): Record<string, (node: ParseNode) => void>;
22
+ /**
23
+ * The deserialization information for the current model
24
+ * @param RevisionsGetResponse_meta The instance to deserialize into.
25
+ * @returns {Record<string, (node: ParseNode) => void>}
26
+ */
27
+ export declare function deserializeIntoRevisionsGetResponse_meta(revisionsGetResponse_meta?: Partial<RevisionsGetResponse_meta> | undefined): Record<string, (node: ParseNode) => void>;
28
+ export interface RevisionsGetResponse extends AdditionalDataHolder, Parsable {
29
+ /**
30
+ * The data property
31
+ */
32
+ data?: DocumentRevision[] | null;
33
+ /**
34
+ * The meta property
35
+ */
36
+ meta?: RevisionsGetResponse_meta | null;
37
+ /**
38
+ * The success property
39
+ */
40
+ success?: boolean | null;
41
+ }
42
+ export interface RevisionsGetResponse_meta extends AdditionalDataHolder, Parsable {
43
+ /**
44
+ * The limit property
45
+ */
46
+ limit?: number | null;
47
+ /**
48
+ * The page property
49
+ */
50
+ page?: number | null;
51
+ /**
52
+ * The total property
53
+ */
54
+ total?: number | null;
55
+ }
56
+ /**
57
+ * Builds and executes requests for operations under /api/v1/documents/{id}/revisions
58
+ */
59
+ export interface RevisionsRequestBuilder extends BaseRequestBuilder<RevisionsRequestBuilder> {
60
+ /**
61
+ * Gets an item from the formalingo.api.v1.documents.item.revisions.item collection
62
+ * @param version Unique identifier of the item
63
+ * @returns {WithVersionItemRequestBuilder}
64
+ */
65
+ byVersion(version: number): WithVersionItemRequestBuilder;
66
+ /**
67
+ * List document revisions
68
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
69
+ * @returns {Promise<RevisionsGetResponse>}
70
+ */
71
+ get(requestConfiguration?: RequestConfiguration<RevisionsRequestBuilderGetQueryParameters> | undefined): Promise<RevisionsGetResponse | undefined>;
72
+ /**
73
+ * List document revisions
74
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
75
+ * @returns {RequestInformation}
76
+ */
77
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<RevisionsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
78
+ }
79
+ /**
80
+ * List document revisions
81
+ */
82
+ export interface RevisionsRequestBuilderGetQueryParameters {
83
+ limit?: number;
84
+ page?: number;
85
+ }
86
+ /**
87
+ * Serializes information the current object
88
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
89
+ * @param RevisionsGetResponse The instance to serialize from.
90
+ * @param writer Serialization writer to use to serialize this model
91
+ */
92
+ export declare function serializeRevisionsGetResponse(writer: SerializationWriter, revisionsGetResponse?: Partial<RevisionsGetResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
93
+ /**
94
+ * Serializes information the current object
95
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
96
+ * @param RevisionsGetResponse_meta The instance to serialize from.
97
+ * @param writer Serialization writer to use to serialize this model
98
+ */
99
+ export declare function serializeRevisionsGetResponse_meta(writer: SerializationWriter, revisionsGetResponse_meta?: Partial<RevisionsGetResponse_meta> | undefined | null, isSerializingDerivedType?: boolean): void;
100
+ /**
101
+ * Uri template for the request builder.
102
+ */
103
+ export declare const RevisionsRequestBuilderUriTemplate = "{+baseurl}/api/v1/documents/{id}/revisions{?limit*,page*}";
104
+ /**
105
+ * Metadata for all the navigation properties in the request builder.
106
+ */
107
+ export declare const RevisionsRequestBuilderNavigationMetadata: Record<Exclude<keyof RevisionsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
108
+ /**
109
+ * Metadata for all the requests in the request builder.
110
+ */
111
+ export declare const RevisionsRequestBuilderRequestsMetadata: RequestsMetadata;
112
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/api/v1/documents/item/revisions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2E,KAAK,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAEhJ,OAAO,EAAE,KAAK,6BAA6B,EAAiD,MAAM,iBAAiB,CAAC;AAEpH,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,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;AAE/T;;;;GAIG;AAEH,wBAAgB,qDAAqD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,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