hylid-bridge 4.0.26 → 4.0.28-alpha.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.
Files changed (92) hide show
  1. package/README.md +170 -164
  2. package/canIUse.json +1 -1
  3. package/lib/bridges.d.ts +73 -13
  4. package/lib/bridges.js +80 -5
  5. package/lib/clients/mp/alipay/getEnterOptionsSync.d.ts +2 -0
  6. package/lib/clients/mp/alipay/getEnterOptionsSync.js +3 -0
  7. package/lib/clients/mp/alipay/index.d.ts +14 -2
  8. package/lib/clients/mp/alipay/index.js +4 -2
  9. package/lib/clients/mp/alipayhk/getEnterOptionsSync.d.ts +2 -0
  10. package/lib/clients/mp/alipayhk/getEnterOptionsSync.js +3 -0
  11. package/lib/clients/mp/alipayhk/index.d.ts +19 -2
  12. package/lib/clients/mp/alipayhk/index.js +7 -3
  13. package/lib/clients/mp/alipayhk/rpc.d.ts +2 -0
  14. package/lib/clients/mp/alipayhk/rpc.js +3 -0
  15. package/lib/clients/mp/dana/getEnterOptionsSync.d.ts +2 -0
  16. package/lib/clients/mp/dana/getEnterOptionsSync.js +3 -0
  17. package/lib/clients/mp/dana/index.d.ts +14 -2
  18. package/lib/clients/mp/dana/index.js +5 -3
  19. package/lib/clients/mp/gcash/getEnterOptionsSync.d.ts +2 -0
  20. package/lib/clients/mp/gcash/getEnterOptionsSync.js +3 -0
  21. package/lib/clients/mp/gcash/index.d.ts +14 -2
  22. package/lib/clients/mp/gcash/index.js +5 -3
  23. package/lib/clients/mp/tngd/getEnterOptionsSync.d.ts +2 -0
  24. package/lib/clients/mp/tngd/getEnterOptionsSync.js +3 -0
  25. package/lib/clients/mp/tngd/index.d.ts +14 -2
  26. package/lib/clients/mp/tngd/index.js +5 -3
  27. package/lib/clients/mp_web/alipay/getBackgroundFetchData.d.ts +2 -0
  28. package/lib/clients/mp_web/alipay/getBackgroundFetchData.js +3 -0
  29. package/lib/clients/mp_web/alipay/getEnterOptionsSync.d.ts +2 -0
  30. package/lib/clients/mp_web/alipay/getEnterOptionsSync.js +3 -0
  31. package/lib/clients/mp_web/alipay/index.d.ts +22 -2
  32. package/lib/clients/mp_web/alipay/index.js +6 -2
  33. package/lib/clients/mp_web/alipayhk/getBackgroundFetchData.d.ts +2 -0
  34. package/lib/clients/mp_web/alipayhk/getBackgroundFetchData.js +3 -0
  35. package/lib/clients/mp_web/alipayhk/getEnterOptionsSync.d.ts +2 -0
  36. package/lib/clients/mp_web/alipayhk/getEnterOptionsSync.js +3 -0
  37. package/lib/clients/mp_web/alipayhk/index.d.ts +27 -2
  38. package/lib/clients/mp_web/alipayhk/index.js +8 -2
  39. package/lib/clients/mp_web/alipayhk/rpc.d.ts +2 -0
  40. package/lib/clients/mp_web/alipayhk/rpc.js +3 -0
  41. package/lib/clients/mp_web/dana/getBackgroundFetchData.d.ts +2 -0
  42. package/lib/clients/mp_web/dana/getBackgroundFetchData.js +3 -0
  43. package/lib/clients/mp_web/dana/getEnterOptionsSync.d.ts +2 -0
  44. package/lib/clients/mp_web/dana/getEnterOptionsSync.js +3 -0
  45. package/lib/clients/mp_web/dana/index.d.ts +22 -2
  46. package/lib/clients/mp_web/dana/index.js +6 -2
  47. package/lib/clients/mp_web/gcash/getBackgroundFetchData.d.ts +2 -0
  48. package/lib/clients/mp_web/gcash/getBackgroundFetchData.js +3 -0
  49. package/lib/clients/mp_web/gcash/getEnterOptionsSync.d.ts +2 -0
  50. package/lib/clients/mp_web/gcash/getEnterOptionsSync.js +3 -0
  51. package/lib/clients/mp_web/gcash/index.d.ts +22 -2
  52. package/lib/clients/mp_web/gcash/index.js +6 -2
  53. package/lib/clients/mp_web/mpay/getBackgroundFetchData.d.ts +2 -0
  54. package/lib/clients/mp_web/mpay/getBackgroundFetchData.js +3 -0
  55. package/lib/clients/mp_web/mpay/getEnterOptionsSync.d.ts +2 -0
  56. package/lib/clients/mp_web/mpay/getEnterOptionsSync.js +3 -0
  57. package/lib/clients/mp_web/mpay/index.d.ts +22 -2
  58. package/lib/clients/mp_web/mpay/index.js +6 -2
  59. package/lib/clients/mp_web/tmn/getBackgroundFetchData.d.ts +2 -0
  60. package/lib/clients/mp_web/tmn/getBackgroundFetchData.js +3 -0
  61. package/lib/clients/mp_web/tmn/index.d.ts +10 -2
  62. package/lib/clients/mp_web/tmn/index.js +4 -2
  63. package/lib/clients/mp_web/tngd/getBackgroundFetchData.d.ts +2 -0
  64. package/lib/clients/mp_web/tngd/getBackgroundFetchData.js +3 -0
  65. package/lib/clients/mp_web/tngd/getEnterOptionsSync.d.ts +2 -0
  66. package/lib/clients/mp_web/tngd/getEnterOptionsSync.js +3 -0
  67. package/lib/clients/mp_web/tngd/index.d.ts +22 -2
  68. package/lib/clients/mp_web/tngd/index.js +6 -2
  69. package/lib/clients/mp_web/toss/getBackgroundFetchData.d.ts +2 -0
  70. package/lib/clients/mp_web/toss/getBackgroundFetchData.js +3 -0
  71. package/lib/clients/mp_web/toss/getEnterOptionsSync.d.ts +2 -0
  72. package/lib/clients/mp_web/toss/getEnterOptionsSync.js +3 -0
  73. package/lib/clients/mp_web/toss/index.d.ts +22 -2
  74. package/lib/clients/mp_web/toss/index.js +6 -2
  75. package/lib/common/apis/generated/mp/getEnterOptionsSync.d.ts +33 -0
  76. package/lib/common/apis/generated/mp/getEnterOptionsSync.js +8 -0
  77. package/lib/common/apis/generated/mp_web/getBackgroundFetchData.d.ts +21 -0
  78. package/lib/common/apis/generated/mp_web/getBackgroundFetchData.js +8 -0
  79. package/lib/common/apis/generated/mp_web/getEnterOptionsSync.d.ts +33 -0
  80. package/lib/common/apis/generated/mp_web/getEnterOptionsSync.js +8 -0
  81. package/lib/dsl.d.ts +42 -4
  82. package/lib/dsl.js +37 -5
  83. package/lib/umd/index.js +1 -1
  84. package/lib/umd/mp_web_alipay.js +1 -1
  85. package/lib/umd/mp_web_alipayhk.js +1 -1
  86. package/lib/umd/mp_web_dana.js +1 -1
  87. package/lib/umd/mp_web_gcash.js +1 -1
  88. package/lib/umd/mp_web_mpay.js +1 -1
  89. package/lib/umd/mp_web_tmn.js +1 -1
  90. package/lib/umd/mp_web_tngd.js +1 -1
  91. package/lib/umd/mp_web_toss.js +1 -1
  92. package/package.json +7 -7
