@wenex/sdk 0.7.4 → 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 (52) 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/special/index.d.ts +1 -0
  8. package/common/interfaces/special/index.js +1 -0
  9. package/common/interfaces/special/index.js.map +1 -1
  10. package/common/interfaces/special/saga/history.interface.d.ts +13 -0
  11. package/common/interfaces/special/saga/history.interface.js +3 -0
  12. package/common/interfaces/special/saga/history.interface.js.map +1 -0
  13. package/common/interfaces/special/saga/index.d.ts +2 -0
  14. package/common/interfaces/special/saga/index.js +19 -0
  15. package/common/interfaces/special/saga/index.js.map +1 -0
  16. package/common/interfaces/special/saga/saga.interface.d.ts +15 -0
  17. package/common/interfaces/special/saga/saga.interface.js +3 -0
  18. package/common/interfaces/special/saga/saga.interface.js.map +1 -0
  19. package/common/interfaces/special/stat.interface.d.ts +1 -2
  20. package/index.d.ts +9 -9
  21. package/package.json +1 -1
  22. package/services/auth/index.d.ts +3 -3
  23. package/services/context/index.d.ts +2 -2
  24. package/services/domain/index.d.ts +2 -2
  25. package/services/financial/index.d.ts +4 -4
  26. package/services/general/index.d.ts +2 -2
  27. package/services/identity/index.d.ts +3 -3
  28. package/services/logistic/index.d.ts +5 -5
  29. package/services/special/index.d.ts +6 -2
  30. package/services/special/index.js +6 -0
  31. package/services/special/index.js.map +1 -1
  32. package/services/special/sagas/history.service.d.ts +7 -0
  33. package/services/special/sagas/history.service.js +12 -0
  34. package/services/special/sagas/history.service.js.map +1 -0
  35. package/services/special/sagas/index.d.ts +2 -0
  36. package/services/special/sagas/index.js +19 -0
  37. package/services/special/sagas/index.js.map +1 -0
  38. package/services/special/sagas/sagas.service.d.ts +10 -0
  39. package/services/special/sagas/sagas.service.js +17 -0
  40. package/services/special/sagas/sagas.service.js.map +1 -0
  41. package/services/touch/index.d.ts +5 -5
  42. package/services/touch/index.js +4 -4
  43. package/services/touch/index.js.map +1 -1
  44. package/services/touch/pushes/history.service.d.ts +7 -0
  45. package/services/touch/pushes/history.service.js +12 -0
  46. package/services/touch/pushes/history.service.js.map +1 -0
  47. package/services/touch/pushes/index.d.ts +2 -0
  48. package/services/touch/pushes/index.js +19 -0
  49. package/services/touch/pushes/index.js.map +1 -0
  50. package/services/touch/pushes/pushes.service.d.ts +11 -0
  51. package/services/touch/pushes/pushes.service.js +31 -0
  52. package/services/touch/pushes/pushes.service.js.map +1 -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"}
@@ -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
@@ -4,15 +4,15 @@ 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 $domain;
11
- private $context;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenex/sdk",
3
- "version": "0.7.4",
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;
@@ -4,8 +4,8 @@ import { SettingsService } from './settings.service';
4
4
  export * from './configs.service';
5
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;
@@ -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;
@@ -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"}