@wenex/sdk 1.0.49 → 1.0.51
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/common/core/enums/index.d.ts +1 -0
- package/common/core/enums/index.js +1 -0
- package/common/core/enums/index.js.map +1 -1
- package/common/{enums/context/settings/type.enum.d.ts → core/enums/value-type.enum.d.ts} +1 -1
- package/common/core/enums/value-type.enum.js +13 -0
- package/common/core/enums/value-type.enum.js.map +1 -0
- package/common/enums/context/index.d.ts +0 -1
- package/common/enums/context/index.js +0 -1
- package/common/enums/context/index.js.map +1 -1
- package/common/enums/general/activities/index.js.map +1 -0
- package/common/enums/general/activities/type.enum.d.ts +5 -0
- package/common/enums/general/activities/type.enum.js +10 -0
- package/common/enums/general/activities/type.enum.js.map +1 -0
- package/common/enums/general/index.d.ts +2 -0
- package/common/enums/general/index.js +2 -0
- package/common/enums/general/index.js.map +1 -1
- package/common/enums/general/notices/index.d.ts +1 -0
- package/common/enums/general/notices/index.js +18 -0
- package/common/enums/general/notices/index.js.map +1 -0
- package/common/enums/general/notices/type.enum.d.ts +9 -0
- package/common/enums/general/notices/type.enum.js +14 -0
- package/common/enums/general/notices/type.enum.js.map +1 -0
- package/common/interfaces/context/settings/setting.interface.d.ts +2 -2
- package/common/interfaces/general/activities/activity.interface.d.ts +13 -0
- package/common/interfaces/general/activities/activity.interface.js +3 -0
- package/common/interfaces/general/activities/activity.interface.js.map +1 -0
- package/common/interfaces/general/activities/index.d.ts +1 -0
- package/common/interfaces/general/activities/index.js +18 -0
- package/common/interfaces/general/activities/index.js.map +1 -0
- package/common/interfaces/general/artifacts/artifact.interface.d.ts +10 -0
- package/common/interfaces/general/artifacts/artifact.interface.js +3 -0
- package/common/interfaces/general/artifacts/artifact.interface.js.map +1 -0
- package/common/interfaces/general/artifacts/index.d.ts +1 -0
- package/common/interfaces/general/artifacts/index.js +18 -0
- package/common/interfaces/general/artifacts/index.js.map +1 -0
- package/common/interfaces/general/index.d.ts +3 -0
- package/common/interfaces/general/index.js +3 -0
- package/common/interfaces/general/index.js.map +1 -1
- package/common/interfaces/general/notices/action.interface.d.ts +6 -0
- package/common/interfaces/general/notices/action.interface.js +3 -0
- package/common/interfaces/general/notices/action.interface.js.map +1 -0
- package/common/interfaces/general/notices/index.d.ts +2 -0
- package/common/interfaces/general/notices/index.js +19 -0
- package/common/interfaces/general/notices/index.js.map +1 -0
- package/common/interfaces/general/notices/notice.interface.d.ts +21 -0
- package/common/interfaces/general/notices/notice.interface.js +3 -0
- package/common/interfaces/general/notices/notice.interface.js.map +1 -0
- package/common/interfaces/touch/pushes/push.interface.d.ts +1 -2
- package/package.json +1 -1
- package/services/general/activities.service.d.ts +8 -0
- package/services/general/activities.service.js +15 -0
- package/services/general/activities.service.js.map +1 -0
- package/services/general/artifacts.service.d.ts +8 -0
- package/services/general/artifacts.service.js +15 -0
- package/services/general/artifacts.service.js.map +1 -0
- package/services/general/index.d.ts +12 -0
- package/services/general/index.js +15 -0
- package/services/general/index.js.map +1 -1
- package/services/general/notices.service.d.ts +8 -0
- package/services/general/notices.service.js +15 -0
- package/services/general/notices.service.js.map +1 -0
- package/services/special/files.service.d.ts +1 -1
- package/services/special/files.service.js +2 -2
- package/services/special/files.service.js.map +1 -1
- package/common/enums/context/settings/index.js.map +0 -1
- package/common/enums/context/settings/type.enum.js +0 -13
- package/common/enums/context/settings/type.enum.js.map +0 -1
- /package/common/enums/{context/settings → general/activities}/index.d.ts +0 -0
- /package/common/enums/{context/settings → general/activities}/index.js +0 -0
|
@@ -18,4 +18,5 @@ __exportStar(require("./gender.enum"), exports);
|
|
|
18
18
|
__exportStar(require("./grant-type.enum"), exports);
|
|
19
19
|
__exportStar(require("./state.enum"), exports);
|
|
20
20
|
__exportStar(require("./status.enum"), exports);
|
|
21
|
+
__exportStar(require("./value-type.enum"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/core/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,oDAAkC;AAClC,+CAA6B;AAC7B,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/core/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,oDAAkC;AAClC,+CAA6B;AAC7B,gDAA8B;AAC9B,oDAAkC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValueType = void 0;
|
|
4
|
+
var ValueType;
|
|
5
|
+
(function (ValueType) {
|
|
6
|
+
ValueType["NULL"] = "NULL";
|
|
7
|
+
ValueType["ARRAY"] = "ARRAY";
|
|
8
|
+
ValueType["OBJECT"] = "OBJECT";
|
|
9
|
+
ValueType["STRING"] = "STRING";
|
|
10
|
+
ValueType["NUMBER"] = "NUMBER";
|
|
11
|
+
ValueType["BOOLEAN"] = "BOOLEAN";
|
|
12
|
+
})(ValueType || (exports.ValueType = ValueType = {}));
|
|
13
|
+
//# sourceMappingURL=value-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value-type.enum.js","sourceRoot":"","sources":["../../../src/common/core/enums/value-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,0BAAa,CAAA;IACb,4BAAe,CAAA;IACf,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;AACrB,CAAC,EAPW,SAAS,yBAAT,SAAS,QAOpB"}
|
|
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./configs"), exports);
|
|
18
|
-
__exportStar(require("./settings"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/context/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/context/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/general/activities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActivityType = void 0;
|
|
4
|
+
var ActivityType;
|
|
5
|
+
(function (ActivityType) {
|
|
6
|
+
ActivityType["USER"] = "USER";
|
|
7
|
+
ActivityType["SYSTEM"] = "SYSTEM";
|
|
8
|
+
ActivityType["EXTERNAL"] = "EXTERNAL";
|
|
9
|
+
})(ActivityType || (exports.ActivityType = ActivityType = {}));
|
|
10
|
+
//# sourceMappingURL=type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/general/activities/type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;AACvB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
|
|
@@ -14,5 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./activities"), exports);
|
|
18
|
+
__exportStar(require("./notices"), exports);
|
|
17
19
|
__exportStar(require("./workflows"), exports);
|
|
18
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/general/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/general/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,4CAA0B;AAC1B,8CAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './type.enum';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./type.enum"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/general/notices/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NoticeType = void 0;
|
|
4
|
+
var NoticeType;
|
|
5
|
+
(function (NoticeType) {
|
|
6
|
+
NoticeType["INFO"] = "INFO";
|
|
7
|
+
NoticeType["ALERT"] = "ALERT";
|
|
8
|
+
NoticeType["WARNING"] = "WARNING";
|
|
9
|
+
NoticeType["ERROR"] = "ERROR";
|
|
10
|
+
NoticeType["SUCCESS"] = "SUCCESS";
|
|
11
|
+
NoticeType["NOTICE"] = "NOTICE";
|
|
12
|
+
NoticeType["MESSAGE"] = "MESSAGE";
|
|
13
|
+
})(NoticeType || (exports.NoticeType = NoticeType = {}));
|
|
14
|
+
//# sourceMappingURL=type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/general/notices/type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAWX;AAXD,WAAY,UAAU;IACpB,2BAAa,CAAA;IAEb,6BAAe,CAAA;IACf,iCAAmB,CAAA;IAEnB,6BAAe,CAAA;IACf,iCAAmB,CAAA;IAEnB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;AACrB,CAAC,EAXW,UAAU,0BAAV,UAAU,QAWrB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Document } from 'mongoose';
|
|
2
|
+
import { ValueType } from '../../../core/enums';
|
|
2
3
|
import { Core, Dto } from '../../../core/interfaces';
|
|
3
|
-
import { SettingType } from '../../../enums/context';
|
|
4
4
|
export interface Setting<T = any, Properties extends object = object> extends Core<Properties> {
|
|
5
5
|
key: string;
|
|
6
|
-
type:
|
|
6
|
+
type: ValueType;
|
|
7
7
|
value?: T;
|
|
8
8
|
}
|
|
9
9
|
export type SettingDoc<T = any, Properties extends object = object> = Setting<T, Properties> & Document;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Document } from 'mongoose';
|
|
2
|
+
import { State } from '../../../core/enums';
|
|
3
|
+
import { Core, Dto } from '../../../core/interfaces';
|
|
4
|
+
import { ActivityType } from '../../../enums/general';
|
|
5
|
+
export interface Activity<T = any, M = any, Properties extends object = object> extends Core<Properties> {
|
|
6
|
+
type: ActivityType;
|
|
7
|
+
state?: State;
|
|
8
|
+
source?: string;
|
|
9
|
+
details?: T;
|
|
10
|
+
metadata?: M;
|
|
11
|
+
}
|
|
12
|
+
export type ActivityDoc<T = any, M = any, Properties extends object = object> = Activity<T, M, Properties> & Document;
|
|
13
|
+
export type ActivityDto<T = any, M = any, Properties extends object = object> = Dto<Activity<T, M, Properties>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/general/activities/activity.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './activity.interface';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./activity.interface"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/general/activities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Document } from 'mongoose';
|
|
2
|
+
import { ValueType } from '../../../core/enums';
|
|
3
|
+
import { Core, Dto } from '../../../core/interfaces';
|
|
4
|
+
export interface Artifact<T = any, Properties extends object = object> extends Core<Properties> {
|
|
5
|
+
key: string;
|
|
6
|
+
type: ValueType;
|
|
7
|
+
value?: T;
|
|
8
|
+
}
|
|
9
|
+
export type ArtifactDoc<T = any, Properties extends object = object> = Artifact<T, Properties> & Document;
|
|
10
|
+
export type ArtifactDto<T = any, Properties extends object = object> = Dto<Artifact<T, Properties>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifact.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/general/artifacts/artifact.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './artifact.interface';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./artifact.interface"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/general/artifacts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
|
|
@@ -14,5 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./activities"), exports);
|
|
18
|
+
__exportStar(require("./artifacts"), exports);
|
|
19
|
+
__exportStar(require("./notices"), exports);
|
|
17
20
|
__exportStar(require("./workflows"), exports);
|
|
18
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/interfaces/general/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/interfaces/general/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/general/notices/action.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./notice.interface"), exports);
|
|
18
|
+
__exportStar(require("./action.interface"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/general/notices/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,qDAAmC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Document } from 'mongoose';
|
|
2
|
+
import { NoticeType } from '../../../enums/general';
|
|
3
|
+
import { Core, Dto, NesteDto } from '../../../core/interfaces';
|
|
4
|
+
import { NoticeAction, NoticeActionDto } from './action.interface';
|
|
5
|
+
export interface Notice<Properties extends object = object> extends Core<Properties> {
|
|
6
|
+
type: NoticeType;
|
|
7
|
+
title: string;
|
|
8
|
+
subtile?: string;
|
|
9
|
+
content: string;
|
|
10
|
+
category?: string;
|
|
11
|
+
visited_at?: Date;
|
|
12
|
+
visited_by?: string;
|
|
13
|
+
visited_in?: string;
|
|
14
|
+
thumbnail?: string;
|
|
15
|
+
attachments?: string[];
|
|
16
|
+
actions?: NoticeAction[];
|
|
17
|
+
}
|
|
18
|
+
export type NoticeDoc<Properties extends object = object> = Notice<Properties> & Document;
|
|
19
|
+
export type NoticeDto<Properties extends object = object> = NesteDto<Dto<Notice<Properties>>, {
|
|
20
|
+
actions?: NoticeActionDto[];
|
|
21
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notice.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/general/notices/notice.interface.ts"],"names":[],"mappings":""}
|
|
@@ -2,11 +2,10 @@ import type { Document } from 'mongoose';
|
|
|
2
2
|
import { PushKeys } from './keys.interface';
|
|
3
3
|
import { Core, Dto } from '../../../core/interfaces';
|
|
4
4
|
export interface Push<Properties extends object = object> extends Core<Properties> {
|
|
5
|
-
domain: string;
|
|
6
5
|
session: string;
|
|
7
|
-
identity: string;
|
|
8
6
|
keys: PushKeys;
|
|
9
7
|
endpoint: string;
|
|
8
|
+
identity?: string;
|
|
10
9
|
blacklist?: string[];
|
|
11
10
|
expiration: number;
|
|
12
11
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import { RestfulService } from '../../common/core/classes';
|
|
3
|
+
import { Activity, ActivityDto } from '../../common/interfaces/general';
|
|
4
|
+
export declare class ActivitiesService<Properties extends object = object> extends RestfulService<Activity<Properties>, ActivityDto<Properties>> {
|
|
5
|
+
protected axios: AxiosInstance;
|
|
6
|
+
constructor(axios: AxiosInstance);
|
|
7
|
+
static build<Properties extends object = object>(axios: AxiosInstance): ActivitiesService<Properties>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActivitiesService = void 0;
|
|
4
|
+
const classes_1 = require("../../common/core/classes");
|
|
5
|
+
class ActivitiesService extends classes_1.RestfulService {
|
|
6
|
+
constructor(axios) {
|
|
7
|
+
super('activities', axios);
|
|
8
|
+
this.axios = axios;
|
|
9
|
+
}
|
|
10
|
+
static build(axios) {
|
|
11
|
+
return new ActivitiesService(axios);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.ActivitiesService = ActivitiesService;
|
|
15
|
+
//# sourceMappingURL=activities.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activities.service.js","sourceRoot":"","sources":["../../src/services/general/activities.service.ts"],"names":[],"mappings":";;;AAEA,uDAA2D;AAG3D,MAAa,iBAAsD,SAAQ,wBAG1E;IACC,YAAsB,KAAoB;QACxC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;QADP,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,iBAAiB,CAAa,KAAK,CAAC,CAAC;IAClD,CAAC;CACF;AAXD,8CAWC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import { RestfulService } from '../../common/core/classes';
|
|
3
|
+
import { Artifact, ArtifactDto } from '../../common/interfaces/general';
|
|
4
|
+
export declare class ArtifactsService<Properties extends object = object> extends RestfulService<Artifact<Properties>, ArtifactDto<Properties>> {
|
|
5
|
+
protected axios: AxiosInstance;
|
|
6
|
+
constructor(axios: AxiosInstance);
|
|
7
|
+
static build<Properties extends object = object>(axios: AxiosInstance): ArtifactsService<Properties>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArtifactsService = void 0;
|
|
4
|
+
const classes_1 = require("../../common/core/classes");
|
|
5
|
+
class ArtifactsService extends classes_1.RestfulService {
|
|
6
|
+
constructor(axios) {
|
|
7
|
+
super('artifacts', axios);
|
|
8
|
+
this.axios = axios;
|
|
9
|
+
}
|
|
10
|
+
static build(axios) {
|
|
11
|
+
return new ArtifactsService(axios);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.ArtifactsService = ArtifactsService;
|
|
15
|
+
//# sourceMappingURL=artifacts.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifacts.service.js","sourceRoot":"","sources":["../../src/services/general/artifacts.service.ts"],"names":[],"mappings":";;;AAEA,uDAA2D;AAG3D,MAAa,gBAAqD,SAAQ,wBAGzE;IACC,YAAsB,KAAoB;QACxC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QADN,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,gBAAgB,CAAa,KAAK,CAAC,CAAC;IACjD,CAAC;CACF;AAXD,4CAWC"}
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import { NoticesService } from './notices.service';
|
|
3
|
+
import { ArtifactsService } from './artifacts.service';
|
|
2
4
|
import { WorkflowsService } from './workflows.service';
|
|
5
|
+
import { ActivitiesService } from './activities.service';
|
|
6
|
+
export * from './notices.service';
|
|
7
|
+
export * from './artifacts.service';
|
|
3
8
|
export * from './workflows.service';
|
|
9
|
+
export * from './activities.service';
|
|
4
10
|
export declare class GeneralClient<Properties extends object = object> {
|
|
5
11
|
readonly axios: AxiosInstance;
|
|
12
|
+
protected _notices?: NoticesService<Properties>;
|
|
13
|
+
protected _artifacts?: ArtifactsService<Properties>;
|
|
6
14
|
protected _workflows?: WorkflowsService<Properties>;
|
|
15
|
+
protected _activities?: ActivitiesService<Properties>;
|
|
7
16
|
constructor(axios: AxiosInstance);
|
|
17
|
+
get notices(): NoticesService<Properties>;
|
|
18
|
+
get artifacts(): ArtifactsService<Properties>;
|
|
8
19
|
get workflows(): WorkflowsService<Properties>;
|
|
20
|
+
get activities(): ActivitiesService<Properties>;
|
|
9
21
|
static build<Properties extends object = object>(axios: AxiosInstance): GeneralClient<Properties>;
|
|
10
22
|
}
|
|
@@ -15,15 +15,30 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.GeneralClient = void 0;
|
|
18
|
+
const notices_service_1 = require("./notices.service");
|
|
19
|
+
const artifacts_service_1 = require("./artifacts.service");
|
|
18
20
|
const workflows_service_1 = require("./workflows.service");
|
|
21
|
+
const activities_service_1 = require("./activities.service");
|
|
22
|
+
__exportStar(require("./notices.service"), exports);
|
|
23
|
+
__exportStar(require("./artifacts.service"), exports);
|
|
19
24
|
__exportStar(require("./workflows.service"), exports);
|
|
25
|
+
__exportStar(require("./activities.service"), exports);
|
|
20
26
|
class GeneralClient {
|
|
21
27
|
constructor(axios) {
|
|
22
28
|
this.axios = axios;
|
|
23
29
|
}
|
|
30
|
+
get notices() {
|
|
31
|
+
return (this._notices = this._notices ?? notices_service_1.NoticesService.build(this.axios));
|
|
32
|
+
}
|
|
33
|
+
get artifacts() {
|
|
34
|
+
return (this._artifacts = this._artifacts ?? artifacts_service_1.ArtifactsService.build(this.axios));
|
|
35
|
+
}
|
|
24
36
|
get workflows() {
|
|
25
37
|
return (this._workflows = this._workflows ?? workflows_service_1.WorkflowsService.build(this.axios));
|
|
26
38
|
}
|
|
39
|
+
get activities() {
|
|
40
|
+
return (this._activities = this._activities ?? activities_service_1.ActivitiesService.build(this.axios));
|
|
41
|
+
}
|
|
27
42
|
static build(axios) {
|
|
28
43
|
return new GeneralClient(axios);
|
|
29
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/general/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,2DAAuD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/general/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,uDAAmD;AACnD,2DAAuD;AACvD,2DAAuD;AACvD,6DAAyD;AAEzD,oDAAkC;AAClC,sDAAoC;AACpC,sDAAoC;AACpC,uDAAqC;AAErC,MAAa,aAAa;IAMxB,YAAqB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE7C,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,gCAAc,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACzF,CAAC;IAED,IAAI,SAAS;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,oCAAgB,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/F,CAAC;IAED,IAAI,SAAS;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,oCAAgB,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/F,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,CAAC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,IAAI,sCAAiB,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAClG,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,aAAa,CAAa,KAAK,CAAC,CAAC;IAC9C,CAAC;CACF;AA3BD,sCA2BC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import { RestfulService } from '../../common/core/classes';
|
|
3
|
+
import { Notice, NoticeDto } from '../../common/interfaces/general';
|
|
4
|
+
export declare class NoticesService<Properties extends object = object> extends RestfulService<Notice<Properties>, NoticeDto<Properties>> {
|
|
5
|
+
protected axios: AxiosInstance;
|
|
6
|
+
constructor(axios: AxiosInstance);
|
|
7
|
+
static build<Properties extends object = object>(axios: AxiosInstance): NoticesService<Properties>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NoticesService = void 0;
|
|
4
|
+
const classes_1 = require("../../common/core/classes");
|
|
5
|
+
class NoticesService extends classes_1.RestfulService {
|
|
6
|
+
constructor(axios) {
|
|
7
|
+
super('notices', axios);
|
|
8
|
+
this.axios = axios;
|
|
9
|
+
}
|
|
10
|
+
static build(axios) {
|
|
11
|
+
return new NoticesService(axios);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.NoticesService = NoticesService;
|
|
15
|
+
//# sourceMappingURL=notices.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notices.service.js","sourceRoot":"","sources":["../../src/services/general/notices.service.ts"],"names":[],"mappings":";;;AAEA,uDAA2D;AAG3D,MAAa,cAAmD,SAAQ,wBAAyD;IAC/H,YAAsB,KAAoB;QACxC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QADJ,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,cAAc,CAAa,KAAK,CAAC,CAAC;IAC/C,CAAC;CACF;AARD,wCAQC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AxiosInstance, ResponseType } from 'axios';
|
|
2
|
-
import { Serializer } from '../../common/core/interfaces';
|
|
3
2
|
import { File, FileDto } from '../../common/interfaces/special';
|
|
3
|
+
import { Serializer } from '../../common/core/interfaces';
|
|
4
4
|
import { RequestConfig, RestfulService } from '../../common/core/classes';
|
|
5
5
|
export declare class FilesService<Properties extends object = object> extends RestfulService<File<Properties>, FileDto<Properties>> {
|
|
6
6
|
protected axios: AxiosInstance;
|
|
@@ -12,12 +12,12 @@ class FilesService extends classes_1.RestfulService {
|
|
|
12
12
|
const url = this.url(`download/${id}`);
|
|
13
13
|
return this.get(url, config);
|
|
14
14
|
}
|
|
15
|
-
upload(items, scope, config = {}) {
|
|
15
|
+
async upload(items, scope, config = {}) {
|
|
16
16
|
const form = new FormData();
|
|
17
17
|
items.forEach((item) => form.append('file', item.value, item.filename));
|
|
18
18
|
Object.assign(config, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
19
19
|
const url = this.url(`upload/${scope}`);
|
|
20
|
-
return this.post(url, form, config);
|
|
20
|
+
return (await this.post(url, form, config)).items;
|
|
21
21
|
}
|
|
22
22
|
static build(axios) {
|
|
23
23
|
return new FilesService(axios);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.service.js","sourceRoot":"","sources":["../../src/services/special/files.service.ts"],"names":[],"mappings":";;;AAIA,uDAA0E;AAE1E,MAAa,YAAiD,SAAQ,wBAAqD;IACzH,YAAsB,KAAoB;QACxC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QADF,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,QAAQ,CAAU,EAAU,EAAE,SAA0C,EAAE,EAAE,eAA6B,MAAM;QAC7G,MAAM,CAAC,YAAY,GAAG,YAAY,CAAC;QACnC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;QACvC,OAAO,IAAI,CAAC,GAAG,CAAI,GAAG,EAAE,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,
|
|
1
|
+
{"version":3,"file":"files.service.js","sourceRoot":"","sources":["../../src/services/special/files.service.ts"],"names":[],"mappings":";;;AAIA,uDAA0E;AAE1E,MAAa,YAAiD,SAAQ,wBAAqD;IACzH,YAAsB,KAAoB;QACxC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QADF,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,QAAQ,CAAU,EAAU,EAAE,SAA0C,EAAE,EAAE,eAA6B,MAAM;QAC7G,MAAM,CAAC,YAAY,GAAG,YAAY,CAAC;QACnC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;QACvC,OAAO,IAAI,CAAC,GAAG,CAAI,GAAG,EAAE,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,KAAK,CAAC,MAAM,CACV,KAA2C,EAC3C,KAA2B,EAC3B,SAA0C,EAAE;QAE5C,MAAM,IAAI,GAAG,IAAI,QAAQ,EAAE,CAAC;QAC5B,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QACxE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,qBAAqB,EAAE,EAAE,CAAC,CAAC;QAC9E,MAAM,GAAG,GAAW,IAAI,CAAC,GAAG,CAAC,UAAU,KAAK,EAAE,CAAC,CAAC;QAChD,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAgD,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;IACnG,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,YAAY,CAAa,KAAK,CAAC,CAAC;IAC7C,CAAC;CACF;AA1BD,oCA0BC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/context/settings/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SettingType = void 0;
|
|
4
|
-
var SettingType;
|
|
5
|
-
(function (SettingType) {
|
|
6
|
-
SettingType["NULL"] = "NULL";
|
|
7
|
-
SettingType["ARRAY"] = "ARRAY";
|
|
8
|
-
SettingType["OBJECT"] = "OBJECT";
|
|
9
|
-
SettingType["STRING"] = "STRING";
|
|
10
|
-
SettingType["NUMBER"] = "NUMBER";
|
|
11
|
-
SettingType["BOOLEAN"] = "BOOLEAN";
|
|
12
|
-
})(SettingType || (exports.SettingType = SettingType = {}));
|
|
13
|
-
//# sourceMappingURL=type.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/context/settings/type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,8BAAe,CAAA;IACf,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,kCAAmB,CAAA;AACrB,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB"}
|
|
File without changes
|
|
File without changes
|