package/lib/dsl.d.ts CHANGED
@@ -1901,8 +1901,8 @@ export declare const requestAsync: (args?: ({
1901
1901
  * @support
1902
1902
  * | Platform | Apps |
1903
1903
  * | ------------- | -------- |
1904
- * | mp | alipay,demo |
1905
- * | mp_web | alipay,demo,toss |
1904
+ * | mp | alipay,alipayhk,demo |
1905
+ * | mp_web | alipay,alipayhk,demo,toss |
1906
1906
  * | web | alipay,demo,h5 |
1907
1907
  */
1908
1908
  export declare const rpc: PickMPAttr<'rpc'>;
@@ -1910,8 +1910,8 @@ export declare const rpc: PickMPAttr<'rpc'>;
1910
1910
  * @support
1911
1911
  * | Platform | Apps |
1912
1912
  * | ------------- | -------- |
1913
- * | mp | alipay,demo |
1914
- * | mp_web | alipay,demo,toss |
1913
+ * | mp | alipay,alipayhk,demo |
1914
+ * | mp_web | alipay,alipayhk,demo,toss |
1915
1915
  * | web | alipay,demo,h5 |
1916
1916
  */
1917
1917
  export declare const rpcAsync: (args?: (import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
@@ -2705,3 +2705,41 @@ export declare const hideOptionButton: PickMPAttr<'hideOptionButton'>;
2705
2705
  * | mp_web | demo |
2706
2706
  */
2707
2707
  export declare const hideOptionButtonAsync: (args?: any) => Promise<unknown>;
2708
+ /**
2709
+ * @support
2710
+ * | Platform | Apps |
2711
+ * | ------------- | -------- |
2712
+ * | mp | alipay,alipayhk,tngd,gcash,dana,mpay,toss |
2713
+ * | mp_web | alipay,alipayhk,tngd,gcash,dana,mpay,toss |
2714
+ * | web | |
2715
+ */
2716
+ export declare const getEnterOptionsSync: PickMPAttr<'getEnterOptionsSync'>;
2717
+ /**
2718
+ * @support
2719
+ * | Platform | Apps |
2720
+ * | ------------- | -------- |
2721
+ * | mp | alipay,alipayhk,tngd,gcash,dana,mpay,toss |
2722
+ * | mp_web | alipay,alipayhk,tngd,gcash,dana,mpay,toss |
2723
+ * | web | |
2724
+ */
2725
+ export declare const getEnterOptionsSyncAsync: (args?: import("@hylid/types").AsyncCallback<{
2726
+ path?: string | undefined;
2727
+ query?: Record<string, unknown> | undefined;
2728
+ referrerInfo?: {
2729
+ appId: string;
2730
+ sourceServiceId?: string | undefined;
2731
+ extraData: Record<string, unknown>;
2732
+ } | undefined;
2733
+ scene?: number | undefined;
2734
+ apiCategory?: "default" | "embedded" | undefined;
2735
+ }> | undefined) => Promise<{
2736
+ path?: string | undefined;
2737
+ query?: Record<string, unknown> | undefined;
2738
+ referrerInfo?: {
2739
+ appId: string;
2740
+ sourceServiceId?: string | undefined;
2741
+ extraData: Record<string, unknown>;
2742
+ } | undefined;
2743
+ scene?: number | undefined;
2744
+ apiCategory?: "default" | "embedded" | undefined;
2745
+ }>;
package/lib/dsl.js CHANGED
@@ -135,6 +135,7 @@ import mpCreateSelectorQuery from './common/apis/generated/mp/createSelectorQuer
135
135
  import mpCanIUse from './common/apis/generated/mp/canIUse';
136
136
  import mpGetStorageInfoSync from './common/apis/generated/mp/getStorageInfoSync';
137
137
  import mpShowSharePanel from './common/apis/generated/mp/showSharePanel';
138
+ import mpGetEnterOptionsSync from './common/apis/generated/mp/getEnterOptionsSync';
138
139
  import mpTradePay from './common/apis/generated/mp/tradePay';
139
140
  import mpAddFatigueAction from './common/apis/generated/mp/addFatigueAction';
140
141
  import mpApDisableJSAPI from './common/apis/generated/mp/apDisableJSAPI';
@@ -3372,8 +3373,8 @@ export var requestAsync = /*#__PURE__*/promisify(request);
3372
3373
  * @support
3373
3374
  * | Platform | Apps |
3374
3375
  * | ------------- | -------- |
3375
- * | mp | alipay,demo |
3376
- * | mp_web | alipay,demo,toss |
3376
+ * | mp | alipay,alipayhk,demo |
3377
+ * | mp_web | alipay,alipayhk,demo,toss |
3377
3378
  * | web | alipay,demo,h5 |
3378
3379
  */
3379
3380
  export var rpc = function rpc() {
@@ -3382,6 +3383,7 @@ export var rpc = function rpc() {
3382
3383
  rest[_i] = arguments[_i];
3383
3384
  }
3384
3385
  if (appEnv.isMpAlipay) return mpRpc.apply(void 0, rest);
3386
+ if (appEnv.isMpAlipayhk) return mpRpc.apply(void 0, rest);
3385
3387
  if (appEnv.isMpDemo) return mpRpc.apply(void 0, rest);
3386
3388
  return notFound.apply(void 0, __spreadArray(['rpc'], rest, false));
3387
3389
  };
@@ -3389,8 +3391,8 @@ export var rpc = function rpc() {
3389
3391
  * @support
3390
3392
  * | Platform | Apps |
3391
3393
  * | ------------- | -------- |
3392
- * | mp | alipay,demo |
3393
- * | mp_web | alipay,demo,toss |
3394
+ * | mp | alipay,alipayhk,demo |
3395
+ * | mp_web | alipay,alipayhk,demo,toss |
3394
3396
  * | web | alipay,demo,h5 |
3395
3397
  */
3396
3398
  // @ts-ignore
@@ -4719,4 +4721,34 @@ export var hideOptionButton = function hideOptionButton() {
4719
4721
  * | mp_web | demo |
4720
4722
  */
4721
4723
  // @ts-ignore
4722
- export var hideOptionButtonAsync = /*#__PURE__*/promisify(hideOptionButton);
4724
+ export var hideOptionButtonAsync = /*#__PURE__*/promisify(hideOptionButton);
4725
+ /**
4726
+ * @support
4727
+ * | Platform | Apps |
4728
+ * | ------------- | -------- |
4729
+ * | mp | alipay,alipayhk,tngd,gcash,dana,mpay,toss |
4730
+ * | mp_web | alipay,alipayhk,tngd,gcash,dana,mpay,toss |
4731
+ * | web | |
4732
+ */
4733
+ export var getEnterOptionsSync = function getEnterOptionsSync() {
4734
+ var rest = [];
4735
+ for (var _i = 0; _i < arguments.length; _i++) {
4736
+ rest[_i] = arguments[_i];
4737
+ }
4738
+ if (appEnv.isMpAlipay) return mpGetEnterOptionsSync.apply(void 0, rest);
4739
+ if (appEnv.isMpAlipayhk) return mpGetEnterOptionsSync.apply(void 0, rest);
4740
+ if (appEnv.isMpDana) return mpGetEnterOptionsSync.apply(void 0, rest);
4741
+ if (appEnv.isMpGcash) return mpGetEnterOptionsSync.apply(void 0, rest);
4742
+ if (appEnv.isMpTngd) return mpGetEnterOptionsSync.apply(void 0, rest);
4743
+ return notFound.apply(void 0, __spreadArray(['getEnterOptionsSync'], rest, false));
4744
+ };
4745
+ /**
4746
+ * @support
4747
+ * | Platform | Apps |
4748
+ * | ------------- | -------- |
4749
+ * | mp | alipay,alipayhk,tngd,gcash,dana,mpay,toss |
4750
+ * | mp_web | alipay,alipayhk,tngd,gcash,dana,mpay,toss |
4751
+ * | web | |
4752
+ */
4753
+ // @ts-ignore
4754
+ export var getEnterOptionsSyncAsync = /*#__PURE__*/promisify(getEnterOptionsSync);