@wenex/sdk 0.7.2 → 0.7.4

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 (56) hide show
  1. package/common/interfaces/context/config.interface.js.map +1 -0
  2. package/common/interfaces/context/index.js.map +1 -0
  3. package/common/interfaces/context/setting.interface.js.map +1 -0
  4. package/common/interfaces/index.d.ts +1 -1
  5. package/common/interfaces/index.js +1 -1
  6. package/common/interfaces/index.js.map +1 -1
  7. package/common/interfaces/logistic/location/boundary-administrative.interface.d.ts +8 -0
  8. package/common/interfaces/logistic/location/boundary-administrative.interface.js +3 -0
  9. package/common/interfaces/logistic/location/boundary-administrative.interface.js.map +1 -0
  10. package/common/interfaces/logistic/location/index.d.ts +2 -0
  11. package/common/interfaces/logistic/location/index.js +2 -0
  12. package/common/interfaces/logistic/location/index.js.map +1 -1
  13. package/common/interfaces/logistic/location/lat-lng.interface.d.ts +5 -0
  14. package/common/interfaces/logistic/location/lat-lng.interface.js +3 -0
  15. package/common/interfaces/logistic/location/lat-lng.interface.js.map +1 -0
  16. package/index.d.ts +3 -3
  17. package/index.js +2 -2
  18. package/index.js.map +1 -1
  19. package/package.json +1 -1
  20. package/services/context/configs.service.js.map +1 -0
  21. package/services/{config → context}/index.d.ts +1 -1
  22. package/services/{config → context}/index.js +3 -3
  23. package/services/context/index.js.map +1 -0
  24. package/services/context/settings.service.js.map +1 -0
  25. package/services/index.d.ts +1 -1
  26. package/services/index.js +1 -1
  27. package/services/index.js.map +1 -1
  28. package/services/logistic/locations.service.d.ts +3 -2
  29. package/services/logistic/locations.service.js +14 -0
  30. package/services/logistic/locations.service.js.map +1 -1
  31. package/services/special/files.service.js +2 -2
  32. package/services/special/files.service.js.map +1 -1
  33. package/services/touch/mails.service.js +1 -1
  34. package/services/touch/mails.service.js.map +1 -1
  35. package/common/enums/domain/clients/otp-provider.enum.d.ts +0 -4
  36. package/common/enums/domain/clients/otp-provider.enum.js +0 -9
  37. package/common/enums/domain/clients/otp-provider.enum.js.map +0 -1
  38. package/common/enums/domain/clients/otp-type.enum.d.ts +0 -5
  39. package/common/enums/domain/clients/otp-type.enum.js +0 -10
  40. package/common/enums/domain/clients/otp-type.enum.js.map +0 -1
  41. package/common/interfaces/config/config.interface.js.map +0 -1
  42. package/common/interfaces/config/index.js.map +0 -1
  43. package/common/interfaces/config/setting.interface.js.map +0 -1
  44. package/services/config/configs.service.js.map +0 -1
  45. package/services/config/index.js.map +0 -1
  46. package/services/config/settings.service.js.map +0 -1
  47. /package/common/interfaces/{config → context}/config.interface.d.ts +0 -0
  48. /package/common/interfaces/{config → context}/config.interface.js +0 -0
  49. /package/common/interfaces/{config → context}/index.d.ts +0 -0
  50. /package/common/interfaces/{config → context}/index.js +0 -0
  51. /package/common/interfaces/{config → context}/setting.interface.d.ts +0 -0
  52. /package/common/interfaces/{config → context}/setting.interface.js +0 -0
  53. /package/services/{config → context}/configs.service.d.ts +0 -0
  54. /package/services/{config → context}/configs.service.js +0 -0
  55. /package/services/{config → context}/settings.service.d.ts +0 -0
  56. /package/services/{config → context}/settings.service.js +0 -0
@@ -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"}
@@ -0,0 +1,8 @@
1
+ export interface BoundaryAdministrative {
2
+ province: string;
3
+ county: string;
4
+ district: string;
5
+ city: string;
6
+ village?: string;
7
+ suburb?: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=boundary-administrative.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boundary-administrative.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/location/boundary-administrative.interface.ts"],"names":[],"mappings":""}
@@ -1,2 +1,4 @@
1
1
  export * from './location.interface';
2
2
  export * from './geometry.interface';
3
+ export * from './lat-lng.interface';
4
+ export * from './boundary-administrative.interface';
@@ -16,4 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./location.interface"), exports);
18
18
  __exportStar(require("./geometry.interface"), exports);
19
+ __exportStar(require("./lat-lng.interface"), exports);
20
+ __exportStar(require("./boundary-administrative.interface"), exports);
19
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/location/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/location/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,uDAAqC;AAErC,sDAAoC;AACpC,sEAAoD"}
@@ -0,0 +1,5 @@
1
+ export interface LatLng {
2
+ lat: number;
3
+ lng: number;
4
+ }
5
+ export type LatLngDto = LatLng;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=lat-lng.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lat-lng.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/location/lat-lng.interface.ts"],"names":[],"mappings":""}
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
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 {
@@ -7,8 +7,8 @@ export declare class PlatformClient {
7
7
  private $graphql;
8
8
  private $auth;
9
9
  private $touch;
10
- private $config;
11
10
  private $domain;
11
+ private $context;
12
12
  private $special;
13
13
  private $identity;
14
14
  private $logistic;
@@ -18,7 +18,7 @@ export declare class PlatformClient {
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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ACX,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.2",
3
+ "version": "0.7.4",
4
4
  "description": "Wenex SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -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,7 +2,7 @@ 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
7
  private $configs;
8
8
  private $settings;
@@ -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"}
@@ -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"}
@@ -1,7 +1,8 @@
1
1
  import type { AxiosInstance } from 'axios';
2
- import { RestfulService } from '../../common/classes';
3
- import { Location, LocationDto } from '../../common/interfaces';
2
+ import { BoundaryAdministrative, LatLng, LatLngDto, Location, LocationDto } from '../../common/interfaces';
3
+ import { RequestConfig, RestfulService } from '../../common/classes';
4
4
  export declare class LocationsService extends RestfulService<Location, LocationDto> {
5
5
  protected axios: AxiosInstance;
6
6
  constructor(axios: AxiosInstance);
7
+ locationToAddress(data: LatLngDto, config?: RequestConfig<LatLng>): Promise<BoundaryAdministrative>;
7
8
  }
@@ -1,4 +1,13 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.LocationsService = void 0;
4
13
  const classes_1 = require("../../common/classes");
@@ -7,6 +16,11 @@ class LocationsService extends classes_1.RestfulService {
7
16
  super('locations', axios);
8
17
  this.axios = axios;
9
18
  }
19
+ locationToAddress(data, config) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ return this.post(this.url('location-to-address'), data, config);
22
+ });
23
+ }
10
24
  }
