@ones-open/node-sdk 0.0.4-9627.216 → 0.0.8

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
@@ -77,12 +77,9 @@ const getAccessTokenByInstallationInfo = async function(installationInfo) {
77
77
  throw error;
78
78
  }
79
79
  };
80
- const oauth = {
81
- getAccessTokenByInstallationInfo
82
- };
83
80
  const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
84
81
  __proto__: null,
85
- oauth
82
+ getAccessTokenByInstallationInfo
86
83
  }, Symbol.toStringTag, { value: "Module" }));
87
84
  var EntityWhereConditionEnum = /* @__PURE__ */ ((EntityWhereConditionEnum2) => {
88
85
  EntityWhereConditionEnum2["beginsWith"] = "beginsWith";
package/dist/index.js CHANGED
@@ -75,12 +75,9 @@ const getAccessTokenByInstallationInfo = async function(installationInfo) {
75
75
  throw error;
76
76
  }
77
77
  };
78
- const oauth = {
79
- getAccessTokenByInstallationInfo
80
- };
81
78
  const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
82
79
  __proto__: null,
83
- oauth
80
+ getAccessTokenByInstallationInfo
84
81
  }, Symbol.toStringTag, { value: "Module" }));
85
82
  var EntityWhereConditionEnum = /* @__PURE__ */ ((EntityWhereConditionEnum2) => {
86
83
  EntityWhereConditionEnum2["beginsWith"] = "beginsWith";
@@ -0,0 +1,2 @@
1
+ export type * from './types';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/packages/node/event/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAA"}
@@ -0,0 +1,22 @@
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
@@ -0,0 +1 @@
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"}
@@ -1,6 +1,7 @@
1
1
  export * as env from '../../packages/strict/env';
2
2
  export * as oauth from './oauth';
3
3
  export * as storage from './storage';
4
+ export type * from './event';
4
5
  export { ErrorCode } from '../../packages/strict/error';
5
6
  export type { Entity, EntityBatchSetItem, EntityQuery, EntityListResultData, EntityError, ObjectError, ObjectStoreUploadResult, ObjectStoreDownloadResult, } from './storage';
6
7
  export type { InstallationInfo, OAuthClient } from './oauth';
@@ -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,KAAK,MAAM,SAAS,CAAA;AAChC,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;AAClB,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,SAAS,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,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,mBAAmB,SAAS,CAAA;AAE5B,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;AAClB,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import type { OAuthClient } from './types';
2
2
  export type * from './types';
3
- export declare const oauth: OAuthClient;
3
+ export declare const getAccessTokenByInstallationInfo: OAuthClient['getAccessTokenByInstallationInfo'];
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/packages/node/oauth/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAoB,WAAW,EAAE,MAAM,SAAS,CAAA;AAE5D,mBAAmB,SAAS,CAAA;AA2F5B,eAAO,MAAM,KAAK,EAAE,WAEnB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/packages/node/oauth/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAoB,WAAW,EAAE,MAAM,SAAS,CAAA;AAE5D,mBAAmB,SAAS,CAAA;AAiD5B,eAAO,MAAM,gCAAgC,EAAE,WAAW,CAAC,kCAAkC,CAsC1F,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-open/node-sdk",
3
- "version": "0.0.4-9627.216+5b8986c9",
3
+ "version": "0.0.8",
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": "5b8986c971f7a93045070b6cede500665522199a"
53
+ "gitHead": "abf183f0cf3af3573c4e24d96546b4ee05eb96b1"
54
54
  }