@ones-open/node-sdk 0.0.4-16596.20 → 0.0.4-2087.125

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.cjs CHANGED
@@ -1,27 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const _defineProperty = require("@babel/runtime-corejs3/helpers/defineProperty");
4
3
  const lodashEs = require("lodash-es");
5
4
  const Fetch = require("axios");
6
5
  const _sortInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/sort");
7
- const getPlatformApiHost = () => {
8
- return "platformApiHost";
6
+ const getONESHostedBaseUrl = () => {
7
+ return process.env.ONES_HOSTED_BASE_URL;
9
8
  };
10
- const getPlatformAPIHost = getPlatformApiHost;
11
- const getInstanceId = () => {
12
- return "instanceId";
9
+ const getONESHostedAppID = () => {
10
+ return process.env.ONES_HOSTED_APP_ID;
13
11
  };
14
- const getApplicationId = () => {
15
- return "applicationId";
12
+ const getONESHostedToken = () => {
13
+ return process.env.ONES_HOSTED_TOKEN;
16
14
  };
17
- const getAppId = getApplicationId;
18
15
  const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19
16
  __proto__: null,
20
- getAppId,
21
- getApplicationId,
22
- getInstanceId,
23
- getPlatformAPIHost,
24
- getPlatformApiHost
17
+ getONESHostedAppID,
18
+ getONESHostedBaseUrl,
19
+ getONESHostedToken
25
20
  }, Symbol.toStringTag, { value: "Module" }));
26
21
  var EntityWhereConditionEnum = /* @__PURE__ */ ((EntityWhereConditionEnum2) => {
27
22
  EntityWhereConditionEnum2["beginsWith"] = "beginsWith";
@@ -123,24 +118,37 @@ const createErrorResult = (code, message, error) => {
123
118
  }, error);
124
119
  };
125
120
  const fetch$1 = Fetch.create();
