@wix/auto_sdk_online-programs_quizzes 1.0.26 → 1.0.28

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.
@@ -1,32 +1,43 @@
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
+ /**
5
+ * A quiz definition used by an Online Programs quiz step.
6
+ *
7
+ * Create or clone a quiz, then assign the returned quiz ID to `step.quizOptions.id` when creating an Online Programs step. Quiz IDs are intentionally discovered through quiz-type steps rather than through a Quiz list or query method.
8
+ *
9
+ * New submissions are evaluated against the quiz definition that exists when the submission is created. Previously stored submissions retain their recorded grades and answer evaluations if the definition changes later.
10
+ *
11
+ * NOT-PRECEDENT: The production v1 entity retains its legacy `wix.achievements.quizzes.v1.quiz` identity for compatibility. The Online Programs placement and workflow described here provide its public product context.
12
+ */
4
13
  interface Quiz {
5
14
  /**
6
- * ID of the quiz
15
+ * Quiz ID.
7
16
  * @format GUID
8
17
  * @readonly
9
18
  */
10
19
  id?: string | null;
11
- /** Quiz settings */
20
+ /** Quiz title, passing grade, and attempt limit. New submissions use the current settings; stored submissions retain their recorded grade data. */
12
21
  settings?: QuizSettings;
13
22
  /**
14
- * Represents the current state of the quiz. Each time the it is modified, its `revision` changes. For an update operation to succeed, you MUST pass the latest revision
23
+ * Current revision of the stored quiz definition. The revision changes when the definition changes. The public Quiz API doesn't currently provide an update method.
15
24
  * @readonly
16
25
  */
17
26
  revision?: string | null;
18
27
  /**
19
- * The time this quiz was created
28
+ * Date and time the quiz was created.
20
29
  * @readonly
21
30
  */
22
31
  createdDate?: Date | null;
23
32
  /**
24
- * The time this quiz was last updated
33
+ * Date and time the quiz was last updated.
25
34
  * @readonly
26
35
  */
27
36
  updatedDate?: Date | null;
28
37
  /**
29
- * Quiz fields
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.
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.
30
41
  * @minSize 1
31
42
  * @maxSize 200
32
43
  */
@@ -34,119 +45,130 @@ interface Quiz {
34
45
  }
35
46
  interface QuizSettings {
36
47
  /**
37
- * Minimal grade to pass the quiz
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.
38
49
  * @max 100
39
50
  */
40
51
  passingGrade?: number | null;
41
52
  /**
42
- * Quiz title
53
+ * Quiz title.
43
54
  * @maxLength 200
44
55
  */
45
56
  title?: string | null;
46
57
  /**
47
- * Maximal number of submission attempts
58
+ * Maximum number of submissions allowed per submitter. If omitted, no attempt-limit check is applied. With `groupId`, the count uses group ID and submitter ID without filtering by quiz ID; otherwise, it uses quiz ID and submitter ID. Reusing a group ID across quizzes shares their attempt count.
48
59
  * @min 1
49
60
  */
50
61
  attempts?: number | null;
51
62
  }
63
+ /** Defines one quiz question and its answer input. */
52
64
  interface QuizField extends QuizFieldFieldTypeOneOf {
53
- /** Type for numeric input */
65
+ /** Numeric input. */
54
66
  numeric?: NumericField;
55
- /** Type for text input */
67
+ /** Short-text input. */
56
68
  shortText?: ShortTextField;
57
- /** Type for long text input */
69
+ /** Long-text input. Set this to an empty object (`{}`) to select it. */
58
70
  longText?: LongTextField;
59
- /** Type for input with predefined options where only one can be selected */
71
+ /** Input with predefined options where only one option can be selected. */
60
72
  singleChoice?: SingleChoiceField;
61
- /** Type for input with predefined options where multiple can be selected */
73
+ /** Input with predefined options where multiple options can be selected. */
62
74
  multiChoice?: MultiChoiceField;
63
- /** Type for file input */
75
+ /** File-upload input. */
64
76
  fileUpload?: FileUploadField;
65
77
  /**
66
- * Field ID
78
+ * Caller-generated GUID that identifies this question. Use a stable value that is unique within the quiz. Submission answer evaluations use this ID to identify the question.
67
79
  * @format GUID
68
80
  * @immutable
69
81
  */
70
82
  id?: string;
71
83
  /**
72
- * Key used in submission
84
+ * Stable key used to match a submitted answer to this question. Use a value that is unique within the quiz and don't change or reuse it for another question.
73
85
  * @maxLength 200
74
86
  * @immutable
75
87
  */
76
88
  target?: string | null;
77
89
  /**
78
- * Question
90
+ * Question text.
79
91
  * @minLength 1
80
92
  * @maxLength 350
81
93
  */
82
94
  question?: string | null;
83
- /** Score of the question when answered right */
95
+ /** Score returned for evaluable answers, whether correct or incorrect. Omitted from non-evaluable answer evaluations. This value doesn't weight the submission's unweighted `earnedGrade` percentage. */
84
96
  score?: number | null;
85
97
  /**
86
- * Message shown for right answer
98
+ * Feedback returned when an evaluable submitted answer is correct. Omitted for non-evaluable answers.
87
99
  * @maxLength 350
88
100
  */
89
101
  rightMessage?: string | null;
90
102
  /**
91
- * Message shown for wrong answer
103
+ * Feedback returned when an evaluable submitted answer is incorrect. Omitted for non-evaluable answers.
92
104
  * @maxLength 350
93
105
  */
94
106
  wrongMessage?: string | null;
95
107
  }
96
108
  /** @oneof */
97
109
  interface QuizFieldFieldTypeOneOf {
98
- /** Type for numeric input */
110
+ /** Numeric input. */
99
111
  numeric?: NumericField;
100
- /** Type for text input */
112
+ /** Short-text input. */
101
113
  shortText?: ShortTextField;
102
- /** Type for long text input */
114
+ /** Long-text input. Set this to an empty object (`{}`) to select it. */
103
115
  longText?: LongTextField;
104
- /** Type for input with predefined options where only one can be selected */
116
+ /** Input with predefined options where only one option can be selected. */
105
117
  singleChoice?: SingleChoiceField;
106
- /** Type for input with predefined options where multiple can be selected */
118
+ /** Input with predefined options where multiple options can be selected. */
107
119
  multiChoice?: MultiChoiceField;
108
- /** Type for file input */
120
+ /** File-upload input. */
109
121
  fileUpload?: FileUploadField;
110
122
  }
123
+ /** File categories used by Wix Forms. Categories don't define a custom extension or MIME-type allowlist; accepted file types are controlled by Wix Forms. See [About form fields](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/about-form-fields). */
111
124
  declare enum FileUploadFormat {
112
- /** Image files. */
125
+ /** Image-file category. */
113
126
  IMAGE = "IMAGE",
114
- /** Video files. */
127
+ /** Video-file category. */
115
128
  VIDEO = "VIDEO",
116
- /** Audio files. */
129
+ /** Audio-file category. */
117
130
  AUDIO = "AUDIO",
118
- /** Document files. */
131
+ /** Document-file category. */
119
132
  DOCUMENT = "DOCUMENT",
120
- /** Archive files. */
133
+ /** Archive-file category. */
121
134
  ARCHIVE = "ARCHIVE",
122
- /** 3D model files. */
135
+ /** 3D-model-file category. */
123
136
  MODEL_3D = "MODEL_3D"
124
137
  }
125
138
  /** @enumType */
126
139
  type FileUploadFormatWithLiterals = FileUploadFormat | 'IMAGE' | 'VIDEO' | 'AUDIO' | 'DOCUMENT' | 'ARCHIVE' | 'MODEL_3D';
127
140
  interface NumericField {
128
- /** Right answer */
141
+ /**
142
+ * Correct numeric value. Matching is exact. If no correct value is stored for this question, its submitted answer is non-evaluable and counts as correct when calculating the earned grade.
143
+ *
144
+ * Omitted from responses when the caller lacks achievements:quizzes:v1:quiz:read_sensitive_fields permission. Response filtering doesn't remove the stored key or change grading; an absent response value doesn't mean no correct value is stored.
145
+ */
129
146
  rightAnswer?: number | null;
130
147
  }
131
148
  interface ShortTextField {
132
149
  /**
133
- * Right answer
150
+ * Correct text. Matching trims leading and trailing whitespace and is case-insensitive. If no correct text is stored for this question, its submitted answer is non-evaluable and counts as correct when calculating the earned grade.
151
+ *
152
+ * Omitted from responses when the caller lacks achievements:quizzes:v1:quiz:read_sensitive_fields permission. Response filtering doesn't remove the stored key or change grading; an absent response value doesn't mean no correct text is stored.
134
153
  * @minLength 1
135
154
  * @maxLength 200
136
155
  */
137
156
  rightAnswer?: string | null;
138
157
  }
158
+ /** Long-text input settings. Set `longText` to an empty object (`{}`) to select this input. Long-text answers aren't evaluated and count as correct when calculating the earned grade. */
139
159
  interface LongTextField {
140
160
  }
141
161
  interface SingleChoiceField {
142
162
  /**
143
- * Right answer
163
+ * Correct option. When supplied, it must exactly match an entry in `options`; otherwise, creation fails with INVALID_QUIZ. Matching submitted answers is exact. If no correct option is stored for this question, its submitted answer is non-evaluable and counts as correct when calculating the earned grade.
164
+ *
165
+ * Omitted from responses when the caller lacks achievements:quizzes:v1:quiz:read_sensitive_fields permission. Response filtering doesn't remove the stored key or change grading; an absent response value doesn't mean no correct option is stored.
144
166
  * @minLength 1
145
167
  * @maxLength 350
146
168
  */
147
169
  rightAnswer?: string | null;
148
170
  /**
149
- * Answer options
171
+ * Options available to the participant. Labels must be unique; comparison is case-sensitive. Duplicate labels are rejected with INVALID_QUIZ before creation.
150
172
  * @minSize 1
151
173
  * @maxSize 90
152
174
  * @minLength 1
@@ -154,17 +176,19 @@ interface SingleChoiceField {
154
176
  */
155
177
  options?: string[] | null;
156
178
  }
179
+ /** Multiple-choice input settings. Existing Wix Forms image-choice questions are also returned in this shape, even when their original settings allow only one selection. Image-choice-specific settings aren't exposed by the Quiz API. */
157
180
  interface MultiChoiceField {
158
181
  /**
159
- * Returned only with achievements:quizzes:v1:quiz:read_sensitive_fields permission.
160
- * Repeated fields cannot use conditional annotations; the service redacts this field.
182
+ * Correct options. Every supplied value must exactly match an entry in `options`; otherwise, creation fails with INVALID_QUIZ. Matching submitted answers ignores option order but doesn't ignore duplicate values. If no correct options are stored for this question, its submitted answer is non-evaluable and counts as correct when calculating the earned grade.
183
+ *
184
+ * Empty in responses when the caller lacks achievements:quizzes:v1:quiz:read_sensitive_fields permission. Response filtering doesn't remove stored keys or change grading; an empty response list doesn't mean no correct options are stored.
161
185
  * @maxSize 90
162
186
  * @minLength 1
163
187
  * @maxLength 350
164
188
  */
165
189
  rightAnswer?: string[] | null;
166
190
  /**
167
- * Answer options
191
+ * Options available to the participant.
168
192
  * @minSize 1
169
193
  * @maxSize 90
170
194
  * @minLength 1
@@ -174,42 +198,42 @@ interface MultiChoiceField {
174
198
  }
175
199
  interface FileUploadField {
176
200
  /**
177
- * Text for upload button
201
+ * Text displayed on the upload button. Default: `Upload`.
178
202
  * @minLength 1
179
203
  * @maxLength 100
180
204
  */
181
205
  buttonText?: string | null;
182
206
  /**
183
- * Limit of upload items
207
+ * Maximum number of files a participant can upload for this question, from `1` through `10`. Default: `10`.
184
208
  * @min 1
185
209
  * @max 10
186
210
  */
187
211
  itemsLimit?: number | null;
188
212
  /**
189
- * Formats of files that can be uploaded.
213
+ * Wix Forms file categories that participants can upload.
190
214
  *
191
- * Specify at least one format. `UNKNOWN_FILE_UPLOAD_FORMAT` isn't supported as a format selection.
215
+ * Specify at least one format. `UNKNOWN_FILE_UPLOAD_FORMAT` isn't supported as a format selection. File-upload answers aren't evaluated and count as correct when calculating the earned grade.
192
216
  * @maxSize 6
193
217
  */
194
218
  fileUploadFormats?: FileUploadFormatWithLiterals[];
195
219
  }
196
220
  interface CreateQuizRequest {
197
- /** Quiz to created */
221
+ /** Quiz definition to create. Generate a stable unique GUID for every `quiz.fields.id` value. */
198
222
  quiz: Quiz;
199
223
  }
200
224
  interface CreateQuizResponse {
201
- /** Created quiz */
225
+ /** Created quiz definition. Assign its `id` to `step.quizOptions.id` to create an Online Programs quiz step. */
202
226
  quiz?: Quiz;
203
227
  }
204
228
  interface CloneQuizRequest {
205
229
  /**
206
- * ID of the quiz to be cloned
230
+ * ID of the quiz definition to clone.
207
231
  * @format GUID
208
232
  */
209
233
  quizId: string;
210
234
  }
211
235
  interface CloneQuizResponse {
212
- /** Cloned quiz */
236
+ /** Cloned quiz definition with a new ID. Step associations and submissions aren't cloned. */
213
237
  quiz?: Quiz;
214
238
  }
215
239
  interface BulkCreateQuizzesRequest {
@@ -255,7 +279,7 @@ interface ApplicationError {
255
279
  data?: Record<string, any> | null;
256
280
  }
257
281
  interface BulkCreateQuizzesResponseBulkQuizResult {
258
- /** Metadata for the individual create operation. */
282
+ /** Metadata for the individual create operation. When the operation fails, `error` contains the original Wix Forms application error. */
259
283
  itemMetadata?: ItemMetadata;
260
284
  /** Created quiz. Empty when `return_entity` is `false`. */
261
285
  item?: Quiz;
@@ -297,29 +321,29 @@ interface BulkQuizResult {
297
321
  }
298
322
  interface GetQuizRequest {
299
323
  /**
300
- * ID of the quiz
324
+ * Quiz ID, available from `step.quizOptions.id` on a quiz-type Online Programs step.
301
325
  * @format GUID
302
326
  */
303
327
  quizId: string;
304
328
  }
305
329
  interface GetQuizResponse {
306
- /** Requested quiz */
330
+ /** Requested quiz definition. */
307
331
  quiz?: Quiz;
308
332
  }
309
333
  interface DeleteQuizRequest {
310
334
  /**
311
- * ID of quiz
335
+ * ID of the quiz definition to permanently delete.
312
336
  * @format GUID
313
337
  */
314
338
  quizId: string;
315
339
  }
316
340
  interface DeleteQuizResponse {
317
- /** Deleted quiz */
341
+ /** Permanently deleted quiz definition. */
318
342
  quiz?: Quiz;
319
343
  }
320
344
  interface BulkDeleteQuizzesRequest {
321
345
  /**
322
- * IDs of the quizzes to delete.
346
+ * IDs of the quiz definitions to permanently delete. Coordinate deletion with the Steps API and remove known step references first.
323
347
  * @minSize 1
324
348
  * @maxSize 100
325
349
  * @format GUID
@@ -337,7 +361,7 @@ interface BulkDeleteQuizzesResponse {
337
361
  bulkActionMetadata?: BulkActionMetadata;
338
362
  }
339
363
  interface BulkDeleteQuizzesResponseBulkQuizResult {
340
- /** Metadata for the individual delete operation. */
364
+ /** Metadata for the individual delete operation. When the operation fails, `error` contains the original Wix Forms application error. */
341
365
  itemMetadata?: ItemMetadata;
342
366
  }
343
367
  interface DomainEvent extends DomainEventBodyOneOf {
@@ -495,6 +519,52 @@ interface AccountInfo {
495
519
  */
496
520
  siteId?: string | null;
497
521
  }
522
+ /** @docsIgnore */
523
+ type CreateQuizApplicationErrors = {
524
+ code?: 'INVALID_QUIZ';
525
+ description?: string;
526
+ data?: Record<string, any>;
527
+ } | {
528
+ code?: 'QUIZ_CONFLICT';
529
+ description?: string;
530
+ data?: Record<string, any>;
531
+ };
532
+ /** @docsIgnore */
533
+ type CloneQuizApplicationErrors = {
534
+ code?: 'INVALID_QUIZ';
535
+ description?: string;
536
+ data?: Record<string, any>;
537
+ } | {
538
+ code?: 'QUIZ_NOT_FOUND';
539
+ description?: string;
540
+ data?: Record<string, any>;
541
+ } | {
542
+ code?: 'QUIZ_CONFLICT';
543
+ description?: string;
544
+ data?: Record<string, any>;
545
+ };
546
+ /** @docsIgnore */
547
+ type BulkCreateQuizzesApplicationErrors = {
548
+ code?: 'INVALID_QUIZ';
549
+ description?: string;
550
+ data?: Record<string, any>;
551
+ };
552
+ /** @docsIgnore */
553
+ type GetQuizApplicationErrors = {
554
+ code?: 'QUIZ_NOT_FOUND';
555
+ description?: string;
556
+ data?: Record<string, any>;
557
+ };
558
+ /** @docsIgnore */
559
+ type DeleteQuizApplicationErrors = {
560
+ code?: 'QUIZ_NOT_FOUND';
561
+ description?: string;
562
+ data?: Record<string, any>;
563
+ } | {
564
+ code?: 'QUIZ_CONFLICT';
565
+ description?: string;
566
+ data?: Record<string, any>;
567
+ };
498
568
 
499
569
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
500
570
  getUrl: (context: any) => string;
@@ -519,4 +589,4 @@ declare function deleteQuiz(): __PublicMethodMetaInfo<'DELETE', {
519
589
  }, DeleteQuizRequest$1, DeleteQuizRequest, DeleteQuizResponse$1, DeleteQuizResponse>;
520
590
  declare function bulkDeleteQuizzes(): __PublicMethodMetaInfo<'POST', {}, BulkDeleteQuizzesRequest$1, BulkDeleteQuizzesRequest, BulkDeleteQuizzesResponse$1, BulkDeleteQuizzesResponse>;
521
591
 
522
- 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, 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 };
592
+ 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 BulkCreateQuizzesApplicationErrors as BulkCreateQuizzesApplicationErrorsOriginal, 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 CloneQuizApplicationErrors as CloneQuizApplicationErrorsOriginal, type CloneQuizRequest as CloneQuizRequestOriginal, type CloneQuizResponse as CloneQuizResponseOriginal, type CreateQuizApplicationErrors as CreateQuizApplicationErrorsOriginal, type CreateQuizRequest as CreateQuizRequestOriginal, type CreateQuizResponse as CreateQuizResponseOriginal, type DeleteQuizApplicationErrors as DeleteQuizApplicationErrorsOriginal, 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, type FileUploadField as FileUploadFieldOriginal, FileUploadFormat as FileUploadFormatOriginal, type FileUploadFormatWithLiterals as FileUploadFormatWithLiteralsOriginal, type GetQuizApplicationErrors as GetQuizApplicationErrorsOriginal, 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 };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/achievements-quizzes-v1-quiz-quizzes.http.ts","../../src/achievements-quizzes-v1-quiz-quizzes.types.ts","../../src/achievements-quizzes-v1-quiz-quizzes.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixAchievementsQuizzesV1QuizServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/online-programs/v1/quizzes',\n destPath: '/v1/quizzes',\n },\n {\n srcPath: '/online-programs/v1/bulk/quizzes',\n destPath: '/v1/bulk/quizzes',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_online-programs_quizzes';\n\n/** Creates quiz */\nexport function createQuiz(payload: object): RequestOptionsFactory<any> {\n function __createQuiz({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'quiz.createdDate' }, { path: 'quiz.updatedDate' }],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'quiz.fields.score' },\n { path: 'quiz.fields.numeric.rightAnswer' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.achievements.quizzes.v1.quiz',\n method: 'POST' as any,\n methodFqn: 'wix.achievements.quizzes.v1.QuizService.CreateQuiz',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAchievementsQuizzesV1QuizServiceUrl({\n protoPath: '/v1/quizzes',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'quiz.createdDate' }, { path: 'quiz.updatedDate' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'quiz.fields.score' },\n { path: 'quiz.fields.numeric.rightAnswer' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createQuiz;\n}\n\n/** Clones quiz */\nexport function cloneQuiz(payload: object): RequestOptionsFactory<any> {\n function __cloneQuiz({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.achievements.quizzes.v1.quiz',\n method: 'POST' as any,\n methodFqn: 'wix.achievements.quizzes.v1.QuizService.CloneQuiz',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAchievementsQuizzesV1QuizServiceUrl({\n protoPath: '/v1/quizzes/{quizId}/clone',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'quiz.createdDate' }, { path: 'quiz.updatedDate' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'quiz.fields.score' },\n { path: 'quiz.fields.numeric.rightAnswer' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __cloneQuiz;\n}\n\n/** Creates up to 30 quiz definitions in a single API call. */\nexport function bulkCreateQuizzes(payload: object): RequestOptionsFactory<any> {\n function __bulkCreateQuizzes({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'quizzes.createdDate' },\n { path: 'quizzes.updatedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'quizzes.fields.score' },\n { path: 'quizzes.fields.numeric.rightAnswer' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.achievements.quizzes.v1.quiz',\n method: 'POST' as any,\n methodFqn: 'wix.achievements.quizzes.v1.QuizService.BulkCreateQuizzes',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAchievementsQuizzesV1QuizServiceUrl({\n protoPath: '/v1/bulk/quizzes/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.fields.score' },\n { path: 'results.item.fields.numeric.rightAnswer' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateQuizzes;\n}\n\n/** Reads quiz by ID */\nexport function getQuiz(payload: object): RequestOptionsFactory<any> {\n function __getQuiz({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.achievements.quizzes.v1.quiz',\n method: 'GET' as any,\n methodFqn: 'wix.achievements.quizzes.v1.QuizService.GetQuiz',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAchievementsQuizzesV1QuizServiceUrl({\n protoPath: '/v1/quizzes/{quizId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'quiz.createdDate' }, { path: 'quiz.updatedDate' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'quiz.fields.score' },\n { path: 'quiz.fields.numeric.rightAnswer' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getQuiz;\n}\n\n/** Deletes quiz */\nexport function deleteQuiz(payload: object): RequestOptionsFactory<any> {\n function __deleteQuiz({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.achievements.quizzes.v1.quiz',\n method: 'DELETE' as any,\n methodFqn: 'wix.achievements.quizzes.v1.QuizService.DeleteQuiz',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAchievementsQuizzesV1QuizServiceUrl({\n protoPath: '/v1/quizzes/{quizId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'quiz.createdDate' }, { path: 'quiz.updatedDate' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'quiz.fields.score' },\n { path: 'quiz.fields.numeric.rightAnswer' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __deleteQuiz;\n}\n\n/**\n * Permanently deletes up to 100 quiz definitions.\n *\n * This operation doesn't check whether Online Programs steps reference the quizzes. Callers must remove or verify those references before deleting.\n */\nexport function bulkDeleteQuizzes(payload: object): RequestOptionsFactory<any> {\n function __bulkDeleteQuizzes({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.achievements.quizzes.v1.quiz',\n method: 'POST' as any,\n methodFqn: 'wix.achievements.quizzes.v1.QuizService.BulkDeleteQuizzes',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAchievementsQuizzesV1QuizServiceUrl({\n protoPath: '/v1/bulk/quizzes/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteQuizzes;\n}\n","export interface Quiz {\n /**\n * ID of the quiz\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /** Quiz settings */\n settings?: QuizSettings;\n /**\n * Represents the current state of the quiz. Each time the it is modified, its `revision` changes. For an update operation to succeed, you MUST pass the latest revision\n * @readonly\n */\n revision?: string | null;\n /**\n * The time this quiz was created\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * The time this quiz was last updated\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Quiz fields\n * @minSize 1\n * @maxSize 200\n */\n fields?: QuizField[];\n}\n\nexport interface QuizSettings {\n /**\n * Minimal grade to pass the quiz\n * @max 100\n */\n passingGrade?: number | null;\n /**\n * Quiz title\n * @maxLength 200\n */\n title?: string | null;\n /**\n * Maximal number of submission attempts\n * @min 1\n */\n attempts?: number | null;\n}\n\nexport interface QuizField extends QuizFieldFieldTypeOneOf {\n /** Type for numeric input */\n numeric?: NumericField;\n /** Type for text input */\n shortText?: ShortTextField;\n /** Type for long text input */\n longText?: LongTextField;\n /** Type for input with predefined options where only one can be selected */\n singleChoice?: SingleChoiceField;\n /** Type for input with predefined options where multiple can be selected */\n multiChoice?: MultiChoiceField;\n /** Type for file input */\n fileUpload?: FileUploadField;\n /**\n * Field ID\n * @format GUID\n * @immutable\n */\n id?: string;\n /**\n * Key used in submission\n * @maxLength 200\n * @immutable\n */\n target?: string | null;\n /**\n * Question\n * @minLength 1\n * @maxLength 350\n */\n question?: string | null;\n /** Score of the question when answered right */\n score?: number | null;\n /**\n * Message shown for right answer\n * @maxLength 350\n */\n rightMessage?: string | null;\n /**\n * Message shown for wrong answer\n * @maxLength 350\n */\n wrongMessage?: string | null;\n}\n\n/** @oneof */\nexport interface QuizFieldFieldTypeOneOf {\n /** Type for numeric input */\n numeric?: NumericField;\n /** Type for text input */\n shortText?: ShortTextField;\n /** Type for long text input */\n longText?: LongTextField;\n /** Type for input with predefined options where only one can be selected */\n singleChoice?: SingleChoiceField;\n /** Type for input with predefined options where multiple can be selected */\n multiChoice?: MultiChoiceField;\n /** Type for file input */\n fileUpload?: FileUploadField;\n}\n\nexport enum FileUploadFormat {\n /** Image files. */\n IMAGE = 'IMAGE',\n /** Video files. */\n VIDEO = 'VIDEO',\n /** Audio files. */\n AUDIO = 'AUDIO',\n /** Document files. */\n DOCUMENT = 'DOCUMENT',\n /** Archive files. */\n ARCHIVE = 'ARCHIVE',\n /** 3D model files. */\n MODEL_3D = 'MODEL_3D',\n}\n\n/** @enumType */\nexport type FileUploadFormatWithLiterals =\n | FileUploadFormat\n | 'IMAGE'\n | 'VIDEO'\n | 'AUDIO'\n | 'DOCUMENT'\n | 'ARCHIVE'\n | 'MODEL_3D';\n\nexport interface NumericField {\n /** Right answer */\n rightAnswer?: number | null;\n}\n\nexport interface ShortTextField {\n /**\n * Right answer\n * @minLength 1\n * @maxLength 200\n */\n rightAnswer?: string | null;\n}\n\nexport interface LongTextField {}\n\nexport interface SingleChoiceField {\n /**\n * Right answer\n * @minLength 1\n * @maxLength 350\n */\n rightAnswer?: string | null;\n /**\n * Answer options\n * @minSize 1\n * @maxSize 90\n * @minLength 1\n * @maxLength 350\n */\n options?: string[] | null;\n}\n\nexport interface MultiChoiceField {\n /**\n * Returned only with achievements:quizzes:v1:quiz:read_sensitive_fields permission.\n * Repeated fields cannot use conditional annotations; the service redacts this field.\n * @maxSize 90\n * @minLength 1\n * @maxLength 350\n */\n rightAnswer?: string[] | null;\n /**\n * Answer options\n * @minSize 1\n * @maxSize 90\n * @minLength 1\n * @maxLength 350\n */\n options?: string[] | null;\n}\n\nexport interface FileUploadField {\n /**\n * Text for upload button\n * @minLength 1\n * @maxLength 100\n */\n buttonText?: string | null;\n /**\n * Limit of upload items\n * @min 1\n * @max 10\n */\n itemsLimit?: number | null;\n /**\n * Formats of files that can be uploaded.\n *\n * Specify at least one format. `UNKNOWN_FILE_UPLOAD_FORMAT` isn't supported as a format selection.\n * @maxSize 6\n */\n fileUploadFormats?: FileUploadFormatWithLiterals[];\n}\n\nexport interface CreateQuizRequest {\n /** Quiz to created */\n quiz: Quiz;\n}\n\nexport interface CreateQuizResponse {\n /** Created quiz */\n quiz?: Quiz;\n}\n\nexport interface CloneQuizRequest {\n /**\n * ID of the quiz to be cloned\n * @format GUID\n */\n quizId: string;\n}\n\nexport interface CloneQuizResponse {\n /** Cloned quiz */\n quiz?: Quiz;\n}\n\nexport interface BulkCreateQuizzesRequest {\n /**\n * Quiz definitions to create.\n * @minSize 1\n * @maxSize 30\n */\n quizzes: Quiz[];\n /**\n * Whether to return the created quizzes in the response.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n}\n\nexport interface BulkCreateQuizzesResponse {\n /**\n * Results of the bulk create operation.\n * @minSize 1\n * @maxSize 30\n */\n results?: BulkCreateQuizzesResponseBulkQuizResult[];\n /** Metadata about the bulk create operation. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkCreateQuizzesResponseBulkQuizResult {\n /** Metadata for the individual create operation. */\n itemMetadata?: ItemMetadata;\n /** Created quiz. Empty when `return_entity` is `false`. */\n item?: Quiz;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface BulkCloneQuizzesRequest {\n /**\n * IDs of the quizzes to clone.\n * @minSize 1\n * @maxSize 30\n * @format GUID\n */\n quizIds?: string[];\n /**\n * Whether to return the cloned quizzes in the response.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n}\n\nexport interface BulkCloneQuizzesResponse {\n /** Results of the bulk clone operation, including cloned quizzes and metadata. */\n results?: BulkQuizResult[];\n /** Metadata about the bulk operation. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkQuizResult {\n /** Metadata for the cloned quiz. */\n itemMetadata?: ItemMetadata;\n /** Cloned quiz. Empty when `return_entity` is `false`. */\n item?: Quiz;\n}\n\nexport interface GetQuizRequest {\n /**\n * ID of the quiz\n * @format GUID\n */\n quizId: string;\n}\n\nexport interface GetQuizResponse {\n /** Requested quiz */\n quiz?: Quiz;\n}\n\nexport interface DeleteQuizRequest {\n /**\n * ID of quiz\n * @format GUID\n */\n quizId: string;\n}\n\nexport interface DeleteQuizResponse {\n /** Deleted quiz */\n quiz?: Quiz;\n}\n\nexport interface BulkDeleteQuizzesRequest {\n /**\n * IDs of the quizzes to delete.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n quizIds: string[];\n}\n\nexport interface BulkDeleteQuizzesResponse {\n /**\n * Results of the bulk delete operation.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkDeleteQuizzesResponseBulkQuizResult[];\n /** Metadata about the bulk delete operation. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteQuizzesResponseBulkQuizResult {\n /** Metadata for the individual delete operation. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n","import * as ambassadorWixAchievementsQuizzesV1Quiz from './achievements-quizzes-v1-quiz-quizzes.http.js';\nimport * as ambassadorWixAchievementsQuizzesV1QuizTypes from './achievements-quizzes-v1-quiz-quizzes.types.js';\nimport * as ambassadorWixAchievementsQuizzesV1QuizUniversalTypes from './achievements-quizzes-v1-quiz-quizzes.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createQuiz(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.CreateQuizRequest,\n ambassadorWixAchievementsQuizzesV1QuizTypes.CreateQuizRequest,\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.CreateQuizResponse,\n ambassadorWixAchievementsQuizzesV1QuizTypes.CreateQuizResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAchievementsQuizzesV1Quiz.createQuiz(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/quizzes',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function cloneQuiz(): __PublicMethodMetaInfo<\n 'POST',\n { quizId: string },\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.CloneQuizRequest,\n ambassadorWixAchievementsQuizzesV1QuizTypes.CloneQuizRequest,\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.CloneQuizResponse,\n ambassadorWixAchievementsQuizzesV1QuizTypes.CloneQuizResponse\n> {\n const payload = { quizId: ':quizId' } as any;\n\n const getRequestOptions =\n ambassadorWixAchievementsQuizzesV1Quiz.cloneQuiz(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/quizzes/{quizId}/clone',\n pathParams: { quizId: 'quizId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkCreateQuizzes(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.BulkCreateQuizzesRequest,\n ambassadorWixAchievementsQuizzesV1QuizTypes.BulkCreateQuizzesRequest,\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.BulkCreateQuizzesResponse,\n ambassadorWixAchievementsQuizzesV1QuizTypes.BulkCreateQuizzesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAchievementsQuizzesV1Quiz.bulkCreateQuizzes(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/quizzes/create',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getQuiz(): __PublicMethodMetaInfo<\n 'GET',\n { quizId: string },\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.GetQuizRequest,\n ambassadorWixAchievementsQuizzesV1QuizTypes.GetQuizRequest,\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.GetQuizResponse,\n ambassadorWixAchievementsQuizzesV1QuizTypes.GetQuizResponse\n> {\n const payload = { quizId: ':quizId' } as any;\n\n const getRequestOptions =\n ambassadorWixAchievementsQuizzesV1Quiz.getQuiz(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/quizzes/{quizId}',\n pathParams: { quizId: 'quizId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteQuiz(): __PublicMethodMetaInfo<\n 'DELETE',\n { quizId: string },\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.DeleteQuizRequest,\n ambassadorWixAchievementsQuizzesV1QuizTypes.DeleteQuizRequest,\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.DeleteQuizResponse,\n ambassadorWixAchievementsQuizzesV1QuizTypes.DeleteQuizResponse\n> {\n const payload = { quizId: ':quizId' } as any;\n\n const getRequestOptions =\n ambassadorWixAchievementsQuizzesV1Quiz.deleteQuiz(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/quizzes/{quizId}',\n pathParams: { quizId: 'quizId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkDeleteQuizzes(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.BulkDeleteQuizzesRequest,\n ambassadorWixAchievementsQuizzesV1QuizTypes.BulkDeleteQuizzesRequest,\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.BulkDeleteQuizzesResponse,\n ambassadorWixAchievementsQuizzesV1QuizTypes.BulkDeleteQuizzesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAchievementsQuizzesV1Quiz.bulkDeleteQuizzes(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/quizzes/delete',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Quiz as QuizOriginal,\n QuizSettings as QuizSettingsOriginal,\n QuizField as QuizFieldOriginal,\n QuizFieldFieldTypeOneOf as QuizFieldFieldTypeOneOfOriginal,\n FileUploadFormat as FileUploadFormatOriginal,\n FileUploadFormatWithLiterals as FileUploadFormatWithLiteralsOriginal,\n NumericField as NumericFieldOriginal,\n ShortTextField as ShortTextFieldOriginal,\n LongTextField as LongTextFieldOriginal,\n SingleChoiceField as SingleChoiceFieldOriginal,\n MultiChoiceField as MultiChoiceFieldOriginal,\n FileUploadField as FileUploadFieldOriginal,\n CreateQuizRequest as CreateQuizRequestOriginal,\n CreateQuizResponse as CreateQuizResponseOriginal,\n CloneQuizRequest as CloneQuizRequestOriginal,\n CloneQuizResponse as CloneQuizResponseOriginal,\n BulkCreateQuizzesRequest as BulkCreateQuizzesRequestOriginal,\n BulkCreateQuizzesResponse as BulkCreateQuizzesResponseOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkCreateQuizzesResponseBulkQuizResult as BulkCreateQuizzesResponseBulkQuizResultOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n BulkCloneQuizzesRequest as BulkCloneQuizzesRequestOriginal,\n BulkCloneQuizzesResponse as BulkCloneQuizzesResponseOriginal,\n BulkQuizResult as BulkQuizResultOriginal,\n GetQuizRequest as GetQuizRequestOriginal,\n GetQuizResponse as GetQuizResponseOriginal,\n DeleteQuizRequest as DeleteQuizRequestOriginal,\n DeleteQuizResponse as DeleteQuizResponseOriginal,\n BulkDeleteQuizzesRequest as BulkDeleteQuizzesRequestOriginal,\n BulkDeleteQuizzesResponse as BulkDeleteQuizzesResponseOriginal,\n BulkDeleteQuizzesResponseBulkQuizResult as BulkDeleteQuizzesResponseBulkQuizResultOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n} from './achievements-quizzes-v1-quiz-quizzes.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,WAAW,SAA6C;AACtE,WAAS,aAAa,EAAE,KAAK,GAAQ;AACnC,UAAM,iBAAiB,eAAe,SAAS;AAAA,MAC7C;AAAA,QACE,aAAa;AAAA,QACb,OAAO,CAAC,EAAE,MAAM,mBAAmB,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAAA,MACpE;AAAA,MACA;AAAA,QACE,aAAa;AAAA,QACb,OAAO;AAAA,UACL,EAA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AAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,QAAQ,SAAS;AAAA,IAC/B,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,qBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACmC,kBAAkB,OAAO;AAElE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","FileUploadFormat","WebhookIdentityType","createQuiz","cloneQuiz","bulkCreateQuizzes","getQuiz","deleteQuiz","bulkDeleteQuizzes"]}
1
+ {"version":3,"sources":["../../src/achievements-quizzes-v1-quiz-quizzes.http.ts","../../src/achievements-quizzes-v1-quiz-quizzes.types.ts","../../src/achievements-quizzes-v1-quiz-quizzes.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixAchievementsQuizzesV1QuizServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/online-programs/v1/quizzes',\n destPath: '/v1/quizzes',\n },\n {\n srcPath: '/online-programs/v1/bulk/quizzes',\n destPath: '/v1/bulk/quizzes',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_online-programs_quizzes';\n\n/**\n * Creates a detached quiz definition with at least one question.\n *\n * 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.\n */\nexport function createQuiz(payload: object): RequestOptionsFactory<any> {\n function __createQuiz({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'quiz.createdDate' }, { path: 'quiz.updatedDate' }],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'quiz.fields.score' },\n { path: 'quiz.fields.numeric.rightAnswer' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.achievements.quizzes.v1.quiz',\n method: 'POST' as any,\n methodFqn: 'wix.achievements.quizzes.v1.QuizService.CreateQuiz',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAchievementsQuizzesV1QuizServiceUrl({\n protoPath: '/v1/quizzes',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'quiz.createdDate' }, { path: 'quiz.updatedDate' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'quiz.fields.score' },\n { path: 'quiz.fields.numeric.rightAnswer' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createQuiz;\n}\n\n/**\n * Clones a quiz definition and returns a new quiz ID.\n *\n * Checks the source before cloning. An existing definition found to have no active questions is rejected with INVALID_QUIZ before cloning. Source checks aren't atomic with cloning.\n *\n * This operation copies the question and settings definition only. It doesn't copy Online Programs step associations or quiz submissions. Attach the returned ID to a step separately when needed.\n */\nexport function cloneQuiz(payload: object): RequestOptionsFactory<any> {\n function __cloneQuiz({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.achievements.quizzes.v1.quiz',\n method: 'POST' as any,\n methodFqn: 'wix.achievements.quizzes.v1.QuizService.CloneQuiz',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAchievementsQuizzesV1QuizServiceUrl({\n protoPath: '/v1/quizzes/{quizId}/clone',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'quiz.createdDate' }, { path: 'quiz.updatedDate' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'quiz.fields.score' },\n { path: 'quiz.fields.numeric.rightAnswer' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __cloneQuiz;\n}\n\n/**\n * Creates up to 30 detached quiz definitions in a single API call. Each definition must contain at least one question.\n *\n * 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.\n *\n * Invalid quiz definitions fail the entire request before any quizzes are created.\n *\n * 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.\n *\n * 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.\n */\nexport function bulkCreateQuizzes(payload: object): RequestOptionsFactory<any> {\n function __bulkCreateQuizzes({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'quizzes.createdDate' },\n { path: 'quizzes.updatedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'quizzes.fields.score' },\n { path: 'quizzes.fields.numeric.rightAnswer' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.achievements.quizzes.v1.quiz',\n method: 'POST' as any,\n methodFqn: 'wix.achievements.quizzes.v1.QuizService.BulkCreateQuizzes',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAchievementsQuizzesV1QuizServiceUrl({\n protoPath: '/v1/bulk/quizzes/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.fields.score' },\n { path: 'results.item.fields.numeric.rightAnswer' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateQuizzes;\n}\n\n/**\n * Retrieves a quiz definition by ID. A stored definition whose questions have all been deleted can be returned with no active questions.\n *\n * To discover a quiz ID, query or retrieve its quiz-type Online Programs step and read `step.quizOptions.id`.\n */\nexport function getQuiz(payload: object): RequestOptionsFactory<any> {\n function __getQuiz({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.achievements.quizzes.v1.quiz',\n method: 'GET' as any,\n methodFqn: 'wix.achievements.quizzes.v1.QuizService.GetQuiz',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAchievementsQuizzesV1QuizServiceUrl({\n protoPath: '/v1/quizzes/{quizId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'quiz.createdDate' }, { path: 'quiz.updatedDate' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'quiz.fields.score' },\n { path: 'quiz.fields.numeric.rightAnswer' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getQuiz;\n}\n\n/**\n * Permanently deletes a quiz definition.\n *\n * 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.\n *\n * 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.\n */\nexport function deleteQuiz(payload: object): RequestOptionsFactory<any> {\n function __deleteQuiz({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.achievements.quizzes.v1.quiz',\n method: 'DELETE' as any,\n methodFqn: 'wix.achievements.quizzes.v1.QuizService.DeleteQuiz',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAchievementsQuizzesV1QuizServiceUrl({\n protoPath: '/v1/quizzes/{quizId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'quiz.createdDate' }, { path: 'quiz.updatedDate' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'quiz.fields.score' },\n { path: 'quiz.fields.numeric.rightAnswer' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __deleteQuiz;\n}\n\n/**\n * Permanently deletes up to 100 quiz definitions.\n *\n * 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.\n *\n * 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.\n *\n * 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.\n */\nexport function bulkDeleteQuizzes(payload: object): RequestOptionsFactory<any> {\n function __bulkDeleteQuizzes({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.achievements.quizzes.v1.quiz',\n method: 'POST' as any,\n methodFqn: 'wix.achievements.quizzes.v1.QuizService.BulkDeleteQuizzes',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAchievementsQuizzesV1QuizServiceUrl({\n protoPath: '/v1/bulk/quizzes/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteQuizzes;\n}\n","/**\n * A quiz definition used by an Online Programs quiz step.\n *\n * Create or clone a quiz, then assign the returned quiz ID to `step.quizOptions.id` when creating an Online Programs step. Quiz IDs are intentionally discovered through quiz-type steps rather than through a Quiz list or query method.\n *\n * New submissions are evaluated against the quiz definition that exists when the submission is created. Previously stored submissions retain their recorded grades and answer evaluations if the definition changes later.\n *\n * NOT-PRECEDENT: The production v1 entity retains its legacy `wix.achievements.quizzes.v1.quiz` identity for compatibility. The Online Programs placement and workflow described here provide its public product context.\n */\nexport interface Quiz {\n /**\n * Quiz ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /** Quiz title, passing grade, and attempt limit. New submissions use the current settings; stored submissions retain their recorded grade data. */\n settings?: QuizSettings;\n /**\n * Current revision of the stored quiz definition. The revision changes when the definition changes. The public Quiz API doesn't currently provide an update method.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the quiz was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the quiz was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * 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.\n *\n * 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.\n * @minSize 1\n * @maxSize 200\n */\n fields?: QuizField[];\n}\n\nexport interface QuizSettings {\n /**\n * 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.\n * @max 100\n */\n passingGrade?: number | null;\n /**\n * Quiz title.\n * @maxLength 200\n */\n title?: string | null;\n /**\n * Maximum number of submissions allowed per submitter. If omitted, no attempt-limit check is applied. With `groupId`, the count uses group ID and submitter ID without filtering by quiz ID; otherwise, it uses quiz ID and submitter ID. Reusing a group ID across quizzes shares their attempt count.\n * @min 1\n */\n attempts?: number | null;\n}\n\n/** Defines one quiz question and its answer input. */\nexport interface QuizField extends QuizFieldFieldTypeOneOf {\n /** Numeric input. */\n numeric?: NumericField;\n /** Short-text input. */\n shortText?: ShortTextField;\n /** Long-text input. Set this to an empty object (`{}`) to select it. */\n longText?: LongTextField;\n /** Input with predefined options where only one option can be selected. */\n singleChoice?: SingleChoiceField;\n /** Input with predefined options where multiple options can be selected. */\n multiChoice?: MultiChoiceField;\n /** File-upload input. */\n fileUpload?: FileUploadField;\n /**\n * Caller-generated GUID that identifies this question. Use a stable value that is unique within the quiz. Submission answer evaluations use this ID to identify the question.\n * @format GUID\n * @immutable\n */\n id?: string;\n /**\n * Stable key used to match a submitted answer to this question. Use a value that is unique within the quiz and don't change or reuse it for another question.\n * @maxLength 200\n * @immutable\n */\n target?: string | null;\n /**\n * Question text.\n * @minLength 1\n * @maxLength 350\n */\n question?: string | null;\n /** Score returned for evaluable answers, whether correct or incorrect. Omitted from non-evaluable answer evaluations. This value doesn't weight the submission's unweighted `earnedGrade` percentage. */\n score?: number | null;\n /**\n * Feedback returned when an evaluable submitted answer is correct. Omitted for non-evaluable answers.\n * @maxLength 350\n */\n rightMessage?: string | null;\n /**\n * Feedback returned when an evaluable submitted answer is incorrect. Omitted for non-evaluable answers.\n * @maxLength 350\n */\n wrongMessage?: string | null;\n}\n\n/** @oneof */\nexport interface QuizFieldFieldTypeOneOf {\n /** Numeric input. */\n numeric?: NumericField;\n /** Short-text input. */\n shortText?: ShortTextField;\n /** Long-text input. Set this to an empty object (`{}`) to select it. */\n longText?: LongTextField;\n /** Input with predefined options where only one option can be selected. */\n singleChoice?: SingleChoiceField;\n /** Input with predefined options where multiple options can be selected. */\n multiChoice?: MultiChoiceField;\n /** File-upload input. */\n fileUpload?: FileUploadField;\n}\n\n/** File categories used by Wix Forms. Categories don't define a custom extension or MIME-type allowlist; accepted file types are controlled by Wix Forms. See [About form fields](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/about-form-fields). */\nexport enum FileUploadFormat {\n /** Image-file category. */\n IMAGE = 'IMAGE',\n /** Video-file category. */\n VIDEO = 'VIDEO',\n /** Audio-file category. */\n AUDIO = 'AUDIO',\n /** Document-file category. */\n DOCUMENT = 'DOCUMENT',\n /** Archive-file category. */\n ARCHIVE = 'ARCHIVE',\n /** 3D-model-file category. */\n MODEL_3D = 'MODEL_3D',\n}\n\n/** @enumType */\nexport type FileUploadFormatWithLiterals =\n | FileUploadFormat\n | 'IMAGE'\n | 'VIDEO'\n | 'AUDIO'\n | 'DOCUMENT'\n | 'ARCHIVE'\n | 'MODEL_3D';\n\nexport interface NumericField {\n /**\n * Correct numeric value. Matching is exact. If no correct value is stored for this question, its submitted answer is non-evaluable and counts as correct when calculating the earned grade.\n *\n * Omitted from responses when the caller lacks achievements:quizzes:v1:quiz:read_sensitive_fields permission. Response filtering doesn't remove the stored key or change grading; an absent response value doesn't mean no correct value is stored.\n */\n rightAnswer?: number | null;\n}\n\nexport interface ShortTextField {\n /**\n * Correct text. Matching trims leading and trailing whitespace and is case-insensitive. If no correct text is stored for this question, its submitted answer is non-evaluable and counts as correct when calculating the earned grade.\n *\n * Omitted from responses when the caller lacks achievements:quizzes:v1:quiz:read_sensitive_fields permission. Response filtering doesn't remove the stored key or change grading; an absent response value doesn't mean no correct text is stored.\n * @minLength 1\n * @maxLength 200\n */\n rightAnswer?: string | null;\n}\n\n/** Long-text input settings. Set `longText` to an empty object (`{}`) to select this input. Long-text answers aren't evaluated and count as correct when calculating the earned grade. */\nexport interface LongTextField {}\n\nexport interface SingleChoiceField {\n /**\n * Correct option. When supplied, it must exactly match an entry in `options`; otherwise, creation fails with INVALID_QUIZ. Matching submitted answers is exact. If no correct option is stored for this question, its submitted answer is non-evaluable and counts as correct when calculating the earned grade.\n *\n * Omitted from responses when the caller lacks achievements:quizzes:v1:quiz:read_sensitive_fields permission. Response filtering doesn't remove the stored key or change grading; an absent response value doesn't mean no correct option is stored.\n * @minLength 1\n * @maxLength 350\n */\n rightAnswer?: string | null;\n /**\n * Options available to the participant. Labels must be unique; comparison is case-sensitive. Duplicate labels are rejected with INVALID_QUIZ before creation.\n * @minSize 1\n * @maxSize 90\n * @minLength 1\n * @maxLength 350\n */\n options?: string[] | null;\n}\n\n/** Multiple-choice input settings. Existing Wix Forms image-choice questions are also returned in this shape, even when their original settings allow only one selection. Image-choice-specific settings aren't exposed by the Quiz API. */\nexport interface MultiChoiceField {\n /**\n * Correct options. Every supplied value must exactly match an entry in `options`; otherwise, creation fails with INVALID_QUIZ. Matching submitted answers ignores option order but doesn't ignore duplicate values. If no correct options are stored for this question, its submitted answer is non-evaluable and counts as correct when calculating the earned grade.\n *\n * Empty in responses when the caller lacks achievements:quizzes:v1:quiz:read_sensitive_fields permission. Response filtering doesn't remove stored keys or change grading; an empty response list doesn't mean no correct options are stored.\n * @maxSize 90\n * @minLength 1\n * @maxLength 350\n */\n rightAnswer?: string[] | null;\n /**\n * Options available to the participant.\n * @minSize 1\n * @maxSize 90\n * @minLength 1\n * @maxLength 350\n */\n options?: string[] | null;\n}\n\nexport interface FileUploadField {\n /**\n * Text displayed on the upload button. Default: `Upload`.\n * @minLength 1\n * @maxLength 100\n */\n buttonText?: string | null;\n /**\n * Maximum number of files a participant can upload for this question, from `1` through `10`. Default: `10`.\n * @min 1\n * @max 10\n */\n itemsLimit?: number | null;\n /**\n * Wix Forms file categories that participants can upload.\n *\n * Specify at least one format. `UNKNOWN_FILE_UPLOAD_FORMAT` isn't supported as a format selection. File-upload answers aren't evaluated and count as correct when calculating the earned grade.\n * @maxSize 6\n */\n fileUploadFormats?: FileUploadFormatWithLiterals[];\n}\n\nexport interface CreateQuizRequest {\n /** Quiz definition to create. Generate a stable unique GUID for every `quiz.fields.id` value. */\n quiz: Quiz;\n}\n\nexport interface CreateQuizResponse {\n /** Created quiz definition. Assign its `id` to `step.quizOptions.id` to create an Online Programs quiz step. */\n quiz?: Quiz;\n}\n\nexport interface CloneQuizRequest {\n /**\n * ID of the quiz definition to clone.\n * @format GUID\n */\n quizId: string;\n}\n\nexport interface CloneQuizResponse {\n /** Cloned quiz definition with a new ID. Step associations and submissions aren't cloned. */\n quiz?: Quiz;\n}\n\nexport interface BulkCreateQuizzesRequest {\n /**\n * Quiz definitions to create.\n * @minSize 1\n * @maxSize 30\n */\n quizzes: Quiz[];\n /**\n * Whether to return the created quizzes in the response.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n}\n\nexport interface BulkCreateQuizzesResponse {\n /**\n * Results of the bulk create operation.\n * @minSize 1\n * @maxSize 30\n */\n results?: BulkCreateQuizzesResponseBulkQuizResult[];\n /** Metadata about the bulk create operation. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkCreateQuizzesResponseBulkQuizResult {\n /** Metadata for the individual create operation. When the operation fails, `error` contains the original Wix Forms application error. */\n itemMetadata?: ItemMetadata;\n /** Created quiz. Empty when `return_entity` is `false`. */\n item?: Quiz;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface BulkCloneQuizzesRequest {\n /**\n * IDs of the quizzes to clone.\n * @minSize 1\n * @maxSize 30\n * @format GUID\n */\n quizIds?: string[];\n /**\n * Whether to return the cloned quizzes in the response.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n}\n\nexport interface BulkCloneQuizzesResponse {\n /** Results of the bulk clone operation, including cloned quizzes and metadata. */\n results?: BulkQuizResult[];\n /** Metadata about the bulk operation. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkQuizResult {\n /** Metadata for the cloned quiz. */\n itemMetadata?: ItemMetadata;\n /** Cloned quiz. Empty when `return_entity` is `false`. */\n item?: Quiz;\n}\n\nexport interface GetQuizRequest {\n /**\n * Quiz ID, available from `step.quizOptions.id` on a quiz-type Online Programs step.\n * @format GUID\n */\n quizId: string;\n}\n\nexport interface GetQuizResponse {\n /** Requested quiz definition. */\n quiz?: Quiz;\n}\n\nexport interface DeleteQuizRequest {\n /**\n * ID of the quiz definition to permanently delete.\n * @format GUID\n */\n quizId: string;\n}\n\nexport interface DeleteQuizResponse {\n /** Permanently deleted quiz definition. */\n quiz?: Quiz;\n}\n\nexport interface BulkDeleteQuizzesRequest {\n /**\n * IDs of the quiz definitions to permanently delete. Coordinate deletion with the Steps API and remove known step references first.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n quizIds: string[];\n}\n\nexport interface BulkDeleteQuizzesResponse {\n /**\n * Results of the bulk delete operation.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkDeleteQuizzesResponseBulkQuizResult[];\n /** Metadata about the bulk delete operation. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteQuizzesResponseBulkQuizResult {\n /** Metadata for the individual delete operation. When the operation fails, `error` contains the original Wix Forms application error. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type CreateQuizApplicationErrors =\n | {\n code?: 'INVALID_QUIZ';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'QUIZ_CONFLICT';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CloneQuizApplicationErrors =\n | {\n code?: 'INVALID_QUIZ';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'QUIZ_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'QUIZ_CONFLICT';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type BulkCreateQuizzesApplicationErrors = {\n code?: 'INVALID_QUIZ';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type GetQuizApplicationErrors = {\n code?: 'QUIZ_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type DeleteQuizApplicationErrors =\n | {\n code?: 'QUIZ_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'QUIZ_CONFLICT';\n description?: string;\n data?: Record<string, any>;\n };\n","import * as ambassadorWixAchievementsQuizzesV1Quiz from './achievements-quizzes-v1-quiz-quizzes.http.js';\nimport * as ambassadorWixAchievementsQuizzesV1QuizTypes from './achievements-quizzes-v1-quiz-quizzes.types.js';\nimport * as ambassadorWixAchievementsQuizzesV1QuizUniversalTypes from './achievements-quizzes-v1-quiz-quizzes.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createQuiz(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.CreateQuizRequest,\n ambassadorWixAchievementsQuizzesV1QuizTypes.CreateQuizRequest,\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.CreateQuizResponse,\n ambassadorWixAchievementsQuizzesV1QuizTypes.CreateQuizResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAchievementsQuizzesV1Quiz.createQuiz(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/quizzes',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function cloneQuiz(): __PublicMethodMetaInfo<\n 'POST',\n { quizId: string },\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.CloneQuizRequest,\n ambassadorWixAchievementsQuizzesV1QuizTypes.CloneQuizRequest,\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.CloneQuizResponse,\n ambassadorWixAchievementsQuizzesV1QuizTypes.CloneQuizResponse\n> {\n const payload = { quizId: ':quizId' } as any;\n\n const getRequestOptions =\n ambassadorWixAchievementsQuizzesV1Quiz.cloneQuiz(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/quizzes/{quizId}/clone',\n pathParams: { quizId: 'quizId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkCreateQuizzes(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.BulkCreateQuizzesRequest,\n ambassadorWixAchievementsQuizzesV1QuizTypes.BulkCreateQuizzesRequest,\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.BulkCreateQuizzesResponse,\n ambassadorWixAchievementsQuizzesV1QuizTypes.BulkCreateQuizzesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAchievementsQuizzesV1Quiz.bulkCreateQuizzes(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/quizzes/create',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getQuiz(): __PublicMethodMetaInfo<\n 'GET',\n { quizId: string },\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.GetQuizRequest,\n ambassadorWixAchievementsQuizzesV1QuizTypes.GetQuizRequest,\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.GetQuizResponse,\n ambassadorWixAchievementsQuizzesV1QuizTypes.GetQuizResponse\n> {\n const payload = { quizId: ':quizId' } as any;\n\n const getRequestOptions =\n ambassadorWixAchievementsQuizzesV1Quiz.getQuiz(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/quizzes/{quizId}',\n pathParams: { quizId: 'quizId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteQuiz(): __PublicMethodMetaInfo<\n 'DELETE',\n { quizId: string },\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.DeleteQuizRequest,\n ambassadorWixAchievementsQuizzesV1QuizTypes.DeleteQuizRequest,\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.DeleteQuizResponse,\n ambassadorWixAchievementsQuizzesV1QuizTypes.DeleteQuizResponse\n> {\n const payload = { quizId: ':quizId' } as any;\n\n const getRequestOptions =\n ambassadorWixAchievementsQuizzesV1Quiz.deleteQuiz(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/quizzes/{quizId}',\n pathParams: { quizId: 'quizId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkDeleteQuizzes(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.BulkDeleteQuizzesRequest,\n ambassadorWixAchievementsQuizzesV1QuizTypes.BulkDeleteQuizzesRequest,\n ambassadorWixAchievementsQuizzesV1QuizUniversalTypes.BulkDeleteQuizzesResponse,\n ambassadorWixAchievementsQuizzesV1QuizTypes.BulkDeleteQuizzesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAchievementsQuizzesV1Quiz.bulkDeleteQuizzes(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/quizzes/delete',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Quiz as QuizOriginal,\n QuizSettings as QuizSettingsOriginal,\n QuizField as QuizFieldOriginal,\n QuizFieldFieldTypeOneOf as QuizFieldFieldTypeOneOfOriginal,\n FileUploadFormat as FileUploadFormatOriginal,\n FileUploadFormatWithLiterals as FileUploadFormatWithLiteralsOriginal,\n NumericField as NumericFieldOriginal,\n ShortTextField as ShortTextFieldOriginal,\n LongTextField as LongTextFieldOriginal,\n SingleChoiceField as SingleChoiceFieldOriginal,\n MultiChoiceField as MultiChoiceFieldOriginal,\n FileUploadField as FileUploadFieldOriginal,\n CreateQuizRequest as CreateQuizRequestOriginal,\n CreateQuizResponse as CreateQuizResponseOriginal,\n CloneQuizRequest as CloneQuizRequestOriginal,\n CloneQuizResponse as CloneQuizResponseOriginal,\n BulkCreateQuizzesRequest as BulkCreateQuizzesRequestOriginal,\n BulkCreateQuizzesResponse as BulkCreateQuizzesResponseOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkCreateQuizzesResponseBulkQuizResult as BulkCreateQuizzesResponseBulkQuizResultOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n BulkCloneQuizzesRequest as BulkCloneQuizzesRequestOriginal,\n BulkCloneQuizzesResponse as BulkCloneQuizzesResponseOriginal,\n BulkQuizResult as BulkQuizResultOriginal,\n GetQuizRequest as GetQuizRequestOriginal,\n GetQuizResponse as GetQuizResponseOriginal,\n DeleteQuizRequest as DeleteQuizRequestOriginal,\n DeleteQuizResponse as DeleteQuizResponseOriginal,\n BulkDeleteQuizzesRequest as BulkDeleteQuizzesRequestOriginal,\n BulkDeleteQuizzesResponse as BulkDeleteQuizzesResponseOriginal,\n BulkDeleteQuizzesResponseBulkQuizResult as BulkDeleteQuizzesResponseBulkQuizResultOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n CreateQuizApplicationErrors as CreateQuizApplicationErrorsOriginal,\n CloneQuizApplicationErrors as CloneQuizApplicationErrorsOriginal,\n BulkCreateQuizzesApplicationErrors as BulkCreateQuizzesApplicationErrorsOriginal,\n GetQuizApplicationErrors as GetQuizApplicationErrorsOriginal,\n DeleteQuizApplicationErrors as DeleteQuizApplicationErrorsOriginal,\n} from './achievements-quizzes-v1-quiz-quizzes.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA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QAAM,oBACmC,QAAQ,OAAO;AAExD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,QAAQ,SAAS;AAAA,IAC/B,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,cAOd;AACA,QAAM,UAAU,EAAE,QAAQ,UAAU;AAEpC,QAAM,oBACmC,WAAW,OAAO;AAE3D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,QAAQ,SAAS;AAAA,IAC/B,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,qBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACmC,kBAAkB,OAAO;AAElE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","FileUploadFormat","WebhookIdentityType","createQuiz","cloneQuiz","bulkCreateQuizzes","getQuiz","deleteQuiz","bulkDeleteQuizzes"]}