@wix/auto_sdk_online-programs_quizzes 1.0.28 → 1.0.30

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.
@@ -7,7 +7,9 @@ interface CreateQuizSignature {
7
7
  /**
8
8
  * Creates a detached quiz definition with at least one question.
9
9
  *
10
- * To use the quiz in an Online Program, pass the returned quiz ID as `step.quizOptions.id` when calling the Steps API's `CreateStep` or `BulkCreateSteps` method.
10
+ * To use the quiz in an Online Program, specify the returned quiz ID as `step.quizOptions.id` when calling the Steps API's [Create Step](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/create-step) or [Bulk Create Steps](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/bulk-create-steps) method.
11
+ *
12
+ * To create multiple quiz definitions in a single API call, call [Bulk Create Quizzes](https://dev.wix.com/docs/api-reference/business-management/online-programs/quizzes/bulk-create-quizzes).
11
13
  * @param - Quiz definition to create. Generate a stable unique GUID for every `quiz.fields.id` value.
12
14
  * @returns Created quiz definition. Assign its `id` to `step.quizOptions.id` to create an Online Programs quiz step.
13
15
  */
@@ -32,7 +34,9 @@ interface CloneQuizSignature {
32
34
  declare function bulkCreateQuizzes$1(httpClient: HttpClient): BulkCreateQuizzesSignature;
33
35
  interface BulkCreateQuizzesSignature {
34
36
  /**
35
- * Creates up to 30 detached quiz definitions in a single API call. Each definition must contain at least one question.
37
+ * Creates up to 30 detached quiz definitions in a single API call.
38
+ *
39
+ * Each definition must contain at least one question.
36
40
  *
37
41
  * Quiz IDs, revisions, and creation and update timestamps are assigned by the server. Client-supplied values for these read-only fields are ignored. Question IDs (`quizzes.fields.id`) must be supplied by the caller.
38
42
  *
@@ -40,7 +44,9 @@ interface BulkCreateQuizzesSignature {
40
44
  *
41
45
  * Individual item failures don't fail the bulk request. For each failed item, `results.itemMetadata.error` contains the original application error from the Wix Forms operation.
42
46
  *
43
- * To use the quizzes in an Online Program, pass the returned quiz IDs as `step.quizOptions.id` values when calling the Steps API's `CreateStep` or `BulkCreateSteps` method.
47
+ * To use the quizzes in an Online Program, specify the returned quiz IDs as `step.quizOptions.id` values when calling the Steps API's [Create Step](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/create-step) or [Bulk Create Steps](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/bulk-create-steps) method.
48
+ *
49
+ * To create a single quiz definition, call [Create Quiz](https://dev.wix.com/docs/api-reference/business-management/online-programs/quizzes/create-quiz).
44
50
  * @param - Quiz definitions to create.
45
51
  */
46
52
  (quizzes: NonNullablePaths<Quiz, `fields` | `fields.${number}._id` | `fields.${number}.multiChoice.options` | `fields.${number}.question` | `fields.${number}.singleChoice.options` | `fields.${number}.target`, 3>[], options?: BulkCreateQuizzesOptions): Promise<NonNullablePaths<BulkCreateQuizzesResponse, `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`, 4> & {
@@ -50,7 +56,9 @@ interface BulkCreateQuizzesSignature {
50
56
  declare function getQuiz$1(httpClient: HttpClient): GetQuizSignature;
51
57
  interface GetQuizSignature {
52
58
  /**
53
- * Retrieves a quiz definition by ID. A stored definition whose questions have all been deleted can be returned with no active questions.
59
+ * Retrieves a quiz definition by ID.
60
+ *
61
+ * A legacy stored definition whose questions have all been deleted can be returned with an empty fields list. The minimum question requirement for creation and cloning doesn't guarantee a nonempty result from this method.
54
62
  *
55
63
  * To discover a quiz ID, query or retrieve its quiz-type Online Programs step and read `step.quizOptions.id`.
56
64
  * @param - Quiz ID, available from `step.quizOptions.id` on a quiz-type Online Programs step.
@@ -67,6 +75,8 @@ interface DeleteQuizSignature {
67
75
  *
68
76
  * This operation doesn't check whether Online Programs steps reference the quiz. Coordinate deletion with the Steps API and remove known step references first. Otherwise, steps can retain dangling quiz references.
69
77
  *
78
+ * To delete multiple quiz definitions in a single API call, call [Bulk Delete Quizzes](https://dev.wix.com/docs/api-reference/business-management/online-programs/quizzes/bulk-delete-quizzes).
79
+ *
70
80
  * NOT-PRECEDENT: This caller-responsibility behavior is retained as a production v1 compatibility exception. New delete APIs should provide an authoritative server-side reference safeguard.
71
81
  * @param - ID of the quiz definition to permanently delete.
72
82
  */
@@ -83,6 +93,8 @@ interface BulkDeleteQuizzesSignature {
83
93
  *
84
94
  * This operation doesn't check whether Online Programs steps reference the quizzes. Coordinate deletion with the Steps API and remove known step references first. Otherwise, steps can retain dangling quiz references.
85
95
  *
96
+ * To delete a single quiz definition, call [Delete Quiz](https://dev.wix.com/docs/api-reference/business-management/online-programs/quizzes/delete-quiz).
97
+ *
86
98
  * NOT-PRECEDENT: This caller-responsibility behavior is retained as a production v1 compatibility exception. New bulk-delete APIs should provide an authoritative server-side reference safeguard.
87
99
  * @param - IDs of the quiz definitions to permanently delete. Coordinate deletion with the Steps API and remove known step references first.
88
100
  */
@@ -34,9 +34,9 @@ interface Quiz {
34
34
  */
35
35
  _updatedDate?: Date | null;
36
36
  /**
37
- * Active questions in the quiz. Each `QuizField` defines one question and its answer input. Creating a quiz requires at least one question. An existing definition can have no active questions after its questions are deleted through another supported workflow; retrieving that definition doesn't fail solely because this list is empty.
37
+ * Active questions in the quiz. Each `QuizField` defines one question and its answer input. Creating or cloning a quiz requires at least one active question. GetQuiz can return a legacy stored definition with an empty list; don't assume a retrieved definition has active questions.
38
38
  *
39
- * New submissions use the current questions; stored submissions retain their recorded answer evaluations. Reading an empty definition doesn't imply that it can be used to create a new quiz or accept submissions.
39
+ * New submissions use the current questions; stored submissions retain their recorded answer evaluations.
40
40
  * @minSize 1
41
41
  * @maxSize 200
42
42
  */
@@ -44,7 +44,7 @@ interface Quiz {
44
44
  }
45
45
  interface QuizSettings {
46
46
  /**
47
- * Minimum unweighted integer percentage required to pass, from `0` through `100`. The earned grade is calculated as `floor((correct answer count / submitted answer count) * 100)`; question `score` values don't weight it. Non-evaluable answers count as correct. If omitted, the submission has no earned or passing grade and its status is COMPLETED, even if an individual evaluated answer is incorrect.
47
+ * Minimum unweighted integer percentage required to pass. The earned grade is calculated as `floor((correct answer count / submitted answer count) * 100)`; question `score` values don't weight it. Non-evaluable answers count as correct. If omitted, the submission has no earned or passing grade and its status is COMPLETED, even if an individual evaluated answer is incorrect.
48
48
  * @max 100
49
49
  */
50
50
  passingGrade?: number | null;
@@ -197,13 +197,17 @@ interface MultiChoiceField {
197
197
  }
198
198
  interface FileUploadField {
199
199
  /**
200
- * Text displayed on the upload button. Default: `Upload`.
200
+ * Text displayed on the upload button.
201
+ *
202
+ * Default: `Upload`.
201
203
  * @minLength 1
202
204
  * @maxLength 100
203
205
  */
204
206
  buttonText?: string | null;
205
207
  /**
206
- * Maximum number of files a participant can upload for this question, from `1` through `10`. Default: `10`.
208
+ * Maximum number of files a participant can upload for this question.
209
+ *
210
+ * Default: `10`.
207
211
  * @min 1
208
212
  * @max 10
209
213
  */
@@ -565,7 +569,9 @@ type DeleteQuizApplicationErrors = {
565
569
  /**
566
570
  * Creates a detached quiz definition with at least one question.
567
571
  *
568
- * To use the quiz in an Online Program, pass the returned quiz ID as `step.quizOptions.id` when calling the Steps API's `CreateStep` or `BulkCreateSteps` method.
572
+ * To use the quiz in an Online Program, specify the returned quiz ID as `step.quizOptions.id` when calling the Steps API's [Create Step](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/create-step) or [Bulk Create Steps](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/bulk-create-steps) method.
573
+ *
574
+ * To create multiple quiz definitions in a single API call, call [Bulk Create Quizzes](https://dev.wix.com/docs/api-reference/business-management/online-programs/quizzes/bulk-create-quizzes).
569
575
  * @param quiz - Quiz definition to create. Generate a stable unique GUID for every `quiz.fields.id` value.
570
576
  * @public
571
577
  * @requiredField quiz
@@ -601,7 +607,9 @@ declare function cloneQuiz(quizId: string): Promise<NonNullablePaths<CloneQuizRe
601
607
  __applicationErrorsType?: CloneQuizApplicationErrors;
602
608
  }>;
603
609
  /**
604
- * Creates up to 30 detached quiz definitions in a single API call. Each definition must contain at least one question.
610
+ * Creates up to 30 detached quiz definitions in a single API call.
611
+ *
612
+ * Each definition must contain at least one question.
605
613
  *
606
614
  * Quiz IDs, revisions, and creation and update timestamps are assigned by the server. Client-supplied values for these read-only fields are ignored. Question IDs (`quizzes.fields.id`) must be supplied by the caller.
607
615
  *
@@ -609,7 +617,9 @@ declare function cloneQuiz(quizId: string): Promise<NonNullablePaths<CloneQuizRe
609
617
  *
610
618
  * Individual item failures don't fail the bulk request. For each failed item, `results.itemMetadata.error` contains the original application error from the Wix Forms operation.
611
619
  *
612
- * To use the quizzes in an Online Program, pass the returned quiz IDs as `step.quizOptions.id` values when calling the Steps API's `CreateStep` or `BulkCreateSteps` method.
620
+ * To use the quizzes in an Online Program, specify the returned quiz IDs as `step.quizOptions.id` values when calling the Steps API's [Create Step](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/create-step) or [Bulk Create Steps](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/bulk-create-steps) method.
621
+ *
622
+ * To create a single quiz definition, call [Create Quiz](https://dev.wix.com/docs/api-reference/business-management/online-programs/quizzes/create-quiz).
613
623
  * @param quizzes - Quiz definitions to create.
614
624
  * @public
615
625
  * @documentationMaturity preview
@@ -637,7 +647,9 @@ interface BulkCreateQuizzesOptions {
637
647
  returnEntity?: boolean;
638
648
  }
639
649
  /**
640
- * Retrieves a quiz definition by ID. A stored definition whose questions have all been deleted can be returned with no active questions.
650
+ * Retrieves a quiz definition by ID.
651
+ *
652
+ * A legacy stored definition whose questions have all been deleted can be returned with an empty fields list. The minimum question requirement for creation and cloning doesn't guarantee a nonempty result from this method.
641
653
  *
642
654
  * To discover a quiz ID, query or retrieve its quiz-type Online Programs step and read `step.quizOptions.id`.
643
655
  * @param quizId - Quiz ID, available from `step.quizOptions.id` on a quiz-type Online Programs step.
@@ -656,6 +668,8 @@ declare function getQuiz(quizId: string): Promise<NonNullablePaths<Quiz, `fields
656
668
  *
657
669
  * This operation doesn't check whether Online Programs steps reference the quiz. Coordinate deletion with the Steps API and remove known step references first. Otherwise, steps can retain dangling quiz references.
658
670
  *
671
+ * To delete multiple quiz definitions in a single API call, call [Bulk Delete Quizzes](https://dev.wix.com/docs/api-reference/business-management/online-programs/quizzes/bulk-delete-quizzes).
672
+ *
659
673
  * NOT-PRECEDENT: This caller-responsibility behavior is retained as a production v1 compatibility exception. New delete APIs should provide an authoritative server-side reference safeguard.
660
674
  * @param quizId - ID of the quiz definition to permanently delete.
661
675
  * @public
@@ -674,6 +688,8 @@ declare function deleteQuiz(quizId: string): Promise<NonNullablePaths<DeleteQuiz
674
688
  *
675
689
  * This operation doesn't check whether Online Programs steps reference the quizzes. Coordinate deletion with the Steps API and remove known step references first. Otherwise, steps can retain dangling quiz references.
676
690
  *
691
+ * To delete a single quiz definition, call [Delete Quiz](https://dev.wix.com/docs/api-reference/business-management/online-programs/quizzes/delete-quiz).
692
+ *
677
693
  * NOT-PRECEDENT: This caller-responsibility behavior is retained as a production v1 compatibility exception. New bulk-delete APIs should provide an authoritative server-side reference safeguard.
678
694
  * @param quizIds - IDs of the quiz definitions to permanently delete. Coordinate deletion with the Steps API and remove known step references first.
679
695
  * @public
@@ -35,9 +35,9 @@ interface Quiz {
35
35
  */
36
36
  updatedDate?: Date | null;
37
37
  /**
38
- * Active questions in the quiz. Each `QuizField` defines one question and its answer input. Creating a quiz requires at least one question. An existing definition can have no active questions after its questions are deleted through another supported workflow; retrieving that definition doesn't fail solely because this list is empty.
38
+ * Active questions in the quiz. Each `QuizField` defines one question and its answer input. Creating or cloning a quiz requires at least one active question. GetQuiz can return a legacy stored definition with an empty list; don't assume a retrieved definition has active questions.
39
39
  *
40
- * New submissions use the current questions; stored submissions retain their recorded answer evaluations. Reading an empty definition doesn't imply that it can be used to create a new quiz or accept submissions.
40
+ * New submissions use the current questions; stored submissions retain their recorded answer evaluations.
41
41
  * @minSize 1
42
42
  * @maxSize 200
43
43
  */
@@ -45,7 +45,7 @@ interface Quiz {
45
45
  }
46
46
  interface QuizSettings {
47
47
  /**
48
- * Minimum unweighted integer percentage required to pass, from `0` through `100`. The earned grade is calculated as `floor((correct answer count / submitted answer count) * 100)`; question `score` values don't weight it. Non-evaluable answers count as correct. If omitted, the submission has no earned or passing grade and its status is COMPLETED, even if an individual evaluated answer is incorrect.
48
+ * Minimum unweighted integer percentage required to pass. The earned grade is calculated as `floor((correct answer count / submitted answer count) * 100)`; question `score` values don't weight it. Non-evaluable answers count as correct. If omitted, the submission has no earned or passing grade and its status is COMPLETED, even if an individual evaluated answer is incorrect.
49
49
  * @max 100
50
50
  */
51
51
  passingGrade?: number | null;
@@ -198,13 +198,17 @@ interface MultiChoiceField {
198
198
  }
199
199
  interface FileUploadField {
200
200
  /**
201
- * Text displayed on the upload button. Default: `Upload`.
201
+ * Text displayed on the upload button.
202
+ *
203
+ * Default: `Upload`.
202
204
  * @minLength 1
203
205
  * @maxLength 100
204
206
  */
205
207
  buttonText?: string | null;
206
208
  /**
207
- * Maximum number of files a participant can upload for this question, from `1` through `10`. Default: `10`.
209
+ * Maximum number of files a participant can upload for this question.
210
+ *
211
+ * Default: `10`.
208
212
  * @min 1
209
213
  * @max 10
210
214
  */
@@ -7,7 +7,9 @@ interface CreateQuizSignature {
7
7
  /**
8
8
  * Creates a detached quiz definition with at least one question.
9
9
  *
10
- * To use the quiz in an Online Program, pass the returned quiz ID as `step.quizOptions.id` when calling the Steps API's `CreateStep` or `BulkCreateSteps` method.
10
+ * To use the quiz in an Online Program, specify the returned quiz ID as `step.quizOptions.id` when calling the Steps API's [Create Step](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/create-step) or [Bulk Create Steps](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/bulk-create-steps) method.
11
+ *
12
+ * To create multiple quiz definitions in a single API call, call [Bulk Create Quizzes](https://dev.wix.com/docs/api-reference/business-management/online-programs/quizzes/bulk-create-quizzes).
11
13
  * @param - Quiz definition to create. Generate a stable unique GUID for every `quiz.fields.id` value.
12
14
  * @returns Created quiz definition. Assign its `id` to `step.quizOptions.id` to create an Online Programs quiz step.
13
15
  */
@@ -32,7 +34,9 @@ interface CloneQuizSignature {
32
34
  declare function bulkCreateQuizzes$1(httpClient: HttpClient): BulkCreateQuizzesSignature;
33
35
  interface BulkCreateQuizzesSignature {
34
36
  /**
35
- * Creates up to 30 detached quiz definitions in a single API call. Each definition must contain at least one question.
37
+ * Creates up to 30 detached quiz definitions in a single API call.
38
+ *
39
+ * Each definition must contain at least one question.
36
40
  *
37
41
  * Quiz IDs, revisions, and creation and update timestamps are assigned by the server. Client-supplied values for these read-only fields are ignored. Question IDs (`quizzes.fields.id`) must be supplied by the caller.
38
42
  *
@@ -40,7 +44,9 @@ interface BulkCreateQuizzesSignature {
40
44
  *
41
45
  * Individual item failures don't fail the bulk request. For each failed item, `results.itemMetadata.error` contains the original application error from the Wix Forms operation.
42
46
  *
43
- * To use the quizzes in an Online Program, pass the returned quiz IDs as `step.quizOptions.id` values when calling the Steps API's `CreateStep` or `BulkCreateSteps` method.
47
+ * To use the quizzes in an Online Program, specify the returned quiz IDs as `step.quizOptions.id` values when calling the Steps API's [Create Step](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/create-step) or [Bulk Create Steps](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/bulk-create-steps) method.
48
+ *
49
+ * To create a single quiz definition, call [Create Quiz](https://dev.wix.com/docs/api-reference/business-management/online-programs/quizzes/create-quiz).
44
50
  * @param - Quiz definitions to create.
45
51
  */
46
52
  (quizzes: NonNullablePaths<Quiz, `fields` | `fields.${number}._id` | `fields.${number}.multiChoice.options` | `fields.${number}.question` | `fields.${number}.singleChoice.options` | `fields.${number}.target`, 3>[], options?: BulkCreateQuizzesOptions): Promise<NonNullablePaths<BulkCreateQuizzesResponse, `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`, 4> & {
@@ -50,7 +56,9 @@ interface BulkCreateQuizzesSignature {
50
56
  declare function getQuiz$1(httpClient: HttpClient): GetQuizSignature;
51
57
  interface GetQuizSignature {
52
58
  /**
53
- * Retrieves a quiz definition by ID. A stored definition whose questions have all been deleted can be returned with no active questions.
59
+ * Retrieves a quiz definition by ID.
60
+ *
61
+ * A legacy stored definition whose questions have all been deleted can be returned with an empty fields list. The minimum question requirement for creation and cloning doesn't guarantee a nonempty result from this method.
54
62
  *
55
63
  * To discover a quiz ID, query or retrieve its quiz-type Online Programs step and read `step.quizOptions.id`.
56
64
  * @param - Quiz ID, available from `step.quizOptions.id` on a quiz-type Online Programs step.
@@ -67,6 +75,8 @@ interface DeleteQuizSignature {
67
75
  *
68
76
  * This operation doesn't check whether Online Programs steps reference the quiz. Coordinate deletion with the Steps API and remove known step references first. Otherwise, steps can retain dangling quiz references.
69
77
  *
78
+ * To delete multiple quiz definitions in a single API call, call [Bulk Delete Quizzes](https://dev.wix.com/docs/api-reference/business-management/online-programs/quizzes/bulk-delete-quizzes).
79
+ *
70
80
  * NOT-PRECEDENT: This caller-responsibility behavior is retained as a production v1 compatibility exception. New delete APIs should provide an authoritative server-side reference safeguard.
71
81
  * @param - ID of the quiz definition to permanently delete.
72
82
  */
@@ -83,6 +93,8 @@ interface BulkDeleteQuizzesSignature {
83
93
  *
84
94
  * This operation doesn't check whether Online Programs steps reference the quizzes. Coordinate deletion with the Steps API and remove known step references first. Otherwise, steps can retain dangling quiz references.
85
95
  *
96
+ * To delete a single quiz definition, call [Delete Quiz](https://dev.wix.com/docs/api-reference/business-management/online-programs/quizzes/delete-quiz).
97
+ *
86
98
  * NOT-PRECEDENT: This caller-responsibility behavior is retained as a production v1 compatibility exception. New bulk-delete APIs should provide an authoritative server-side reference safeguard.
87
99
  * @param - IDs of the quiz definitions to permanently delete. Coordinate deletion with the Steps API and remove known step references first.
88
100
  */
@@ -34,9 +34,9 @@ interface Quiz {
34
34
  */
35
35
  _updatedDate?: Date | null;
36
36
  /**
37
- * Active questions in the quiz. Each `QuizField` defines one question and its answer input. Creating a quiz requires at least one question. An existing definition can have no active questions after its questions are deleted through another supported workflow; retrieving that definition doesn't fail solely because this list is empty.
37
+ * Active questions in the quiz. Each `QuizField` defines one question and its answer input. Creating or cloning a quiz requires at least one active question. GetQuiz can return a legacy stored definition with an empty list; don't assume a retrieved definition has active questions.
38
38
  *
39
- * New submissions use the current questions; stored submissions retain their recorded answer evaluations. Reading an empty definition doesn't imply that it can be used to create a new quiz or accept submissions.
39
+ * New submissions use the current questions; stored submissions retain their recorded answer evaluations.
40
40
  * @minSize 1
41
41
  * @maxSize 200
42
42
  */
@@ -44,7 +44,7 @@ interface Quiz {
44
44
  }
45
45
  interface QuizSettings {
46
46
  /**
47
- * Minimum unweighted integer percentage required to pass, from `0` through `100`. The earned grade is calculated as `floor((correct answer count / submitted answer count) * 100)`; question `score` values don't weight it. Non-evaluable answers count as correct. If omitted, the submission has no earned or passing grade and its status is COMPLETED, even if an individual evaluated answer is incorrect.
47
+ * Minimum unweighted integer percentage required to pass. The earned grade is calculated as `floor((correct answer count / submitted answer count) * 100)`; question `score` values don't weight it. Non-evaluable answers count as correct. If omitted, the submission has no earned or passing grade and its status is COMPLETED, even if an individual evaluated answer is incorrect.
48
48
  * @max 100
49
49
  */
50
50
  passingGrade?: number | null;
@@ -197,13 +197,17 @@ interface MultiChoiceField {
197
197
  }
198
198
  interface FileUploadField {
199
199
  /**
200
- * Text displayed on the upload button. Default: `Upload`.
200
+ * Text displayed on the upload button.
201
+ *
202
+ * Default: `Upload`.
201
203
  * @minLength 1
202
204
  * @maxLength 100
203
205
  */
204
206
  buttonText?: string | null;
205
207
  /**
206
- * Maximum number of files a participant can upload for this question, from `1` through `10`. Default: `10`.
208
+ * Maximum number of files a participant can upload for this question.
209
+ *
210
+ * Default: `10`.
207
211
  * @min 1
208
212
  * @max 10
209
213
  */
@@ -565,7 +569,9 @@ type DeleteQuizApplicationErrors = {
565
569
  /**
566
570
  * Creates a detached quiz definition with at least one question.
567
571
  *
568
- * To use the quiz in an Online Program, pass the returned quiz ID as `step.quizOptions.id` when calling the Steps API's `CreateStep` or `BulkCreateSteps` method.
572
+ * To use the quiz in an Online Program, specify the returned quiz ID as `step.quizOptions.id` when calling the Steps API's [Create Step](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/create-step) or [Bulk Create Steps](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/bulk-create-steps) method.
573
+ *
574
+ * To create multiple quiz definitions in a single API call, call [Bulk Create Quizzes](https://dev.wix.com/docs/api-reference/business-management/online-programs/quizzes/bulk-create-quizzes).
569
575
  * @param quiz - Quiz definition to create. Generate a stable unique GUID for every `quiz.fields.id` value.
570
576
  * @public
571
577
  * @requiredField quiz
@@ -601,7 +607,9 @@ declare function cloneQuiz(quizId: string): Promise<NonNullablePaths<CloneQuizRe
601
607
  __applicationErrorsType?: CloneQuizApplicationErrors;
602
608
  }>;
603
609
  /**
604
- * Creates up to 30 detached quiz definitions in a single API call. Each definition must contain at least one question.
610
+ * Creates up to 30 detached quiz definitions in a single API call.
611
+ *
612
+ * Each definition must contain at least one question.
605
613
  *
606
614
  * Quiz IDs, revisions, and creation and update timestamps are assigned by the server. Client-supplied values for these read-only fields are ignored. Question IDs (`quizzes.fields.id`) must be supplied by the caller.
607
615
  *
@@ -609,7 +617,9 @@ declare function cloneQuiz(quizId: string): Promise<NonNullablePaths<CloneQuizRe
609
617
  *
610
618
  * Individual item failures don't fail the bulk request. For each failed item, `results.itemMetadata.error` contains the original application error from the Wix Forms operation.
611
619
  *
612
- * To use the quizzes in an Online Program, pass the returned quiz IDs as `step.quizOptions.id` values when calling the Steps API's `CreateStep` or `BulkCreateSteps` method.
620
+ * To use the quizzes in an Online Program, specify the returned quiz IDs as `step.quizOptions.id` values when calling the Steps API's [Create Step](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/create-step) or [Bulk Create Steps](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/bulk-create-steps) method.
621
+ *
622
+ * To create a single quiz definition, call [Create Quiz](https://dev.wix.com/docs/api-reference/business-management/online-programs/quizzes/create-quiz).
613
623
  * @param quizzes - Quiz definitions to create.
614
624
  * @public
615
625
  * @documentationMaturity preview
@@ -637,7 +647,9 @@ interface BulkCreateQuizzesOptions {
637
647
  returnEntity?: boolean;
638
648
  }
639
649
  /**
640
- * Retrieves a quiz definition by ID. A stored definition whose questions have all been deleted can be returned with no active questions.
650
+ * Retrieves a quiz definition by ID.
651
+ *
652
+ * A legacy stored definition whose questions have all been deleted can be returned with an empty fields list. The minimum question requirement for creation and cloning doesn't guarantee a nonempty result from this method.
641
653
  *
642
654
  * To discover a quiz ID, query or retrieve its quiz-type Online Programs step and read `step.quizOptions.id`.
643
655
  * @param quizId - Quiz ID, available from `step.quizOptions.id` on a quiz-type Online Programs step.
@@ -656,6 +668,8 @@ declare function getQuiz(quizId: string): Promise<NonNullablePaths<Quiz, `fields
656
668
  *
657
669
  * This operation doesn't check whether Online Programs steps reference the quiz. Coordinate deletion with the Steps API and remove known step references first. Otherwise, steps can retain dangling quiz references.
658
670
  *
671
+ * To delete multiple quiz definitions in a single API call, call [Bulk Delete Quizzes](https://dev.wix.com/docs/api-reference/business-management/online-programs/quizzes/bulk-delete-quizzes).
672
+ *
659
673
  * NOT-PRECEDENT: This caller-responsibility behavior is retained as a production v1 compatibility exception. New delete APIs should provide an authoritative server-side reference safeguard.
660
674
  * @param quizId - ID of the quiz definition to permanently delete.
661
675
  * @public
@@ -674,6 +688,8 @@ declare function deleteQuiz(quizId: string): Promise<NonNullablePaths<DeleteQuiz
674
688
  *
675
689
  * This operation doesn't check whether Online Programs steps reference the quizzes. Coordinate deletion with the Steps API and remove known step references first. Otherwise, steps can retain dangling quiz references.
676
690
  *
691
+ * To delete a single quiz definition, call [Delete Quiz](https://dev.wix.com/docs/api-reference/business-management/online-programs/quizzes/delete-quiz).
692
+ *
677
693
  * NOT-PRECEDENT: This caller-responsibility behavior is retained as a production v1 compatibility exception. New bulk-delete APIs should provide an authoritative server-side reference safeguard.
678
694
  * @param quizIds - IDs of the quiz definitions to permanently delete. Coordinate deletion with the Steps API and remove known step references first.
679
695
  * @public
@@ -35,9 +35,9 @@ interface Quiz {
35
35
  */
36
36
  updatedDate?: Date | null;
37
37
  /**
38
- * Active questions in the quiz. Each `QuizField` defines one question and its answer input. Creating a quiz requires at least one question. An existing definition can have no active questions after its questions are deleted through another supported workflow; retrieving that definition doesn't fail solely because this list is empty.
38
+ * Active questions in the quiz. Each `QuizField` defines one question and its answer input. Creating or cloning a quiz requires at least one active question. GetQuiz can return a legacy stored definition with an empty list; don't assume a retrieved definition has active questions.
39
39
  *
40
- * New submissions use the current questions; stored submissions retain their recorded answer evaluations. Reading an empty definition doesn't imply that it can be used to create a new quiz or accept submissions.
40
+ * New submissions use the current questions; stored submissions retain their recorded answer evaluations.
41
41
  * @minSize 1
42
42
  * @maxSize 200
43
43
  */
@@ -45,7 +45,7 @@ interface Quiz {
45
45
  }
46
46
  interface QuizSettings {
47
47
  /**
48
- * Minimum unweighted integer percentage required to pass, from `0` through `100`. The earned grade is calculated as `floor((correct answer count / submitted answer count) * 100)`; question `score` values don't weight it. Non-evaluable answers count as correct. If omitted, the submission has no earned or passing grade and its status is COMPLETED, even if an individual evaluated answer is incorrect.
48
+ * Minimum unweighted integer percentage required to pass. The earned grade is calculated as `floor((correct answer count / submitted answer count) * 100)`; question `score` values don't weight it. Non-evaluable answers count as correct. If omitted, the submission has no earned or passing grade and its status is COMPLETED, even if an individual evaluated answer is incorrect.
49
49
  * @max 100
50
50
  */
51
51
  passingGrade?: number | null;
@@ -198,13 +198,17 @@ interface MultiChoiceField {
198
198
  }
199
199
  interface FileUploadField {
200
200
  /**
201
- * Text displayed on the upload button. Default: `Upload`.
201
+ * Text displayed on the upload button.
202
+ *
203
+ * Default: `Upload`.
202
204
  * @minLength 1
203
205
  * @maxLength 100
204
206
  */
205
207
  buttonText?: string | null;
206
208
  /**
207
- * Maximum number of files a participant can upload for this question, from `1` through `10`. Default: `10`.
209
+ * Maximum number of files a participant can upload for this question.
210
+ *
211
+ * Default: `10`.
208
212
  * @min 1
209
213
  * @max 10
210
214
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_online-programs_quizzes",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
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": "c296504c5661d6c1f7de3ba10865540325d0e9582bef7e5900770fb8"
53
+ "falconPackageHash": "6032021aec899920f31a423efb6d127cbc9a83814db2ff1a91900cc0"
54
54
  }