Skip to content

Commit 3adadfe

Browse files
author
Ivan Kudinov
committed
CCS-111896 add link_regex initiator
1 parent 66ab988 commit 3adadfe

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@expressms/smartapp-sdk",
3-
"version": "1.14.0-alpha.3",
3+
"version": "1.14.0-alpha.6",
44
"description": "Smartapp SDK",
55
"main": "build/main/index.js",
66
"typings": "build/main/index.d.ts",

src/types/bridge.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,13 @@ export interface InitialDataMenuAction extends InitialData {
148148
}
149149
}
150150

151+
export interface InitialDataLink extends InitialData {
152+
initiator: 'link_regex'
153+
meta: {
154+
url: string
155+
}
156+
}
157+
151158
export type RuleDownload = {
152159
action: 'download'
153160
ruleMeta: {
@@ -195,6 +202,7 @@ export type ReadyEventResponse =
195202
| InitialDataPush
196203
| InitialDataDeeplink
197204
| InitialDataMenuAction
205+
| InitialDataLink
198206
rules?: Array<RuleDownload | RuleUpload | RuleShare | RuleCopy>
199207
isPinned?: boolean
200208
}

0 commit comments

Comments
 (0)