@lark-project/js-sdk 0.1.0-alpha.8 → 0.1.0

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/dist/es/index.js CHANGED
@@ -292,7 +292,7 @@ var SDKClient = _SDKClient;
292
292
  /**
293
293
  * SDK 版本号
294
294
  */
295
- SDKClient.version = "0.1.0-alpha.8";
295
+ SDKClient.version = "0.1.0";
296
296
 
297
297
  // src/types/biz.ts
298
298
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
package/dist/lib/index.js CHANGED
@@ -337,7 +337,7 @@ var SDKClient = _SDKClient;
337
337
  /**
338
338
  * SDK 版本号
339
339
  */
340
- SDKClient.version = "0.1.0-alpha.8";
340
+ SDKClient.version = "0.1.0";
341
341
 
342
342
  // src/types/biz.ts
343
343
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
@@ -781,15 +781,17 @@ interface WorkItemCreateFormPreset {
781
781
  /**
782
782
  * 工作项属性,目前仅支持工作项名称(name)
783
783
  */
784
- attribute?: Record<AttributeType, {
785
- attributeValue: any;
786
- }>;
784
+ attribute?: {
785
+ [key in AttributeType]?: {
786
+ attributeValue: any;
787
+ };
788
+ };
787
789
  /**
788
790
  * 工作项字段
789
791
  */
790
792
  field?: {
791
793
  [fieldId: string]: {
792
- fieldType: Omit<FieldType, FieldType.unknown | FieldType.richText | FieldType.simpleVoting | FieldType.singleVoting | FieldType.multiVoting | FieldType.attachment | FieldType.singleSignal | FieldType.multiSignal | FieldType.compoundField>;
794
+ fieldType: Exclude<FieldType, FieldType.unknown | FieldType.richText | FieldType.simpleVoting | FieldType.singleVoting | FieldType.multiVoting | FieldType.attachment | FieldType.singleSignal | FieldType.multiSignal | FieldType.compoundField>;
793
795
  fieldValue: any;
794
796
  };
795
797
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-project/js-sdk",
3
- "version": "0.1.0-alpha.8",
3
+ "version": "0.1.0",
4
4
  "runtimeMinVersions": {
5
5
  "web": "2.1.0",
6
6
  "mobile": "1.1.0"