@wenex/sdk 0.7.3 → 0.7.5

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.
Files changed (89) hide show
  1. package/common/enums/special/index.d.ts +1 -0
  2. package/common/enums/special/index.js +1 -0
  3. package/common/enums/special/index.js.map +1 -1
  4. package/common/enums/special/saga-state.enum.d.ts +7 -0
  5. package/common/enums/special/saga-state.enum.js +12 -0
  6. package/common/enums/special/saga-state.enum.js.map +1 -0
  7. package/common/interfaces/context/config.interface.js.map +1 -0
  8. package/common/interfaces/context/index.js.map +1 -0
  9. package/common/interfaces/context/setting.interface.js.map +1 -0
  10. package/common/interfaces/index.d.ts +1 -1
  11. package/common/interfaces/index.js +1 -1
  12. package/common/interfaces/index.js.map +1 -1
  13. package/common/interfaces/special/index.d.ts +1 -0
  14. package/common/interfaces/special/index.js +1 -0
  15. package/common/interfaces/special/index.js.map +1 -1
  16. package/common/interfaces/special/saga/history.interface.d.ts +13 -0
  17. package/common/interfaces/special/saga/history.interface.js +3 -0
  18. package/common/interfaces/special/saga/history.interface.js.map +1 -0
  19. package/common/interfaces/special/saga/index.d.ts +2 -0
  20. package/common/interfaces/special/saga/index.js +19 -0
  21. package/common/interfaces/special/saga/index.js.map +1 -0
  22. package/common/interfaces/special/saga/saga.interface.d.ts +15 -0
  23. package/common/interfaces/special/saga/saga.interface.js +3 -0
  24. package/common/interfaces/special/saga/saga.interface.js.map +1 -0
  25. package/common/interfaces/special/stat.interface.d.ts +1 -2
  26. package/index.d.ts +11 -11
  27. package/index.js +2 -2
  28. package/index.js.map +1 -1
  29. package/package.json +1 -1
  30. package/services/auth/index.d.ts +3 -3
  31. package/services/context/configs.service.js.map +1 -0
  32. package/services/{config → context}/index.d.ts +3 -3
  33. package/services/{config → context}/index.js +3 -3
  34. package/services/context/index.js.map +1 -0
  35. package/services/context/settings.service.js.map +1 -0
  36. package/services/domain/index.d.ts +2 -2
  37. package/services/financial/index.d.ts +4 -4
  38. package/services/general/index.d.ts +2 -2
  39. package/services/identity/index.d.ts +3 -3
  40. package/services/index.d.ts +1 -1
  41. package/services/index.js +1 -1
  42. package/services/index.js.map +1 -1
  43. package/services/logistic/index.d.ts +5 -5
  44. package/services/special/index.d.ts +6 -2
  45. package/services/special/index.js +6 -0
  46. package/services/special/index.js.map +1 -1
  47. package/services/special/sagas/history.service.d.ts +7 -0
  48. package/services/special/sagas/history.service.js +12 -0
  49. package/services/special/sagas/history.service.js.map +1 -0
  50. package/services/special/sagas/index.d.ts +2 -0
  51. package/services/special/sagas/index.js +19 -0
  52. package/services/special/sagas/index.js.map +1 -0
  53. package/services/special/sagas/sagas.service.d.ts +10 -0
  54. package/services/special/sagas/sagas.service.js +17 -0
  55. package/services/special/sagas/sagas.service.js.map +1 -0
  56. package/services/touch/index.d.ts +5 -5
  57. package/services/touch/index.js +4 -4
  58. package/services/touch/index.js.map +1 -1
  59. package/services/touch/pushes/history.service.d.ts +7 -0
  60. package/services/touch/pushes/history.service.js +12 -0
  61. package/services/touch/pushes/history.service.js.map +1 -0
  62. package/services/touch/pushes/index.d.ts +2 -0
  63. package/services/touch/pushes/index.js +19 -0
  64. package/services/touch/pushes/index.js.map +1 -0
  65. package/services/touch/pushes/pushes.service.d.ts +11 -0
  66. package/services/touch/pushes/pushes.service.js +31 -0
  67. package/services/touch/pushes/pushes.service.js.map +1 -0
  68. package/common/enums/domain/clients/otp-provider.enum.d.ts +0 -4
  69. package/common/enums/domain/clients/otp-provider.enum.js +0 -9
  70. package/common/enums/domain/clients/otp-provider.enum.js.map +0 -1
  71. package/common/enums/domain/clients/otp-type.enum.d.ts +0 -5
  72. package/common/enums/domain/clients/otp-type.enum.js +0 -10
  73. package/common/enums/domain/clients/otp-type.enum.js.map +0 -1
  74. package/common/interfaces/config/config.interface.js.map +0 -1
  75. package/common/interfaces/config/index.js.map +0 -1
  76. package/common/interfaces/config/setting.interface.js.map +0 -1
  77. package/services/config/configs.service.js.map +0 -1
  78. package/services/config/index.js.map +0 -1
  79. package/services/config/settings.service.js.map +0 -1
  80. /package/common/interfaces/{config → context}/config.interface.d.ts +0 -0
  81. /package/common/interfaces/{config → context}/config.interface.js +0 -0
  82. /package/common/interfaces/{config → context}/index.d.ts +0 -0
  83. /package/common/interfaces/{config → context}/index.js +0 -0
  84. /package/common/interfaces/{config → context}/setting.interface.d.ts +0 -0
  85. /package/common/interfaces/{config → context}/setting.interface.js +0 -0
  86. /package/services/{config → context}/configs.service.d.ts +0 -0
  87. /package/services/{config → context}/configs.service.js +0 -0
  88. /package/services/{config → context}/settings.service.d.ts +0 -0
  89. /package/services/{config → context}/settings.service.js +0 -0
