@wix/auto_sdk_online-programs_quizzes 1.0.19 → 1.0.20
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/build/cjs/index.d.ts +3 -13
- package/build/cjs/index.js +10 -70
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +26 -60
- package/build/cjs/index.typings.js +10 -62
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +27 -48
- package/build/cjs/meta.js +10 -57
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +3 -13
- package/build/es/index.mjs +9 -69
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +26 -60
- package/build/es/index.typings.mjs +9 -61
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +27 -48
- package/build/es/meta.mjs +9 -56
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -13
- package/build/internal/cjs/index.typings.d.ts +26 -60
- package/build/internal/cjs/meta.d.ts +27 -48
- package/build/internal/es/index.d.mts +3 -13
- package/build/internal/es/index.typings.d.mts +26 -60
- package/build/internal/es/meta.d.mts +27 -48
- package/package.json +2 -2
|
@@ -116,6 +116,20 @@ declare enum FileFormat {
|
|
|
116
116
|
}
|
|
117
117
|
/** @enumType */
|
|
118
118
|
type FileFormatWithLiterals = FileFormat | 'IMAGE' | 'VIDEO' | 'AUDIO' | 'DOCUMENT' | 'ARCHIVE';
|
|
119
|
+
declare enum FileUploadFormat {
|
|
120
|
+
/** Image files. */
|
|
121
|
+
IMAGE = "IMAGE",
|
|
122
|
+
/** Video files. */
|
|
123
|
+
VIDEO = "VIDEO",
|
|
124
|
+
/** Audio files. */
|
|
125
|
+
AUDIO = "AUDIO",
|
|
126
|
+
/** Document files. */
|
|
127
|
+
DOCUMENT = "DOCUMENT",
|
|
128
|
+
/** Archive files. */
|
|
129
|
+
ARCHIVE = "ARCHIVE"
|
|
130
|
+
}
|
|
131
|
+
/** @enumType */
|
|
132
|
+
type FileUploadFormatWithLiterals = FileUploadFormat | 'IMAGE' | 'VIDEO' | 'AUDIO' | 'DOCUMENT' | 'ARCHIVE';
|
|
119
133
|
interface NumericField {
|
|
120
134
|
/** Right answer */
|
|
121
135
|
rightAnswer?: number | null;
|
|
@@ -177,11 +191,20 @@ interface FileUploadField {
|
|
|
177
191
|
*/
|
|
178
192
|
itemsLimit?: number | null;
|
|
179
193
|
/**
|
|
180
|
-
*
|
|
181
|
-
* @minSize 1
|
|
194
|
+
* Deprecated. Use `file_upload_formats` instead.
|
|
182
195
|
* @maxSize 5
|
|
196
|
+
* @deprecated Deprecated. Use `file_upload_formats` instead.
|
|
197
|
+
* @replacedBy file_upload_formats
|
|
198
|
+
* @targetRemovalDate 2027-09-03
|
|
183
199
|
*/
|
|
184
200
|
fileFormats?: FileFormatWithLiterals[];
|
|
201
|
+
/**
|
|
202
|
+
* Formats of files that can be uploaded.
|
|
203
|
+
*
|
|
204
|
+
* Specify at least one format in either this field or the deprecated `file_formats` field. If both fields are provided, they must contain the same formats. `UNKNOWN_FILE_UPLOAD_FORMAT` isn't supported as a format selection. Responses contain both fields for backward compatibility.
|
|
205
|
+
* @maxSize 5
|
|
206
|
+
*/
|
|
207
|
+
fileUploadFormats?: FileUploadFormatWithLiterals[];
|
|
185
208
|
}
|
|
186
209
|
interface CreateQuizRequest {
|
|
187
210
|
/** Quiz to created */
|
|
@@ -330,49 +353,6 @@ interface BulkDeleteQuizzesResponseBulkQuizResult {
|
|
|
330
353
|
/** Metadata for the individual delete operation. */
|
|
331
354
|
itemMetadata?: ItemMetadata;
|
|
332
355
|
}
|
|
333
|
-
interface BulkDeleteQuizRequest {
|
|
334
|
-
/**
|
|
335
|
-
* IDs of quizzes to delete
|
|
336
|
-
* @minSize 1
|
|
337
|
-
* @maxSize 100
|
|
338
|
-
* @format GUID
|
|
339
|
-
*/
|
|
340
|
-
quizIds: string[];
|
|
341
|
-
}
|
|
342
|
-
interface BulkDeleteQuizResponse {
|
|
343
|
-
/**
|
|
344
|
-
* Results of the bulk delete operation, including deleted quizzes and metadata.
|
|
345
|
-
* @minSize 1
|
|
346
|
-
* @maxSize 100
|
|
347
|
-
*/
|
|
348
|
-
results?: V1BulkQuizResult[];
|
|
349
|
-
/** Metadata about the bulk operation. */
|
|
350
|
-
bulkActionMetadata?: CommonBulkActionMetadata;
|
|
351
|
-
}
|
|
352
|
-
interface V1BulkQuizResult {
|
|
353
|
-
/** Metadata for the processed quiz. */
|
|
354
|
-
itemMetadata?: CommonItemMetadata;
|
|
355
|
-
/** Processed quiz. Empty when `return_entity` is `false`. */
|
|
356
|
-
item?: Quiz;
|
|
357
|
-
}
|
|
358
|
-
interface CommonItemMetadata {
|
|
359
|
-
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
360
|
-
_id?: string | null;
|
|
361
|
-
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
362
|
-
originalIndex?: number;
|
|
363
|
-
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
364
|
-
success?: boolean;
|
|
365
|
-
/** Details about the error in case of failure. */
|
|
366
|
-
error?: ApplicationError;
|
|
367
|
-
}
|
|
368
|
-
interface CommonBulkActionMetadata {
|
|
369
|
-
/** Number of items that were successfully processed. */
|
|
370
|
-
totalSuccesses?: number;
|
|
371
|
-
/** Number of items that couldn't be processed. */
|
|
372
|
-
totalFailures?: number;
|
|
373
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
374
|
-
undetailedFailures?: number;
|
|
375
|
-
}
|
|
376
356
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
377
357
|
createdEvent?: EntityCreatedEvent;
|
|
378
358
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -613,19 +593,5 @@ declare function deleteQuiz(quizId: string): Promise<NonNullablePaths<DeleteQuiz
|
|
|
613
593
|
* @fqn wix.achievements.quizzes.v1.QuizService.BulkDeleteQuizzes
|
|
614
594
|
*/
|
|
615
595
|
declare function bulkDeleteQuizzes(quizIds: string[]): Promise<NonNullablePaths<BulkDeleteQuizzesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
616
|
-
/**
|
|
617
|
-
* Deprecated. Use `BulkDeleteQuizzes`.
|
|
618
|
-
* @param quizIds - IDs of quizzes to delete
|
|
619
|
-
* @public
|
|
620
|
-
* @documentationMaturity preview
|
|
621
|
-
* @requiredField quizIds
|
|
622
|
-
* @permissionId QUIZZES.DELETE_QUIZ
|
|
623
|
-
* @applicableIdentity APP
|
|
624
|
-
* @fqn wix.achievements.quizzes.v1.QuizService.BulkDeleteQuiz
|
|
625
|
-
* @deprecated
|
|
626
|
-
* @replacedBy wix.achievements.quizzes.v1.QuizService.BulkDeleteQuizzes
|
|
627
|
-
* @targetRemovalDate 2027-09-02
|
|
628
|
-
*/
|
|
629
|
-
declare function bulkDeleteQuiz(quizIds: string[]): Promise<NonNullablePaths<BulkDeleteQuizResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
630
596
|
|
|
631
|
-
export { type AccountInfo, type ActionEvent, type ApplicationError, type BulkActionMetadata, type BulkCloneQuizzesRequest, type BulkCloneQuizzesResponse, type BulkCreateQuizzesOptions, type BulkCreateQuizzesRequest, type BulkCreateQuizzesResponse, type BulkCreateQuizzesResponseBulkQuizResult, type
|
|
597
|
+
export { type AccountInfo, type ActionEvent, type ApplicationError, type BulkActionMetadata, type BulkCloneQuizzesRequest, type BulkCloneQuizzesResponse, type BulkCreateQuizzesOptions, type BulkCreateQuizzesRequest, type BulkCreateQuizzesResponse, type BulkCreateQuizzesResponseBulkQuizResult, type BulkDeleteQuizzesRequest, type BulkDeleteQuizzesResponse, type BulkDeleteQuizzesResponseBulkQuizResult, type BulkQuizResult, type CloneQuizRequest, type CloneQuizResponse, type CreateQuizRequest, type CreateQuizResponse, type DeleteQuizRequest, type DeleteQuizResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, FileFormat, type FileFormatWithLiterals, type FileUploadField, FileUploadFormat, type FileUploadFormatWithLiterals, type GetQuizRequest, type GetQuizResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type LongTextField, type MessageEnvelope, type MultiChoiceField, type NumericField, type Quiz, type QuizField, type QuizFieldFieldTypeOneOf, type QuizSettings, type RestoreInfo, type ShortTextField, type SingleChoiceField, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCreateQuizzes, bulkDeleteQuizzes, cloneQuiz, createQuiz, deleteQuiz, getQuiz };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateQuizRequest as CreateQuizRequest$1, CreateQuizResponse as CreateQuizResponse$1, CloneQuizRequest as CloneQuizRequest$1, CloneQuizResponse as CloneQuizResponse$1, BulkCreateQuizzesRequest as BulkCreateQuizzesRequest$1, BulkCreateQuizzesResponse as BulkCreateQuizzesResponse$1, GetQuizRequest as GetQuizRequest$1, GetQuizResponse as GetQuizResponse$1, DeleteQuizRequest as DeleteQuizRequest$1, DeleteQuizResponse as DeleteQuizResponse$1, BulkDeleteQuizzesRequest as BulkDeleteQuizzesRequest$1, BulkDeleteQuizzesResponse as BulkDeleteQuizzesResponse$1
|
|
1
|
+
import { CreateQuizRequest as CreateQuizRequest$1, CreateQuizResponse as CreateQuizResponse$1, CloneQuizRequest as CloneQuizRequest$1, CloneQuizResponse as CloneQuizResponse$1, BulkCreateQuizzesRequest as BulkCreateQuizzesRequest$1, BulkCreateQuizzesResponse as BulkCreateQuizzesResponse$1, GetQuizRequest as GetQuizRequest$1, GetQuizResponse as GetQuizResponse$1, DeleteQuizRequest as DeleteQuizRequest$1, DeleteQuizResponse as DeleteQuizResponse$1, BulkDeleteQuizzesRequest as BulkDeleteQuizzesRequest$1, BulkDeleteQuizzesResponse as BulkDeleteQuizzesResponse$1 } from './index.typings.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Quiz {
|
|
@@ -117,6 +117,20 @@ declare enum FileFormat {
|
|
|
117
117
|
}
|
|
118
118
|
/** @enumType */
|
|
119
119
|
type FileFormatWithLiterals = FileFormat | 'IMAGE' | 'VIDEO' | 'AUDIO' | 'DOCUMENT' | 'ARCHIVE';
|
|
120
|
+
declare enum FileUploadFormat {
|
|
121
|
+
/** Image files. */
|
|
122
|
+
IMAGE = "IMAGE",
|
|
123
|
+
/** Video files. */
|
|
124
|
+
VIDEO = "VIDEO",
|
|
125
|
+
/** Audio files. */
|
|
126
|
+
AUDIO = "AUDIO",
|
|
127
|
+
/** Document files. */
|
|
128
|
+
DOCUMENT = "DOCUMENT",
|
|
129
|
+
/** Archive files. */
|
|
130
|
+
ARCHIVE = "ARCHIVE"
|
|
131
|
+
}
|
|
132
|
+
/** @enumType */
|
|
133
|
+
type FileUploadFormatWithLiterals = FileUploadFormat | 'IMAGE' | 'VIDEO' | 'AUDIO' | 'DOCUMENT' | 'ARCHIVE';
|
|
120
134
|
interface NumericField {
|
|
121
135
|
/** Right answer */
|
|
122
136
|
rightAnswer?: number | null;
|
|
@@ -178,11 +192,20 @@ interface FileUploadField {
|
|
|
178
192
|
*/
|
|
179
193
|
itemsLimit?: number | null;
|
|
180
194
|
/**
|
|
181
|
-
*
|
|
182
|
-
* @minSize 1
|
|
195
|
+
* Deprecated. Use `file_upload_formats` instead.
|
|
183
196
|
* @maxSize 5
|
|
197
|
+
* @deprecated Deprecated. Use `file_upload_formats` instead.
|
|
198
|
+
* @replacedBy file_upload_formats
|
|
199
|
+
* @targetRemovalDate 2027-09-03
|
|
184
200
|
*/
|
|
185
201
|
fileFormats?: FileFormatWithLiterals[];
|
|
202
|
+
/**
|
|
203
|
+
* Formats of files that can be uploaded.
|
|
204
|
+
*
|
|
205
|
+
* Specify at least one format in either this field or the deprecated `file_formats` field. If both fields are provided, they must contain the same formats. `UNKNOWN_FILE_UPLOAD_FORMAT` isn't supported as a format selection. Responses contain both fields for backward compatibility.
|
|
206
|
+
* @maxSize 5
|
|
207
|
+
*/
|
|
208
|
+
fileUploadFormats?: FileUploadFormatWithLiterals[];
|
|
186
209
|
}
|
|
187
210
|
interface CreateQuizRequest {
|
|
188
211
|
/** Quiz to created */
|
|
@@ -331,49 +354,6 @@ interface BulkDeleteQuizzesResponseBulkQuizResult {
|
|
|
331
354
|
/** Metadata for the individual delete operation. */
|
|
332
355
|
itemMetadata?: ItemMetadata;
|
|
333
356
|
}
|
|
334
|
-
interface BulkDeleteQuizRequest {
|
|
335
|
-
/**
|
|
336
|
-
* IDs of quizzes to delete
|
|
337
|
-
* @minSize 1
|
|
338
|
-
* @maxSize 100
|
|
339
|
-
* @format GUID
|
|
340
|
-
*/
|
|
341
|
-
quizIds: string[];
|
|
342
|
-
}
|
|
343
|
-
interface BulkDeleteQuizResponse {
|
|
344
|
-
/**
|
|
345
|
-
* Results of the bulk delete operation, including deleted quizzes and metadata.
|
|
346
|
-
* @minSize 1
|
|
347
|
-
* @maxSize 100
|
|
348
|
-
*/
|
|
349
|
-
results?: V1BulkQuizResult[];
|
|
350
|
-
/** Metadata about the bulk operation. */
|
|
351
|
-
bulkActionMetadata?: CommonBulkActionMetadata;
|
|
352
|
-
}
|
|
353
|
-
interface V1BulkQuizResult {
|
|
354
|
-
/** Metadata for the processed quiz. */
|
|
355
|
-
itemMetadata?: CommonItemMetadata;
|
|
356
|
-
/** Processed quiz. Empty when `return_entity` is `false`. */
|
|
357
|
-
item?: Quiz;
|
|
358
|
-
}
|
|
359
|
-
interface CommonItemMetadata {
|
|
360
|
-
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
361
|
-
id?: string | null;
|
|
362
|
-
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
363
|
-
originalIndex?: number;
|
|
364
|
-
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
365
|
-
success?: boolean;
|
|
366
|
-
/** Details about the error in case of failure. */
|
|
367
|
-
error?: ApplicationError;
|
|
368
|
-
}
|
|
369
|
-
interface CommonBulkActionMetadata {
|
|
370
|
-
/** Number of items that were successfully processed. */
|
|
371
|
-
totalSuccesses?: number;
|
|
372
|
-
/** Number of items that couldn't be processed. */
|
|
373
|
-
totalFailures?: number;
|
|
374
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
375
|
-
undetailedFailures?: number;
|
|
376
|
-
}
|
|
377
357
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
378
358
|
createdEvent?: EntityCreatedEvent;
|
|
379
359
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -594,6 +574,5 @@ declare function deleteQuiz(): __PublicMethodMetaInfo<'DELETE', {
|
|
|
594
574
|
quizId: string;
|
|
595
575
|
}, DeleteQuizRequest$1, DeleteQuizRequest, DeleteQuizResponse$1, DeleteQuizResponse>;
|
|
596
576
|
declare function bulkDeleteQuizzes(): __PublicMethodMetaInfo<'POST', {}, BulkDeleteQuizzesRequest$1, BulkDeleteQuizzesRequest, BulkDeleteQuizzesResponse$1, BulkDeleteQuizzesResponse>;
|
|
597
|
-
declare function bulkDeleteQuiz(): __PublicMethodMetaInfo<'POST', {}, BulkDeleteQuizRequest$1, BulkDeleteQuizRequest, BulkDeleteQuizResponse$1, BulkDeleteQuizResponse>;
|
|
598
577
|
|
|
599
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCloneQuizzesRequest as BulkCloneQuizzesRequestOriginal, type BulkCloneQuizzesResponse as BulkCloneQuizzesResponseOriginal, type BulkCreateQuizzesRequest as BulkCreateQuizzesRequestOriginal, type BulkCreateQuizzesResponseBulkQuizResult as BulkCreateQuizzesResponseBulkQuizResultOriginal, type BulkCreateQuizzesResponse as BulkCreateQuizzesResponseOriginal, type
|
|
578
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCloneQuizzesRequest as BulkCloneQuizzesRequestOriginal, type BulkCloneQuizzesResponse as BulkCloneQuizzesResponseOriginal, type BulkCreateQuizzesRequest as BulkCreateQuizzesRequestOriginal, type BulkCreateQuizzesResponseBulkQuizResult as BulkCreateQuizzesResponseBulkQuizResultOriginal, type BulkCreateQuizzesResponse as BulkCreateQuizzesResponseOriginal, type BulkDeleteQuizzesRequest as BulkDeleteQuizzesRequestOriginal, type BulkDeleteQuizzesResponseBulkQuizResult as BulkDeleteQuizzesResponseBulkQuizResultOriginal, type BulkDeleteQuizzesResponse as BulkDeleteQuizzesResponseOriginal, type BulkQuizResult as BulkQuizResultOriginal, type CloneQuizRequest as CloneQuizRequestOriginal, type CloneQuizResponse as CloneQuizResponseOriginal, type CreateQuizRequest as CreateQuizRequestOriginal, type CreateQuizResponse as CreateQuizResponseOriginal, type DeleteQuizRequest as DeleteQuizRequestOriginal, type DeleteQuizResponse as DeleteQuizResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, FileFormat as FileFormatOriginal, type FileFormatWithLiterals as FileFormatWithLiteralsOriginal, type FileUploadField as FileUploadFieldOriginal, FileUploadFormat as FileUploadFormatOriginal, type FileUploadFormatWithLiterals as FileUploadFormatWithLiteralsOriginal, type GetQuizRequest as GetQuizRequestOriginal, type GetQuizResponse as GetQuizResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, type LongTextField as LongTextFieldOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MultiChoiceField as MultiChoiceFieldOriginal, type NumericField as NumericFieldOriginal, type QuizFieldFieldTypeOneOf as QuizFieldFieldTypeOneOfOriginal, type QuizField as QuizFieldOriginal, type Quiz as QuizOriginal, type QuizSettings as QuizSettingsOriginal, type RestoreInfo as RestoreInfoOriginal, type ShortTextField as ShortTextFieldOriginal, type SingleChoiceField as SingleChoiceFieldOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateQuizzes, bulkDeleteQuizzes, cloneQuiz, createQuiz, deleteQuiz, getQuiz };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_online-programs_quizzes",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": "wix.achievements.quizzes.v1.quiz"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "56d044f25fa0fd6379bcad02b7ac93a911ed6533cfd4abb575f15c18"
|
|
54
54
|
}
|