zmp-sdk 2.43.1 → 2.43.3
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/apis/apis/openPostFeed.js +1 -1
- package/apis/apis/openShareSheet.js +1 -1
- package/apis/common/apis/general/openPostFeed.js +1 -1
- package/apis/index.d.ts +15 -10
- package/apis/package.json.js +1 -1
- package/apis/types/enum.js +1 -1
- package/browser.min.js +2 -2
- package/index.d.ts +16 -10
- package/index.es.js +2 -2
- package/index.js +2 -2
- package/index.umd.js +3 -3
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import t,{object as o,string as r}from'./../external/zod/lib/index.mjs.js';import n from"../appEnv/index.js";import i from"../common/notFound.js";import{functionHandler as s}from"../utils/decorator.js";import a from"../common/apis/general/openPostFeed.js";import{__generator as p}from'./../external/tslib/tslib.es6.js';var m=[t.union([o({type:t.enum(["image"]),data:o({imageUrl:
|
|
1
|
+
import e from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import t,{object as o,string as r}from'./../external/zod/lib/index.mjs.js';import n from"../appEnv/index.js";import i from"../common/notFound.js";import{functionHandler as s}from"../utils/decorator.js";import a from"../common/apis/general/openPostFeed.js";import{__generator as p}from'./../external/tslib/tslib.es6.js';var m=[t.union([o({type:t.enum(["image"]),data:o({imageUrl:r().url().optional(),imageUrls:t.array(r().url()).optional()})}),o({type:t.enum(["link"]),data:o({link:r().url(),title:r().max(100).optional(),thumb:r().url().optional(),description:r().max(400).default("").optional()})}),o({type:t.enum(["profile"]),data:o({id:r().optional()})})])];function u(e){return l.apply(this,arguments)}function l(){return l=e((function(t){return p(this,(function(o){return[2,s("openPostFeed",m,[t],(r=e((function(e){var t,o;return p(this,(function(r){switch(r.label){case 0:return n.isMp?(t=e.type,o=e.data,[4,a(t,o)]):[3,2];case 1:return[2,r.sent()];case 2:return n.isMpWeb?[2,Promise.resolve({status:1,shareType:0,numberOfUser:0})]:[2,Promise.reject(i("openPostFeed",{}))]}}))})),function(e){return r.apply(this,arguments)}))];var r}))})),l.apply(this,arguments)}export{u as openPostFeed};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import t,{object as o,string as n,number as
|
|
1
|
+
import e from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import t,{object as o,string as n,number as i}from'./../external/zod/lib/index.mjs.js';import r from"../appEnv/index.js";import a from"../common/notFound.js";import{functionHandler as l}from"../utils/decorator.js";import p from"../common/apis/general/openShareSheet.js";import{__generator as m}from'./../external/tslib/tslib.es6.js';var s=[t.union([o({type:t.enum(["text"]),data:o({text:n(),description:n().default("").optional(),autoParseLink:t.boolean().default(!1).optional()})}),o({type:t.enum(["image"]),data:o({imageUrl:n().url().optional(),imageUrls:t.array(n().url()).max(10).optional()})}),o({type:t.enum(["link"]),data:o({link:n().url(),chatOnly:t.boolean().optional()})}),o({type:t.enum(["oa"]),data:o({id:n()})}),o({type:t.enum(["gif"]),data:o({gifUrl:n().url(),imageUrl:n().url().optional(),width:i().min(0).optional(),height:i().min(0).optional()})}),o({type:t.enum(["video"]),data:o({videoThumb:n().url(),videoUrl:n().url(),width:i().min(0).optional(),height:i().min(0).optional()})}),o({type:t.enum(["zmp","zmp_deep_link"]),data:o({title:n().max(100),thumbnail:n().url(),path:n().optional(),description:n().max(400).default("").optional()})})])];function u(e){return d.apply(this,arguments)}function d(){return d=e((function(t){return m(this,(function(o){return[2,l("openShareSheet",s,[t],(n=e((function(e){var t,o;return m(this,(function(n){switch(n.label){case 0:return r.isMp?(t=e.type,o=e.data,[4,p(t,o)]):[3,2];case 1:return[2,n.sent()];case 2:return r.isMpWeb?[2,Promise.resolve({status:2,shareType:0,numberOfUser:0})]:[2,Promise.reject(a("openShareSheet",{}))]}}))})),function(e){return n.apply(this,arguments)}))];var n}))})),d.apply(this,arguments)}export{u as openShareSheet};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from'./../../../external/@swc/helpers/src/_async_to_generator.mjs.js';import s from'./../../../external/@swc/helpers/src/_object_spread.mjs.js';import e from'./../../../external/@swc/helpers/src/_object_spread_props.mjs.js';import i from"../../call/index.js";import{ZAPP_ID as l}from"../../../constants.js";import{__generator as r}from'./../../../external/tslib/tslib.es6.js';import{PostFeedType as t}from"../../../types/enum.js";var n,u=(n=o((function(o,n){var u,a;return r(this,(function(r){switch(u={},a=o,o){case"image":(null==n?void 0:n.imageUrls)?(a="multi_image",u={photoUrl:null==n?void 0:n.imageUrls}):u={photoUrl:null==n?void 0:n.imageUrl};break;case"link":u={link:null==n?void 0:n.link,title:null==n?void 0:n.title,thumb:null==n?void 0:n.thumb,description:null==n?void 0:n.description};break;case"profile":u={avt:null==n?void 0:n.avatar,uid:null==n?void 0:n.id,dpn:null==n?void 0:n.displayName}}return[2,new Promise((function(o,r){i("OPEN_POSTFEED",e(s({type:t[a]},u),{zapp:l}),{success:function(s){o({status:null==s?void 0:s.status,shareType:null==s?void 0:s.share_type,numberOfUser:null==s?void 0:s.uid_to_size})},fail:function(o){r(o)}},{})}))]}))})),function(o,s){return n.apply(this,arguments)});export{u as default};
|
package/apis/index.d.ts
CHANGED
|
@@ -2240,20 +2240,25 @@ declare function openChat(args: AsyncVoidCallback & TypeOf<(typeof openChatArgs)
|
|
|
2240
2240
|
declare const openPostFeedArgs: ZodUnion<[ZodObject<{
|
|
2241
2241
|
type: ZodEnum<["image"]>;
|
|
2242
2242
|
data: ZodObject<{
|
|
2243
|
-
imageUrl: ZodOptional<
|
|
2243
|
+
imageUrl: ZodOptional<ZodString>;
|
|
2244
|
+
imageUrls: ZodOptional<ZodArray<ZodString, "many">>;
|
|
2244
2245
|
}, "strip", ZodTypeAny, {
|
|
2245
|
-
imageUrl?: string |
|
|
2246
|
+
imageUrl?: string | undefined;
|
|
2247
|
+
imageUrls?: string[] | undefined;
|
|
2246
2248
|
}, {
|
|
2247
|
-
imageUrl?: string |
|
|
2249
|
+
imageUrl?: string | undefined;
|
|
2250
|
+
imageUrls?: string[] | undefined;
|
|
2248
2251
|
}>;
|
|
2249
2252
|
}, "strip", ZodTypeAny, {
|
|
2250
2253
|
data: {
|
|
2251
|
-
imageUrl?: string |
|
|
2254
|
+
imageUrl?: string | undefined;
|
|
2255
|
+
imageUrls?: string[] | undefined;
|
|
2252
2256
|
};
|
|
2253
2257
|
type: "image";
|
|
2254
2258
|
}, {
|
|
2255
2259
|
data: {
|
|
2256
|
-
imageUrl?: string |
|
|
2260
|
+
imageUrl?: string | undefined;
|
|
2261
|
+
imageUrls?: string[] | undefined;
|
|
2257
2262
|
};
|
|
2258
2263
|
type: "image";
|
|
2259
2264
|
}>, ZodObject<{
|
|
@@ -2365,25 +2370,25 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
2365
2370
|
}>, ZodObject<{
|
|
2366
2371
|
type: ZodEnum<["image"]>;
|
|
2367
2372
|
data: ZodObject<{
|
|
2368
|
-
imageUrl: ZodString
|
|
2373
|
+
imageUrl: ZodOptional<ZodString>;
|
|
2369
2374
|
imageUrls: ZodOptional<ZodArray<ZodString, "many">>;
|
|
2370
2375
|
}, "strip", ZodTypeAny, {
|
|
2376
|
+
imageUrl?: string | undefined;
|
|
2371
2377
|
imageUrls?: string[] | undefined;
|
|
2372
|
-
imageUrl: string;
|
|
2373
2378
|
}, {
|
|
2379
|
+
imageUrl?: string | undefined;
|
|
2374
2380
|
imageUrls?: string[] | undefined;
|
|
2375
|
-
imageUrl: string;
|
|
2376
2381
|
}>;
|
|
2377
2382
|
}, "strip", ZodTypeAny, {
|
|
2378
2383
|
data: {
|
|
2384
|
+
imageUrl?: string | undefined;
|
|
2379
2385
|
imageUrls?: string[] | undefined;
|
|
2380
|
-
imageUrl: string;
|
|
2381
2386
|
};
|
|
2382
2387
|
type: "image";
|
|
2383
2388
|
}, {
|
|
2384
2389
|
data: {
|
|
2390
|
+
imageUrl?: string | undefined;
|
|
2385
2391
|
imageUrls?: string[] | undefined;
|
|
2386
|
-
imageUrl: string;
|
|
2387
2392
|
};
|
|
2388
2393
|
type: "image";
|
|
2389
2394
|
}>, ZodObject<{
|
package/apis/package.json.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var r="2.43.
|
|
1
|
+
var r="2.43.3";export{r as version};
|
package/apis/types/enum.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,n,o,a,i,t,c,l,u,p,r,d,
|
|
1
|
+
var e,n,o,a,i,t,c,l,u,p,r,m,d,s,f,h,_,E;!function(e){e.none="none",e.wifi="wifi",e.cellular="cellular",e.unknown="unknown"}(e||(e={})),function(e){e.wp="wp",e.android="android",e.iOS="iOS",e.unknown="unknown"}(n||(n={})),function(e){e.AppPaused="h5.event.paused",e.AppResumed="h5.event.resumed",e.NetworkChanged="h5.event.connection.changed",e.OnDataCallback="h5.event.webview.result",e.WebviewClosed="h5.event.webview.close",e.OpenApp="h5.event.open.mp",e.AppClose="h5.event.action.close",e.PaymentCallback="payment.callback",e.PaymentResult="action.payment.result",e.PaymentClose="action.payment.close"}(o||(o={})),function(e){e.DOING="doing",e.DONE="done"}(a||(a={})),function(e){e[e.user=1]="user",e[e.oa=0]="oa",e[e.aliasOA=2]="aliasOA"}(i||(i={})),function(e){e[e.user=1]="user",e[e.oa=0]="oa"}(t||(t={})),function(e){e[e.image=1]="image",e[e.multi_image=2]="multi_image",e[e.link=4]="link",e[e.profile=5]="profile"}(c||(c={})),function(e){e[e.cccd=1]="cccd"}(l||(l={})),function(e){e[e.image=1]="image",e[e.gif=11]="gif",e[e.video=12]="video",e[e.link=4]="link",e[e.oa=5]="oa",e[e.zmp=20]="zmp",e[e.multi_image=21]="multi_image",e[e.zmp_deep_link=4]="zmp_deep_link",e[e.text=22]="text"}(u||(u={})),function(e){e[e.auto=1]="auto",e[e.portrait=2]="portrait",e[e.landscape=3]="landscape"}(p||(p={})),function(e){e[e.oneShot=0]="oneShot"}(r||(r={})),function(e){e[e.zcamera=3]="zcamera",e[e.zcamera_photo=1]="zcamera_photo",e[e.zcamera_video=2]="zcamera_video",e[e.zcamera_scan=7]="zcamera_scan",e[e.photo=4]="photo",e[e.video=5]="video",e[e.file=6]="file"}(m||(m={})),function(e){e.SUBSCRIPTION="SUBSCRIPTION",e.ONETIME="ONETIME"}(d||(d={})),function(e){e[e.UNKNOW=0]="UNKNOW",e[e.DEFERRED=1]="DEFERRED",e[e.IMMEDIATE_AND_CHARGE_FULL_PRICE=2]="IMMEDIATE_AND_CHARGE_FULL_PRICE"}(s||(s={})),function(e){e[e.normal=1]="normal",e[e.hidden=0]="hidden",e[e.transparent=2]="transparent"}(f||(f={})),function(e){e[e.show=1]="show",e[e.hide=0]="hide"}(h||(h={})),function(e){e[e.show=1]="show",e[e.hide=0]="hide"}(_||(_={})),function(e){e[e.left=0]="left",e[e.center=1]="center"}(E||(E={}));export{h as AndroidBottomNavigationBarType,t as ChatType,o as Events,d as IAPPayType,_ as IOSSafeAreaBottomType,a as JumpStatus,m as MediaPickerType,e as NetworkType,p as OrientationType,n as PlatformType,c as PostFeedType,i as ProfileType,s as ProrationMode,l as ScanNFCType,u as ShareSheetType,f as StatusBarType,E as TextAlignType,r as VibrateType};
|