@lark-project/js-sdk 0.1.0-alpha.3 → 0.1.0-alpha.4
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/CHANGELOG.md +1 -0
- package/dist/es/index.js +24 -1
- package/dist/lib/index.js +25 -1
- package/dist/types/index.d.ts +39 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -182,6 +182,22 @@ _a8 = IMPL_KEY;
|
|
|
182
182
|
*/
|
|
183
183
|
Field[_a8] = "Field";
|
|
184
184
|
|
|
185
|
+
// src/biz/Navigation.ts
|
|
186
|
+
var _a9;
|
|
187
|
+
var Navigation = class extends BaseModel {
|
|
188
|
+
/**
|
|
189
|
+
* @internal
|
|
190
|
+
*/
|
|
191
|
+
static load() {
|
|
192
|
+
throw new Error("not implemented");
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
_a9 = IMPL_KEY;
|
|
196
|
+
/**
|
|
197
|
+
* @internal
|
|
198
|
+
*/
|
|
199
|
+
Navigation[_a9] = "Navigation";
|
|
200
|
+
|
|
185
201
|
// src/client.ts
|
|
186
202
|
function getImplClass(decl, impls) {
|
|
187
203
|
return impls == null ? void 0 : impls[decl[IMPL_KEY]];
|
|
@@ -214,6 +230,12 @@ var _SDKClient = class {
|
|
|
214
230
|
get cursor() {
|
|
215
231
|
return getImplValue(Cursor, this._meegoBizHub);
|
|
216
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
* 应用导航
|
|
235
|
+
*/
|
|
236
|
+
get navigation() {
|
|
237
|
+
return getImplValue(Navigation, this._meegoBizHub);
|
|
238
|
+
}
|
|
217
239
|
/**
|
|
218
240
|
* 应用上下文
|
|
219
241
|
*/
|
|
@@ -270,7 +292,7 @@ var SDKClient = _SDKClient;
|
|
|
270
292
|
/**
|
|
271
293
|
* SDK 版本号
|
|
272
294
|
*/
|
|
273
|
-
SDKClient.version = "0.1.0-alpha.
|
|
295
|
+
SDKClient.version = "0.1.0-alpha.4";
|
|
274
296
|
|
|
275
297
|
// src/types/biz.ts
|
|
276
298
|
var FieldType = /* @__PURE__ */ ((FieldType2) => {
|
|
@@ -391,6 +413,7 @@ export {
|
|
|
391
413
|
InterceptionEvent,
|
|
392
414
|
InternalError,
|
|
393
415
|
MEEGO_BIZ_HUB,
|
|
416
|
+
Navigation,
|
|
394
417
|
NoAuthError,
|
|
395
418
|
NodeStatus,
|
|
396
419
|
NotFoundError,
|
package/dist/lib/index.js
CHANGED
|
@@ -59,6 +59,7 @@ __export(src_exports, {
|
|
|
59
59
|
InterceptionEvent: () => InterceptionEvent,
|
|
60
60
|
InternalError: () => InternalError,
|
|
61
61
|
MEEGO_BIZ_HUB: () => MEEGO_BIZ_HUB,
|
|
62
|
+
Navigation: () => Navigation,
|
|
62
63
|
NoAuthError: () => NoAuthError,
|
|
63
64
|
NodeStatus: () => NodeStatus,
|
|
64
65
|
NotFoundError: () => NotFoundError,
|
|
@@ -225,6 +226,22 @@ _a8 = IMPL_KEY;
|
|
|
225
226
|
*/
|
|
226
227
|
Field[_a8] = "Field";
|
|
227
228
|
|
|
229
|
+
// src/biz/Navigation.ts
|
|
230
|
+
var _a9;
|
|
231
|
+
var Navigation = class extends BaseModel {
|
|
232
|
+
/**
|
|
233
|
+
* @internal
|
|
234
|
+
*/
|
|
235
|
+
static load() {
|
|
236
|
+
throw new Error("not implemented");
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
_a9 = IMPL_KEY;
|
|
240
|
+
/**
|
|
241
|
+
* @internal
|
|
242
|
+
*/
|
|
243
|
+
Navigation[_a9] = "Navigation";
|
|
244
|
+
|
|
228
245
|
// src/client.ts
|
|
229
246
|
function getImplClass(decl, impls) {
|
|
230
247
|
return impls == null ? void 0 : impls[decl[IMPL_KEY]];
|
|
@@ -257,6 +274,12 @@ var _SDKClient = class {
|
|
|
257
274
|
get cursor() {
|
|
258
275
|
return getImplValue(Cursor, this._meegoBizHub);
|
|
259
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* 应用导航
|
|
279
|
+
*/
|
|
280
|
+
get navigation() {
|
|
281
|
+
return getImplValue(Navigation, this._meegoBizHub);
|
|
282
|
+
}
|
|
260
283
|
/**
|
|
261
284
|
* 应用上下文
|
|
262
285
|
*/
|
|
@@ -313,7 +336,7 @@ var SDKClient = _SDKClient;
|
|
|
313
336
|
/**
|
|
314
337
|
* SDK 版本号
|
|
315
338
|
*/
|
|
316
|
-
SDKClient.version = "0.1.0-alpha.
|
|
339
|
+
SDKClient.version = "0.1.0-alpha.4";
|
|
317
340
|
|
|
318
341
|
// src/types/biz.ts
|
|
319
342
|
var FieldType = /* @__PURE__ */ ((FieldType2) => {
|
|
@@ -435,6 +458,7 @@ var src_default = SDKClient;
|
|
|
435
458
|
InterceptionEvent,
|
|
436
459
|
InternalError,
|
|
437
460
|
MEEGO_BIZ_HUB,
|
|
461
|
+
Navigation,
|
|
438
462
|
NoAuthError,
|
|
439
463
|
NodeStatus,
|
|
440
464
|
NotFoundError,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -759,6 +759,40 @@ declare abstract class Field extends BaseModel {
|
|
|
759
759
|
abstract isFormulaField: boolean;
|
|
760
760
|
}
|
|
761
761
|
|
|
762
|
+
/**
|
|
763
|
+
* @public
|
|
764
|
+
* 应用的导航
|
|
765
|
+
*/
|
|
766
|
+
declare abstract class Navigation extends BaseModel {
|
|
767
|
+
/**
|
|
768
|
+
* @internal
|
|
769
|
+
*/
|
|
770
|
+
protected static [IMPL_KEY]: string;
|
|
771
|
+
/**
|
|
772
|
+
* @internal
|
|
773
|
+
*/
|
|
774
|
+
static load(): Promise<Navigation>;
|
|
775
|
+
/**
|
|
776
|
+
* 打开新标签页加载指定的资源
|
|
777
|
+
* @param strUrl 需要载入的 URL,可以是 HTML 页面或者图片文件等浏览器支持的文件格式
|
|
778
|
+
* @param strWindowName 新标签页的名称,字符串中不能包含空格。使用相同的标签页名称可以复用同一个标签页
|
|
779
|
+
*/
|
|
780
|
+
abstract open(strUrl: string, strWindowName?: string): void;
|
|
781
|
+
/**
|
|
782
|
+
* 打开指定空间工作项新建页
|
|
783
|
+
* @param options
|
|
784
|
+
* @param options.spaceSimpleName 空间标识,非空间唯一标识
|
|
785
|
+
* @param options.workObjectId 工作项类型唯一标识,如 story、issue
|
|
786
|
+
* @param callback 新建完成回调,当 err 为 undefined 时为新建成功,可以通过 result.workItemId 取新建工作项实例 id
|
|
787
|
+
*/
|
|
788
|
+
abstract openWorkItemCreatePage(options: {
|
|
789
|
+
spaceSimpleName: string;
|
|
790
|
+
workObjectId: string;
|
|
791
|
+
}, callback: (err: Error | undefined, result: {
|
|
792
|
+
workItemId: number;
|
|
793
|
+
}) => void): void;
|
|
794
|
+
}
|
|
795
|
+
|
|
762
796
|
/**
|
|
763
797
|
* @public
|
|
764
798
|
* SDKClient 的配置项
|
|
@@ -794,6 +828,10 @@ declare class SDKClient {
|
|
|
794
828
|
* @deprecated 请用 {@link Context} 替代
|
|
795
829
|
*/
|
|
796
830
|
get cursor(): Cursor;
|
|
831
|
+
/**
|
|
832
|
+
* 应用导航
|
|
833
|
+
*/
|
|
834
|
+
get navigation(): Navigation;
|
|
797
835
|
/**
|
|
798
836
|
* 应用上下文
|
|
799
837
|
*/
|
|
@@ -876,4 +914,4 @@ declare class NotFoundError extends CustomError {
|
|
|
876
914
|
* @packageDocumentation
|
|
877
915
|
*/
|
|
878
916
|
|
|
879
|
-
export { BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, ButtonFeatureContext, ButtonScene, Context, ControlFeatureContext, Cursor, Field, FieldType, FlowMode, HostEnv, IMPL_KEY, IntegrationFeatureContext, InterceptionEvent, InterceptionFeatureContext, InternalError, Language, MEEGO_BIZ_HUB, NoAuthError, NodeStatus, NotFoundError, PageFeatureContext, Role, RoleOwners, SDKClient, SDKClientOptions, Session, Space, TabFeatureContext, User, ViewFeatureContext, WorkItem, WorkObject, SDKClient as default, unwatch };
|
|
917
|
+
export { BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, ButtonFeatureContext, ButtonScene, Context, ControlFeatureContext, Cursor, Field, FieldType, FlowMode, HostEnv, IMPL_KEY, IntegrationFeatureContext, InterceptionEvent, InterceptionFeatureContext, InternalError, Language, MEEGO_BIZ_HUB, Navigation, NoAuthError, NodeStatus, NotFoundError, PageFeatureContext, Role, RoleOwners, SDKClient, SDKClientOptions, Session, Space, TabFeatureContext, User, ViewFeatureContext, WorkItem, WorkObject, SDKClient as default, unwatch };
|