@manycore/custom-sdk 3.0.5 → 3.0.6

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.
Files changed (3) hide show
  1. package/index.d.ts +46 -6
  2. package/index.js +11 -11
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -167,6 +167,11 @@ export declare class Application {
167
167
  };
168
168
  }
169
169
 
170
+ /**
171
+ * @vm-type UnknownType
172
+ */
173
+ declare type AugmentedOptional<T extends object, K extends keyof T = keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
174
+
170
175
  /**
171
176
  * @vm-type UnknownType
172
177
  */
@@ -1622,7 +1627,7 @@ export declare class FittingDesignService extends BaseService {
1622
1627
  * 孔槽数据
1623
1628
  * @vm-type UnknownType
1624
1629
  */
1625
- export declare interface IFittingDataV2<WithId extends boolean = false> {
1630
+ export declare interface IFittingDataV2<WithRequiredId extends boolean = false> {
1626
1631
  /**
1627
1632
  * 孔槽关联的商品id
1628
1633
  */
@@ -1630,11 +1635,11 @@ export declare class FittingDesignService extends BaseService {
1630
1635
  /**
1631
1636
  * 孔的集合
1632
1637
  */
1633
- holes?: Array<WithId extends true ? IHoleDataV2WithId : IHoleDataV2>;
1638
+ holes?: Array<WithRequiredId extends true ? IHoleDataV2WithId : IHoleDataV2WithOptionalId_2>;
1634
1639
  /**
1635
1640
  * 槽的集合
1636
1641
  */
1637
- grooves?: Array<WithId extends true ? IGrooveDataV2WithId : IGrooveDataV2>;
1642
+ grooves?: Array<WithRequiredId extends true ? IGrooveDataV2WithId : IGrooveDataV2WithOptionalId_2>;
1638
1643
  }
1639
1644
 
1640
1645
  /**
@@ -1667,7 +1672,7 @@ export declare class FittingDesignService extends BaseService {
1667
1672
  * 孔槽方案数据
1668
1673
  * @vm-type UnknownType
1669
1674
  */
1670
- export declare interface IFittingDesignDataV2<WithId extends boolean = false> {
1675
+ export declare interface IFittingDesignDataV2<WithRequiredId extends boolean = false> {
1671
1676
  /**
1672
1677
  * 方案关联的顶层模型id
1673
1678
  */
@@ -1675,7 +1680,7 @@ export declare class FittingDesignService extends BaseService {
1675
1680
  /**
1676
1681
  * 孔槽方案
1677
1682
  */
1678
- fittingDesign: Array<IFittingDataV2<WithId>>;
1683
+ fittingDesign: Array<IFittingDataV2<WithRequiredId>>;
1679
1684
  }
1680
1685
 
1681
1686
  export declare interface IFittingDesignValidateResult {
@@ -1799,6 +1804,16 @@ export declare class FittingDesignService extends BaseService {
1799
1804
  setHidden(isHidden: boolean): void;
1800
1805
  }
1801
1806
 
1807
+ /**
1808
+ * 孔/槽加工工艺
1809
+ */
1810
+ declare interface IFittingProcessingTechnology {
1811
+ /**
1812
+ * 刀具编号
1813
+ */
1814
+ toolNo?: string;
1815
+ }
1816
+
1802
1817
  /**
1803
1818
  * 影响孔槽渲染的属性
1804
1819
  */
@@ -2025,6 +2040,10 @@ export declare class FittingDesignService extends BaseService {
2025
2040
  * 名称
2026
2041
  */
2027
2042
  name: string;
2043
+ /**
2044
+ * 孔/槽的加工工艺
2045
+ */
2046
+ processingTechnology?: IFittingProcessingTechnology;
2028
2047
  }
2029
2048
 
2030
2049
  export declare type IGrooveDataV2WithId = IGrooveDataV2 & IGrooveId;
@@ -2033,6 +2052,11 @@ export declare class FittingDesignService extends BaseService {
2033
2052
  grooveId?: string;
2034
2053
  }
2035
2054
 
2055
+ /**
2056
+ * @vm-type UnknownType
2057
+ */
2058
+ declare type IGrooveDataV2WithOptionalId_2 = AugmentedOptional<IGrooveDataV2WithId, 'grooveId'>;
2059
+
2036
2060
  declare interface IGrooveId {
2037
2061
  /**
2038
2062
  * 槽ID
@@ -2224,6 +2248,10 @@ export declare class FittingDesignService extends BaseService {
2224
2248
  * 名称
2225
2249
  */
2226
2250
  name: string;
2251
+ /**
2252
+ * 孔/槽的加工工艺
2253
+ */
2254
+ processingTechnology?: IFittingProcessingTechnology;
2227
2255
  }
2228
2256
 
2229
2257
  export declare interface IHoleDataV2WithId extends IHoleDataV2 {
@@ -2237,6 +2265,11 @@ export declare class FittingDesignService extends BaseService {
2237
2265
  holeId?: string;
2238
2266
  }
2239
2267
 
2268
+ /**
2269
+ * @vm-type UnknownType
2270
+ */
2271
+ declare type IHoleDataV2WithOptionalId_2 = AugmentedOptional<IHoleDataV2WithId, 'holeId'>;
2272
+
2240
2273
  /**
2241
2274
  * 交接信息
2242
2275
  */
@@ -2611,6 +2644,13 @@ export declare class FittingDesignService extends BaseService {
2611
2644
  * @typedef Number3
2612
2645
  */
2613
2646
  readonly size: Number3;
2647
+ /**
2648
+ * 模型版本信息
2649
+ * @readonly
2650
+ * @public
2651
+ * @typedef number
2652
+ */
2653
+ readonly version: number;
2614
2654
  /**
2615
2655
  * 获取当前模型的产品编码
2616
2656
  * 此字段相当于json输出中『modelBrandGoodCode』字段
@@ -2978,7 +3018,7 @@ export declare class FittingDesignService extends BaseService {
2978
3018
  * 设置槽
2979
3019
  * 全量替换原有的槽
2980
3020
  */
2981
- setSlots(holes: ISlotData[]): void;
3021
+ setSlots(slots: ISlotData[]): void;
2982
3022
  }
2983
3023
 
2984
3024
  /**