11
25
  exports.LocationsService = LocationsService;
12
26
  //# sourceMappingURL=locations.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"locations.service.js","sourceRoot":"","sources":["../../src/services/logistic/locations.service.ts"],"names":[],"mappings":";;;AAEA,kDAAsD;AAGtD,MAAa,gBAAiB,SAAQ,wBAAqC;IACzE,YAAsB,KAAoB;QACxC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QADN,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;CACF;AAJD,4CAIC"}
1
+ {"version":3,"file":"locations.service.js","sourceRoot":"","sources":["../../src/services/logistic/locations.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AASA,kDAAqE;AAErE,MAAa,gBAAiB,SAAQ,wBAAqC;IACzE,YAAsB,KAAoB;QACxC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QADN,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAEK,iBAAiB,CACrB,IAAe,EACf,MAA8B;;YAE9B,OAAO,IAAI,CAAC,IAAI,CACd,IAAI,CAAC,GAAG,CAAC,qBAAqB,CAAC,EAC/B,IAAI,EACJ,MAAM,CACP,CAAC;QACJ,CAAC;KAAA;CACF;AAfD,4CAeC"}
@@ -20,7 +20,7 @@ class FilesService extends classes_1.RestfulService {
20
20
  return __awaiter(this, arguments, void 0, function* (id, config = {}, responseType = 'blob') {
21
21
  config.responseType = responseType;
22
22
  const url = this.url(`download/${id}`);
23
- return yield this.get(url, config);
23
+ return this.get(url, config);
24
24
  });
25
25
  }
26
26
  upload(items_1, scope_1) {
@@ -33,7 +33,7 @@ class FilesService extends classes_1.RestfulService {
33
33
  },
34
34
  });
35
35
  const url = this.url(`upload/${scope}`);
36
- return yield this.post(url, form, config);
36
+ return this.post(url, form, config);
37
37
  });
38
38
  }
39
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"files.service.js","sourceRoot":"","sources":["../../src/services/special/files.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,kDAAqE;AAErE,MAAa,YAAa,SAAQ,wBAA6B;IAC7D,YAAsB,KAAoB;QACxC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QADF,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAEK,QAAQ;6DACZ,EAAU,EACV,SAA8B,EAAE,EAChC,eAA6B,MAAM;YAEnC,MAAM,CAAC,YAAY,GAAG,YAAY,CAAC;YACnC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YACvC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAI,GAAG,EAAE,MAAM,CAAC,CAAC;QACxC,CAAC;KAAA;IAEK,MAAM;6DACV,KAA2C,EAC3C,KAA2B,EAC3B,SAA8B,EAAE;YAEhC,MAAM,IAAI,GAAG,IAAI,QAAQ,EAAE,CAAC;YAC5B,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YAExE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;gBACpB,OAAO,EAAE;oBACP,cAAc,EAAE,qBAAqB;iBACtC;aACF,CAAC,CAAC;YAEH,MAAM,GAAG,GAAW,IAAI,CAAC,GAAG,CAA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CACF;AAhCD,oCAgCC"}
@@ -18,7 +18,7 @@ class MailsService extends classes_1.RestfulService {
18
18
  }
19
19
  send(data, config) {
20
20
  return __awaiter(this, void 0, void 0, function* () {
21
- return yield this.post(this.url('send'), data, config);
21
+ return this.post(this.url('send'), data, config);
22
22
  });
23
23
  }
24
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mails.service.js","sourceRoot":"","sources":["../../src/services/touch/mails.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,kDAAqE;AAErE,MAAa,YAAa,SAAQ,wBAA6B;IAC7D,YAAsB,KAAoB;QACxC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QADF,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAEK,IAAI,CAAC,IAAa,EAAE,MAA4B;;YACpD,OAAO,MAAM,IAAI,CAAC,IAAI,CAA4B,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QACpF,CAAC;KAAA;CACF;AARD,oCAQC"}
1
+ {"version":3,"file":"mails.service.js","sourceRoot":"","sources":["../../src/services/touch/mails.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,kDAAqE;AAErE,MAAa,YAAa,SAAQ,wBAA6B;IAC7D,YAAsB,KAAoB;QACxC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QADF,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAEK,IAAI,CAAC,IAAa,EAAE,MAA4B;;YACpD,OAAO,IAAI,CAAC,IAAI,CAA4B,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QAC9E,CAAC;KAAA;CACF;AARD,oCAQC"}
@@ -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