@form-engine-ts/storage-azure-table 6.9.0 → 6.10.0
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.
- package/dist/index.cjs +6 -0
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -747,6 +747,12 @@ function createAzureTableStorage(options = {}) {
|
|
|
747
747
|
};
|
|
748
748
|
return {
|
|
749
749
|
...adapter,
|
|
750
|
+
async fetchSubmissionPage(formId, options2) {
|
|
751
|
+
return await adapter.listSubmissionPage(
|
|
752
|
+
formId,
|
|
753
|
+
options2
|
|
754
|
+
);
|
|
755
|
+
},
|
|
750
756
|
async fetchPage(formId, options2) {
|
|
751
757
|
const page = await adapter.listSubmissionPage(formId, {
|
|
752
758
|
...options2?.pageSize === void 0 ? {} : { pageSize: options2.pageSize },
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormSubmission, BaseSubmissionMetadata, PagedSubmissionStorageAdapter, SubmissionPageQueryOptions, FormSubmissionValidationSource, FormSubmissionValidator, StrictFormSubmission, SaveSubmissionOptions, SubmissionSaveResult, SubmissionFilter, JsonValue, TextAnswerPageQueryOptions, TypedTextAnswerPage } from '@form-engine-ts/core';
|
|
1
|
+
import { FormSubmission, BaseSubmissionMetadata, PagedSubmissionStorageAdapter, TypedSubmissionPageQueryOptions, TypedSubmissionPage, SubmissionPageQueryOptions, FormSubmissionValidationSource, FormSubmissionValidator, StrictFormSubmission, SaveSubmissionOptions, SubmissionSaveResult, SubmissionFilter, JsonValue, TextAnswerPageQueryOptions, TypedTextAnswerPage } from '@form-engine-ts/core';
|
|
2
2
|
|
|
3
3
|
interface AzureTableListOptions {
|
|
4
4
|
readonly queryOptions?: {
|
|
@@ -121,6 +121,7 @@ interface AzureTableStorageOptions<T = FormSubmission> {
|
|
|
121
121
|
readonly schema?: FormSubmissionValidationSource;
|
|
122
122
|
}
|
|
123
123
|
interface AzureTableStorageAdapter<TMeta extends BaseSubmissionMetadata = BaseSubmissionMetadata> extends PagedSubmissionStorageAdapter {
|
|
124
|
+
readonly fetchSubmissionPage?: (formId: string, options?: TypedSubmissionPageQueryOptions<TMeta>) => Promise<TypedSubmissionPage<TMeta>>;
|
|
124
125
|
readonly fetchPage: (formId: string, options?: {
|
|
125
126
|
readonly pageSize?: number;
|
|
126
127
|
readonly fromSubmittedAt?: string;
|
|
@@ -154,6 +155,7 @@ type TypedAzureTableStorageAdapter<TMeta extends BaseSubmissionMetadata | undefi
|
|
|
154
155
|
readonly items: readonly FormSubmission<TMeta>[];
|
|
155
156
|
readonly nextCursor?: string;
|
|
156
157
|
}>;
|
|
158
|
+
readonly fetchSubmissionPage?: (formId: string, options?: TypedSubmissionPageQueryOptions<TMeta>) => Promise<TypedSubmissionPage<TMeta>>;
|
|
157
159
|
readonly listTextAnswerPage: (formId: string, fieldIdOrOptions?: string | TextAnswerPageQueryOptions, options?: TextAnswerPageQueryOptions) => Promise<TypedTextAnswerPage<TMeta>>;
|
|
158
160
|
};
|
|
159
161
|
interface AzureTextAnswerCursorPayload {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormSubmission, BaseSubmissionMetadata, PagedSubmissionStorageAdapter, SubmissionPageQueryOptions, FormSubmissionValidationSource, FormSubmissionValidator, StrictFormSubmission, SaveSubmissionOptions, SubmissionSaveResult, SubmissionFilter, JsonValue, TextAnswerPageQueryOptions, TypedTextAnswerPage } from '@form-engine-ts/core';
|
|
1
|
+
import { FormSubmission, BaseSubmissionMetadata, PagedSubmissionStorageAdapter, TypedSubmissionPageQueryOptions, TypedSubmissionPage, SubmissionPageQueryOptions, FormSubmissionValidationSource, FormSubmissionValidator, StrictFormSubmission, SaveSubmissionOptions, SubmissionSaveResult, SubmissionFilter, JsonValue, TextAnswerPageQueryOptions, TypedTextAnswerPage } from '@form-engine-ts/core';
|
|
2
2
|
|
|
3
3
|
interface AzureTableListOptions {
|
|
4
4
|
readonly queryOptions?: {
|
|
@@ -121,6 +121,7 @@ interface AzureTableStorageOptions<T = FormSubmission> {
|
|
|
121
121
|
readonly schema?: FormSubmissionValidationSource;
|
|
122
122
|
}
|
|
123
123
|
interface AzureTableStorageAdapter<TMeta extends BaseSubmissionMetadata = BaseSubmissionMetadata> extends PagedSubmissionStorageAdapter {
|
|
124
|
+
readonly fetchSubmissionPage?: (formId: string, options?: TypedSubmissionPageQueryOptions<TMeta>) => Promise<TypedSubmissionPage<TMeta>>;
|
|
124
125
|
readonly fetchPage: (formId: string, options?: {
|
|
125
126
|
readonly pageSize?: number;
|
|
126
127
|
readonly fromSubmittedAt?: string;
|
|
@@ -154,6 +155,7 @@ type TypedAzureTableStorageAdapter<TMeta extends BaseSubmissionMetadata | undefi
|
|
|
154
155
|
readonly items: readonly FormSubmission<TMeta>[];
|
|
155
156
|
readonly nextCursor?: string;
|
|
156
157
|
}>;
|
|
158
|
+
readonly fetchSubmissionPage?: (formId: string, options?: TypedSubmissionPageQueryOptions<TMeta>) => Promise<TypedSubmissionPage<TMeta>>;
|
|
157
159
|
readonly listTextAnswerPage: (formId: string, fieldIdOrOptions?: string | TextAnswerPageQueryOptions, options?: TextAnswerPageQueryOptions) => Promise<TypedTextAnswerPage<TMeta>>;
|
|
158
160
|
};
|
|
159
161
|
interface AzureTextAnswerCursorPayload {
|
package/dist/index.js
CHANGED
|
@@ -724,6 +724,12 @@ function createAzureTableStorage(options = {}) {
|
|
|
724
724
|
};
|
|
725
725
|
return {
|
|
726
726
|
...adapter,
|
|
727
|
+
async fetchSubmissionPage(formId, options2) {
|
|
728
|
+
return await adapter.listSubmissionPage(
|
|
729
|
+
formId,
|
|
730
|
+
options2
|
|
731
|
+
);
|
|
732
|
+
},
|
|
727
733
|
async fetchPage(formId, options2) {
|
|
728
734
|
const page = await adapter.listSubmissionPage(formId, {
|
|
729
735
|
...options2?.pageSize === void 0 ? {} : { pageSize: options2.pageSize },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@form-engine-ts/storage-azure-table",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.10.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"typescript"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@form-engine-ts/core": "6.
|
|
42
|
+
"@form-engine-ts/core": "6.10.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@azure/data-tables": "^13.3.2"
|