@freedom_sky/feige-lib 4.66.0 → 5.1.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.
@@ -311,6 +311,186 @@ var Const = /** @class */ (function () {
311
311
  codepage: 'cp852',
312
312
  defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
313
313
  },
314
+ {
315
+ name: 'ភាសាខ្មែរ',
316
+ img: '',
317
+ code: 'km',
318
+ speechCode: 'km-KH',
319
+ dateFormat: common_enum_1.DateFormat.YEAR_MONTH_DAY,
320
+ defaultAreaCode: '855',
321
+ codepage: 'utf-8',
322
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
323
+ },
324
+ {
325
+ name: 'ไทย',
326
+ img: '',
327
+ code: 'th',
328
+ speechCode: 'th-TH',
329
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
330
+ defaultAreaCode: '66',
331
+ codepage: 'utf-8',
332
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
333
+ },
334
+ {
335
+ name: 'ລາວ',
336
+ img: '',
337
+ code: 'lo',
338
+ speechCode: 'lo-LA',
339
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
340
+ defaultAreaCode: '856',
341
+ codepage: 'utf-8',
342
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
343
+ },
344
+ {
345
+ name: 'မြန်မာစာ',
346
+ img: '',
347
+ code: 'my',
348
+ speechCode: 'my-MM',
349
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
350
+ defaultAreaCode: '95',
351
+ codepage: 'utf-8',
352
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
353
+ },
354
+ {
355
+ name: 'Bahasa Melayu',
356
+ img: '',
357
+ code: 'ms',
358
+ speechCode: 'ms-MY',
359
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
360
+ defaultAreaCode: '60',
361
+ codepage: 'cp1252',
362
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
363
+ },
364
+ {
365
+ name: 'Filipino',
366
+ img: '',
367
+ code: 'fil',
368
+ speechCode: 'fil-PH',
369
+ dateFormat: common_enum_1.DateFormat.YEAR_MONTH_DAY,
370
+ defaultAreaCode: '63',
371
+ codepage: 'cp1252',
372
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
373
+ },
374
+ {
375
+ name: 'Polski',
376
+ img: '',
377
+ code: 'pl',
378
+ speechCode: 'pl-PL',
379
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
380
+ defaultAreaCode: '48',
381
+ codepage: 'cp852',
382
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
383
+ },
384
+ {
385
+ name: 'Nederlands',
386
+ img: '',
387
+ code: 'nl',
388
+ speechCode: 'nl-NL',
389
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
390
+ defaultAreaCode: '31',
391
+ codepage: 'cp850',
392
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
393
+ },
394
+ {
395
+ name: 'Magyar',
396
+ img: '',
397
+ code: 'hu',
398
+ speechCode: 'hu-HU',
399
+ dateFormat: common_enum_1.DateFormat.YEAR_MONTH_DAY,
400
+ defaultAreaCode: '36',
401
+ codepage: 'cp852',
402
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
403
+ },
404
+ {
405
+ name: 'Íslenska',
406
+ img: '',
407
+ code: 'is',
408
+ speechCode: 'is-IS',
409
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
410
+ defaultAreaCode: '354',
411
+ codepage: 'cp850',
412
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
413
+ },
414
+ {
415
+ name: 'Norsk',
416
+ img: '',
417
+ code: 'no',
418
+ speechCode: 'nb-NO',
419
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
420
+ defaultAreaCode: '47',
421
+ codepage: 'cp850',
422
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
423
+ },
424
+ {
425
+ name: 'Sámegiella',
426
+ img: '',
427
+ code: 'se',
428
+ speechCode: 'se-NO',
429
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
430
+ defaultAreaCode: '47',
431
+ codepage: 'utf-8',
432
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
433
+ },
434
+ {
435
+ name: 'Suomi',
436
+ img: '',
437
+ code: 'fi',
438
+ speechCode: 'fi-FI',
439
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
440
+ defaultAreaCode: '358',
441
+ codepage: 'cp850',
442
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
443
+ },
444
+ {
445
+ name: 'Svenska',
446
+ img: '',
447
+ code: 'sv',
448
+ speechCode: 'sv-SE',
449
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
450
+ defaultAreaCode: '46',
451
+ codepage: 'cp850',
452
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
453
+ },
454
+ {
455
+ name: 'Kiswahili',
456
+ img: '',
457
+ code: 'sw',
458
+ speechCode: 'sw',
459
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
460
+ defaultAreaCode: '254',
461
+ codepage: 'utf-8',
462
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
463
+ },
464
+ {
465
+ name: 'Српски',
466
+ img: '',
467
+ code: 'sr',
468
+ speechCode: 'sr-RS',
469
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
470
+ defaultAreaCode: '381',
471
+ codepage: 'cp1251',
472
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
473
+ },
474
+ {
475
+ name: 'Română',
476
+ img: '',
477
+ code: 'ro',
478
+ speechCode: 'ro-RO',
479
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
480
+ defaultAreaCode: '40',
481
+ codepage: 'cp1250',
482
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
483
+ },
484
+ {
485
+ name: 'Ελληνικά',
486
+ img: '',
487
+ code: 'el',
488
+ speechCode: 'el-GR',
489
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
490
+ defaultAreaCode: '30',
491
+ codepage: 'cp1253',
492
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
493
+ },
314
494
  ];
