@wenex/sdk 0.8.0 → 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.
@@ -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"}
@@ -1,2 +1,2 @@
1
- export * from './fn.enum';
2
- export { Collection as SagaHistoryTb } from '../../../common';
1
+ export * from './action.enum';
2
+ export { Collection as SagaHistoryResource } from '../../../common';
@@ -14,8 +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
- exports.SagaHistoryTb = void 0;
18
- __exportStar(require("./fn.enum"), exports);
17
+ exports.SagaHistoryResource = void 0;
18
+ __exportStar(require("./action.enum"), exports);
19
19
  var common_1 = require("../../../common");
20
- Object.defineProperty(exports, "SagaHistoryTb", { enumerable: true, get: function () { return common_1.Collection; } });
20
+ Object.defineProperty(exports, "SagaHistoryResource", { enumerable: true, get: function () { return common_1.Collection; } });
21
21
  //# sourceMappingURL=index.js.map
@@ -1 +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"}
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"}
@@ -1,14 +1,14 @@
1
1
  import type { Document } from 'mongoose';
2
2
  import { Core, Dto, MakeOptional } from '../../common';
3
- import { SagaHistoryFn, SagaHistoryTb } from '../../../enums';
3
+ import { SagaHistoryAction, SagaHistoryResource } from '../../../enums';
4
4
  export interface SagaHistory<Req = any, Res = any> extends Core {
5
5
  saga: string;
6
6
  db: string;
7
- fn: SagaHistoryFn;
8
- tb: SagaHistoryTb;
7
+ action: SagaHistoryAction;
8
+ resource: SagaHistoryResource;
9
9
  req: Req;
10
10
  res: Res;
11
11
  }
12
12
  export type SagaHistoryDoc<Req = any, Res = any> = SagaHistory<Req, Res> & Document;
13
13
  export type SagaHistoryDto<Req = any, Res = any> = Dto<SagaHistory<Req, Res>>;
14
- 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'>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenex/sdk",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Wenex SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",