@@ -1 +1,2 @@
1
1
  export * from './stat-type.enum';
2
+ export * from './saga-state.enum';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./stat-type.enum"), exports);
18
+ __exportStar(require("./saga-state.enum"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/special/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/special/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,oDAAkC"}
@@ -0,0 +1,7 @@
1
+ export declare enum SagaState {
2
+ Failed = "failed",
3
+ Aborted = "aborted",
4
+ Awaiting = "awaiting",
5
+ Committed = "committed",
6
+ Rollback = "rollback"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SagaState = void 0;
4
+ var SagaState;
5
+ (function (SagaState) {
6
+ SagaState["Failed"] = "failed";
7
+ SagaState["Aborted"] = "aborted";
8
+ SagaState["Awaiting"] = "awaiting";
9
+ SagaState["Committed"] = "committed";
10
+ SagaState["Rollback"] = "rollback";
11
+ })(SagaState || (exports.SagaState = SagaState = {}));
12
+ //# sourceMappingURL=saga-state.enum.js.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.interface.js","sourceRoot":"","sources":["../../../src/common/interfaces/context/config.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/interfaces/context/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,sDAAoC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setting.interface.js","sourceRoot":"","sources":["../../../src/common/interfaces/context/setting.interface.ts"],"names":[],"mappings":""}
@@ -1,8 +1,8 @@
1
1
  export * from './common';
2
2
  export * from './auth';
3
3
  export * from './touch';
4
- export * from './config';
5
4
  export * from './domain';
5
+ export * from './context';
6
6
  export * from './special';
7
7
  export * from './general';
8
8
  export * from './identity';
@@ -17,8 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./common"), exports);
18
18
  __exportStar(require("./auth"), exports);
19
19
  __exportStar(require("./touch"), exports);
20
- __exportStar(require("./config"), exports);
21
20
  __exportStar(require("./domain"), exports);
21
+ __exportStar(require("./context"), exports);
22
22
  __exportStar(require("./special"), exports);
23
23
  __exportStar(require("./general"), exports);
24
24
  __exportStar(require("./identity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AAEzB,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,4CAA0B;AAC1B,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B;AAC3B,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AAEzB,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB;AACzB,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B;AAC3B,8CAA4B"}
@@ -1,2 +1,3 @@
1
+ export * from './saga';
1
2
  export * from './stat.interface';
2
3
  export * from './file.interface';
@@ -14,6 +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("./saga"), exports);
17
18
  __exportStar(require("./stat.interface"), exports);
18
19
  __exportStar(require("./file.interface"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/interfaces/special/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/interfaces/special/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AAEvB,mDAAiC;AACjC,mDAAiC"}
@@ -0,0 +1,13 @@
1
+ import { Document } from 'mongoose';
2
+ import { Core, Dto, MakeOptional } from '../../common';
3
+ export interface SagaHistory<Req = any, Res = any> extends Core {
4
+ saga: string;
5
+ fn: string;
6
+ db: string;
7
+ tb: string;
8
+ req: Req;
9
+ res: Res;
10
+ }
11
+ export type SagaHistoryDoc<Req = any, Res = any> = SagaHistory<Req, Res> & Document;
12
+ export type SagaHistoryDto<Req = any, Res = any> = Dto<SagaHistory<Req, Res>>;
13
+ export type SagaHistoryAppend<Req = any, Res = any> = Dto<MakeOptional<SagaHistory<Req, Res>, 'res'>>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=history.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/special/saga/history.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './saga.interface';
2
+ export * from './history.interface';
@@ -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("./saga.interface"), exports);
18
+ __exportStar(require("./history.interface"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/special/saga/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,sDAAoC"}
@@ -0,0 +1,15 @@
1
+ import { Document } from 'mongoose';
2
+ import { SagaState } from '../../../../common/enums';
3
+ import { Core, Dto, MakeOptional } from '../../common';
4
+ export interface Saga extends Core {
5
+ ttl: number;
6
+ job: string;
7
+ state: SagaState;
8
+ session: string;
9
+ aborted_at?: Date;
10
+ committed_at?: Date;
11
+ }
12
+ export type SagaDoc = Saga & Document;
13
+ export type SagaDto = Dto<MakeOptional<Saga, 'state'>>;
14
+ export type SagaId = Pick<Saga, 'id'>;
15
+ export type SagaStart = Dto<MakeOptional<Saga, 'job' | 'state' | 'session'>>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=saga.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saga.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/special/saga/saga.interface.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import type { Document } from 'mongoose';
2
2
  import { StatType } from '../../enums';
3
- import { Core, Dto, Flags, Items, MakeOptional, Properties } from '../common';
3
+ import { Core, Dto, Flags, MakeOptional, Properties } from '../common';
4
4
  export interface Stat<Props extends Properties = Properties> extends Core<Props> {
5
5
  type: StatType;
6
6
  key: string;
@@ -18,4 +18,3 @@ export type StatDto = Dto<MakeOptional<Stat, 'year'> & {
18
18
  alpha?: number;
19
19
  hour?: number;
20
20
  }>;
21
- export type StatItemsDto = Items<StatDto>;
package/index.d.ts CHANGED
@@ -1,24 +1,24 @@
1
1
  import type { AxiosInstance } from 'axios';
2
- import { AuthClient, ConfigClient, DomainClient, IdentityClient, SpecialClient, TouchClient, FinancialClient, LogisticClient } from './services';
2
+ import { AuthClient, ContextClient, DomainClient, IdentityClient, SpecialClient, TouchClient, FinancialClient, LogisticClient } from './services';
3
3
  import { GraphqlService } from './common/classes';
4
4
  export * from './services';
5
5
  export declare class PlatformClient {
6
6
  readonly axios: AxiosInstance;
7
- private $graphql;
8
- private $auth;
9
- private $touch;
10
- private $config;
11
- private $domain;
12
- private $special;
13
- private $identity;
14
- private $logistic;
15
- private $financial;
7
+ protected $graphql?: GraphqlService;
8
+ protected $auth?: AuthClient;
9
+ protected $touch?: TouchClient;
10
+ protected $domain?: DomainClient;
11
+ protected $context?: ContextClient;
12
+ protected $special?: SpecialClient;
13
+ protected $identity?: IdentityClient;
14
+ protected $logistic?: LogisticClient;
15
+ protected $financial?: FinancialClient;
16
16
  constructor(axios: AxiosInstance);
17
17
  get graphql(): GraphqlService;
18
18
  get auth(): AuthClient;
19
19
  get touch(): TouchClient;
20
20
  get domain(): DomainClient;
21
- get config(): ConfigClient;
21
+ get context(): ContextClient;
22
22
  get special(): SpecialClient;
23
23
  get identity(): IdentityClient;
24
24
  get logistic(): LogisticClient;
package/index.js CHANGED
@@ -38,9 +38,9 @@ class PlatformClient {
38
38
  var _a;
39
39
  return (this.$domain = (_a = this.$domain) !== null && _a !== void 0 ? _a : new services_1.DomainClient(this.axios));
40
40
  }
41
- get config() {
41
+ get context() {
42
42
  var _a;
43
- return (this.$config = (_a = this.$config) !== null && _a !== void 0 ? _a : new services_1.ConfigClient(this.axios));
43
+ return (this.$context = (_a = this.$context) !== null && _a !== void 0 ? _a : new services_1.ContextClient(this.axios));
44
44
  }
45
45
  get special() {
46
46
  var _a;
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,yCASoB;AACpB,8CAAkD;AAElD,6CAA2B;AAE3B,MAAa,cAAc;IAYzB,YAAqB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE7C,IAAI,OAAO;;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,MAAA,IAAI,CAAC,QAAQ,mCAAI,IAAI,wBAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3E,CAAC;IAED,IAAI,IAAI;;QACN,OAAO,CAAC,IAAI,CAAC,KAAK,GAAG,MAAA,IAAI,CAAC,KAAK,mCAAI,IAAI,qBAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACjE,CAAC;IAED,IAAI,KAAK;;QACP,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,MAAA,IAAI,CAAC,MAAM,mCAAI,IAAI,sBAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACpE,CAAC;IAED,IAAI,MAAM;;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,GAAG,MAAA,IAAI,CAAC,OAAO,mCAAI,IAAI,uBAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACvE,CAAC;IAED,IAAI,MAAM;;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,GAAG,MAAA,IAAI,CAAC,OAAO,mCAAI,IAAI,uBAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACvE,CAAC;IAED,IAAI,OAAO;;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,MAAA,IAAI,CAAC,QAAQ,mCAAI,IAAI,wBAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED,IAAI,QAAQ;;QACV,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,MAAA,IAAI,CAAC,SAAS,mCAAI,IAAI,yBAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7E,CAAC;IAED,IAAI,QAAQ;;QACV,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,MAAA,IAAI,CAAC,SAAS,mCAAI,IAAI,yBAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7E,CAAC;IAED,IAAI,SAAS;;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,MAAA,IAAI,CAAC,UAAU,mCAAI,IAAI,0BAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAChF,CAAC;CACF;AAjDD,wCAiDC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,yCASoB;AACpB,8CAAkD;AAElD,6CAA2B;AAE3B,MAAa,cAAc;IAYzB,YAAqB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE7C,IAAI,OAAO;;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,MAAA,IAAI,CAAC,QAAQ,mCAAI,IAAI,wBAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3E,CAAC;IAED,IAAI,IAAI;;QACN,OAAO,CAAC,IAAI,CAAC,KAAK,GAAG,MAAA,IAAI,CAAC,KAAK,mCAAI,IAAI,qBAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACjE,CAAC;IAED,IAAI,KAAK;;QACP,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,MAAA,IAAI,CAAC,MAAM,mCAAI,IAAI,sBAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACpE,CAAC;IAED,IAAI,MAAM;;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,GAAG,MAAA,IAAI,CAAC,OAAO,mCAAI,IAAI,uBAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACvE,CAAC;IAED,IAAI,OAAO;;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,MAAA,IAAI,CAAC,QAAQ,mCAAI,IAAI,wBAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED,IAAI,OAAO;;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,MAAA,IAAI,CAAC,QAAQ,mCAAI,IAAI,wBAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED,IAAI,QAAQ;;QACV,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,MAAA,IAAI,CAAC,SAAS,mCAAI,IAAI,yBAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7E,CAAC;IAED,IAAI,QAAQ;;QACV,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,MAAA,IAAI,CAAC,SAAS,mCAAI,IAAI,yBAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7E,CAAC;IAED,IAAI,SAAS;;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,MAAA,IAAI,CAAC,UAAU,mCAAI,IAAI,0BAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAChF,CAAC;CACF;AAjDD,wCAiDC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenex/sdk",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "description": "Wenex SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -7,9 +7,9 @@ export * from './authorization.service';
7
7
  export * from './authentication.service';
8
8
  export declare class AuthClient {
9
9
  readonly axios: AxiosInstance;
10
- private $grants;
11
- private $authorization;
12
- private $authentication;
10
+ protected $grants?: GrantsService;
11
+ protected $authorization?: Authorization;
12
+ protected $authentication?: Authentication;
13
13
  constructor(axios: AxiosInstance);
14
14
  get grants(): GrantsService;
15
15
  get authorization(): Authorization;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configs.service.js","sourceRoot":"","sources":["../../src/services/context/configs.service.ts"],"names":[],"mappings":";;;AAEA,kDAAsD;AAGtD,MAAa,cAAe,SAAQ,wBAAiC;IACnE,YAAsB,KAAoB;QACxC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QADJ,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;CACF;AAJD,wCAIC"}
@@ -2,10 +2,10 @@ import type { AxiosInstance } from 'axios';
2
2
  import { ConfigsService } from './configs.service';
3
3
  import { SettingsService } from './settings.service';
4
4
  export * from './configs.service';
5
- export declare class ConfigClient {
5
+ export declare class ContextClient {
6
6
  readonly axios: AxiosInstance;
7
- private $configs;
8
- private $settings;
7
+ protected $configs?: ConfigsService;
8
+ protected $settings?: SettingsService;
9
9
  constructor(axios: AxiosInstance);
10
10
  get configs(): ConfigsService;
11
11
  get settings(): SettingsService;
@@ -14,11 +14,11 @@ 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.ConfigClient = void 0;
17
+ exports.ContextClient = void 0;
18
18
  const configs_service_1 = require("./configs.service");
19
19
  const settings_service_1 = require("./settings.service");
20
20
  __exportStar(require("./configs.service"), exports);
21
- class ConfigClient {
21
+ class ContextClient {
22
22
  constructor(axios) {
23
23
  this.axios = axios;
24
24
  }
@@ -31,5 +31,5 @@ class ConfigClient {
31
31
  return (this.$settings = (_a = this.$settings) !== null && _a !== void 0 ? _a : new settings_service_1.SettingsService(this.axios));
32
32
  }
33
33
  }
34
- exports.ConfigClient = ConfigClient;
34
+ exports.ContextClient = ContextClient;
35
35
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/context/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,uDAAmD;AACnD,yDAAqD;AAErD,oDAAkC;AAElC,MAAa,aAAa;IAIxB,YAAqB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE7C,IAAI,OAAO;;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,MAAA,IAAI,CAAC,QAAQ,mCAAI,IAAI,gCAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3E,CAAC;IAED,IAAI,QAAQ;;QACV,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,MAAA,IAAI,CAAC,SAAS,mCAAI,IAAI,kCAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9E,CAAC;CACF;AAbD,sCAaC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.service.js","sourceRoot":"","sources":["../../src/services/context/settings.service.ts"],"names":[],"mappings":";;;AAEA,kDAAsD;AAGtD,MAAa,eAAgB,SAAQ,wBAAmC;IACtE,YAAsB,KAAoB;QACxC,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QADL,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;CACF;AAJD,0CAIC"}
@@ -5,8 +5,8 @@ export * from './apps.service';
5
5
  export * from './clients.service';
6
6
  export declare class DomainClient {
7
7
  readonly axios: AxiosInstance;
8
- private $apps;
9
- private $clients;
8
+ protected $apps?: AppsService;
9
+ protected $clients?: ClientsService;
10
10
  constructor(axios: AxiosInstance);
11
11
  get apps(): AppsService;
12
12
  get clients(): ClientsService;
@@ -9,10 +9,10 @@ export * from './accounts.service';
9
9
  export * from './transactions.service';
10
10
  export declare class FinancialClient {
11
11
  readonly axios: AxiosInstance;
12
- private $coins;
13
- private $wallets;
14
- private $accounts;
15
- private $transactions;
12
+ protected $coins?: CoinsService;
13
+ protected $wallets?: WalletsService;
14
+ protected $accounts?: AccountsService;
15
+ protected $transactions?: TransactionsService;
16
16
  constructor(axios: AxiosInstance);
17
17
  get coins(): CoinsService;
18
18
  get wallets(): WalletsService;
@@ -5,8 +5,8 @@ export * from './artifacts.service';
5
5
  export * from './workflows.service';
6
6
  export declare class GeneralClient {
7
7
  readonly axios: AxiosInstance;
8
- private $artifacts;
9
- private $workflows;
8
+ protected $artifacts?: ArtifactsService;
9
+ protected $workflows?: WorkflowsService;
10
10
  constructor(axios: AxiosInstance);
11
11
  get artifacts(): ArtifactsService;
12
12
  get workflows(): WorkflowsService;
@@ -7,9 +7,9 @@ export * from './profiles.service';
7
7
  export * from './sessions.service';
8
8
  export declare class IdentityClient {
9
9
  readonly axios: AxiosInstance;
10
- private $users;
11
- private $profiles;
12
- private $sessions;
10
+ protected $users?: UsersService;
11
+ protected $profiles?: ProfilesService;
12
+ protected $sessions?: SessionsService;
13
13
  constructor(axios: AxiosInstance);
14
14
  get users(): UsersService;
15
15
  get profiles(): ProfilesService;
@@ -1,7 +1,7 @@
1
1
  export * from './auth';
2
2
  export * from './touch';
3
3
  export * from './domain';
4
- export * from './config';
4
+ export * from './context';
5
5
  export * from './special';
6
6
  export * from './general';
7
7
  export * from './identity';
package/services/index.js CHANGED
@@ -17,7 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./auth"), exports);
18
18
  __exportStar(require("./touch"), exports);
19
19
  __exportStar(require("./domain"), exports);
20
- __exportStar(require("./config"), exports);
20
+ __exportStar(require("./context"), exports);
21
21
  __exportStar(require("./special"), exports);
22
22
  __exportStar(require("./general"), exports);
23
23
  __exportStar(require("./identity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,4CAA0B;AAC1B,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B;AAC3B,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB;AACzB,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B;AAC3B,8CAA4B"}
@@ -11,11 +11,11 @@ export * from './vehicles.service';
11
11
  export * from './locations.service';
12
12
  export declare class LogisticClient {
13
13
  readonly axios: AxiosInstance;
14
- private $cargos;
15
- private $drivers;
16
- private $travels;
17
- private $vehicles;
18
- private $locations;
14
+ protected $cargos?: CargosService;
15
+ protected $drivers?: DriversService;
16
+ protected $travels?: TravelsService;
17
+ protected $vehicles?: VehiclesService;
18
+ protected $locations?: LocationsService;
19
19
  constructor(axios: AxiosInstance);
20
20
  get cargos(): CargosService;
21
21
  get drivers(): DriversService;
@@ -1,13 +1,17 @@
1
1
  import { AxiosInstance } from 'axios';
2
+ import { SagasService } from './sagas';
2
3
  import { FilesService } from './files.service';
3
4
  import { StatsService } from './stats.service';
5
+ export * from './sagas';
4
6
  export * from './stats.service';
5
7
  export * from './files.service';
6
8
  export declare class SpecialClient {
7
9
  readonly axios: AxiosInstance;
8
- private $files;
9
- private $stats;
10
+ protected $files?: FilesService;
11
+ protected $stats?: StatsService;
12
+ protected $sagas?: SagasService;
10
13
  constructor(axios: AxiosInstance);
11
14
  get files(): FilesService;
12
15
  get stats(): StatsService;
16
+ get sagas(): SagasService;
13
17
  }
@@ -15,8 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.SpecialClient = void 0;
18
+ const sagas_1 = require("./sagas");
18
19
  const files_service_1 = require("./files.service");
19
20
  const stats_service_1 = require("./stats.service");
21
+ __exportStar(require("./sagas"), exports);
20
22
  __exportStar(require("./stats.service"), exports);
21
23
  __exportStar(require("./files.service"), exports);
22
24
  class SpecialClient {
@@ -31,6 +33,10 @@ class SpecialClient {
31
33
  var _a;
32
34
  return (this.$stats = (_a = this.$stats) !== null && _a !== void 0 ? _a : new stats_service_1.StatsService(this.axios));
33
35
  }
36
+ get sagas() {
37
+ var _a;
38
+ return (this.$sagas = (_a = this.$sagas) !== null && _a !== void 0 ? _a : new sagas_1.SagasService(this.axios));
39
+ }
34
40
  }
35
41
  exports.SpecialClient = SpecialClient;
36
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/special/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,mDAA+C;AAC/C,mDAA+C;AAE/C,kDAAgC;AAChC,kDAAgC;AAEhC,MAAa,aAAa;IAIxB,YAAqB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE7C,IAAI,KAAK;;QACP,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,MAAA,IAAI,CAAC,MAAM,mCAAI,IAAI,4BAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;IAED,IAAI,KAAK;;QACP,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,MAAA,IAAI,CAAC,MAAM,mCAAI,IAAI,4BAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;CACF;AAbD,sCAaC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/special/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,mCAAuC;AACvC,mDAA+C;AAC/C,mDAA+C;AAE/C,0CAAwB;AACxB,kDAAgC;AAChC,kDAAgC;AAEhC,MAAa,aAAa;IAKxB,YAAqB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE7C,IAAI,KAAK;;QACP,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,MAAA,IAAI,CAAC,MAAM,mCAAI,IAAI,4BAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;IAED,IAAI,KAAK;;QACP,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,MAAA,IAAI,CAAC,MAAM,mCAAI,IAAI,4BAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;IAED,IAAI,KAAK;;QACP,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,MAAA,IAAI,CAAC,MAAM,mCAAI,IAAI,oBAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;CACF;AAlBD,sCAkBC"}
@@ -0,0 +1,7 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ import { RestfulService } from '../../../common/classes';
3
+ import { SagaHistory, SagaHistoryDto } from '../../../common/interfaces';
4
+ export declare class SagaHistoriesService extends RestfulService<SagaHistory, SagaHistoryDto> {
5
+ protected axios: AxiosInstance;
6
+ constructor(axios: AxiosInstance);
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SagaHistoriesService = void 0;
4
+ const classes_1 = require("../../../common/classes");
5
+ class SagaHistoriesService extends classes_1.RestfulService {
6
+ constructor(axios) {
7
+ super('saga-histories', axios);
8
+ this.axios = axios;
9
+ }
10
+ }
11
+ exports.SagaHistoriesService = SagaHistoriesService;
12
+ //# sourceMappingURL=history.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history.service.js","sourceRoot":"","sources":["../../../src/services/special/sagas/history.service.ts"],"names":[],"mappings":";;;AAEA,qDAAyD;AAGzD,MAAa,oBAAqB,SAAQ,wBAA2C;IACnF,YAAsB,KAAoB;QACxC,KAAK,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;QADX,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;CACF;AAJD,oDAIC"}
@@ -0,0 +1,2 @@
1
+ export * from './sagas.service';
2
+ export * from './history.service';
@@ -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("./sagas.service"), exports);
18
+ __exportStar(require("./history.service"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/special/sagas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,oDAAkC"}
@@ -0,0 +1,10 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ import { RestfulService } from '../../../common/classes';
3
+ import { SagaHistoriesService } from './history.service';
4
+ import { Saga, SagaDto } from '../../../common/interfaces';
5
+ export declare class SagasService extends RestfulService<Saga, SagaDto> {
6
+ protected axios: AxiosInstance;
7
+ protected $histories?: SagaHistoriesService;
8
+ constructor(axios: AxiosInstance);
9
+ get histories(): SagaHistoriesService;
10
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SagasService = void 0;
4
+ const classes_1 = require("../../../common/classes");
5
+ const history_service_1 = require("./history.service");
6
+ class SagasService extends classes_1.RestfulService {
7
+ constructor(axios) {
8
+ super('sagas', axios);
9
+ this.axios = axios;
10
+ }
11
+ get histories() {
12
+ var _a;
13
+ return (this.$histories = (_a = this.$histories) !== null && _a !== void 0 ? _a : new history_service_1.SagaHistoriesService(this.axios));
14
+ }
15
+ }
16
+ exports.SagasService = SagasService;
17
+ //# sourceMappingURL=sagas.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sagas.service.js","sourceRoot":"","sources":["../../../src/services/special/sagas/sagas.service.ts"],"names":[],"mappings":";;;AAEA,qDAAyD;AACzD,uDAAyD;AAGzD,MAAa,YAAa,SAAQ,wBAA6B;IAG7D,YAAsB,KAAoB;QACxC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QADF,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,IAAI,SAAS;;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,MAAA,IAAI,CAAC,UAAU,mCAAI,IAAI,sCAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrF,CAAC;CACF;AAVD,oCAUC"}
@@ -1,13 +1,13 @@
1
1
  import { AxiosInstance } from 'axios';
2
2
  import { MailsService } from './mails.service';
3
- import { PushService } from './push';
4
- export * from './push';
3
+ import { PushesService } from './pushes';
4
+ export * from './pushes';
5
5
  export * from './mails.service';
6
6
  export declare class TouchClient {
7
7
  readonly axios: AxiosInstance;
8
- private $push;
9
- private $mails;
8
+ protected $mails?: MailsService;
9
+ protected $pushes?: PushesService;
10
10
  constructor(axios: AxiosInstance);
11
11
  get mails(): MailsService;
12
- get push(): PushService;
12
+ get pushes(): PushesService;
13
13
  }
@@ -16,8 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.TouchClient = void 0;
18
18
  const mails_service_1 = require("./mails.service");
19
- const push_1 = require("./push");
20
- __exportStar(require("./push"), exports);
19
+ const pushes_1 = require("./pushes");
20
+ __exportStar(require("./pushes"), exports);
21
21
  __exportStar(require("./mails.service"), exports);
22
22
  class TouchClient {
23
23
  constructor(axios) {
@@ -27,9 +27,9 @@ class TouchClient {
27
27
  var _a;
28
28
  return (this.$mails = (_a = this.$mails) !== null && _a !== void 0 ? _a : new mails_service_1.MailsService(this.axios));
29
29
  }
30
- get push() {
30
+ get pushes() {
31
31
  var _a;
32
- return (this.$push = (_a = this.$push) !== null && _a !== void 0 ? _a : new push_1.PushService(this.axios));
32
+ return (this.$pushes = (_a = this.$pushes) !== null && _a !== void 0 ? _a : new pushes_1.PushesService(this.axios));
33
33
  }
34
34
  }
35
35
  exports.TouchClient = TouchClient;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/touch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,mDAA+C;AAC/C,iCAAqC;AAErC,yCAAuB;AACvB,kDAAgC;AAEhC,MAAa,WAAW;IAItB,YAAqB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE7C,IAAI,KAAK;;QACP,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,MAAA,IAAI,CAAC,MAAM,mCAAI,IAAI,4BAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;IAED,IAAI,IAAI;;QACN,OAAO,CAAC,IAAI,CAAC,KAAK,GAAG,MAAA,IAAI,CAAC,KAAK,mCAAI,IAAI,kBAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAClE,CAAC;CACF;AAbD,kCAaC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/touch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,mDAA+C;AAC/C,qCAAyC;AAEzC,2CAAyB;AACzB,kDAAgC;AAEhC,MAAa,WAAW;IAItB,YAAqB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE7C,IAAI,KAAK;;QACP,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,MAAA,IAAI,CAAC,MAAM,mCAAI,IAAI,4BAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;IAED,IAAI,MAAM;;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,GAAG,MAAA,IAAI,CAAC,OAAO,mCAAI,IAAI,sBAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACxE,CAAC;CACF;AAbD,kCAaC"}
@@ -0,0 +1,7 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ import { RestfulService } from '../../../common/classes';
3
+ import { PushHistory, PushHistoryDto } from '../../../common/interfaces';
4
+ export declare class PushHistoriesService extends RestfulService<PushHistory, PushHistoryDto> {
5
+ protected axios: AxiosInstance;
6
+ constructor(axios: AxiosInstance);
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PushHistoriesService = void 0;
4
+ const classes_1 = require("../../../common/classes");
5
+ class PushHistoriesService extends classes_1.RestfulService {
6
+ constructor(axios) {
7
+ super('push-histories', axios);
8
+ this.axios = axios;
9
+ }
10
+ }
11
+ exports.PushHistoriesService = PushHistoriesService;
12
+ //# sourceMappingURL=history.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history.service.js","sourceRoot":"","sources":["../../../src/services/touch/pushes/history.service.ts"],"names":[],"mappings":";;;AAEA,qDAAyD;AAGzD,MAAa,oBAAqB,SAAQ,wBAA2C;IACnF,YAAsB,KAAoB;QACxC,KAAK,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;QADX,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;CACF;AAJD,oDAIC"}
@@ -0,0 +1,2 @@
1
+ export * from './pushes.service';
2
+ export * from './history.service';
@@ -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("./pushes.service"), exports);
18
+ __exportStar(require("./history.service"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/touch/pushes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,oDAAkC"}
@@ -0,0 +1,11 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ import { PushHistoriesService } from './history.service';
3
+ import { RequestConfig, RestfulService } from '../../../common/classes';
4
+ import { Push, PushDto, PushHistory, PushHistoryDto } from '../../../common/interfaces';
5
+ export declare class PushesService extends RestfulService<Push, PushDto> {
6
+ protected axios: AxiosInstance;
7
+ protected $histories?: PushHistoriesService;
8
+ constructor(axios: AxiosInstance);
9
+ get histories(): PushHistoriesService;
10
+ send(data: PushHistoryDto, config?: RequestConfig<PushHistory>): Promise<void>;
11
+ }
@@ -0,0 +1,31 @@
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.PushesService = void 0;
13
+ const history_service_1 = require("./history.service");
14
+ const classes_1 = require("../../../common/classes");
15
+ class PushesService extends classes_1.RestfulService {
16
+ constructor(axios) {
17
+ super('pushes', 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.PushHistoriesService(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.PushesService = PushesService;
31
+ //# sourceMappingURL=pushes.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pushes.service.js","sourceRoot":"","sources":["../../../src/services/touch/pushes/pushes.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,uDAAyD;AACzD,qDAAwE;AAGxE,MAAa,aAAc,SAAQ,wBAA6B;IAG9D,YAAsB,KAAoB;QACxC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QADH,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,IAAI,SAAS;;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,MAAA,IAAI,CAAC,UAAU,mCAAI,IAAI,sCAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrF,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,sCAcC"}
@@ -1,4 +0,0 @@
1
- export declare enum ClientServiceProvider {
2
- Wenex = "wenex",
3
- Unknown = "unknown"
4
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ClientServiceProvider = void 0;
4
- var ClientServiceProvider;
5
- (function (ClientServiceProvider) {
6
- ClientServiceProvider["Wenex"] = "wenex";
7
- ClientServiceProvider["Unknown"] = "unknown";
8
- })(ClientServiceProvider || (exports.ClientServiceProvider = ClientServiceProvider = {}));
9
- //# sourceMappingURL=otp-provider.enum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"otp-provider.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/domain/clients/otp-provider.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,wCAAe,CAAA;IACf,4CAAmB,CAAA;AACrB,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC"}
@@ -1,5 +0,0 @@
1
- export declare enum ClientServiceType {
2
- SMS = "sms",
3
- Call = "call",
4
- Email = "email"
5
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ClientServiceType = void 0;
4
- var ClientServiceType;
5
- (function (ClientServiceType) {
6
- ClientServiceType["SMS"] = "sms";
7
- ClientServiceType["Call"] = "call";
8
- ClientServiceType["Email"] = "email";
9
- })(ClientServiceType || (exports.ClientServiceType = ClientServiceType = {}));
10
- //# sourceMappingURL=otp-type.enum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"otp-type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/domain/clients/otp-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,gCAAW,CAAA;IACX,kCAAa,CAAA;IACb,oCAAe,CAAA;AACjB,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.interface.js","sourceRoot":"","sources":["../../../src/common/interfaces/config/config.interface.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/interfaces/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,sDAAoC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"setting.interface.js","sourceRoot":"","sources":["../../../src/common/interfaces/config/setting.interface.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"configs.service.js","sourceRoot":"","sources":["../../src/services/config/configs.service.ts"],"names":[],"mappings":";;;AAEA,kDAAsD;AAGtD,MAAa,cAAe,SAAQ,wBAAiC;IACnE,YAAsB,KAAoB;QACxC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QADJ,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;CACF;AAJD,wCAIC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,uDAAmD;AACnD,yDAAqD;AAErD,oDAAkC;AAElC,MAAa,YAAY;IAIvB,YAAqB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE7C,IAAI,OAAO;;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,MAAA,IAAI,CAAC,QAAQ,mCAAI,IAAI,gCAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3E,CAAC;IAED,IAAI,QAAQ;;QACV,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,MAAA,IAAI,CAAC,SAAS,mCAAI,IAAI,kCAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9E,CAAC;CACF;AAbD,oCAaC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.service.js","sourceRoot":"","sources":["../../src/services/config/settings.service.ts"],"names":[],"mappings":";;;AAEA,kDAAsD;AAGtD,MAAa,eAAgB,SAAQ,wBAAmC;IACtE,YAAsB,KAAoB;QACxC,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QADL,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;CACF;AAJD,0CAIC"}
File without changes
File without changes