@tinywork/glass 1.0.37 → 1.0.39
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/index.d.ts +21 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -425,6 +425,8 @@ declare global {
|
|
|
425
425
|
options?: {
|
|
426
426
|
/** 是否触发缓存更新 */
|
|
427
427
|
hooks?: boolean;
|
|
428
|
+
/** 是否出发插件emit */
|
|
429
|
+
emit?: boolean;
|
|
428
430
|
/** 是否根据文档自动生成rule规则 */
|
|
429
431
|
defaultRule?: Partial<{
|
|
430
432
|
name: string;
|
|
@@ -437,8 +439,25 @@ declare global {
|
|
|
437
439
|
apiId: string;
|
|
438
440
|
ruleId?: string;
|
|
439
441
|
}>;
|
|
440
|
-
|
|
441
|
-
|
|
442
|
+
/** 新增文档 */
|
|
443
|
+
addDoc(
|
|
444
|
+
doc: DocSchema,
|
|
445
|
+
options?: {
|
|
446
|
+
/** 是否触发缓存更新 */
|
|
447
|
+
hooks?: boolean;
|
|
448
|
+
/** 是否出发插件emit */
|
|
449
|
+
emit?: boolean;
|
|
450
|
+
},
|
|
451
|
+
): IGlassExtensionInvokeResponse<void>;
|
|
452
|
+
deleteDoc(
|
|
453
|
+
apiId: string,
|
|
454
|
+
options?: {
|
|
455
|
+
/** 是否触发缓存更新 */
|
|
456
|
+
hooks?: boolean;
|
|
457
|
+
/** 是否出发插件emit */
|
|
458
|
+
emit?: boolean;
|
|
459
|
+
},
|
|
460
|
+
): IGlassExtensionInvokeResponse<void>;
|
|
442
461
|
|
|
443
462
|
getDoc(
|
|
444
463
|
params: { apiId: string } | { pathname: string },
|