@wenex/sdk 0.7.9 → 0.8.1
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/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/action.enum.d.ts +17 -0
- package/common/enums/special/sagas/histories/action.enum.js +22 -0
- package/common/enums/special/sagas/histories/action.enum.js.map +1 -0
- 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 +5 -4
- 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"}
|
|
@@ -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 SagaHistoryAction {
|
|
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.SagaHistoryAction = void 0;
|
|
4
|
+
var SagaHistoryAction;
|
|
5
|
+
(function (SagaHistoryAction) {
|
|
6
|
+
SagaHistoryAction["Count"] = "count";
|
|
7
|
+
SagaHistoryAction["Create"] = "create";
|
|
8
|
+
SagaHistoryAction["CreateBulk"] = "create-bulk";
|
|
9
|
+
SagaHistoryAction["Find"] = "find";
|
|
10
|
+
SagaHistoryAction["FindOne"] = "find-one";
|
|
11
|
+
SagaHistoryAction["FindById"] = "find-by-id";
|
|
12
|
+
SagaHistoryAction["DeleteOne"] = "delete-one";
|
|
13
|
+
SagaHistoryAction["DeleteById"] = "delete-by-id";
|
|
14
|
+
SagaHistoryAction["RestoreOne"] = "restore-one";
|
|
15
|
+
SagaHistoryAction["RestoreById"] = "restore-by-id";
|
|
16
|
+
SagaHistoryAction["DestroyOne"] = "destroy-one";
|
|
17
|
+
SagaHistoryAction["DestroyById"] = "destroy-by-id";
|
|
18
|
+
SagaHistoryAction["UpdateOne"] = "update-one";
|
|
19
|
+
SagaHistoryAction["UpdateById"] = "update-by-id";
|
|
20
|
+
SagaHistoryAction["UpdateBulk"] = "update-bulk";
|
|
21
|
+
})(SagaHistoryAction || (exports.SagaHistoryAction = SagaHistoryAction = {}));
|
|
22
|
+
//# sourceMappingURL=action.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.enum.js","sourceRoot":"","sources":["../../../../../src/common/enums/special/sagas/histories/action.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAqBX;AArBD,WAAY,iBAAiB;IAC3B,oCAAe,CAAA;IACf,sCAAiB,CAAA;IACjB,+CAA0B,CAAA;IAE1B,kCAAa,CAAA;IACb,yCAAoB,CAAA;IACpB,4CAAuB,CAAA;IAEvB,6CAAwB,CAAA;IACxB,gDAA2B,CAAA;IAE3B,+CAA0B,CAAA;IAC1B,kDAA6B,CAAA;IAE7B,+CAA0B,CAAA;IAC1B,kDAA6B,CAAA;IAE7B,6CAAwB,CAAA;IACxB,gDAA2B,CAAA;IAC3B,+CAA0B,CAAA;AAC5B,CAAC,EArBW,iBAAiB,iCAAjB,iBAAiB,QAqB5B"}
|
|
@@ -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.SagaHistoryResource = void 0;
|
|
18
|
+
__exportStar(require("./action.enum"), exports);
|
|
19
|
+
var common_1 = require("../../../common");
|
|
20
|
+
Object.defineProperty(exports, "SagaHistoryResource", { 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,gDAA8B;AAE9B,0CAAoE;AAA3D,6GAAA,UAAU,OAAuB"}
|
|
@@ -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,13 +1,14 @@
|
|
|
1
|
-
import { Document } from 'mongoose';
|
|
1
|
+
import type { Document } from 'mongoose';
|
|
2
2
|
import { Core, Dto, MakeOptional } from '../../common';
|
|
3
|
+
import { SagaHistoryAction, SagaHistoryResource } 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
|
+
action: SagaHistoryAction;
|
|
8
|
+
resource: SagaHistoryResource;
|
|
8
9
|
req: Req;
|
|
9
10
|
res: Res;
|
|
10
11
|
}
|
|
11
12
|
export type SagaHistoryDoc<Req = any, Res = any> = SagaHistory<Req, Res> & Document;
|
|
12
13
|
export type SagaHistoryDto<Req = any, Res = any> = Dto<SagaHistory<Req, Res>>;
|
|
13
|
-
export type SagaHistoryAppendDto<Req = any, Res = any> = Dto<MakeOptional<SagaHistory<Req, Res>, 'res'>>;
|
|
14
|
+
export type SagaHistoryAppendDto<Req = any, Res = any> = Dto<MakeOptional<SagaHistory<Req, Res>, 'db' | 'res'>>;
|
|
@@ -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"}
|