@cpzxrobot/sdk 1.3.30 → 1.3.31

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/index.js CHANGED
@@ -74,7 +74,6 @@ class Cpzxrobot {
74
74
  this.construction = new construction_gateway_1.ConstructionGateway(this);
75
75
  this.system = new system_gateway_1.SystemGateway(this);
76
76
  this.production = new production_gateway_1.ProductionGateway(this);
77
- this.purchase = new purchase_gateway_1.PurchaseGateway(this);
78
77
  this.sseCallbacks = {};
79
78
  //获取当前浏览器的域名
80
79
  this.ready = new Promise((resolve, reject) => {
@@ -91,6 +90,7 @@ class Cpzxrobot {
91
90
  this.assistant = new assistant_gateway_1.AssistantGateway(this);
92
91
  this.energy = new energy_gateway_1.EnergyGateway(this);
93
92
  this.camera = new camera_gateway_1.CameraGateway(this);
93
+ this.purchase = new purchase_gateway_1.PurchaseGateway(this);
94
94
  }
95
95
  exit() {
96
96
  if (this.mode === "miniapp_in_app") {
package/index.ts CHANGED
@@ -69,7 +69,7 @@ export class Cpzxrobot {
69
69
  construction: ConstructionGateway = new ConstructionGateway(this);
70
70
  system: SystemGateway = new SystemGateway(this);
71
71
  production: ProductionGateway = new ProductionGateway(this);
72
- purchase: PurchaseGateway = new PurchaseGateway(this);
72
+ purchase!: PurchaseGateway;
73
73
  sseCallbacks: {
74
74
  [key: string]: (data: any) => void;
75
75
  } = {};
@@ -91,6 +91,7 @@ export class Cpzxrobot {
91
91
  this.assistant = new AssistantGateway(this);
92
92
  this.energy = new EnergyGateway(this);
93
93
  this.camera = new CameraGateway(this);
94
+ this.purchase = new PurchaseGateway(this);
94
95
  }
95
96
 
96
97
  exit() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.3.30",
3
+ "version": "1.3.31",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {