only_ever_generator 2.0.7 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helper/schema_helper/build_card_schema.d.ts +23 -10
- package/dist/helper/schema_helper/build_card_schema.d.ts.map +1 -1
- package/dist/helper/schema_helper/build_card_schema.js +8 -6
- package/dist/helper/schema_helper/build_card_schema.js.map +1 -1
- package/dist/index.js +421 -423
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/helper/schema_helper/build_card_schema.ts +8 -7
- package/src/index.ts +421 -421
|
@@ -13,17 +13,29 @@ export declare const cardSchema: {
|
|
|
13
13
|
card_content: {
|
|
14
14
|
anyOf: ({
|
|
15
15
|
type: string;
|
|
16
|
-
|
|
17
|
-
front:
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
properties: {
|
|
17
|
+
front: {
|
|
18
|
+
type: string;
|
|
19
|
+
maxLength: number;
|
|
20
|
+
};
|
|
21
|
+
back: {
|
|
22
|
+
type: string;
|
|
23
|
+
maxLength: number;
|
|
24
|
+
};
|
|
25
|
+
explanation: {
|
|
26
|
+
type: string;
|
|
27
|
+
maxLength: number;
|
|
28
|
+
};
|
|
29
|
+
prompt?: undefined;
|
|
30
|
+
correct_options?: undefined;
|
|
31
|
+
incorrect_options?: undefined;
|
|
32
|
+
choices?: undefined;
|
|
20
33
|
};
|
|
34
|
+
required: string[];
|
|
35
|
+
additionalProperties: boolean;
|
|
21
36
|
minItems?: undefined;
|
|
22
37
|
maxItems?: undefined;
|
|
23
38
|
items?: undefined;
|
|
24
|
-
properties?: undefined;
|
|
25
|
-
required?: undefined;
|
|
26
|
-
additionalProperties?: undefined;
|
|
27
39
|
} | {
|
|
28
40
|
type: string;
|
|
29
41
|
minItems: number;
|
|
@@ -58,7 +70,6 @@ export declare const cardSchema: {
|
|
|
58
70
|
additionalProperties: boolean;
|
|
59
71
|
})[];
|
|
60
72
|
};
|
|
61
|
-
card_content?: undefined;
|
|
62
73
|
properties?: undefined;
|
|
63
74
|
required?: undefined;
|
|
64
75
|
additionalProperties?: undefined;
|
|
@@ -90,11 +101,12 @@ export declare const cardSchema: {
|
|
|
90
101
|
type: string;
|
|
91
102
|
maxLength: number;
|
|
92
103
|
};
|
|
104
|
+
front?: undefined;
|
|
105
|
+
back?: undefined;
|
|
93
106
|
choices?: undefined;
|
|
94
107
|
};
|
|
95
108
|
required: string[];
|
|
96
109
|
additionalProperties: boolean;
|
|
97
|
-
card_content?: undefined;
|
|
98
110
|
minItems?: undefined;
|
|
99
111
|
maxItems?: undefined;
|
|
100
112
|
items?: undefined;
|
|
@@ -129,12 +141,13 @@ export declare const cardSchema: {
|
|
|
129
141
|
type: string;
|
|
130
142
|
maxLength: number;
|
|
131
143
|
};
|
|
144
|
+
front?: undefined;
|
|
145
|
+
back?: undefined;
|
|
132
146
|
correct_options?: undefined;
|
|
133
147
|
incorrect_options?: undefined;
|
|
134
148
|
};
|
|
135
149
|
required: string[];
|
|
136
150
|
additionalProperties: boolean;
|
|
137
|
-
card_content?: undefined;
|
|
138
151
|
minItems?: undefined;
|
|
139
152
|
maxItems?: undefined;
|
|
140
153
|
items?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build_card_schema.d.ts","sourceRoot":"","sources":["../../../src/helper/schema_helper/build_card_schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"build_card_schema.d.ts","sourceRoot":"","sources":["../../../src/helper/schema_helper/build_card_schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyItB,CAAC"}
|
|
@@ -11,18 +11,20 @@ exports.cardSchema = {
|
|
|
11
11
|
properties: {
|
|
12
12
|
type: {
|
|
13
13
|
type: "string",
|
|
14
|
-
enum: ["mcq"],
|
|
14
|
+
enum: ["mcq", "cloze", "match", "flash"],
|
|
15
15
|
},
|
|
16
16
|
card_content: {
|
|
17
17
|
anyOf: [
|
|
18
18
|
// Flash Card
|
|
19
19
|
{
|
|
20
|
-
type: "
|
|
21
|
-
|
|
22
|
-
front:
|
|
23
|
-
back:
|
|
24
|
-
explanation:
|
|
20
|
+
type: "object",
|
|
21
|
+
properties: {
|
|
22
|
+
front: { type: "string", maxLength: 320 },
|
|
23
|
+
back: { type: "string", maxLength: 320 },
|
|
24
|
+
explanation: { type: "string", maxLength: 320 },
|
|
25
25
|
},
|
|
26
|
+
required: ["front", "back"],
|
|
27
|
+
additionalProperties: false,
|
|
26
28
|
},
|
|
27
29
|
// Match Card
|
|
28
30
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build_card_schema.js","sourceRoot":"","sources":["../../../src/helper/schema_helper/build_card_schema.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"build_card_schema.js","sourceRoot":"","sources":["../../../src/helper/schema_helper/build_card_schema.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,IAAI,EAAE;wBACJ,IA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