@lark-project/js-sdk 2.1.3-alpha.2 → 2.1.3-dev.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/dist/es/index.js +76 -40
- package/dist/lib/index.js +78 -40
- package/dist/types/index.d.ts +67 -59
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -302,18 +302,34 @@ _a15 = IMPL_KEY;
|
|
|
302
302
|
*/
|
|
303
303
|
Utils[_a15] = "utils";
|
|
304
304
|
|
|
305
|
-
// src/biz/
|
|
305
|
+
// src/biz/Geolocation.ts
|
|
306
306
|
var _a16;
|
|
307
|
-
var
|
|
307
|
+
var Geolocation = class extends BaseModel {
|
|
308
|
+
/**
|
|
309
|
+
* @internal
|
|
310
|
+
*/
|
|
311
|
+
static load() {
|
|
312
|
+
throw new Error("not implemented");
|
|
313
|
+
}
|
|
308
314
|
};
|
|
309
315
|
_a16 = IMPL_KEY;
|
|
310
316
|
/**
|
|
311
317
|
* @internal
|
|
312
318
|
*/
|
|
313
|
-
|
|
319
|
+
Geolocation[_a16] = "geolocation";
|
|
314
320
|
|
|
315
|
-
// src/
|
|
321
|
+
// src/biz/Event.ts
|
|
316
322
|
var _a17;
|
|
323
|
+
var Event = class extends BaseModel {
|
|
324
|
+
};
|
|
325
|
+
_a17 = IMPL_KEY;
|
|
326
|
+
/**
|
|
327
|
+
* @internal
|
|
328
|
+
*/
|
|
329
|
+
Event[_a17] = "event";
|
|
330
|
+
|
|
331
|
+
// src/features/ContainerModal.ts
|
|
332
|
+
var _a18;
|
|
317
333
|
var ContainerModal = class extends BaseModel {
|
|
318
334
|
/**
|
|
319
335
|
* 加载数据
|
|
@@ -322,14 +338,14 @@ var ContainerModal = class extends BaseModel {
|
|
|
322
338
|
throw new Error("not implemented");
|
|
323
339
|
}
|
|
324
340
|
};
|
|
325
|
-
|
|
341
|
+
_a18 = IMPL_KEY;
|
|
326
342
|
/**
|
|
327
343
|
* @internal
|
|
328
344
|
*/
|
|
329
|
-
ContainerModal[
|
|
345
|
+
ContainerModal[_a18] = "containerModal";
|
|
330
346
|
|
|
331
347
|
// src/features/Intercept.ts
|
|
332
|
-
var
|
|
348
|
+
var _a19;
|
|
333
349
|
var Intercept = class extends BaseModel {
|
|
334
350
|
/**
|
|
335
351
|
* 加载数据
|
|
@@ -338,14 +354,14 @@ var Intercept = class extends BaseModel {
|
|
|
338
354
|
throw new Error("not implemented");
|
|
339
355
|
}
|
|
340
356
|
};
|
|
341
|
-
|
|
357
|
+
_a19 = IMPL_KEY;
|
|
342
358
|
/**
|
|
343
359
|
* @internal
|
|
344
360
|
*/
|
|
345
|
-
Intercept[
|
|
361
|
+
Intercept[_a19] = "intercept";
|
|
346
362
|
|
|
347
363
|
// src/features/Control.ts
|
|
348
|
-
var
|
|
364
|
+
var _a20;
|
|
349
365
|
var Control = class extends BaseModel {
|
|
350
366
|
/**
|
|
351
367
|
* 加载数据
|
|
@@ -354,14 +370,14 @@ var Control = class extends BaseModel {
|
|
|
354
370
|
throw new Error("not implemented");
|
|
355
371
|
}
|
|
356
372
|
};
|
|
357
|
-
|
|
373
|
+
_a20 = IMPL_KEY;
|
|
358
374
|
/**
|
|
359
375
|
* @internal
|
|
360
376
|
*/
|
|
361
|
-
Control[
|
|
377
|
+
Control[_a20] = "control";
|
|
362
378
|
|
|
363
379
|
// src/features/Button.ts
|
|
364
|
-
var
|
|
380
|
+
var _a21;
|
|
365
381
|
var Button = class extends BaseModel {
|
|
366
382
|
/**
|
|
367
383
|
* 加载数据
|
|
@@ -370,14 +386,14 @@ var Button = class extends BaseModel {
|
|
|
370
386
|
throw new Error("not implemented");
|
|
371
387
|
}
|
|
372
388
|
};
|
|
373
|
-
|
|
389
|
+
_a21 = IMPL_KEY;
|
|
374
390
|
/**
|
|
375
391
|
* @internal
|
|
376
392
|
*/
|
|
377
|
-
Button[
|
|
393
|
+
Button[_a21] = "button";
|
|
378
394
|
|
|
379
395
|
// src/features/Configuration.ts
|
|
380
|
-
var
|
|
396
|
+
var _a22;
|
|
381
397
|
var Configuration = class extends BaseModel {
|
|
382
398
|
/**
|
|
383
399
|
* 加载数据
|
|
@@ -386,14 +402,14 @@ var Configuration = class extends BaseModel {
|
|
|
386
402
|
throw new Error("not implemented");
|
|
387
403
|
}
|
|
388
404
|
};
|
|
389
|
-
|
|
405
|
+
_a22 = IMPL_KEY;
|
|
390
406
|
/**
|
|
391
407
|
* @internal
|
|
392
408
|
*/
|
|
393
|
-
Configuration[
|
|
409
|
+
Configuration[_a22] = "configuration";
|
|
394
410
|
|
|
395
411
|
// src/features/Page.ts
|
|
396
|
-
var
|
|
412
|
+
var _a23;
|
|
397
413
|
var Page = class extends BaseModel {
|
|
398
414
|
/**
|
|
399
415
|
* 加载数据
|
|
@@ -402,24 +418,24 @@ var Page = class extends BaseModel {
|
|
|
402
418
|
throw new Error("not implemented");
|
|
403
419
|
}
|
|
404
420
|
};
|
|
405
|
-
|
|
421
|
+
_a23 = IMPL_KEY;
|
|
406
422
|
/**
|
|
407
423
|
* @internal
|
|
408
424
|
*/
|
|
409
|
-
Page[
|
|
425
|
+
Page[_a23] = "page";
|
|
410
426
|
|
|
411
427
|
// src/features/Script.ts
|
|
412
|
-
var
|
|
428
|
+
var _a24;
|
|
413
429
|
var Script = class extends BaseModel {
|
|
414
430
|
};
|
|
415
|
-
|
|
431
|
+
_a24 = IMPL_KEY;
|
|
416
432
|
/**
|
|
417
433
|
* @internal
|
|
418
434
|
*/
|
|
419
|
-
Script[
|
|
435
|
+
Script[_a24] = "script";
|
|
420
436
|
|
|
421
437
|
// src/features/Tab.ts
|
|
422
|
-
var
|
|
438
|
+
var _a25;
|
|
423
439
|
var Tab = class extends BaseModel {
|
|
424
440
|
/**
|
|
425
441
|
* 加载数据
|
|
@@ -428,14 +444,14 @@ var Tab = class extends BaseModel {
|
|
|
428
444
|
throw new Error("not implemented");
|
|
429
445
|
}
|
|
430
446
|
};
|
|
431
|
-
|
|
447
|
+
_a25 = IMPL_KEY;
|
|
432
448
|
/**
|
|
433
449
|
* @internal
|
|
434
450
|
*/
|
|
435
|
-
Tab[
|
|
451
|
+
Tab[_a25] = "tab";
|
|
436
452
|
|
|
437
453
|
// src/features/View.ts
|
|
438
|
-
var
|
|
454
|
+
var _a26;
|
|
439
455
|
var View = class extends BaseModel {
|
|
440
456
|
/**
|
|
441
457
|
* 加载数据
|
|
@@ -444,41 +460,41 @@ var View = class extends BaseModel {
|
|
|
444
460
|
throw new Error("not implemented");
|
|
445
461
|
}
|
|
446
462
|
};
|
|
447
|
-
|
|
463
|
+
_a26 = IMPL_KEY;
|
|
448
464
|
/**
|
|
449
465
|
* @internal
|
|
450
466
|
*/
|
|
451
|
-
View[
|
|
467
|
+
View[_a26] = "view";
|
|
452
468
|
|
|
453
469
|
// src/features/CustomComponent.ts
|
|
454
|
-
var
|
|
470
|
+
var _a27;
|
|
455
471
|
var CustomComponent = class extends BaseModel {
|
|
456
472
|
};
|
|
457
|
-
|
|
473
|
+
_a27 = IMPL_KEY;
|
|
458
474
|
/**
|
|
459
475
|
* @internal
|
|
460
476
|
*/
|
|
461
|
-
CustomComponent[
|
|
477
|
+
CustomComponent[_a27] = "customComponent";
|
|
462
478
|
|
|
463
479
|
// src/features/CustomField.ts
|
|
464
|
-
var
|
|
480
|
+
var _a28;
|
|
465
481
|
var CustomField = class extends BaseModel {
|
|
466
482
|
};
|
|
467
|
-
|
|
483
|
+
_a28 = IMPL_KEY;
|
|
468
484
|
/**
|
|
469
485
|
* @internal
|
|
470
486
|
*/
|
|
471
|
-
CustomField[
|
|
487
|
+
CustomField[_a28] = "customField";
|
|
472
488
|
|
|
473
489
|
// src/features/BuilderComponent.ts
|
|
474
|
-
var
|
|
490
|
+
var _a29;
|
|
475
491
|
var BuilderComponent = class extends BaseModel {
|
|
476
492
|
};
|
|
477
|
-
|
|
493
|
+
_a29 = IMPL_KEY;
|
|
478
494
|
/**
|
|
479
495
|
* @internal
|
|
480
496
|
*/
|
|
481
|
-
BuilderComponent[
|
|
497
|
+
BuilderComponent[_a29] = "liteAppComponent";
|
|
482
498
|
|
|
483
499
|
// src/client.ts
|
|
484
500
|
function getImplClass(decl, impls) {
|
|
@@ -597,6 +613,13 @@ var _SDKClient = class {
|
|
|
597
613
|
get toast() {
|
|
598
614
|
return getImplValue(Toast, this._meegoBizHub);
|
|
599
615
|
}
|
|
616
|
+
/**
|
|
617
|
+
* 地理位置
|
|
618
|
+
* only mobile 2.0
|
|
619
|
+
*/
|
|
620
|
+
get geolocation() {
|
|
621
|
+
return getImplValue(Geolocation, this._meegoBizHub);
|
|
622
|
+
}
|
|
600
623
|
/**
|
|
601
624
|
* 富文本编辑器
|
|
602
625
|
* only 2.0
|
|
@@ -699,7 +722,7 @@ var SDKClient = _SDKClient;
|
|
|
699
722
|
/**
|
|
700
723
|
* SDK 版本号
|
|
701
724
|
*/
|
|
702
|
-
SDKClient.version = "2.1.3-
|
|
725
|
+
SDKClient.version = "2.1.3-dev.0";
|
|
703
726
|
|
|
704
727
|
// src/types/biz.ts
|
|
705
728
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -886,6 +909,17 @@ var NotSupportedError = class extends CustomError {
|
|
|
886
909
|
}
|
|
887
910
|
};
|
|
888
911
|
|
|
912
|
+
// src/errors/SystemPermissionDeniedError.ts
|
|
913
|
+
var SystemPermissionDeniedError = class extends CustomError {
|
|
914
|
+
constructor(options) {
|
|
915
|
+
super({
|
|
916
|
+
message: "system permission denied",
|
|
917
|
+
originMessage: options.originMessage
|
|
918
|
+
});
|
|
919
|
+
this.name = "SystemPermissionDeniedError";
|
|
920
|
+
}
|
|
921
|
+
};
|
|
922
|
+
|
|
889
923
|
// src/index.ts
|
|
890
924
|
var src_default = SDKClient;
|
|
891
925
|
export {
|
|
@@ -908,6 +942,7 @@ export {
|
|
|
908
942
|
Field,
|
|
909
943
|
FieldType,
|
|
910
944
|
FlowMode,
|
|
945
|
+
Geolocation,
|
|
911
946
|
IMPL_KEY,
|
|
912
947
|
Intercept,
|
|
913
948
|
InterceptEvent,
|
|
@@ -929,6 +964,7 @@ export {
|
|
|
929
964
|
Shared,
|
|
930
965
|
Space,
|
|
931
966
|
Storage,
|
|
967
|
+
SystemPermissionDeniedError,
|
|
932
968
|
Tab,
|
|
933
969
|
Toast,
|
|
934
970
|
Utils,
|
package/dist/lib/index.js
CHANGED
|
@@ -67,6 +67,7 @@ __export(src_exports, {
|
|
|
67
67
|
Field: () => Field,
|
|
68
68
|
FieldType: () => FieldType,
|
|
69
69
|
FlowMode: () => FlowMode,
|
|
70
|
+
Geolocation: () => Geolocation,
|
|
70
71
|
IMPL_KEY: () => IMPL_KEY,
|
|
71
72
|
Intercept: () => Intercept,
|
|
72
73
|
InterceptEvent: () => InterceptEvent,
|
|
@@ -88,6 +89,7 @@ __export(src_exports, {
|
|
|
88
89
|
Shared: () => Shared,
|
|
89
90
|
Space: () => Space,
|
|
90
91
|
Storage: () => Storage,
|
|
92
|
+
SystemPermissionDeniedError: () => SystemPermissionDeniedError,
|
|
91
93
|
Tab: () => Tab,
|
|
92
94
|
Toast: () => Toast,
|
|
93
95
|
Utils: () => Utils,
|
|
@@ -373,18 +375,34 @@ _a15 = IMPL_KEY;
|
|
|
373
375
|
*/
|
|
374
376
|
Utils[_a15] = "utils";
|
|
375
377
|
|
|
376
|
-
// src/biz/
|
|
378
|
+
// src/biz/Geolocation.ts
|
|
377
379
|
var _a16;
|
|
378
|
-
var
|
|
380
|
+
var Geolocation = class extends BaseModel {
|
|
381
|
+
/**
|
|
382
|
+
* @internal
|
|
383
|
+
*/
|
|
384
|
+
static load() {
|
|
385
|
+
throw new Error("not implemented");
|
|
386
|
+
}
|
|
379
387
|
};
|
|
380
388
|
_a16 = IMPL_KEY;
|
|
381
389
|
/**
|
|
382
390
|
* @internal
|
|
383
391
|
*/
|
|
384
|
-
|
|
392
|
+
Geolocation[_a16] = "geolocation";
|
|
385
393
|
|
|
386
|
-
// src/
|
|
394
|
+
// src/biz/Event.ts
|
|
387
395
|
var _a17;
|
|
396
|
+
var Event = class extends BaseModel {
|
|
397
|
+
};
|
|
398
|
+
_a17 = IMPL_KEY;
|
|
399
|
+
/**
|
|
400
|
+
* @internal
|
|
401
|
+
*/
|
|
402
|
+
Event[_a17] = "event";
|
|
403
|
+
|
|
404
|
+
// src/features/ContainerModal.ts
|
|
405
|
+
var _a18;
|
|
388
406
|
var ContainerModal = class extends BaseModel {
|
|
389
407
|
/**
|
|
390
408
|
* 加载数据
|
|
@@ -393,14 +411,14 @@ var ContainerModal = class extends BaseModel {
|
|
|
393
411
|
throw new Error("not implemented");
|
|
394
412
|
}
|
|
395
413
|
};
|
|
396
|
-
|
|
414
|
+
_a18 = IMPL_KEY;
|
|
397
415
|
/**
|
|
398
416
|
* @internal
|
|
399
417
|
*/
|
|
400
|
-
ContainerModal[
|
|
418
|
+
ContainerModal[_a18] = "containerModal";
|
|
401
419
|
|
|
402
420
|
// src/features/Intercept.ts
|
|
403
|
-
var
|
|
421
|
+
var _a19;
|
|
404
422
|
var Intercept = class extends BaseModel {
|
|
405
423
|
/**
|
|
406
424
|
* 加载数据
|
|
@@ -409,14 +427,14 @@ var Intercept = class extends BaseModel {
|
|
|
409
427
|
throw new Error("not implemented");
|
|
410
428
|
}
|
|
411
429
|
};
|
|
412
|
-
|
|
430
|
+
_a19 = IMPL_KEY;
|
|
413
431
|
/**
|
|
414
432
|
* @internal
|
|
415
433
|
*/
|
|
416
|
-
Intercept[
|
|
434
|
+
Intercept[_a19] = "intercept";
|
|
417
435
|
|
|
418
436
|
// src/features/Control.ts
|
|
419
|
-
var
|
|
437
|
+
var _a20;
|
|
420
438
|
var Control = class extends BaseModel {
|
|
421
439
|
/**
|
|
422
440
|
* 加载数据
|
|
@@ -425,14 +443,14 @@ var Control = class extends BaseModel {
|
|
|
425
443
|
throw new Error("not implemented");
|
|
426
444
|
}
|
|
427
445
|
};
|
|
428
|
-
|
|
446
|
+
_a20 = IMPL_KEY;
|
|
429
447
|
/**
|
|
430
448
|
* @internal
|
|
431
449
|
*/
|
|
432
|
-
Control[
|
|
450
|
+
Control[_a20] = "control";
|
|
433
451
|
|
|
434
452
|
// src/features/Button.ts
|
|
435
|
-
var
|
|
453
|
+
var _a21;
|
|
436
454
|
var Button = class extends BaseModel {
|
|
437
455
|
/**
|
|
438
456
|
* 加载数据
|
|
@@ -441,14 +459,14 @@ var Button = class extends BaseModel {
|
|
|
441
459
|
throw new Error("not implemented");
|
|
442
460
|
}
|
|
443
461
|
};
|
|
444
|
-
|
|
462
|
+
_a21 = IMPL_KEY;
|
|
445
463
|
/**
|
|
446
464
|
* @internal
|
|
447
465
|
*/
|
|
448
|
-
Button[
|
|
466
|
+
Button[_a21] = "button";
|
|
449
467
|
|
|
450
468
|
// src/features/Configuration.ts
|
|
451
|
-
var
|
|
469
|
+
var _a22;
|
|
452
470
|
var Configuration = class extends BaseModel {
|
|
453
471
|
/**
|
|
454
472
|
* 加载数据
|
|
@@ -457,14 +475,14 @@ var Configuration = class extends BaseModel {
|
|
|
457
475
|
throw new Error("not implemented");
|
|
458
476
|
}
|
|
459
477
|
};
|
|
460
|
-
|
|
478
|
+
_a22 = IMPL_KEY;
|
|
461
479
|
/**
|
|
462
480
|
* @internal
|
|
463
481
|
*/
|
|
464
|
-
Configuration[
|
|
482
|
+
Configuration[_a22] = "configuration";
|
|
465
483
|
|
|
466
484
|
// src/features/Page.ts
|
|
467
|
-
var
|
|
485
|
+
var _a23;
|
|
468
486
|
var Page = class extends BaseModel {
|
|
469
487
|
/**
|
|
470
488
|
* 加载数据
|
|
@@ -473,24 +491,24 @@ var Page = class extends BaseModel {
|
|
|
473
491
|
throw new Error("not implemented");
|
|
474
492
|
}
|
|
475
493
|
};
|
|
476
|
-
|
|
494
|
+
_a23 = IMPL_KEY;
|
|
477
495
|
/**
|
|
478
496
|
* @internal
|
|
479
497
|
*/
|
|
480
|
-
Page[
|
|
498
|
+
Page[_a23] = "page";
|
|
481
499
|
|
|
482
500
|
// src/features/Script.ts
|
|
483
|
-
var
|
|
501
|
+
var _a24;
|
|
484
502
|
var Script = class extends BaseModel {
|
|
485
503
|
};
|
|
486
|
-
|
|
504
|
+
_a24 = IMPL_KEY;
|
|
487
505
|
/**
|
|
488
506
|
* @internal
|
|
489
507
|
*/
|
|
490
|
-
Script[
|
|
508
|
+
Script[_a24] = "script";
|
|
491
509
|
|
|
492
510
|
// src/features/Tab.ts
|
|
493
|
-
var
|
|
511
|
+
var _a25;
|
|
494
512
|
var Tab = class extends BaseModel {
|
|
495
513
|
/**
|
|
496
514
|
* 加载数据
|
|
@@ -499,14 +517,14 @@ var Tab = class extends BaseModel {
|
|
|
499
517
|
throw new Error("not implemented");
|
|
500
518
|
}
|
|
501
519
|
};
|
|
502
|
-
|
|
520
|
+
_a25 = IMPL_KEY;
|
|
503
521
|
/**
|
|
504
522
|
* @internal
|
|
505
523
|
*/
|
|
506
|
-
Tab[
|
|
524
|
+
Tab[_a25] = "tab";
|
|
507
525
|
|
|
508
526
|
// src/features/View.ts
|
|
509
|
-
var
|
|
527
|
+
var _a26;
|
|
510
528
|
var View = class extends BaseModel {
|
|
511
529
|
/**
|
|
512
530
|
* 加载数据
|
|
@@ -515,41 +533,41 @@ var View = class extends BaseModel {
|
|
|
515
533
|
throw new Error("not implemented");
|
|
516
534
|
}
|
|
517
535
|
};
|
|
518
|
-
|
|
536
|
+
_a26 = IMPL_KEY;
|
|
519
537
|
/**
|
|
520
538
|
* @internal
|
|
521
539
|
*/
|
|
522
|
-
View[
|
|
540
|
+
View[_a26] = "view";
|
|
523
541
|
|
|
524
542
|
// src/features/CustomComponent.ts
|
|
525
|
-
var
|
|
543
|
+
var _a27;
|
|
526
544
|
var CustomComponent = class extends BaseModel {
|
|
527
545
|
};
|
|
528
|
-
|
|
546
|
+
_a27 = IMPL_KEY;
|
|
529
547
|
/**
|
|
530
548
|
* @internal
|
|
531
549
|
*/
|
|
532
|
-
CustomComponent[
|
|
550
|
+
CustomComponent[_a27] = "customComponent";
|
|
533
551
|
|
|
534
552
|
// src/features/CustomField.ts
|
|
535
|
-
var
|
|
553
|
+
var _a28;
|
|
536
554
|
var CustomField = class extends BaseModel {
|
|
537
555
|
};
|
|
538
|
-
|
|
556
|
+
_a28 = IMPL_KEY;
|
|
539
557
|
/**
|
|
540
558
|
* @internal
|
|
541
559
|
*/
|
|
542
|
-
CustomField[
|
|
560
|
+
CustomField[_a28] = "customField";
|
|
543
561
|
|
|
544
562
|
// src/features/BuilderComponent.ts
|
|
545
|
-
var
|
|
563
|
+
var _a29;
|
|
546
564
|
var BuilderComponent = class extends BaseModel {
|
|
547
565
|
};
|
|
548
|
-
|
|
566
|
+
_a29 = IMPL_KEY;
|
|
549
567
|
/**
|
|
550
568
|
* @internal
|
|
551
569
|
*/
|
|
552
|
-
BuilderComponent[
|
|
570
|
+
BuilderComponent[_a29] = "liteAppComponent";
|
|
553
571
|
|
|
554
572
|
// src/client.ts
|
|
555
573
|
function getImplClass(decl, impls) {
|
|
@@ -668,6 +686,13 @@ var _SDKClient = class {
|
|
|
668
686
|
get toast() {
|
|
669
687
|
return getImplValue(Toast, this._meegoBizHub);
|
|
670
688
|
}
|
|
689
|
+
/**
|
|
690
|
+
* 地理位置
|
|
691
|
+
* only mobile 2.0
|
|
692
|
+
*/
|
|
693
|
+
get geolocation() {
|
|
694
|
+
return getImplValue(Geolocation, this._meegoBizHub);
|
|
695
|
+
}
|
|
671
696
|
/**
|
|
672
697
|
* 富文本编辑器
|
|
673
698
|
* only 2.0
|
|
@@ -770,7 +795,7 @@ var SDKClient = _SDKClient;
|
|
|
770
795
|
/**
|
|
771
796
|
* SDK 版本号
|
|
772
797
|
*/
|
|
773
|
-
SDKClient.version = "2.1.3-
|
|
798
|
+
SDKClient.version = "2.1.3-dev.0";
|
|
774
799
|
|
|
775
800
|
// src/types/biz.ts
|
|
776
801
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -957,6 +982,17 @@ var NotSupportedError = class extends CustomError {
|
|
|
957
982
|
}
|
|
958
983
|
};
|
|
959
984
|
|
|
985
|
+
// src/errors/SystemPermissionDeniedError.ts
|
|
986
|
+
var SystemPermissionDeniedError = class extends CustomError {
|
|
987
|
+
constructor(options) {
|
|
988
|
+
super({
|
|
989
|
+
message: "system permission denied",
|
|
990
|
+
originMessage: options.originMessage
|
|
991
|
+
});
|
|
992
|
+
this.name = "SystemPermissionDeniedError";
|
|
993
|
+
}
|
|
994
|
+
};
|
|
995
|
+
|
|
960
996
|
// src/index.ts
|
|
961
997
|
var src_default = SDKClient;
|
|
962
998
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -980,6 +1016,7 @@ var src_default = SDKClient;
|
|
|
980
1016
|
Field,
|
|
981
1017
|
FieldType,
|
|
982
1018
|
FlowMode,
|
|
1019
|
+
Geolocation,
|
|
983
1020
|
IMPL_KEY,
|
|
984
1021
|
Intercept,
|
|
985
1022
|
InterceptEvent,
|
|
@@ -1001,6 +1038,7 @@ var src_default = SDKClient;
|
|
|
1001
1038
|
Shared,
|
|
1002
1039
|
Space,
|
|
1003
1040
|
Storage,
|
|
1041
|
+
SystemPermissionDeniedError,
|
|
1004
1042
|
Tab,
|
|
1005
1043
|
Toast,
|
|
1006
1044
|
Utils,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -740,6 +740,11 @@ interface CustomFieldFeatureContext {
|
|
|
740
740
|
* 适用场景:详情页为节点流时,且当前拓展字段位于节点表单内,该字段才有数据
|
|
741
741
|
*/
|
|
742
742
|
nodeId?: string;
|
|
743
|
+
/**
|
|
744
|
+
* 拓展字段所在的业务场景
|
|
745
|
+
* 仅移动端 >= 7.57 版本可用
|
|
746
|
+
*/
|
|
747
|
+
bizScene?: 'workItemDetail' | 'createWorkItem' | 'nodeForm' | 'stateForm' | 'nodeDeliverable' | 'taskDeliverable';
|
|
743
748
|
}
|
|
744
749
|
type FieldNumberValue = number;
|
|
745
750
|
type FieldMultiTextValue = string;
|
|
@@ -888,18 +893,13 @@ type LiteAppPropField = {
|
|
|
888
893
|
roleId: string;
|
|
889
894
|
display?: boolean;
|
|
890
895
|
};
|
|
891
|
-
type LiteAppPropDataSource = {
|
|
892
|
-
spaceId: string;
|
|
893
|
-
workObjectId: string;
|
|
894
|
-
fieldList?: LiteAppPropField[];
|
|
895
|
-
};
|
|
896
896
|
type LiteAppPropView = {
|
|
897
897
|
viewId: string;
|
|
898
898
|
isMultiProject: boolean;
|
|
899
899
|
};
|
|
900
900
|
type LiteAppPropWorkItemListAfterFilter = LiteAppPropWorkItemInstance[];
|
|
901
901
|
type LiteAppPropWorkItemListAfterSort = LiteAppPropWorkItemInstance[];
|
|
902
|
-
type LiteAppCompPropValueType = LiteAppPropText | LiteAppPropNumber | LiteAppPropSelect | LiteAppPropBoolean | LiteAppPropMultiSelect | LiteAppPropDateWithTime | LiteAppPropDateRange | LiteAppPropWorkItemType | LiteAppPropWorkItemInstance | LiteAppPropView | LiteAppPropWorkItemListAfterFilter | LiteAppPropWorkItemListAfterSort
|
|
902
|
+
type LiteAppCompPropValueType = LiteAppPropText | LiteAppPropNumber | LiteAppPropSelect | LiteAppPropBoolean | LiteAppPropMultiSelect | LiteAppPropDateWithTime | LiteAppPropDateRange | LiteAppPropWorkItemType | LiteAppPropWorkItemInstance | LiteAppPropView | LiteAppPropWorkItemListAfterFilter | LiteAppPropWorkItemListAfterSort;
|
|
903
903
|
/**
|
|
904
904
|
* liteapp 组件不同的属性类型对应的可读配置
|
|
905
905
|
*/
|
|
@@ -958,40 +958,6 @@ interface LiteAppComponentPreset {
|
|
|
958
958
|
height: number;
|
|
959
959
|
};
|
|
960
960
|
}
|
|
961
|
-
type LiteAppWorkItemInstance = {
|
|
962
|
-
/**
|
|
963
|
-
* 唯一标识
|
|
964
|
-
*/
|
|
965
|
-
id: number;
|
|
966
|
-
/**
|
|
967
|
-
* 空间标识
|
|
968
|
-
*/
|
|
969
|
-
spaceId: string;
|
|
970
|
-
/**
|
|
971
|
-
* 所属工作项标识
|
|
972
|
-
*/
|
|
973
|
-
workObjectId: string;
|
|
974
|
-
/**
|
|
975
|
-
* 使用的工作项模板标识
|
|
976
|
-
*/
|
|
977
|
-
templateId: number;
|
|
978
|
-
/**
|
|
979
|
-
* 工作项实例名称
|
|
980
|
-
*/
|
|
981
|
-
name: string;
|
|
982
|
-
/**
|
|
983
|
-
* 角色与人员列表
|
|
984
|
-
*/
|
|
985
|
-
roleOwnersList: RoleOwners[];
|
|
986
|
-
/**
|
|
987
|
-
* 工作项实例已终止
|
|
988
|
-
*/
|
|
989
|
-
isAborted: boolean;
|
|
990
|
-
/**
|
|
991
|
-
* 工作项实例已删除
|
|
992
|
-
*/
|
|
993
|
-
isDeleted: boolean;
|
|
994
|
-
} & Record<string, unknown>;
|
|
995
961
|
|
|
996
962
|
/**
|
|
997
963
|
* @internal
|
|
@@ -1885,6 +1851,61 @@ declare abstract class Utils extends BaseModel {
|
|
|
1885
1851
|
abstract overwriteThemeForSemiUI(): Promise<void>;
|
|
1886
1852
|
}
|
|
1887
1853
|
|
|
1854
|
+
/**
|
|
1855
|
+
* @internal
|
|
1856
|
+
*/
|
|
1857
|
+
declare class CustomError extends Error {
|
|
1858
|
+
originMessage: string;
|
|
1859
|
+
constructor(options: {
|
|
1860
|
+
message: string;
|
|
1861
|
+
originMessage: string;
|
|
1862
|
+
});
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
/**
|
|
1866
|
+
* @public
|
|
1867
|
+
* 系统设备权限未授权使用
|
|
1868
|
+
*/
|
|
1869
|
+
declare class SystemPermissionDeniedError extends CustomError {
|
|
1870
|
+
constructor(options: {
|
|
1871
|
+
originMessage: string;
|
|
1872
|
+
});
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
interface GeolocationCoordinates {
|
|
1876
|
+
/**
|
|
1877
|
+
* 经度
|
|
1878
|
+
*/
|
|
1879
|
+
longitude: number;
|
|
1880
|
+
/**
|
|
1881
|
+
* 纬度
|
|
1882
|
+
*/
|
|
1883
|
+
latitude: number;
|
|
1884
|
+
}
|
|
1885
|
+
interface GeolocationPosition {
|
|
1886
|
+
coords: GeolocationCoordinates;
|
|
1887
|
+
coordSystem: 'WGS-84' | 'GCJ-02';
|
|
1888
|
+
}
|
|
1889
|
+
/**
|
|
1890
|
+
* @mobile
|
|
1891
|
+
* @public
|
|
1892
|
+
* 地理位置
|
|
1893
|
+
*/
|
|
1894
|
+
declare abstract class Geolocation extends BaseModel {
|
|
1895
|
+
/**
|
|
1896
|
+
* @internal
|
|
1897
|
+
*/
|
|
1898
|
+
protected static [IMPL_KEY]: string;
|
|
1899
|
+
/**
|
|
1900
|
+
* @internal
|
|
1901
|
+
*/
|
|
1902
|
+
private static load;
|
|
1903
|
+
/**
|
|
1904
|
+
* 读取用户当前的地理位置
|
|
1905
|
+
*/
|
|
1906
|
+
abstract getCurrentPosition(callback: (error?: SystemPermissionDeniedError | Error, result?: GeolocationPosition) => void): Promise<void>;
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1888
1909
|
/**
|
|
1889
1910
|
* @public
|
|
1890
1911
|
* 事件
|
|
@@ -2309,13 +2330,6 @@ declare abstract class BuilderComponent extends BaseModel {
|
|
|
2309
2330
|
* 暂时不支持指定多组预设值/指定预设id(统一走 default),未来视诉求开放
|
|
2310
2331
|
*/
|
|
2311
2332
|
abstract getPreset: (propKeys?: string | string[]) => Promise<LiteAppComponentPreset>;
|
|
2312
|
-
/**
|
|
2313
|
-
* 获取 liteapp 组件数据源属性的数据结果
|
|
2314
|
-
*/
|
|
2315
|
-
abstract getDataSourceResult: (propKey: string, options: {
|
|
2316
|
-
pageNum: number;
|
|
2317
|
-
pageSize: number;
|
|
2318
|
-
}) => Promise<LiteAppWorkItemInstance[]>;
|
|
2319
2333
|
}
|
|
2320
2334
|
|
|
2321
2335
|
/**
|
|
@@ -2412,6 +2426,11 @@ declare class SDKClient {
|
|
|
2412
2426
|
* 提示
|
|
2413
2427
|
*/
|
|
2414
2428
|
get toast(): Toast;
|
|
2429
|
+
/**
|
|
2430
|
+
* 地理位置
|
|
2431
|
+
* only mobile 2.0
|
|
2432
|
+
*/
|
|
2433
|
+
get geolocation(): Geolocation;
|
|
2415
2434
|
/**
|
|
2416
2435
|
* 富文本编辑器
|
|
2417
2436
|
* only 2.0
|
|
@@ -2476,17 +2495,6 @@ declare class SDKClient {
|
|
|
2476
2495
|
config(options: SDKClientOptions): Promise<this>;
|
|
2477
2496
|
}
|
|
2478
2497
|
|
|
2479
|
-
/**
|
|
2480
|
-
* @internal
|
|
2481
|
-
*/
|
|
2482
|
-
declare class CustomError extends Error {
|
|
2483
|
-
originMessage: string;
|
|
2484
|
-
constructor(options: {
|
|
2485
|
-
message: string;
|
|
2486
|
-
originMessage: string;
|
|
2487
|
-
});
|
|
2488
|
-
}
|
|
2489
|
-
|
|
2490
2498
|
/**
|
|
2491
2499
|
* @public
|
|
2492
2500
|
* 内部逻辑异常
|
|
@@ -2559,4 +2567,4 @@ declare class NotSupportedError extends CustomError {
|
|
|
2559
2567
|
* @packageDocumentation
|
|
2560
2568
|
*/
|
|
2561
2569
|
|
|
2562
|
-
export { ActionSheet, ActionSheetOptions, AttributeType, BatchButtonFeatureContext, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, BuilderComponent, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, ComponentScheduleIdentity, ComponentScheduleScene, Configuration, ConfigurationFeatureContext, ContainerModal, ContainerModalConfigureOptions, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, CustomComponent, CustomComponentFeatureContext, CustomComponentProps, CustomComponentType, CustomField, CustomFieldConfig, CustomFieldFeatureContext, CustomFieldProps, CustomFieldValidateMsg, CustomFieldValueType, Event, EventPayloadMap, EventType, ExCompoundFieldValueType, Field, FieldType, FieldValue, FlowMode, I18nTitleConfig, IMPL_KEY, IPluginCustomBuildConfig, IRichTextEditorImageUploadComplete, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, LiteAppCompLayoutConfig, LiteAppCompPropBriefConfig, LiteAppCompPropFullConfig, LiteAppCompPropSelectConfig, LiteAppCompPropValueType, LiteAppComponentConfig, LiteAppComponentFeatureContext, LiteAppComponentPreset, LiteAppComponentProps, LiteAppPropBoolean,
|
|
2570
|
+
export { ActionSheet, ActionSheetOptions, AttributeType, BatchButtonFeatureContext, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, BuilderComponent, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, ComponentScheduleIdentity, ComponentScheduleScene, Configuration, ConfigurationFeatureContext, ContainerModal, ContainerModalConfigureOptions, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, CustomComponent, CustomComponentFeatureContext, CustomComponentProps, CustomComponentType, CustomField, CustomFieldConfig, CustomFieldFeatureContext, CustomFieldProps, CustomFieldValidateMsg, CustomFieldValueType, Event, EventPayloadMap, EventType, ExCompoundFieldValueType, Field, FieldType, FieldValue, FlowMode, Geolocation, GeolocationCoordinates, GeolocationPosition, I18nTitleConfig, IMPL_KEY, IPluginCustomBuildConfig, IRichTextEditorImageUploadComplete, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, LiteAppCompLayoutConfig, LiteAppCompPropBriefConfig, LiteAppCompPropFullConfig, LiteAppCompPropSelectConfig, LiteAppCompPropValueType, LiteAppComponentConfig, LiteAppComponentFeatureContext, LiteAppComponentPreset, LiteAppComponentProps, LiteAppPropBoolean, LiteAppPropDateRange, LiteAppPropDateWithTime, LiteAppPropField, LiteAppPropLayout, LiteAppPropMultiSelect, LiteAppPropNumber, LiteAppPropSelect, LiteAppPropTemplateType, LiteAppPropText, LiteAppPropView, LiteAppPropWorkItemInstance, LiteAppPropWorkItemListAfterFilter, LiteAppPropWorkItemListAfterSort, LiteAppPropWorkItemType, MEEGO_BIZ_HUB, Modal, ModalConfirmOptions, ModalOpenOptions, Navigation, NoAuthError, NodeStatus, NotFoundError, NotSupportedError, Off, OutOfLimitError, Page, PageFeatureContext, RichTextEditor, RichTextEditorContent, RichTextEditorOptions, Role, RoleOwners, SDKClient, SDKClientOptions, ScheduleCompValidateMsg, ScheduleCompValueType, ScheduleUnitButtonFeatureContext, Script, ScriptFeatureContext, Shared, Space, Storage, SubFieldType, SystemPermissionDeniedError, Tab, TabFeatureContext, Toast, ToastOptions, User, UserInfo, Utils, View, ViewFeatureContext, WbsStatus, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|