@microsoft/teams.api 2.0.0-preview.10 → 2.0.0-preview.11
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.
|
@@ -61,14 +61,20 @@ class TypingActivity extends activity.Activity {
|
|
|
61
61
|
if (!this.channelData) {
|
|
62
62
|
this.channelData = {};
|
|
63
63
|
}
|
|
64
|
-
this.channelData.streamId
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
if (!this.channelData.streamId) {
|
|
65
|
+
this.channelData.streamId = this.id;
|
|
66
|
+
}
|
|
67
|
+
if (!this.channelData.streamType) {
|
|
68
|
+
this.channelData.streamType = "streaming";
|
|
69
|
+
}
|
|
70
|
+
if (!this.channelData.streamSequence) {
|
|
71
|
+
this.channelData.streamSequence = sequence;
|
|
72
|
+
}
|
|
67
73
|
return this.addEntity({
|
|
68
74
|
type: "streaminfo",
|
|
69
75
|
streamId: this.id,
|
|
70
|
-
streamType:
|
|
71
|
-
streamSequence:
|
|
76
|
+
streamType: this.channelData.streamType,
|
|
77
|
+
streamSequence: this.channelData.streamSequence
|
|
72
78
|
});
|
|
73
79
|
}
|
|
74
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/activities/typing.ts"],"names":["Activity"],"mappings":";;;;AASO,MAAM,uBAAuBA,iBAA8C,CAAA;AAAA;AAAA;AAAA;AAAA,EAIhF,IAAA;AAAA,EAEA,WAAA,CAAY,KAAgD,GAAA,EAAI,EAAA;AAC9D,IAAM,KAAA,CAAA;AAAA,MACJ,IAAM,EAAA,QAAA;AAAA,MACN,GAAG;AAAA,KACJ,CAAA;AAED,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AAAA;AAC3B;AAAA;AAAA;AAAA,EAKA,OAAO,KAAK,QAA2B,EAAA;AACrC,IAAO,OAAA,IAAI,eAAe,QAAQ,CAAA;AAAA;AACpC;AAAA;AAAA;AAAA,EAKA,WAA+B,GAAA;A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AA,MACN,UAAU,IAAK,CAAA,EAAA;AAAA,MACf,UAAA,EAAY,KAAK,WAAY,CAAA,UAAA;AAAA,MAC7B,cAAA,EAAgB,KAAK,WAAY,CAAA;AAAA,KAClC,CAAA;AAAA;AAEL","file":"typing.js","sourcesContent":["import { IActivity, Activity } from './activity';\n\nexport interface ITypingActivity extends IActivity<'typing'> {\n /**\n * The text content of the message.\n */\n text?: string;\n}\n\nexport class TypingActivity extends Activity<'typing'> implements ITypingActivity {\n /**\n * The text content of the message.\n */\n text?: string;\n\n constructor(value: Omit<Partial<ITypingActivity>, 'type'> = {}) {\n super({\n type: 'typing',\n ...value,\n });\n\n Object.assign(this, value);\n }\n\n /**\n * initialize from interface\n */\n static from(activity: ITypingActivity) {\n return new TypingActivity(activity);\n }\n\n /**\n * convert to interface\n */\n toInterface(): ITypingActivity {\n return Object.assign({}, this);\n }\n\n /**\n * copy to a new instance\n */\n clone(options: Omit<Partial<ITypingActivity>, 'type'> = {}) {\n return new TypingActivity({\n ...this.toInterface(),\n ...options,\n });\n }\n\n /**\n * The text content of the message.\n */\n withText(value: string) {\n this.text = value;\n return this;\n }\n\n /**\n * Append text\n */\n addText(text: string) {\n if (!this.text) {\n this.text = '';\n }\n\n this.text += text;\n return this;\n }\n\n /**\n * Add stream informative update\n * @param id the stream id\n * @param sequence the sequence number (index) of the chunk\n */\n addStreamUpdate(sequence: number = 0) {\n if (!this.channelData) {\n this.channelData = {};\n }\n\n if (!this.channelData.streamId) {\n this.channelData.streamId = this.id;\n }\n\n if (!this.channelData.streamType) {\n this.channelData.streamType = 'streaming';\n }\n if (!this.channelData.streamSequence) {\n this.channelData.streamSequence = sequence;\n }\n\n return this.addEntity({\n type: 'streaminfo',\n streamId: this.id,\n streamType: this.channelData.streamType,\n streamSequence: this.channelData.streamSequence,\n });\n }\n}\n"]}
|
|
@@ -59,14 +59,20 @@ class TypingActivity extends Activity {
|
|
|
59
59
|
if (!this.channelData) {
|
|
60
60
|
this.channelData = {};
|
|
61
61
|
}
|
|
62
|
-
this.channelData.streamId
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
if (!this.channelData.streamId) {
|
|
63
|
+
this.channelData.streamId = this.id;
|
|
64
|
+
}
|
|
65
|
+
if (!this.channelData.streamType) {
|
|
66
|
+
this.channelData.streamType = "streaming";
|
|
67
|
+
}
|
|
68
|
+
if (!this.channelData.streamSequence) {
|
|
69
|
+
this.channelData.streamSequence = sequence;
|
|
70
|
+
}
|
|
65
71
|
return this.addEntity({
|
|
66
72
|
type: "streaminfo",
|
|
67
73
|
streamId: this.id,
|
|
68
|
-
streamType:
|
|
69
|
-
streamSequence:
|
|
74
|
+
streamType: this.channelData.streamType,
|
|
75
|
+
streamSequence: this.channelData.streamSequence
|
|
70
76
|
});
|
|
71
77
|
}
|
|
72
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/activities/typing.ts"],"names":[],"mappings":";;AASO,MAAM,uBAAuB,QAA8C,CAAA;AAAA;AAAA;AAAA;AAAA,EAIhF,IAAA;AAAA,EAEA,WAAA,CAAY,KAAgD,GAAA,EAAI,EAAA;AAC9D,IAAM,KAAA,CAAA;AAAA,MACJ,IAAM,EAAA,QAAA;AAAA,MACN,GAAG;AAAA,KACJ,CAAA;AAED,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AAAA;AAC3B;AAAA;AAAA;AAAA,EAKA,OAAO,KAAK,QAA2B,EAAA;AACrC,IAAO,OAAA,IAAI,eAAe,QAAQ,CAAA;AAAA;AACpC;AAAA;AAAA;AAAA,EAKA,WAA+B,GAAA;AAC7B,IAAA,OAAO,MAAO,CAAA,MAAA,CAAO,EAAC,EAAG,IAAI,CAAA;AAAA;AAC/B;AAAA;AAAA;AAAA,EAKA,KAAA,CAAM,OAAkD,GAAA,EAAI,EAAA;AAC1D,IAAA,OAAO,IAAI,cAAe,CAAA;AAAA,MACxB,GAAG,KAAK,WAAY,EAAA;AAAA,MACpB,GAAG;A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ACxB,GAAG,KAAK,WAAY,EAAA;AAAA,MACpB,GAAG;AAAA,KACJ,CAAA;AAAA;AACH;AAAA;AAAA;AAAA,EAKA,SAAS,KAAe,EAAA;AACtB,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT;AAAA;AAAA;AAAA,EAKA,QAAQ,IAAc,EAAA;AACpB,IAAI,IAAA,CAAC,KAAK,IAAM,EAAA;AACd,MAAA,IAAA,CAAK,IAAO,GAAA,EAAA;AAAA;AAGd,IAAA,IAAA,CAAK,IAAQ,IAAA,IAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,eAAA,CAAgB,WAAmB,CAAG,EAAA;AACpC,IAAI,IAAA,CAAC,KAAK,WAAa,EAAA;AACrB,MAAA,IAAA,CAAK,cAAc,EAAC;AAAA;AAGtB,IAAI,IAAA,CAAC,IAAK,CAAA,WAAA,CAAY,QAAU,EAAA;AAC9B,MAAK,IAAA,CAAA,WAAA,CAAY,WAAW,IAAK,CAAA,EAAA;AAAA;AAGnC,IAAI,IAAA,CAAC,IAAK,CAAA,WAAA,CAAY,UAAY,EAAA;AAChC,MAAA,IAAA,CAAK,YAAY,UAAa,GAAA,WAAA;AAAA;AAEhC,IAAI,IAAA,CAAC,IAAK,CAAA,WAAA,CAAY,cAAgB,EAAA;AACpC,MAAA,IAAA,CAAK,YAAY,cAAiB,GAAA,QAAA;AAAA;AAGpC,IAAA,OAAO,KAAK,SAAU,CAAA;AAAA,MACpB,IAAM,EAAA,YAAA;AAAA,MACN,UAAU,IAAK,CAAA,EAAA;AAAA,MACf,UAAA,EAAY,KAAK,WAAY,CAAA,UAAA;AAAA,MAC7B,cAAA,EAAgB,KAAK,WAAY,CAAA;AAAA,KAClC,CAAA;AAAA;AAEL","file":"typing.mjs","sourcesContent":["import { IActivity, Activity } from './activity';\n\nexport interface ITypingActivity extends IActivity<'typing'> {\n /**\n * The text content of the message.\n */\n text?: string;\n}\n\nexport class TypingActivity extends Activity<'typing'> implements ITypingActivity {\n /**\n * The text content of the message.\n */\n text?: string;\n\n constructor(value: Omit<Partial<ITypingActivity>, 'type'> = {}) {\n super({\n type: 'typing',\n ...value,\n });\n\n Object.assign(this, value);\n }\n\n /**\n * initialize from interface\n */\n static from(activity: ITypingActivity) {\n return new TypingActivity(activity);\n }\n\n /**\n * convert to interface\n */\n toInterface(): ITypingActivity {\n return Object.assign({}, this);\n }\n\n /**\n * copy to a new instance\n */\n clone(options: Omit<Partial<ITypingActivity>, 'type'> = {}) {\n return new TypingActivity({\n ...this.toInterface(),\n ...options,\n });\n }\n\n /**\n * The text content of the message.\n */\n withText(value: string) {\n this.text = value;\n return this;\n }\n\n /**\n * Append text\n */\n addText(text: string) {\n if (!this.text) {\n this.text = '';\n }\n\n this.text += text;\n return this;\n }\n\n /**\n * Add stream informative update\n * @param id the stream id\n * @param sequence the sequence number (index) of the chunk\n */\n addStreamUpdate(sequence: number = 0) {\n if (!this.channelData) {\n this.channelData = {};\n }\n\n if (!this.channelData.streamId) {\n this.channelData.streamId = this.id;\n }\n\n if (!this.channelData.streamType) {\n this.channelData.streamType = 'streaming';\n }\n if (!this.channelData.streamSequence) {\n this.channelData.streamSequence = sequence;\n }\n\n return this.addEntity({\n type: 'streaminfo',\n streamId: this.id,\n streamType: this.channelData.streamType,\n streamSequence: this.channelData.streamSequence,\n });\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/teams.api",
|
|
3
|
-
"version": "2.0.0-preview.
|
|
3
|
+
"version": "2.0.0-preview.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"qs": "^6.13.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@microsoft/teams.cards": "2.0.0-preview.
|
|
43
|
-
"@microsoft/teams.common": "2.0.0-preview.
|
|
42
|
+
"@microsoft/teams.cards": "2.0.0-preview.11",
|
|
43
|
+
"@microsoft/teams.common": "2.0.0-preview.11"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@microsoft/teams.config": "2.0.0-preview.
|
|
46
|
+
"@microsoft/teams.config": "2.0.0-preview.11",
|
|
47
47
|
"@types/jest": "^29.5.12",
|
|
48
48
|
"@types/jsonwebtoken": "^9.0.7",
|
|
49
49
|
"@types/qs": "^6.9.15",
|