@wenex/sdk 0.7.8 → 0.8.0
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/enums/common/collection.enum.d.ts +28 -0
- package/common/enums/common/collection.enum.js +33 -0
- package/common/enums/common/collection.enum.js.map +1 -0
- package/common/enums/common/index.d.ts +1 -0
- package/common/enums/common/index.js +1 -0
- package/common/enums/common/index.js.map +1 -1
- package/common/enums/common/resource.enum.d.ts +2 -2
- package/common/enums/common/resource.enum.js +2 -2
- package/common/enums/common/scope.enum.d.ts +7 -7
- package/common/enums/common/scope.enum.js +7 -7
- package/common/enums/special/index.d.ts +1 -1
- package/common/enums/special/index.js +1 -1
- package/common/enums/special/index.js.map +1 -1
- package/common/enums/special/sagas/histories/fn.enum.d.ts +17 -0
- package/common/enums/special/sagas/histories/fn.enum.js +22 -0
- package/common/enums/special/sagas/histories/fn.enum.js.map +1 -0
- package/common/enums/special/sagas/histories/index.d.ts +2 -0
- package/common/enums/special/sagas/histories/index.js +21 -0
- package/common/enums/special/sagas/histories/index.js.map +1 -0
- package/common/enums/special/sagas/index.d.ts +2 -0
- package/{services/touch/push → common/enums/special/sagas}/index.js +2 -2
- package/common/enums/special/sagas/index.js.map +1 -0
- package/common/enums/special/{saga-state.enum.d.ts → sagas/state.enum.d.ts} +1 -1
- package/common/enums/special/{saga-state.enum.js → sagas/state.enum.js} +2 -2
- package/common/enums/special/sagas/state.enum.js.map +1 -0
- package/common/interfaces/special/saga/history.interface.d.ts +4 -3
- package/common/interfaces/special/saga/saga.interface.d.ts +2 -1
- package/package.json +1 -1
- package/common/enums/special/saga-state.enum.js.map +0 -1
- package/services/touch/push/history.service.d.ts +0 -7
- package/services/touch/push/history.service.js +0 -12
- package/services/touch/push/history.service.js.map +0 -1
- package/services/touch/push/index.d.ts +0 -2
- package/services/touch/push/index.js.map +0 -1
- package/services/touch/push/push.service.d.ts +0 -11
- package/services/touch/push/push.service.js +0 -31
- package/services/touch/push/push.service.js.map +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare enum Collection {
|
|
2
|
+
Grants = "grants",
|
|
3
|
+
Apps = "apps",
|
|
4
|
+
Clients = "clients",
|
|
5
|
+
Configs = "configs",
|
|
6
|
+
Settings = "settings",
|
|
7
|
+
Users = "users",
|
|
8
|
+
Profiles = "profiles",
|
|
9
|
+
Sessions = "sessions",
|
|
10
|
+
Cargoes = "cargoes",
|
|
11
|
+
Drivers = "drivers",
|
|
12
|
+
Travels = "travels",
|
|
13
|
+
Vehicles = "vehicles",
|
|
14
|
+
Locations = "locations",
|
|
15
|
+
Files = "files",
|
|
16
|
+
Stats = "stats",
|
|
17
|
+
Sagas = "sagas",
|
|
18
|
+
SagaHistories = "saga-histories",
|
|
19
|
+
Artifacts = "artifacts",
|
|
20
|
+
Workflows = "workflows",
|
|
21
|
+
Mails = "mails",
|
|
22
|
+
Pushes = "pushes",
|
|
23
|
+
PushHistories = "push-histories",
|
|
24
|
+
Coins = "coins",
|
|
25
|
+
Wallets = "wallets",
|
|
26
|
+
Accounts = "accounts",
|
|
27
|
+
Transactions = "transactions"
|
|
28
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Collection = void 0;
|
|
4
|
+
var Collection;
|
|
5
|
+
(function (Collection) {
|
|
6
|
+
Collection["Grants"] = "grants";
|
|
7
|
+
Collection["Apps"] = "apps";
|
|
8
|
+
Collection["Clients"] = "clients";
|
|
9
|
+
Collection["Configs"] = "configs";
|
|
10
|
+
Collection["Settings"] = "settings";
|
|
11
|
+
Collection["Users"] = "users";
|
|
12
|
+
Collection["Profiles"] = "profiles";
|
|
13
|
+
Collection["Sessions"] = "sessions";
|
|
14
|
+
Collection["Cargoes"] = "cargoes";
|
|
15
|
+
Collection["Drivers"] = "drivers";
|
|
16
|
+
Collection["Travels"] = "travels";
|
|
17
|
+
Collection["Vehicles"] = "vehicles";
|
|
18
|
+
Collection["Locations"] = "locations";
|
|
19
|
+
Collection["Files"] = "files";
|
|
20
|
+
Collection["Stats"] = "stats";
|
|
21
|
+
Collection["Sagas"] = "sagas";
|
|
22
|
+
Collection["SagaHistories"] = "saga-histories";
|
|
23
|
+
Collection["Artifacts"] = "artifacts";
|
|
24
|
+
Collection["Workflows"] = "workflows";
|
|
25
|
+
Collection["Mails"] = "mails";
|
|
26
|
+
Collection["Pushes"] = "pushes";
|
|
27
|
+
Collection["PushHistories"] = "push-histories";
|
|
28
|
+
Collection["Coins"] = "coins";
|
|
29
|
+
Collection["Wallets"] = "wallets";
|
|
30
|
+
Collection["Accounts"] = "accounts";
|
|
31
|
+
Collection["Transactions"] = "transactions";
|
|
32
|
+
})(Collection || (exports.Collection = Collection = {}));
|
|
33
|
+
//# sourceMappingURL=collection.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection.enum.js","sourceRoot":"","sources":["../../../src/common/enums/common/collection.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAmCX;AAnCD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IAEjB,2BAAa,CAAA;IACb,iCAAmB,CAAA;IAEnB,iCAAmB,CAAA;IACnB,mCAAqB,CAAA;IAErB,6BAAe,CAAA;IACf,mCAAqB,CAAA;IACrB,mCAAqB,CAAA;IAErB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,mCAAqB,CAAA;IACrB,qCAAuB,CAAA;IAEvB,6BAAe,CAAA;IACf,6BAAe,CAAA;IACf,6BAAe,CAAA;IACf,8CAAgC,CAAA;IAEhC,qCAAuB,CAAA;IACvB,qCAAuB,CAAA;IAEvB,6BAAe,CAAA;IACf,+BAAiB,CAAA;IACjB,8CAAgC,CAAA;IAEhC,6BAAe,CAAA;IACf,iCAAmB,CAAA;IACnB,mCAAqB,CAAA;IACrB,2CAA6B,CAAA;AAC/B,CAAC,EAnCW,UAAU,0BAAV,UAAU,QAmCrB"}
|
|
@@ -22,4 +22,5 @@ __exportStar(require("./gender.enum"), exports);
|
|
|
22
22
|
__exportStar(require("./resource.enum"), exports);
|
|
23
23
|
__exportStar(require("./grant-type.enum"), exports);
|
|
24
24
|
__exportStar(require("./value-type.enum"), exports);
|
|
25
|
+
__exportStar(require("./collection.enum"), exports);
|
|
25
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,gDAA8B;AAC9B,gDAA8B;AAC9B,gDAA8B;AAC9B,kDAAgC;AAChC,oDAAkC;AAClC,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,gDAA8B;AAC9B,gDAA8B;AAC9B,gDAA8B;AAC9B,kDAAgC;AAChC,oDAAkC;AAClC,oDAAkC;AAClC,oDAAkC"}
|
|
@@ -22,13 +22,13 @@ export declare enum Resource {
|
|
|
22
22
|
SpecialFiles = "special:files",
|
|
23
23
|
SpecialStats = "special:stats",
|
|
24
24
|
SpecialSagas = "special:sagas",
|
|
25
|
-
SpecialSagaHistories = "special:saga
|
|
25
|
+
SpecialSagaHistories = "special:saga-histories",
|
|
26
26
|
General = "general:all",
|
|
27
27
|
GeneralArtifacts = "general:artifacts",
|
|
28
28
|
GeneralWorkflows = "general:workflows",
|
|
29
29
|
Touch = "touch:all",
|
|
30
30
|
TouchPushes = "touch:pushes",
|
|
31
|
-
TouchPushHistories = "touch:push
|
|
31
|
+
TouchPushHistories = "touch:push-histories",
|
|
32
32
|
TouchMails = "touch:mails",
|
|
33
33
|
Financial = "financial:all",
|
|
34
34
|
FinancialCoins = "financial:coins",
|
|
@@ -30,13 +30,13 @@ var Resource;
|
|
|
30
30
|
Resource["SpecialFiles"] = "special:files";
|
|
31
31
|
Resource["SpecialStats"] = "special:stats";
|
|
32
32
|
Resource["SpecialSagas"] = "special:sagas";
|
|
33
|
-
Resource["SpecialSagaHistories"] = "special:saga
|
|
33
|
+
Resource["SpecialSagaHistories"] = "special:saga-histories";
|
|
34
34
|
Resource["General"] = "general:all";
|
|
35
35
|
Resource["GeneralArtifacts"] = "general:artifacts";
|
|
36
36
|
Resource["GeneralWorkflows"] = "general:workflows";
|
|
37
37
|
Resource["Touch"] = "touch:all";
|
|
38
38
|
Resource["TouchPushes"] = "touch:pushes";
|
|
39
|
-
Resource["TouchPushHistories"] = "touch:push
|
|
39
|
+
Resource["TouchPushHistories"] = "touch:push-histories";
|
|
40
40
|
Resource["TouchMails"] = "touch:mails";
|
|
41
41
|
Resource["Financial"] = "financial:all";
|
|
42
42
|
Resource["FinancialCoins"] = "financial:coins";
|
|
@@ -89,9 +89,9 @@ export declare enum Scope {
|
|
|
89
89
|
AppendSpecialSagas = "append:special:sagas",
|
|
90
90
|
CommitSpecialSagas = "commit:special:sagas",
|
|
91
91
|
AbortSpecialSagas = "abort:special:sagas",
|
|
92
|
-
ReadSpecialSagaHistories = "read:special:saga
|
|
93
|
-
WriteSpecialSagaHistories = "write:special:saga
|
|
94
|
-
ManageSpecialSagaHistories = "manage:special:saga
|
|
92
|
+
ReadSpecialSagaHistories = "read:special:saga-histories",
|
|
93
|
+
WriteSpecialSagaHistories = "write:special:saga-histories",
|
|
94
|
+
ManageSpecialSagaHistories = "manage:special:saga-histories",
|
|
95
95
|
ReadGeneral = "read:general",
|
|
96
96
|
WriteGeneral = "write:general",
|
|
97
97
|
ManageGeneral = "manage:general",
|
|
@@ -108,10 +108,10 @@ export declare enum Scope {
|
|
|
108
108
|
WriteTouchPushes = "write:touch:pushes",
|
|
109
109
|
ManageTouchPushes = "manage:touch:pushes",
|
|
110
110
|
SendTouchPushes = "send:touch:pushes",
|
|
111
|
-
ReadTouchPushHistories = "read:touch:push
|
|
112
|
-
WriteTouchPushHistories = "write:touch:push
|
|
113
|
-
ManageTouchPushHistories = "manage:touch:push
|
|
114
|
-
SendTouchPushHistories = "send:touch:push
|
|
111
|
+
ReadTouchPushHistories = "read:touch:push-histories",
|
|
112
|
+
WriteTouchPushHistories = "write:touch:push-histories",
|
|
113
|
+
ManageTouchPushHistories = "manage:touch:push-histories",
|
|
114
|
+
SendTouchPushHistories = "send:touch:push-histories",
|
|
115
115
|
ReadTouchMails = "read:touch:mails",
|
|
116
116
|
WriteTouchMails = "write:touch:mails",
|
|
117
117
|
ManageTouchMails = "manage:touch:mails",
|
|
@@ -103,9 +103,9 @@ var Scope;
|
|
|
103
103
|
Scope["AppendSpecialSagas"] = "append:special:sagas";
|
|
104
104
|
Scope["CommitSpecialSagas"] = "commit:special:sagas";
|
|
105
105
|
Scope["AbortSpecialSagas"] = "abort:special:sagas";
|
|
106
|
-
Scope["ReadSpecialSagaHistories"] = "read:special:saga
|
|
107
|
-
Scope["WriteSpecialSagaHistories"] = "write:special:saga
|
|
108
|
-
Scope["ManageSpecialSagaHistories"] = "manage:special:saga
|
|
106
|
+
Scope["ReadSpecialSagaHistories"] = "read:special:saga-histories";
|
|
107
|
+
Scope["WriteSpecialSagaHistories"] = "write:special:saga-histories";
|
|
108
|
+
Scope["ManageSpecialSagaHistories"] = "manage:special:saga-histories";
|
|
109
109
|
Scope["ReadGeneral"] = "read:general";
|
|
110
110
|
Scope["WriteGeneral"] = "write:general";
|
|
111
111
|
Scope["ManageGeneral"] = "manage:general";
|
|
@@ -122,10 +122,10 @@ var Scope;
|
|
|
122
122
|
Scope["WriteTouchPushes"] = "write:touch:pushes";
|
|
123
123
|
Scope["ManageTouchPushes"] = "manage:touch:pushes";
|
|
124
124
|
Scope["SendTouchPushes"] = "send:touch:pushes";
|
|
125
|
-
Scope["ReadTouchPushHistories"] = "read:touch:push
|
|
126
|
-
Scope["WriteTouchPushHistories"] = "write:touch:push
|
|
127
|
-
Scope["ManageTouchPushHistories"] = "manage:touch:push
|
|
128
|
-
Scope["SendTouchPushHistories"] = "send:touch:push
|
|
125
|
+
Scope["ReadTouchPushHistories"] = "read:touch:push-histories";
|
|
126
|
+
Scope["WriteTouchPushHistories"] = "write:touch:push-histories";
|
|
127
|
+
Scope["ManageTouchPushHistories"] = "manage:touch:push-histories";
|
|
128
|
+
Scope["SendTouchPushHistories"] = "send:touch:push-histories";
|
|
129
129
|
Scope["ReadTouchMails"] = "read:touch:mails";
|
|
130
130
|
Scope["WriteTouchMails"] = "write:touch:mails";
|
|
131
131
|
Scope["ManageTouchMails"] = "manage:touch:mails";
|
|
@@ -14,6 +14,6 @@ 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("./sagas"), exports);
|
|
17
18
|
__exportStar(require("./stat-type.enum"), exports);
|
|
18
|
-
__exportStar(require("./saga-state.enum"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/special/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/special/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AAExB,mDAAiC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum SagaHistoryFn {
|
|
2
|
+
Count = "count",
|
|
3
|
+
Create = "create",
|
|
4
|
+
CreateBulk = "create-bulk",
|
|
5
|
+
Find = "find",
|
|
6
|
+
FindOne = "find-one",
|
|
7
|
+
FindById = "find-by-id",
|
|
8
|
+
DeleteOne = "delete-one",
|
|
9
|
+
DeleteById = "delete-by-id",
|
|
10
|
+
RestoreOne = "restore-one",
|
|
11
|
+
RestoreById = "restore-by-id",
|
|
12
|
+
DestroyOne = "destroy-one",
|
|
13
|
+
DestroyById = "destroy-by-id",
|
|
14
|
+
UpdateOne = "update-one",
|
|
15
|
+
UpdateById = "update-by-id",
|
|
16
|
+
UpdateBulk = "update-bulk"
|
|
17
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SagaHistoryFn = void 0;
|
|
4
|
+
var SagaHistoryFn;
|
|
5
|
+
(function (SagaHistoryFn) {
|
|
6
|
+
SagaHistoryFn["Count"] = "count";
|
|
7
|
+
SagaHistoryFn["Create"] = "create";
|
|
8
|
+
SagaHistoryFn["CreateBulk"] = "create-bulk";
|
|
9
|
+
SagaHistoryFn["Find"] = "find";
|
|
10
|
+
SagaHistoryFn["FindOne"] = "find-one";
|
|
11
|
+
SagaHistoryFn["FindById"] = "find-by-id";
|
|
12
|
+
SagaHistoryFn["DeleteOne"] = "delete-one";
|
|
13
|
+
SagaHistoryFn["DeleteById"] = "delete-by-id";
|
|
14
|
+
SagaHistoryFn["RestoreOne"] = "restore-one";
|
|
15
|
+
SagaHistoryFn["RestoreById"] = "restore-by-id";
|
|
16
|
+
SagaHistoryFn["DestroyOne"] = "destroy-one";
|
|
17
|
+
SagaHistoryFn["DestroyById"] = "destroy-by-id";
|
|
18
|
+
SagaHistoryFn["UpdateOne"] = "update-one";
|
|
19
|
+
SagaHistoryFn["UpdateById"] = "update-by-id";
|
|
20
|
+
SagaHistoryFn["UpdateBulk"] = "update-bulk";
|
|
21
|
+
})(SagaHistoryFn || (exports.SagaHistoryFn = SagaHistoryFn = {}));
|
|
22
|
+
//# sourceMappingURL=fn.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fn.enum.js","sourceRoot":"","sources":["../../../../../src/common/enums/special/sagas/histories/fn.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAqBX;AArBD,WAAY,aAAa;IACvB,gCAAe,CAAA;IACf,kCAAiB,CAAA;IACjB,2CAA0B,CAAA;IAE1B,8BAAa,CAAA;IACb,qCAAoB,CAAA;IACpB,wCAAuB,CAAA;IAEvB,yCAAwB,CAAA;IACxB,4CAA2B,CAAA;IAE3B,2CAA0B,CAAA;IAC1B,8CAA6B,CAAA;IAE7B,2CAA0B,CAAA;IAC1B,8CAA6B,CAAA;IAE7B,yCAAwB,CAAA;IACxB,4CAA2B,CAAA;IAC3B,2CAA0B,CAAA;AAC5B,CAAC,EArBW,aAAa,6BAAb,aAAa,QAqBxB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
exports.SagaHistoryTb = void 0;
|
|
18
|
+
__exportStar(require("./fn.enum"), exports);
|
|
19
|
+
var common_1 = require("../../../common");
|
|
20
|
+
Object.defineProperty(exports, "SagaHistoryTb", { enumerable: true, get: function () { return common_1.Collection; } });
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/common/enums/special/sagas/histories/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAE1B,0CAA8D;AAArD,uGAAA,UAAU,OAAiB"}
|
|
@@ -14,6 +14,6 @@ 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("./
|
|
18
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./histories"), exports);
|
|
18
|
+
__exportStar(require("./state.enum"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/special/sagas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAE5B,+CAA6B"}
|
|
@@ -7,6 +7,6 @@ var SagaState;
|
|
|
7
7
|
SagaState["Aborted"] = "aborted";
|
|
8
8
|
SagaState["Awaiting"] = "awaiting";
|
|
9
9
|
SagaState["Committed"] = "committed";
|
|
10
|
-
SagaState["
|
|
10
|
+
SagaState["Rollbacked"] = "rollbacked";
|
|
11
11
|
})(SagaState || (exports.SagaState = SagaState = {}));
|
|
12
|
-
//# sourceMappingURL=
|
|
12
|
+
//# sourceMappingURL=state.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/special/sagas/state.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,kCAAqB,CAAA;IACrB,oCAAuB,CAAA;IACvB,sCAAyB,CAAA;AAC3B,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Document } from 'mongoose';
|
|
1
|
+
import type { Document } from 'mongoose';
|
|
2
2
|
import { Core, Dto, MakeOptional } from '../../common';
|
|
3
|
+
import { SagaHistoryFn, SagaHistoryTb } from '../../../enums';
|
|
3
4
|
export interface SagaHistory<Req = any, Res = any> extends Core {
|
|
4
5
|
saga: string;
|
|
5
|
-
fn: string;
|
|
6
6
|
db: string;
|
|
7
|
-
|
|
7
|
+
fn: SagaHistoryFn;
|
|
8
|
+
tb: SagaHistoryTb;
|
|
8
9
|
req: Req;
|
|
9
10
|
res: Res;
|
|
10
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Document } from 'mongoose';
|
|
1
|
+
import type { Document } from 'mongoose';
|
|
2
2
|
import { SagaState } from '../../../../common/enums';
|
|
3
3
|
import { Core, Dto, MakeOptional } from '../../common';
|
|
4
4
|
export interface Saga extends Core {
|
|
@@ -8,6 +8,7 @@ export interface Saga extends Core {
|
|
|
8
8
|
session: string;
|
|
9
9
|
aborted_at?: Date;
|
|
10
10
|
committed_at?: Date;
|
|
11
|
+
rollbacked_at?: Date;
|
|
11
12
|
}
|
|
12
13
|
export type SagaDoc = Saga & Document;
|
|
13
14
|
export type SagaDto = Dto<MakeOptional<Saga, 'state'>>;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"saga-state.enum.js","sourceRoot":"","sources":["../../../src/common/enums/special/saga-state.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,kCAAqB,CAAA;IACrB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;AACvB,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { AxiosInstance } from 'axios';
|
|
2
|
-
import { RestfulService } from '../../../common/classes';
|
|
3
|
-
import { PushHistory, PushHistoryDto } from '../../../common/interfaces';
|
|
4
|
-
export declare class PushHistoryService extends RestfulService<PushHistory, PushHistoryDto> {
|
|
5
|
-
protected axios: AxiosInstance;
|
|
6
|
-
constructor(axios: AxiosInstance);
|
|
7
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PushHistoryService = void 0;
|
|
4
|
-
const classes_1 = require("../../../common/classes");
|
|
5
|
-
class PushHistoryService extends classes_1.RestfulService {
|
|
6
|
-
constructor(axios) {
|
|
7
|
-
super('push-histories', axios);
|
|
8
|
-
this.axios = axios;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.PushHistoryService = PushHistoryService;
|
|
12
|
-
//# sourceMappingURL=history.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"history.service.js","sourceRoot":"","sources":["../../../src/services/touch/push/history.service.ts"],"names":[],"mappings":";;;AAEA,qDAAyD;AAGzD,MAAa,kBAAmB,SAAQ,wBAA2C;IACjF,YAAsB,KAAoB;QACxC,KAAK,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;QADX,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;CACF;AAJD,gDAIC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/touch/push/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,oDAAkC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AxiosInstance } from 'axios';
|
|
2
|
-
import { PushHistoryService } from './history.service';
|
|
3
|
-
import { RequestConfig, RestfulService } from '../../../common/classes';
|
|
4
|
-
import { Push, PushDto, PushHistory, PushHistoryDto } from '../../../common/interfaces';
|
|
5
|
-
export declare class PushService extends RestfulService<Push, PushDto> {
|
|
6
|
-
protected axios: AxiosInstance;
|
|
7
|
-
private $histories;
|
|
8
|
-
constructor(axios: AxiosInstance);
|
|
9
|
-
get histories(): PushHistoryService;
|
|
10
|
-
send(data: PushHistoryDto, config?: RequestConfig<PushHistory>): Promise<void>;
|
|
11
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.PushService = void 0;
|
|
13
|
-
const history_service_1 = require("./history.service");
|
|
14
|
-
const classes_1 = require("../../../common/classes");
|
|
15
|
-
class PushService extends classes_1.RestfulService {
|
|
16
|
-
constructor(axios) {
|
|
17
|
-
super('push', axios);
|
|
18
|
-
this.axios = axios;
|
|
19
|
-
}
|
|
20
|
-
get histories() {
|
|
21
|
-
var _a;
|
|
22
|
-
return (this.$histories = (_a = this.$histories) !== null && _a !== void 0 ? _a : new history_service_1.PushHistoryService(this.axios));
|
|
23
|
-
}
|
|
24
|
-
send(data, config) {
|
|
25
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
return yield this.post(this.url('send'), data, config);
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.PushService = PushService;
|
|
31
|
-
//# sourceMappingURL=push.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"push.service.js","sourceRoot":"","sources":["../../../src/services/touch/push/push.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,uDAAuD;AACvD,qDAAwE;AAGxE,MAAa,WAAY,SAAQ,wBAA6B;IAG5D,YAAsB,KAAoB;QACxC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QADD,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,IAAI,SAAS;;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,MAAA,IAAI,CAAC,UAAU,mCAAI,IAAI,oCAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACnF,CAAC;IAEK,IAAI,CAAC,IAAoB,EAAE,MAAmC;;YAClE,OAAO,MAAM,IAAI,CAAC,IAAI,CAAuB,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QAC/E,CAAC;KAAA;CACF;AAdD,kCAcC"}
|