121
+ const buildAuthHeaders$1 = () => {
122
+ const token = getONESHostedToken();
123
+ if (token) {
124
+ return {
125
+ Authorization: `Bearer ${token}`
126
+ };
127
+ }
128
+ return {};
129
+ };
126
130
  const fetchBase$1 = (path, params, config) => {
127
- return Promise.all([getPlatformAPIHost(), getInstanceId()]).then((_ref) => {
128
- let [base, instance_id] = _ref;
129
- if (base && instance_id) {
130
- const url = `${base}${path}`;
131
+ return Promise.all([getONESHostedBaseUrl(), getONESHostedAppID()]).then((_ref) => {
132
+ let [base, appId] = _ref;
133
+ if (base && appId) {
134
+ var _config$headers;
135
+ const url = `${base}/hosted_ability/storage/${appId}${path}`;
131
136
  const data = {
132
- ...params,
133
- instance_id
137
+ ...params
134
138
  };
135
139
  return fetch$1({
136
140
  ...config,
141
+ headers: {
142
+ ...(_config$headers = config === null || config === void 0 ? void 0 : config.headers) !== null && _config$headers !== void 0 ? _config$headers : {},
143
+ ...buildAuthHeaders$1()
144
+ },
137
145
  url,
138
146
  data
139
147
  });
140
148
  }
141
149
  throw new Error(JSON.stringify({
142
150
  base,
143
- instance_id
151
+ appId
144
152
  }));
145
153
  }).then((response) => {
146
154
  return response.data;
@@ -157,22 +165,22 @@ const fetchBase$1 = (path, params, config) => {
157
165
  });
158
166
  };
159
167
  const fetchPost = (params) => {
160
- return fetchBase$1("/plugin_ability_fetch/storage/entity_data", params, {
168
+ return fetchBase$1(`/entity_data`, params, {
161
169
  method: "post"
162
170
  });
163
171
  };
164
172
  const fetchDelete$1 = (params) => {
165
- return fetchBase$1("/plugin_ability_fetch/storage/entity_data", params, {
173
+ return fetchBase$1(`/entity_data`, params, {
166
174
  method: "delete"
167
175
  });
168
176
  };
169
177
  const fetchQuery = (params) => {
170
- return fetchBase$1("/plugin_ability_fetch/storage/entity_data/get_many", params, {
178
+ return fetchBase$1(`/entity_data/get_many`, params, {
171
179
  method: "post"
172
180
  });
173
181
  };
174
182
  const fetchCount = (params) => {
175
- return fetchBase$1("/plugin_ability_fetch/storage/entity_data/count", params, {
183
+ return fetchBase$1(`/entity_data/count`, params, {
176
184
  method: "post"
177
185
  });
178
186
  };
@@ -190,12 +198,12 @@ const defaultEntityQueryIndex = defaultEntityQuery.index;
190
198
  const defaultEntityQueryWhere = defaultEntityQuery.where;
191
199
  class EntityQueryClass {
192
200
  constructor(name) {
193
- _defineProperty(this, "_name", "");
194
- _defineProperty(this, "_cursor", [defaultEntityQueryCursor]);
195
- _defineProperty(this, "_limit", [defaultEntityQueryLimit]);
196
- _defineProperty(this, "_sort", [defaultEntityQuerySort]);
197
- _defineProperty(this, "_index", [defaultEntityQueryIndex]);
198
- _defineProperty(this, "_where", [defaultEntityQueryWhere]);
201
+ this._name = "";
202
+ this._cursor = [defaultEntityQueryCursor];
203
+ this._limit = [defaultEntityQueryLimit];
204
+ this._sort = [defaultEntityQuerySort];
205
+ this._index = [defaultEntityQueryIndex];
206
+ this._where = [defaultEntityQueryWhere];
199
207
  this._name = name;
200
208
  }
201
209
  cursor(cursor) {
@@ -289,7 +297,7 @@ class EntityQueryClass {
289
297
  }
290
298
  class EntityClass {
291
299
  constructor(name) {
292
- _defineProperty(this, "_name", "");
300
+ this._name = "";
293
301
  this._name = name;
294
302
  }
295
303
  async get(key) {
@@ -395,31 +403,38 @@ var ObjectErrorCode = /* @__PURE__ */ ((ObjectErrorCode2) => {
395
403
  return ObjectErrorCode2;
396
404
  })(ObjectErrorCode || {});
397
405
  class ObjectError {
398
- /**
399
- * @description 错误载荷
400
- */
401
406
  constructor(result) {
402
- _defineProperty(this, "err_msg", "");
407
+ this.err_msg = "";
403
408
  this.code = result.code;
404
409
  this.err_msg = result.err_msg;
405
410
  this.err_values = result.err_values;
406
411
  }
407
412
  }
408
413
  const fetch = Fetch.create();
414
+ const buildAuthHeaders = () => {
415
+ const token = getONESHostedToken();
416
+ if (token) {
417
+ return {
418
+ Authorization: `Bearer ${token}`
419
+ };
420
+ }
421
+ return {};
422
+ };
409
423
  const fetchBase = (path, params) => {
410
- return Promise.all([getPlatformAPIHost(), getInstanceId()]).then((_ref) => {
411
- let [base, instance_id] = _ref;
412
- if (base && instance_id) {
413
- const url = `${base}${path}`;
424
+ return Promise.all([getONESHostedBaseUrl(), getONESHostedAppID()]).then((_ref) => {
425
+ let [base, appId] = _ref;
426
+ if (base && appId) {
427
+ const url = `${base}/hosted_ability/storage/${appId}${path}`;
414
428
  const data = {
415
- ...params,
416
- instance_id
429
+ ...params
417
430
  };
418
- return fetch.post(url, data);
431
+ return fetch.post(url, data, {
432
+ headers: buildAuthHeaders()
433
+ });
419
434
  }
420
435
  throw new Error(JSON.stringify({
421
436
  base,
422
- instance_id
437
+ appId
423
438
  }));
424
439
  }).then((response) => {
425
440
  return response.data;
@@ -436,16 +451,16 @@ const fetchBase = (path, params) => {
436
451
  });
437
452
  };
438
453
  const fetchUpload = (params) => {
439
- return fetchBase("/plugin_ability_fetch/storage/object/get_upload_policy_info", params);
454
+ return fetchBase(`/object/get_upload_policy_info`, params);
440
455
  };
441
456
  const fetchDownload = (params) => {
442
- return fetchBase("/plugin_ability_fetch/storage/object/get_download_pre_signed_url", params);
457
+ return fetchBase(`/object/get_download_pre_signed_url`, params);
443
458
  };
444
459
  const fetchDelete = (params) => {
445
- return fetchBase("/plugin_ability_fetch/storage/object/delete", params);
460
+ return fetchBase(`/object/delete`, params);
446
461
  };
447
462
  const fetchMetadata = (params) => {
448
- return fetchBase("/plugin_ability_fetch/storage/object/get_metadata", params);
463
+ return fetchBase(`/object/get_metadata`, params);
449
464
  };
450
465
  const object = {
451
466
  ObjectError,
@@ -455,7 +470,8 @@ const object = {
455
470
  object_key: key
456
471
  });
457
472
  if (result.code === "OK") {
458
- if (result.data) {
473
+ var _result$data;
474
+ if ((_result$data = result.data) !== null && _result$data !== void 0 && _result$data.url) {
459
475
  const {
460
476
  url,
461
477
  fields
package/dist/index.js CHANGED
@@ -1,25 +1,20 @@
1
- import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
2
1
  import { isNull, isUndefined, isSymbol, set } from "lodash-es";
3
2
  import Fetch, { AxiosError } from "axios";
4
3
  import _sortInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/sort";
5
- const getPlatformApiHost = () => {
6
- return "platformApiHost";
4
+ const getONESHostedBaseUrl = () => {
5
+ return process.env.ONES_HOSTED_BASE_URL;
7
6
  };
8
- const getPlatformAPIHost = getPlatformApiHost;
9
- const getInstanceId = () => {
10
- return "instanceId";
7
+ const getONESHostedAppID = () => {
8
+ return process.env.ONES_HOSTED_APP_ID;
11
9
  };
12
- const getApplicationId = () => {
13
- return "applicationId";
10
+ const getONESHostedToken = () => {
11
+ return process.env.ONES_HOSTED_TOKEN;
14
12
  };
15
- const getAppId = getApplicationId;
16
13
  const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17
14
  __proto__: null,
18
- getAppId,
19
- getApplicationId,
20
- getInstanceId,
21
- getPlatformAPIHost,
22
- getPlatformApiHost
15
+ getONESHostedAppID,
16
+ getONESHostedBaseUrl,
17
+ getONESHostedToken
23
18
  }, Symbol.toStringTag, { value: "Module" }));
24
19
  var EntityWhereConditionEnum = /* @__PURE__ */ ((EntityWhereConditionEnum2) => {
25
20
  EntityWhereConditionEnum2["beginsWith"] = "beginsWith";
@@ -121,24 +116,37 @@ const createErrorResult = (code, message, error) => {
121
116
  }, error);
122
117
  };
123
118
  const fetch$1 = Fetch.create();
119
+ const buildAuthHeaders$1 = () => {
120
+ const token = getONESHostedToken();
121
+ if (token) {
122
+ return {
123
+ Authorization: `Bearer ${token}`
124
+ };
125
+ }
126
+ return {};
127
+ };
124
128
  const fetchBase$1 = (path, params, config) => {
125
- return Promise.all([getPlatformAPIHost(), getInstanceId()]).then((_ref) => {
126
- let [base, instance_id] = _ref;
127
- if (base && instance_id) {
128
- const url = `${base}${path}`;
129
+ return Promise.all([getONESHostedBaseUrl(), getONESHostedAppID()]).then((_ref) => {
130
+ let [base, appId] = _ref;
131
+ if (base && appId) {
132
+ var _config$headers;
133
+ const url = `${base}/hosted_ability/storage/${appId}${path}`;
129
134
  const data = {
130
- ...params,
131
- instance_id
135
+ ...params
132
136
  };
133
137
  return fetch$1({
134
138
  ...config,
139
+ headers: {
140
+ ...(_config$headers = config === null || config === void 0 ? void 0 : config.headers) !== null && _config$headers !== void 0 ? _config$headers : {},
141
+ ...buildAuthHeaders$1()
142
+ },
135
143
  url,
136
144
  data
137
145
  });
138
146
  }
139
147
  throw new Error(JSON.stringify({
140
148
  base,
141
- instance_id
149
+ appId
142
150
  }));
143
151
  }).then((response) => {
144
152
  return response.data;
@@ -155,22 +163,22 @@ const fetchBase$1 = (path, params, config) => {
155
163
  });
156
164
  };
157
165
  const fetchPost = (params) => {
158
- return fetchBase$1("/plugin_ability_fetch/storage/entity_data", params, {
166
+ return fetchBase$1(`/entity_data`, params, {
159
167
  method: "post"
160
168
  });
161
169
  };
162
170
  const fetchDelete$1 = (params) => {
163
- return fetchBase$1("/plugin_ability_fetch/storage/entity_data", params, {
171
+ return fetchBase$1(`/entity_data`, params, {
164
172
  method: "delete"
165
173
  });
166
174
  };
167
175
  const fetchQuery = (params) => {
168
- return fetchBase$1("/plugin_ability_fetch/storage/entity_data/get_many", params, {
176
+ return fetchBase$1(`/entity_data/get_many`, params, {
169
177
  method: "post"
170
178
  });
171
179
  };
172
180
  const fetchCount = (params) => {
173
- return fetchBase$1("/plugin_ability_fetch/storage/entity_data/count", params, {
181
+ return fetchBase$1(`/entity_data/count`, params, {
174
182
  method: "post"
175
183
  });
176
184
  };
@@ -188,12 +196,12 @@ const defaultEntityQueryIndex = defaultEntityQuery.index;
188
196
  const defaultEntityQueryWhere = defaultEntityQuery.where;
189
197
  class EntityQueryClass {
190
198
  constructor(name) {
191
- _defineProperty(this, "_name", "");
192
- _defineProperty(this, "_cursor", [defaultEntityQueryCursor]);
193
- _defineProperty(this, "_limit", [defaultEntityQueryLimit]);
194
- _defineProperty(this, "_sort", [defaultEntityQuerySort]);
195
- _defineProperty(this, "_index", [defaultEntityQueryIndex]);
196
- _defineProperty(this, "_where", [defaultEntityQueryWhere]);
199
+ this._name = "";
200
+ this._cursor = [defaultEntityQueryCursor];
201
+ this._limit = [defaultEntityQueryLimit];
202
+ this._sort = [defaultEntityQuerySort];
203
+ this._index = [defaultEntityQueryIndex];
204
+ this._where = [defaultEntityQueryWhere];
197
205
  this._name = name;
198
206
  }
199
207
  cursor(cursor) {
@@ -287,7 +295,7 @@ class EntityQueryClass {
287
295
  }
288
296
  class EntityClass {
289
297
  constructor(name) {
290
- _defineProperty(this, "_name", "");
298
+ this._name = "";
291
299
  this._name = name;
292
300
  }
293
301
  async get(key) {
@@ -393,31 +401,38 @@ var ObjectErrorCode = /* @__PURE__ */ ((ObjectErrorCode2) => {
393
401
  return ObjectErrorCode2;
394
402
  })(ObjectErrorCode || {});
395
403
  class ObjectError {
396
- /**
397
- * @description 错误载荷
398
- */
399
404
  constructor(result) {
400
- _defineProperty(this, "err_msg", "");
405
+ this.err_msg = "";
401
406
  this.code = result.code;
402
407
  this.err_msg = result.err_msg;
403
408
  this.err_values = result.err_values;
404
409
  }
405
410
  }
406
411
  const fetch = Fetch.create();
412
+ const buildAuthHeaders = () => {
413
+ const token = getONESHostedToken();
414
+ if (token) {
415
+ return {
416
+ Authorization: `Bearer ${token}`
417
+ };
418
+ }
419
+ return {};
420
+ };
407
421
  const fetchBase = (path, params) => {
408
- return Promise.all([getPlatformAPIHost(), getInstanceId()]).then((_ref) => {
409
- let [base, instance_id] = _ref;
410
- if (base && instance_id) {
411
- const url = `${base}${path}`;
422
+ return Promise.all([getONESHostedBaseUrl(), getONESHostedAppID()]).then((_ref) => {
423
+ let [base, appId] = _ref;
424
+ if (base && appId) {
425
+ const url = `${base}/hosted_ability/storage/${appId}${path}`;
412
426
  const data = {
413
- ...params,
414
- instance_id
427
+ ...params
415
428
  };
416
- return fetch.post(url, data);
429
+ return fetch.post(url, data, {
430
+ headers: buildAuthHeaders()
431
+ });
417
432
  }
418
433
  throw new Error(JSON.stringify({
419
434
  base,
420
- instance_id
435
+ appId
421
436
  }));
422
437
  }).then((response) => {
423
438
  return response.data;
@@ -434,16 +449,16 @@ const fetchBase = (path, params) => {
434
449
  });
435
450
  };
436
451
  const fetchUpload = (params) => {
437
- return fetchBase("/plugin_ability_fetch/storage/object/get_upload_policy_info", params);
452
+ return fetchBase(`/object/get_upload_policy_info`, params);
438
453
  };
439
454
  const fetchDownload = (params) => {
440
- return fetchBase("/plugin_ability_fetch/storage/object/get_download_pre_signed_url", params);
455
+ return fetchBase(`/object/get_download_pre_signed_url`, params);
441
456
  };
442
457
  const fetchDelete = (params) => {
443
- return fetchBase("/plugin_ability_fetch/storage/object/delete", params);
458
+ return fetchBase(`/object/delete`, params);
444
459
  };
445
460
  const fetchMetadata = (params) => {
446
- return fetchBase("/plugin_ability_fetch/storage/object/get_metadata", params);
461
+ return fetchBase(`/object/get_metadata`, params);
447
462
  };
448
463
  const object = {
449
464
  ObjectError,
@@ -453,7 +468,8 @@ const object = {
453
468
  object_key: key
454
469
  });
455
470
  if (result.code === "OK") {
456
- if (result.data) {
471
+ var _result$data;
472
+ if ((_result$data = result.data) !== null && _result$data !== void 0 && _result$data.url) {
457
473
  const {
458
474
  url,
459
475
  fields
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/packages/node/storage/entity/fetch/index.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAGV,oBAAoB,EAEpB,qBAAqB,EAErB,mBAAmB,EAEnB,oBAAoB,EAErB,MAAM,SAAS,CAAA;AAEhB,cAAc,SAAS,CAAA;AA8CvB,eAAO,MAAM,SAAS,EAAE,mBAQvB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,qBAQzB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,oBAYxB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,oBAQxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/packages/node/storage/entity/fetch/index.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAGV,oBAAoB,EAEpB,qBAAqB,EAErB,mBAAmB,EAEnB,oBAAoB,EAErB,MAAM,SAAS,CAAA;AAEhB,cAAc,SAAS,CAAA;AA2DvB,eAAO,MAAM,SAAS,EAAE,mBAIvB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,qBAIzB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,oBAYxB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,oBAIxB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/packages/node/storage/object/fetch/index.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAGV,qBAAqB,EAErB,uBAAuB,EAEvB,qBAAqB,EAErB,uBAAuB,EAExB,MAAM,SAAS,CAAA;AAEhB,cAAc,SAAS,CAAA;AAyCvB,eAAO,MAAM,WAAW,EAAE,qBAKzB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,uBAK3B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,qBAKzB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,uBAK3B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/packages/node/storage/object/fetch/index.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAGV,qBAAqB,EAErB,uBAAuB,EAEvB,qBAAqB,EAErB,uBAAuB,EAExB,MAAM,SAAS,CAAA;AAEhB,cAAc,SAAS,CAAA;AAwDvB,eAAO,MAAM,WAAW,EAAE,qBAKzB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,uBAK3B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,qBAEzB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,uBAE3B,CAAA"}
@@ -1,35 +1,14 @@
1
1
  /**
2
2
  * @description 获取开放平台 host
3
- * @alias getPlatformApiHost
4
- * @alias getPlatformAPIHost
5
- * @returns platformApiHost
3
+ * @alias getONESHostedBaseUrl
4
+ * @returns onesHostedBaseUrl
6
5
  */
7
- export declare const getPlatformApiHost: () => string;
8
- /**
9
- * @description 获取开放平台 host
10
- * @alias getPlatformApiHost
11
- * @alias getPlatformAPIHost
12
- * @returns platformApiHost
13
- */
14
- export declare const getPlatformAPIHost: () => string;
6
+ export declare const getONESHostedBaseUrl: () => string | undefined;
15
7
  /**
16
8
  * @description 获取插件实例 ID
17
- * @alias getInstanceId
18
- * @returns instanceId
19
- */
20
- export declare const getInstanceId: () => string;
21
- /**
22
- * @description 获取插件 ID
23
- * @alias getApplicationId
24
- * @alias getAppId
25
- * @returns applicationId
26
- */
27
- export declare const getApplicationId: () => string;
28
- /**
29
- * @description 获取插件 ID
30
- * @alias getApplicationId
31
- * @alias getAppId
32
- * @returns applicationId
9
+ * @alias getONESHostedAppID
10
+ * @returns onesHostedAppID
33
11
  */
34
- export declare const getAppId: () => string;
12
+ export declare const getONESHostedAppID: () => string | undefined;
13
+ export declare const getONESHostedToken: () => string | undefined;
35
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/packages/strict/env/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,cAE9B,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,cAAqB,CAAA;AAEpD;;;;GAIG;AACH,eAAO,MAAM,aAAa,cAEzB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,cAE5B,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,cAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/packages/strict/env/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,0BAEhC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,0BAE9B,CAAA;AAED,eAAO,MAAM,kBAAkB,0BAE9B,CAAA"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@ones-open/node-sdk",
3
- "version": "0.0.4-16596.20+f6d673af",
3
+ "version": "0.0.4-2087.125+9f3ba698",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
8
+ "types": "./dist/types/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
11
  "types": "./dist/types/index.d.ts",
@@ -50,5 +50,5 @@
50
50
  "devDependencies": {
51
51
  "@types/lodash-es": "^4.17.12"
52
52
  },
53
- "gitHead": "f6d673afd6cf6be57f22405055b91260d1f51f10"
53
+ "gitHead": "9f3ba698c126880fd39166dab9797fcd3a523fd7"
54
54
  }