@apiverve/wordsearch 1.1.14 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +196 -196
- package/index.d.ts +25 -13
- package/index.js +1 -1
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -154,315 +154,315 @@ async function makeRequest() {
|
|
|
154
154
|
"data": {
|
|
155
155
|
"grid": [
|
|
156
156
|
[
|
|
157
|
-
"
|
|
157
|
+
"P",
|
|
158
158
|
"C",
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
159
|
+
"R",
|
|
160
|
+
"J",
|
|
161
|
+
"W",
|
|
162
|
+
"R",
|
|
163
|
+
"D",
|
|
164
|
+
"K",
|
|
162
165
|
"G",
|
|
163
166
|
"D",
|
|
167
|
+
"V",
|
|
168
|
+
"F",
|
|
169
|
+
"J",
|
|
170
|
+
"B",
|
|
171
|
+
"Q"
|
|
172
|
+
],
|
|
173
|
+
[
|
|
174
|
+
"J",
|
|
175
|
+
"F",
|
|
164
176
|
"O",
|
|
165
|
-
"
|
|
177
|
+
"J",
|
|
178
|
+
"E",
|
|
166
179
|
"B",
|
|
167
|
-
"
|
|
180
|
+
"X",
|
|
181
|
+
"I",
|
|
182
|
+
"A",
|
|
183
|
+
"A",
|
|
184
|
+
"S",
|
|
168
185
|
"S",
|
|
169
186
|
"H",
|
|
170
|
-
"
|
|
171
|
-
"
|
|
187
|
+
"X",
|
|
188
|
+
"G"
|
|
172
189
|
],
|
|
173
190
|
[
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"D",
|
|
177
|
-
"Z",
|
|
178
|
-
"M",
|
|
179
|
-
"B",
|
|
191
|
+
"L",
|
|
192
|
+
"N",
|
|
180
193
|
"N",
|
|
181
|
-
"A",
|
|
182
194
|
"Q",
|
|
183
|
-
"B",
|
|
184
195
|
"L",
|
|
185
|
-
"
|
|
196
|
+
"X",
|
|
186
197
|
"G",
|
|
187
|
-
"
|
|
188
|
-
"
|
|
198
|
+
"E",
|
|
199
|
+
"M",
|
|
200
|
+
"X",
|
|
201
|
+
"F",
|
|
202
|
+
"Q",
|
|
203
|
+
"X",
|
|
204
|
+
"V",
|
|
205
|
+
"B"
|
|
189
206
|
],
|
|
190
207
|
[
|
|
191
|
-
"
|
|
208
|
+
"S",
|
|
209
|
+
"J",
|
|
192
210
|
"Y",
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"
|
|
211
|
+
"L",
|
|
212
|
+
"X",
|
|
213
|
+
"Z",
|
|
214
|
+
"T",
|
|
215
|
+
"X",
|
|
216
|
+
"E",
|
|
217
|
+
"A",
|
|
218
|
+
"K",
|
|
219
|
+
"M",
|
|
220
|
+
"X",
|
|
221
|
+
"C",
|
|
222
|
+
"Y"
|
|
223
|
+
],
|
|
224
|
+
[
|
|
198
225
|
"S",
|
|
226
|
+
"G",
|
|
199
227
|
"F",
|
|
200
|
-
"U",
|
|
201
|
-
"W",
|
|
202
228
|
"O",
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
"
|
|
229
|
+
"E",
|
|
230
|
+
"J",
|
|
231
|
+
"F",
|
|
232
|
+
"X",
|
|
233
|
+
"M",
|
|
234
|
+
"W",
|
|
235
|
+
"V",
|
|
236
|
+
"E",
|
|
237
|
+
"I",
|
|
238
|
+
"M",
|
|
239
|
+
"X"
|
|
206
240
|
],
|
|
207
241
|
[
|
|
208
242
|
"W",
|
|
209
|
-
"
|
|
210
|
-
"V",
|
|
211
|
-
"O",
|
|
212
|
-
"X",
|
|
213
|
-
"Z",
|
|
243
|
+
"D",
|
|
214
244
|
"V",
|
|
245
|
+
"Y",
|
|
246
|
+
"D",
|
|
247
|
+
"T",
|
|
248
|
+
"T",
|
|
249
|
+
"N",
|
|
215
250
|
"F",
|
|
216
|
-
"E",
|
|
217
|
-
"L",
|
|
218
|
-
"Z",
|
|
219
|
-
"Z",
|
|
220
251
|
"U",
|
|
252
|
+
"K",
|
|
253
|
+
"L",
|
|
221
254
|
"P",
|
|
222
|
-
"
|
|
255
|
+
"C",
|
|
256
|
+
"T"
|
|
223
257
|
],
|
|
224
258
|
[
|
|
225
|
-
"
|
|
259
|
+
"E",
|
|
260
|
+
"R",
|
|
261
|
+
"H",
|
|
262
|
+
"M",
|
|
263
|
+
"B",
|
|
264
|
+
"N",
|
|
265
|
+
"T",
|
|
266
|
+
"B",
|
|
226
267
|
"M",
|
|
227
|
-
"W",
|
|
228
|
-
"P",
|
|
229
|
-
"L",
|
|
230
|
-
"W",
|
|
231
|
-
"U",
|
|
232
|
-
"P",
|
|
233
|
-
"P",
|
|
234
|
-
"W",
|
|
235
|
-
"K",
|
|
236
268
|
"A",
|
|
237
|
-
"E",
|
|
238
269
|
"D",
|
|
239
|
-
"
|
|
270
|
+
"Z",
|
|
271
|
+
"X",
|
|
272
|
+
"A",
|
|
273
|
+
"D"
|
|
240
274
|
],
|
|
241
275
|
[
|
|
242
|
-
"I",
|
|
243
276
|
"D",
|
|
244
277
|
"O",
|
|
245
|
-
"
|
|
246
|
-
"P",
|
|
278
|
+
"G",
|
|
247
279
|
"S",
|
|
280
|
+
"Y",
|
|
248
281
|
"E",
|
|
249
|
-
"
|
|
250
|
-
"
|
|
251
|
-
"
|
|
282
|
+
"B",
|
|
283
|
+
"E",
|
|
284
|
+
"T",
|
|
252
285
|
"H",
|
|
286
|
+
"I",
|
|
253
287
|
"Z",
|
|
254
|
-
"
|
|
255
|
-
"
|
|
256
|
-
"
|
|
288
|
+
"K",
|
|
289
|
+
"D",
|
|
290
|
+
"P"
|
|
257
291
|
],
|
|
258
292
|
[
|
|
259
|
-
"
|
|
293
|
+
"F",
|
|
294
|
+
"W",
|
|
260
295
|
"S",
|
|
296
|
+
"E",
|
|
297
|
+
"A",
|
|
261
298
|
"R",
|
|
262
|
-
"L",
|
|
263
|
-
"C",
|
|
264
|
-
"N",
|
|
265
299
|
"C",
|
|
266
|
-
"
|
|
267
|
-
"
|
|
268
|
-
"U",
|
|
300
|
+
"H",
|
|
301
|
+
"R",
|
|
269
302
|
"G",
|
|
270
|
-
"F",
|
|
271
|
-
"Y",
|
|
272
|
-
"Y",
|
|
273
|
-
"I"
|
|
274
|
-
],
|
|
275
|
-
[
|
|
276
|
-
"D",
|
|
277
|
-
"P",
|
|
278
|
-
"D",
|
|
279
|
-
"T",
|
|
280
|
-
"J",
|
|
281
|
-
"E",
|
|
282
303
|
"X",
|
|
283
304
|
"U",
|
|
284
|
-
"E",
|
|
285
|
-
"B",
|
|
286
|
-
"E",
|
|
287
|
-
"K",
|
|
288
|
-
"D",
|
|
289
305
|
"B",
|
|
290
|
-
"
|
|
306
|
+
"Y",
|
|
307
|
+
"D"
|
|
291
308
|
],
|
|
292
309
|
[
|
|
293
|
-
"
|
|
310
|
+
"H",
|
|
311
|
+
"C",
|
|
312
|
+
"G",
|
|
313
|
+
"E",
|
|
314
|
+
"N",
|
|
294
315
|
"B",
|
|
295
316
|
"K",
|
|
296
|
-
"D",
|
|
297
|
-
"N",
|
|
298
|
-
"D",
|
|
299
317
|
"E",
|
|
300
|
-
"
|
|
301
|
-
"
|
|
302
|
-
"
|
|
303
|
-
"B",
|
|
304
|
-
"Z",
|
|
305
|
-
"N",
|
|
318
|
+
"L",
|
|
319
|
+
"S",
|
|
320
|
+
"E",
|
|
306
321
|
"P",
|
|
307
|
-
"
|
|
322
|
+
"O",
|
|
323
|
+
"E",
|
|
324
|
+
"N"
|
|
308
325
|
],
|
|
309
326
|
[
|
|
310
|
-
"
|
|
311
|
-
"
|
|
312
|
-
"M",
|
|
313
|
-
"K",
|
|
314
|
-
"V",
|
|
327
|
+
"P",
|
|
328
|
+
"A",
|
|
315
329
|
"D",
|
|
316
|
-
"
|
|
317
|
-
"
|
|
318
|
-
"
|
|
330
|
+
"W",
|
|
331
|
+
"D",
|
|
332
|
+
"D",
|
|
333
|
+
"K",
|
|
334
|
+
"A",
|
|
319
335
|
"T",
|
|
320
|
-
"
|
|
321
|
-
"
|
|
322
|
-
"
|
|
323
|
-
"
|
|
336
|
+
"E",
|
|
337
|
+
"A",
|
|
338
|
+
"A",
|
|
339
|
+
"G",
|
|
340
|
+
"R",
|
|
324
341
|
"I"
|
|
325
342
|
],
|
|
326
343
|
[
|
|
327
|
-
"
|
|
328
|
-
"
|
|
344
|
+
"C",
|
|
345
|
+
"T",
|
|
346
|
+
"C",
|
|
347
|
+
"E",
|
|
329
348
|
"Q",
|
|
330
|
-
"
|
|
331
|
-
"J",
|
|
332
|
-
"I",
|
|
333
|
-
"A",
|
|
334
|
-
"I",
|
|
349
|
+
"W",
|
|
335
350
|
"S",
|
|
336
|
-
"
|
|
351
|
+
"Q",
|
|
352
|
+
"O",
|
|
337
353
|
"W",
|
|
338
|
-
"
|
|
339
|
-
"
|
|
340
|
-
"
|
|
341
|
-
"
|
|
354
|
+
"X",
|
|
355
|
+
"R",
|
|
356
|
+
"O",
|
|
357
|
+
"E",
|
|
358
|
+
"F"
|
|
342
359
|
],
|
|
343
360
|
[
|
|
344
|
-
"
|
|
345
|
-
"
|
|
346
|
-
"
|
|
347
|
-
"
|
|
361
|
+
"P",
|
|
362
|
+
"E",
|
|
363
|
+
"S",
|
|
364
|
+
"I",
|
|
348
365
|
"F",
|
|
349
|
-
"
|
|
366
|
+
"L",
|
|
350
367
|
"G",
|
|
351
|
-
"M",
|
|
352
368
|
"E",
|
|
353
|
-
"
|
|
354
|
-
"
|
|
355
|
-
"
|
|
356
|
-
"
|
|
357
|
-
"
|
|
369
|
+
"N",
|
|
370
|
+
"V",
|
|
371
|
+
"X",
|
|
372
|
+
"I",
|
|
373
|
+
"V",
|
|
374
|
+
"K",
|
|
358
375
|
"I"
|
|
359
376
|
],
|
|
360
377
|
[
|
|
378
|
+
"T",
|
|
379
|
+
"G",
|
|
380
|
+
"G",
|
|
381
|
+
"Z",
|
|
382
|
+
"X",
|
|
383
|
+
"A",
|
|
361
384
|
"D",
|
|
362
|
-
"N",
|
|
363
|
-
"P",
|
|
364
|
-
"P",
|
|
365
|
-
"I",
|
|
366
385
|
"A",
|
|
367
|
-
"U",
|
|
368
386
|
"F",
|
|
369
|
-
"
|
|
370
|
-
"
|
|
371
|
-
"
|
|
372
|
-
"
|
|
373
|
-
"
|
|
374
|
-
"M",
|
|
387
|
+
"S",
|
|
388
|
+
"U",
|
|
389
|
+
"D",
|
|
390
|
+
"N",
|
|
391
|
+
"S",
|
|
375
392
|
"P"
|
|
376
393
|
],
|
|
377
394
|
[
|
|
378
|
-
"
|
|
379
|
-
"
|
|
380
|
-
"P",
|
|
381
|
-
"S",
|
|
382
|
-
"R",
|
|
383
|
-
"E",
|
|
384
|
-
"T",
|
|
395
|
+
"Z",
|
|
396
|
+
"J",
|
|
385
397
|
"T",
|
|
386
|
-
"E",
|
|
387
398
|
"L",
|
|
388
|
-
"
|
|
399
|
+
"N",
|
|
400
|
+
"E",
|
|
389
401
|
"D",
|
|
390
|
-
"T",
|
|
391
|
-
"W",
|
|
392
|
-
"S"
|
|
393
|
-
],
|
|
394
|
-
[
|
|
395
|
-
"Y",
|
|
396
|
-
"G",
|
|
397
|
-
"V",
|
|
398
|
-
"K",
|
|
399
|
-
"X",
|
|
400
|
-
"G",
|
|
401
402
|
"D",
|
|
403
|
+
"I",
|
|
404
|
+
"H",
|
|
405
|
+
"Z",
|
|
402
406
|
"O",
|
|
403
|
-
"
|
|
404
|
-
"
|
|
405
|
-
"
|
|
406
|
-
"R",
|
|
407
|
-
"W",
|
|
408
|
-
"T",
|
|
409
|
-
"F"
|
|
407
|
+
"A",
|
|
408
|
+
"A",
|
|
409
|
+
"A"
|
|
410
410
|
]
|
|
411
411
|
],
|
|
412
412
|
"words": [
|
|
413
413
|
{
|
|
414
414
|
"word": "LETTERS",
|
|
415
415
|
"start": {
|
|
416
|
-
"row":
|
|
417
|
-
"col":
|
|
416
|
+
"row": 3,
|
|
417
|
+
"col": 3
|
|
418
418
|
},
|
|
419
|
-
"direction": "
|
|
419
|
+
"direction": "diagonal-down-right"
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
422
|
"word": "PUZZLE",
|
|
423
423
|
"start": {
|
|
424
|
-
"row":
|
|
425
|
-
"col":
|
|
424
|
+
"row": 9,
|
|
425
|
+
"col": 11
|
|
426
426
|
},
|
|
427
|
-
"direction": "
|
|
427
|
+
"direction": "up"
|
|
428
428
|
},
|
|
429
429
|
{
|
|
430
430
|
"word": "SEARCH",
|
|
431
431
|
"start": {
|
|
432
|
-
"row":
|
|
433
|
-
"col":
|
|
432
|
+
"row": 8,
|
|
433
|
+
"col": 2
|
|
434
434
|
},
|
|
435
435
|
"direction": "right"
|
|
436
436
|
},
|
|
437
437
|
{
|
|
438
438
|
"word": "HIDDEN",
|
|
439
439
|
"start": {
|
|
440
|
-
"row":
|
|
441
|
-
"col":
|
|
440
|
+
"row": 14,
|
|
441
|
+
"col": 9
|
|
442
442
|
},
|
|
443
|
-
"direction": "
|
|
443
|
+
"direction": "left"
|
|
444
444
|
},
|
|
445
445
|
{
|
|
446
446
|
"word": "WORD",
|
|
447
447
|
"start": {
|
|
448
|
-
"row":
|
|
449
|
-
"col":
|
|
448
|
+
"row": 8,
|
|
449
|
+
"col": 1
|
|
450
450
|
},
|
|
451
|
-
"direction": "
|
|
451
|
+
"direction": "up"
|
|
452
452
|
},
|
|
453
453
|
{
|
|
454
454
|
"word": "GAME",
|
|
455
455
|
"start": {
|
|
456
|
-
"row":
|
|
457
|
-
"col":
|
|
456
|
+
"row": 0,
|
|
457
|
+
"col": 8
|
|
458
458
|
},
|
|
459
|
-
"direction": "
|
|
459
|
+
"direction": "down"
|
|
460
460
|
},
|
|
461
461
|
{
|
|
462
462
|
"word": "FIND",
|
|
463
463
|
"start": {
|
|
464
|
-
"row":
|
|
465
|
-
"col":
|
|
464
|
+
"row": 11,
|
|
465
|
+
"col": 14
|
|
466
466
|
},
|
|
467
467
|
"direction": "up"
|
|
468
468
|
}
|
|
@@ -470,18 +470,18 @@ async function makeRequest() {
|
|
|
470
470
|
"wordCount": 7,
|
|
471
471
|
"size": 15,
|
|
472
472
|
"difficulty": "medium",
|
|
473
|
-
"html": "<html><head><title>Word Search Puzzle</title><style>body {font-family: Arial, sans-serif; padding: 20px;}.container {display: flex; gap: 40px;}table {border-collapse: collapse;}td {width: 30px; height: 30px; text-align: center; font-size: 18px; font-weight: bold; border: 1px solid #ccc;}.word-list {font-size: 16px;}.word-list h3 {margin-bottom: 10px;}.word-list ul {list-style: none; padding: 0;}.word-list li {margin: 5px 0;}</style></head><body><div class='container'><div><table><tr><td>
|
|
473
|
+
"html": "<html><head><title>Word Search Puzzle</title><style>body {font-family: Arial, sans-serif; padding: 20px;}.container {display: flex; gap: 40px;}table {border-collapse: collapse;}td {width: 30px; height: 30px; text-align: center; font-size: 18px; font-weight: bold; border: 1px solid #ccc;}.word-list {font-size: 16px;}.word-list h3 {margin-bottom: 10px;}.word-list ul {list-style: none; padding: 0;}.word-list li {margin: 5px 0;}</style></head><body><div class='container'><div><table><tr><td>P</td><td>C</td><td>R</td><td>J</td><td>W</td><td>R</td><td>D</td><td>K</td><td>G</td><td>D</td><td>V</td><td>F</td><td>J</td><td>B</td><td>Q</td></tr><tr><td>J</td><td>F</td><td>O</td><td>J</td><td>E</td><td>B</td><td>X</td><td>I</td><td>A</td><td>A</td><td>S</td><td>S</td><td>H</td><td>X</td><td>G</td></tr><tr><td>L</td><td>N</td><td>N</td><td>Q</td><td>L</td><td>X</td><td>G</td><td>E</td><td>M</td><td>X</td><td>F</td><td>Q</td><td>X</td><td>V</td><td>B</td></tr><tr><td>S</td><td>J</td><td>Y</td><td>L</td><td>X</td><td>Z</td><td>T</td><td>X</td><td>E</td><td>A</td><td>K</td><td>M</td><td>X</td><td>C</td><td>Y</td></tr><tr><td>S</td><td>G</td><td>F</td><td>O</td><td>E</td><td>J</td><td>F</td><td>X</td><td>M</td><td>W</td><td>V</td><td>E</td><td>I</td><td>M</td><td>X</td></tr><tr><td>W</td><td>D</td><td>V</td><td>Y</td><td>D</td><td>T</td><td>T</td><td>N</td><td>F</td><td>U</td><td>K</td><td>L</td><td>P</td><td>C</td><td>T</td></tr><tr><td>E</td><td>R</td><td>H</td><td>M</td><td>B</td><td>N</td><td>T</td><td>B</td><td>M</td><td>A</td><td>D</td><td>Z</td><td>X</td><td>A</td><td>D</td></tr><tr><td>D</td><td>O</td><td>G</td><td>S</td><td>Y</td><td>E</td><td>B</td><td>E</td><td>T</td><td>H</td><td>I</td><td>Z</td><td>K</td><td>D</td><td>P</td></tr><tr><td>F</td><td>W</td><td>S</td><td>E</td><td>A</td><td>R</td><td>C</td><td>H</td><td>R</td><td>G</td><td>X</td><td>U</td><td>B</td><td>Y</td><td>D</td></tr><tr><td>H</td><td>C</td><td>G</td><td>E</td><td>N</td><td>B</td><td>K</td><td>E</td><td>L</td><td>S</td><td>E</td><td>P</td><td>O</td><td>E</td><td>N</td></tr><tr><td>P</td><td>A</td><td>D</td><td>W</td><td>D</td><td>D</td><td>K</td><td>A</td><td>T</td><td>E</td><td>A</td><td>A</td><td>G</td><td>R</td><td>I</td></tr><tr><td>C</td><td>T</td><td>C</td><td>E</td><td>Q</td><td>W</td><td>S</td><td>Q</td><td>O</td><td>W</td><td>X</td><td>R</td><td>O</td><td>E</td><td>F</td></tr><tr><td>P</td><td>E</td><td>S</td><td>I</td><td>F</td><td>L</td><td>G</td><td>E</td><td>N</td><td>V</td><td>X</td><td>I</td><td>V</td><td>K</td><td>I</td></tr><tr><td>T</td><td>G</td><td>G</td><td>Z</td><td>X</td><td>A</td><td>D</td><td>A</td><td>F</td><td>S</td><td>U</td><td>D</td><td>N</td><td>S</td><td>P</td></tr><tr><td>Z</td><td>J</td><td>T</td><td>L</td><td>N</td><td>E</td><td>D</td><td>D</td><td>I</td><td>H</td><td>Z</td><td>O</td><td>A</td><td>A</td><td>A</td></tr></table></div><div class='word-list'><h3>Find these words:</h3><ul><li>LETTERS</li><li>PUZZLE</li><li>SEARCH</li><li>HIDDEN</li><li>WORD</li><li>GAME</li><li>FIND</li></ul></div></div></body></html>",
|
|
474
474
|
"image": {
|
|
475
|
-
"imageName": "
|
|
475
|
+
"imageName": "0ce84c70-c791-40f9-adfa-2ad3823667f7_puzzle.png",
|
|
476
476
|
"format": ".png",
|
|
477
|
-
"downloadURL": "https://storage.googleapis.com/apiverve
|
|
478
|
-
"expires":
|
|
477
|
+
"downloadURL": "https://storage.googleapis.com/apiverve/APIData/wordsearch/0ce84c70-c791-40f9-adfa-2ad3823667f7_puzzle.png?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1766010772&Signature=QOHSnr40T1DxKtie7xCSTwnqNwfgaur%2BUZDwPf8xhgiaynJPDQjvrVJwZBlkuSFXQFyd212HYyui%2BMUjHIVhMvL8TaGUucqOvXhsaXXl9p5vzQhGsGP2crtP8U94NpXonrL0GjnmFmFFaQOJELbcCqMLfTl5XjArtNsMTp0%2Bj3b8DeL6ljMZe09sRgL5i7cslA%2BLljRRX20Dbd2%2BuqR1r2aGY6pMZEqr7djDDF3uLNnyPq8M2wKPX243FASrcl3URyXZMkVduPYvkwIxvGkcOoeE7GrZo%2FnpOElZgbwevDCklXJ3fS6Ij2ffkLlYSrDNM11VSYUrU1fzgfHX2w%2F5ew%3D%3D",
|
|
478
|
+
"expires": 1766010772936
|
|
479
479
|
},
|
|
480
480
|
"solutionImage": {
|
|
481
|
-
"imageName": "
|
|
481
|
+
"imageName": "b4dc1d71-86e4-4331-af3b-01295373b772_solution.png",
|
|
482
482
|
"format": ".png",
|
|
483
|
-
"downloadURL": "https://storage.googleapis.com/apiverve
|
|
484
|
-
"expires":
|
|
483
|
+
"downloadURL": "https://storage.googleapis.com/apiverve/APIData/wordsearch/b4dc1d71-86e4-4331-af3b-01295373b772_solution.png?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1766010773&Signature=j8897QcmWY1g4fKyE4JUEL4RZ6OCXJCCRmB04DFCpjFOW4vUDfgc62cwJDIBZsCcnbFzTfShMekQJFvrie8MHR59VtbYD58XXI7RPRbxjjEdfZ6exdiRgN%2BXZ%2B%2Ff5L7DksaYC%2Bf6FL80REs4Vb7C%2B0PBlRa%2FBpqo%2FcHXL4An5dIsUKyzXLNrDE6AvYXIyiKNYRcsfTN8g7ekXxqM4uI5XYYF3Kl4KlORrVs395S421Bk1j9Qpet04lI7vTe7dwQIDimuOshA56LfhjN5OK%2FGCxyC0IAJ4cTZcN52ggkeEQSX%2BOgX8Sy%2B6%2BsM7YmkBOVeB%2FKlO7CIX1rKcO5oFOzN8Q%3D%3D",
|
|
484
|
+
"expires": 1766010773937
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
}
|
package/index.d.ts
CHANGED
|
@@ -4,41 +4,53 @@ declare module '@apiverve/wordsearch' {
|
|
|
4
4
|
secure?: boolean;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Describes fields the current plan does not unlock. Locked fields arrive as null
|
|
9
|
+
* in `data`; `locked_fields` names them, using dot paths for nested fields.
|
|
10
|
+
* Absent when the plan unlocks everything.
|
|
11
|
+
*/
|
|
12
|
+
export interface PremiumInfo {
|
|
13
|
+
message: string;
|
|
14
|
+
upgrade_url: string;
|
|
15
|
+
locked_fields: string[];
|
|
16
|
+
}
|
|
17
|
+
|
|
7
18
|
export interface wordsearchResponse {
|
|
8
19
|
status: string;
|
|
9
20
|
error: string | null;
|
|
10
21
|
data: WordSearchGeneratorData;
|
|
11
22
|
code?: number;
|
|
23
|
+
premium?: PremiumInfo;
|
|
12
24
|
}
|
|
13
25
|
|
|
14
26
|
|
|
15
27
|
interface WordSearchGeneratorData {
|
|
16
|
-
grid: Array<string[]>;
|
|
28
|
+
grid: Array<(null | string)[]>;
|
|
17
29
|
words: Word[];
|
|
18
|
-
wordCount: number;
|
|
19
|
-
size: number;
|
|
20
|
-
difficulty: string;
|
|
21
|
-
html: string;
|
|
30
|
+
wordCount: number | null;
|
|
31
|
+
size: number | null;
|
|
32
|
+
difficulty: null | string;
|
|
33
|
+
html: null | string;
|
|
22
34
|
image: Image;
|
|
23
35
|
solutionImage: Image;
|
|
24
36
|
}
|
|
25
37
|
|
|
26
38
|
interface Image {
|
|
27
|
-
imageName: string;
|
|
28
|
-
format: string;
|
|
29
|
-
downloadURL: string;
|
|
30
|
-
expires: number;
|
|
39
|
+
imageName: null | string;
|
|
40
|
+
format: null | string;
|
|
41
|
+
downloadURL: null | string;
|
|
42
|
+
expires: number | null;
|
|
31
43
|
}
|
|
32
44
|
|
|
33
45
|
interface Word {
|
|
34
|
-
word: string;
|
|
46
|
+
word: null | string;
|
|
35
47
|
start: Start;
|
|
36
|
-
direction: string;
|
|
48
|
+
direction: null | string;
|
|
37
49
|
}
|
|
38
50
|
|
|
39
51
|
interface Start {
|
|
40
|
-
row: number;
|
|
41
|
-
col: number;
|
|
52
|
+
row: number | null;
|
|
53
|
+
col: number | null;
|
|
42
54
|
}
|
|
43
55
|
|
|
44
56
|
export default class wordsearchWrapper {
|
package/index.js
CHANGED
|
@@ -30,7 +30,7 @@ class wordsearchWrapper {
|
|
|
30
30
|
this.baseURL = 'https://api.apiverve.com/v1/wordsearch';
|
|
31
31
|
|
|
32
32
|
// Validation rules for parameters (generated from schema)
|
|
33
|
-
this.validationRules = {"words":{"type":"array","required":true},"size":{"type":"integer","required":false,"min":10,"max":30,"default":15},"difficulty":{"type":"string","required":false,"default":"medium"}};
|
|
33
|
+
this.validationRules = {"words":{"type":"array","required":true},"size":{"type":"integer","required":false,"min":10,"max":30,"default":15},"difficulty":{"type":"string","required":false,"default":"medium"},"image":{"type":"boolean","required":false,"default":false},"solutionImage":{"type":"boolean","required":false,"default":false}};
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apiverve/wordsearch",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Word Search Generator creates customizable word search puzzles with configurable grid size, word placement, and difficulty levels.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": ">=
|
|
9
|
+
"node": ">=18.0.0"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"directory": "npm"
|
|
24
24
|
},
|
|
25
25
|
"keywords": [
|
|
26
|
-
""
|
|
26
|
+
"word search", "word find", "puzzle generator", "printable puzzles", "word games"
|
|
27
27
|
],
|
|
28
28
|
"author": {
|
|
29
29
|
"name": "APIVerve",
|
|
@@ -41,8 +41,7 @@
|
|
|
41
41
|
"dotenv": "^16.4.7"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"axios": "1.13.2"
|
|
44
|
+
"axios": "1.13.2",
|
|
45
|
+
"form-data": "^4.0.1"
|
|
47
46
|
}
|
|
48
47
|
}
|