315
495
  this.DATE_FORMAT = {
316
496
  YEAR_MONTH_DAY: {
@@ -50,7 +50,7 @@ export interface Store {
50
50
  readonly auditedNames: object;
51
51
  readonly needAuditNames: boolean;
52
52
  readonly img: string;
53
- readonly phone: string;
53
+ readonly phone?: string;
54
54
  description: string;
55
55
  readonly descriptions?: object;
56
56
  readonly type: string;
@@ -8,7 +8,8 @@ export interface CertificatePath {
8
8
  fubei: string;
9
9
  }
10
10
  export interface UserSafe {
11
- readonly mobile: string;
11
+ readonly mobile?: string;
12
+ readonly email?: string;
12
13
  readonly countryCode: string;
13
14
  readonly password: string;
14
15
  readonly salt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freedom_sky/feige-lib",
3
- "version": "4.66.0",
3
+ "version": "5.1.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -309,6 +309,186 @@ class Const {
309
309
  codepage: 'cp852',
310
310
  defaultPrintEncodeType: EncodeTypeEnum.IMG,
311
311
  },
312
+ {
313
+ name: 'ភាសាខ្មែរ', // Khmer
314
+ img: '',
315
+ code: 'km',
316
+ speechCode: 'km-KH',
317
+ dateFormat: DateFormat.YEAR_MONTH_DAY,
318
+ defaultAreaCode: '855',
319
+ codepage: 'utf-8',
320
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
321
+ },
322
+ {
323
+ name: 'ไทย', // Thai
324
+ img: '',
325
+ code: 'th',
326
+ speechCode: 'th-TH',
327
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
328
+ defaultAreaCode: '66',
329
+ codepage: 'utf-8',
330
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
331
+ },
332
+ {
333
+ name: 'ລາວ', // Lao
334
+ img: '',
335
+ code: 'lo',
336
+ speechCode: 'lo-LA',
337
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
338
+ defaultAreaCode: '856',
339
+ codepage: 'utf-8',
340
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
341
+ },
342
+ {
343
+ name: 'မြန်မာစာ', // Burmese
344
+ img: '',
345
+ code: 'my',
346
+ speechCode: 'my-MM',
347
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
348
+ defaultAreaCode: '95',
349
+ codepage: 'utf-8',
350
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
351
+ },
352
+ {
353
+ name: 'Bahasa Melayu', // Malay
354
+ img: '',
355
+ code: 'ms',
356
+ speechCode: 'ms-MY',
357
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
358
+ defaultAreaCode: '60',
359
+ codepage: 'cp1252',
360
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
361
+ },
362
+ {
363
+ name: 'Filipino', // Filipino
364
+ img: '',
365
+ code: 'fil',
366
+ speechCode: 'fil-PH',
367
+ dateFormat: DateFormat.YEAR_MONTH_DAY,
368
+ defaultAreaCode: '63',
369
+ codepage: 'cp1252',
370
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
371
+ },
372
+ {
373
+ name: 'Polski', // Polish
374
+ img: '',
375
+ code: 'pl',
376
+ speechCode: 'pl-PL',
377
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
378
+ defaultAreaCode: '48',
379
+ codepage: 'cp852',
380
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
381
+ },
382
+ {
383
+ name: 'Nederlands', // Dutch
384
+ img: '',
385
+ code: 'nl',
386
+ speechCode: 'nl-NL',
387
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
388
+ defaultAreaCode: '31',
389
+ codepage: 'cp850',
390
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
391
+ },
392
+ {
393
+ name: 'Magyar', // Hungarian
394
+ img: '',
395
+ code: 'hu',
396
+ speechCode: 'hu-HU',
397
+ dateFormat: DateFormat.YEAR_MONTH_DAY,
398
+ defaultAreaCode: '36',
399
+ codepage: 'cp852',
400
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
401
+ },
402
+ {
403
+ name: 'Íslenska', // Icelandic
404
+ img: '',
405
+ code: 'is',
406
+ speechCode: 'is-IS',
407
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
408
+ defaultAreaCode: '354',
409
+ codepage: 'cp850',
410
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
411
+ },
412
+ {
413
+ name: 'Norsk', // Norwegian
414
+ img: '',
415
+ code: 'no',
416
+ speechCode: 'nb-NO',
417
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
418
+ defaultAreaCode: '47',
419
+ codepage: 'cp850',
420
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
421
+ },
422
+ {
423
+ name: 'Sámegiella', // Sami
424
+ img: '',
425
+ code: 'se',
426
+ speechCode: 'se-NO',
427
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
428
+ defaultAreaCode: '47',
429
+ codepage: 'utf-8',
430
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
431
+ },
432
+ {
433
+ name: 'Suomi', // Finnish
434
+ img: '',
435
+ code: 'fi',
436
+ speechCode: 'fi-FI',
437
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
438
+ defaultAreaCode: '358',
439
+ codepage: 'cp850',
440
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
441
+ },
442
+ {
443
+ name: 'Svenska', // Swedish
444
+ img: '',
445
+ code: 'sv',
446
+ speechCode: 'sv-SE',
447
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
448
+ defaultAreaCode: '46',
449
+ codepage: 'cp850',
450
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
451
+ },
452
+ {
453
+ name: 'Kiswahili', // Swahili
454
+ img: '',
455
+ code: 'sw',
456
+ speechCode: 'sw',
457
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
458
+ defaultAreaCode: '254',
459
+ codepage: 'utf-8',
460
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
461
+ },
462
+ {
463
+ name: 'Српски', // Serbian (Cyrillic)
464
+ img: '',
465
+ code: 'sr',
466
+ speechCode: 'sr-RS',
467
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
468
+ defaultAreaCode: '381',
469
+ codepage: 'cp1251',
470
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
471
+ },
472
+ {
473
+ name: 'Română', // Romanian
474
+ img: '',
475
+ code: 'ro',
476
+ speechCode: 'ro-RO',
477
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
478
+ defaultAreaCode: '40',
479
+ codepage: 'cp1250',
480
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
481
+ },
482
+ {
483
+ name: 'Ελληνικά', // Greek
484
+ img: '',
485
+ code: 'el',
486
+ speechCode: 'el-GR',
487
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
488
+ defaultAreaCode: '30',
489
+ codepage: 'cp1253',
490
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
491
+ },
312
492
  ];
313
493
  DATE_FORMAT = {
314
494
  YEAR_MONTH_DAY: {
@@ -61,7 +61,7 @@ export interface Store {
61
61
  readonly auditedNames: object; //审核后的店铺名, 暂时用于发短信
62
62
  readonly needAuditNames: boolean; //如果店铺的名字有变化, 这里就要设置为需要重新审核
63
63
  readonly img: string;
64
- readonly phone: string;
64
+ readonly phone?: string;
65
65
  description: string;
66
66
  readonly descriptions?: object;
67
67
  readonly type: string;
@@ -8,7 +8,8 @@ export interface CertificatePath {
8
8
  fubei: string;
9
9
  }
10
10
  export interface UserSafe {
11
- readonly mobile: string;
11
+ readonly mobile?: string;
12
+ readonly email?: string;
12
13
  readonly countryCode: string;
13
14
  readonly password: string;
14
15
  readonly salt: string;