@ones-open/node-sdk 0.0.4-4936.124 → 0.0.4-4995.142
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 +8 -12
- package/dist/index.js +8 -12
- package/dist/types/packages/node/index.d.ts +0 -1
- package/dist/types/packages/node/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/types/packages/node/event/index.d.ts +0 -2
- package/dist/types/packages/node/event/index.d.ts.map +0 -1
- package/dist/types/packages/node/event/types.d.ts +0 -22
- package/dist/types/packages/node/event/types.d.ts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
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");
|
|
@@ -199,12 +198,12 @@ const defaultEntityQueryIndex = defaultEntityQuery.index;
|
|
|
199
198
|
const defaultEntityQueryWhere = defaultEntityQuery.where;
|
|
200
199
|
class EntityQueryClass {
|
|
201
200
|
constructor(name) {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
201
|
+
this._name = "";
|
|
202
|
+
this._cursor = [defaultEntityQueryCursor];
|
|
203
|
+
this._limit = [defaultEntityQueryLimit];
|
|
204
|
+
this._sort = [defaultEntityQuerySort];
|
|
205
|
+
this._index = [defaultEntityQueryIndex];
|
|
206
|
+
this._where = [defaultEntityQueryWhere];
|
|
208
207
|
this._name = name;
|
|
209
208
|
}
|
|
210
209
|
cursor(cursor) {
|
|
@@ -298,7 +297,7 @@ class EntityQueryClass {
|
|
|
298
297
|
}
|
|
299
298
|
class EntityClass {
|
|
300
299
|
constructor(name) {
|
|
301
|
-
|
|
300
|
+
this._name = "";
|
|
302
301
|
this._name = name;
|
|
303
302
|
}
|
|
304
303
|
async get(key) {
|
|
@@ -404,11 +403,8 @@ var ObjectErrorCode = /* @__PURE__ */ ((ObjectErrorCode2) => {
|
|
|
404
403
|
return ObjectErrorCode2;
|
|
405
404
|
})(ObjectErrorCode || {});
|
|
406
405
|
class ObjectError {
|
|
407
|
-
/**
|
|
408
|
-
* @description 错误载荷
|
|
409
|
-
*/
|
|
410
406
|
constructor(result) {
|
|
411
|
-
|
|
407
|
+
this.err_msg = "";
|
|
412
408
|
this.code = result.code;
|
|
413
409
|
this.err_msg = result.err_msg;
|
|
414
410
|
this.err_values = result.err_values;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
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";
|
|
@@ -197,12 +196,12 @@ const defaultEntityQueryIndex = defaultEntityQuery.index;
|
|
|
197
196
|
const defaultEntityQueryWhere = defaultEntityQuery.where;
|
|
198
197
|
class EntityQueryClass {
|
|
199
198
|
constructor(name) {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
199
|
+
this._name = "";
|
|
200
|
+
this._cursor = [defaultEntityQueryCursor];
|
|
201
|
+
this._limit = [defaultEntityQueryLimit];
|
|
202
|
+
this._sort = [defaultEntityQuerySort];
|
|
203
|
+
this._index = [defaultEntityQueryIndex];
|
|
204
|
+
this._where = [defaultEntityQueryWhere];
|
|
206
205
|
this._name = name;
|
|
207
206
|
}
|
|
208
207
|
cursor(cursor) {
|
|
@@ -296,7 +295,7 @@ class EntityQueryClass {
|
|
|
296
295
|
}
|
|
297
296
|
class EntityClass {
|
|
298
297
|
constructor(name) {
|
|
299
|
-
|
|
298
|
+
this._name = "";
|
|
300
299
|
this._name = name;
|
|
301
300
|
}
|
|
302
301
|
async get(key) {
|
|
@@ -402,11 +401,8 @@ var ObjectErrorCode = /* @__PURE__ */ ((ObjectErrorCode2) => {
|
|
|
402
401
|
return ObjectErrorCode2;
|
|
403
402
|
})(ObjectErrorCode || {});
|
|
404
403
|
class ObjectError {
|
|
405
|
-
/**
|
|
406
|
-
* @description 错误载荷
|
|
407
|
-
*/
|
|
408
404
|
constructor(result) {
|
|
409
|
-
|
|
405
|
+
this.err_msg = "";
|
|
410
406
|
this.code = result.code;
|
|
411
407
|
this.err_msg = result.err_msg;
|
|
412
408
|
this.err_values = result.err_values;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * as env from '../../packages/strict/env';
|
|
2
2
|
export * as storage from './storage';
|
|
3
|
-
export type * from './event';
|
|
4
3
|
export { ErrorCode } from '../../packages/strict/error';
|
|
5
4
|
export type { Entity, EntityBatchSetItem, EntityQuery, EntityListResultData, EntityError, ObjectError, ObjectStoreUploadResult, ObjectStoreDownloadResult, } from './storage';
|
|
6
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/packages/node/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,uBAAuB,CAAA;AAC5C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/packages/node/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,uBAAuB,CAAA;AAC5C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAEnD,YAAY,EACV,MAAM,EACN,kBAAkB,EAClB,WAAW,EACX,oBAAoB,EACpB,WAAW,EACX,WAAW,EACX,uBAAuB,EACvB,yBAAyB,GAC1B,MAAM,WAAW,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ones-open/node-sdk",
|
|
3
|
-
"version": "0.0.4-
|
|
3
|
+
"version": "0.0.4-4995.142+3176184d",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/lodash-es": "^4.17.12"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "3176184de66fa14e8d71579926ffac3e6996106f"
|
|
54
54
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/packages/node/event/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description ONES 事件回调 HTTP 请求体
|
|
3
|
-
*/
|
|
4
|
-
export interface EventBody<EventData = unknown> {
|
|
5
|
-
/**
|
|
6
|
-
* @description 事件 ID(在 ONES 实例内唯一)
|
|
7
|
-
*/
|
|
8
|
-
eventID: string;
|
|
9
|
-
/**
|
|
10
|
-
* @description 事件类型(如 ones:project:issue:created)
|
|
11
|
-
*/
|
|
12
|
-
eventType: string;
|
|
13
|
-
/**
|
|
14
|
-
* @description 事件发生时间戳(毫秒)
|
|
15
|
-
*/
|
|
16
|
-
timestamp: number;
|
|
17
|
-
/**
|
|
18
|
-
* @description 事件数据载荷
|
|
19
|
-
*/
|
|
20
|
-
eventData: EventData;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/packages/node/event/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,SAAS,CAAC,SAAS,GAAG,OAAO;IAC5C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,SAAS,EAAE,SAAS,CAAA;CACrB"}
|