@wenex/sdk 0.2.6 → 0.2.7

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 (67) hide show
  1. package/common/enums/index.d.ts +1 -0
  2. package/common/enums/index.js +1 -0
  3. package/common/enums/index.js.map +1 -1
  4. package/common/enums/touch/index.d.ts +1 -0
  5. package/common/enums/touch/index.js +18 -0
  6. package/common/enums/touch/index.js.map +1 -0
  7. package/common/enums/touch/push-urgency.enum.d.ts +6 -0
  8. package/common/enums/touch/push-urgency.enum.js +11 -0
  9. package/common/enums/touch/push-urgency.enum.js.map +1 -0
  10. package/common/interfaces/common/generic.interface.d.ts +1 -0
  11. package/common/interfaces/index.d.ts +1 -0
  12. package/common/interfaces/index.js +1 -0
  13. package/common/interfaces/index.js.map +1 -1
  14. package/common/interfaces/touch/index.d.ts +2 -0
  15. package/common/interfaces/touch/index.js +19 -0
  16. package/common/interfaces/touch/index.js.map +1 -0
  17. package/common/interfaces/touch/mail/index.d.ts +2 -0
  18. package/common/interfaces/touch/mail/index.js +19 -0
  19. package/common/interfaces/touch/mail/index.js.map +1 -0
  20. package/common/interfaces/touch/mail/mail.interface.d.ts +42 -0
  21. package/common/interfaces/{domain/client/otp-service.interface.js → touch/mail/mail.interface.js} +1 -1
  22. package/common/interfaces/touch/mail/mail.interface.js.map +1 -0
  23. package/common/interfaces/touch/mail/smtp.interface.d.ts +8 -0
  24. package/common/interfaces/touch/mail/smtp.interface.js +3 -0
  25. package/common/interfaces/touch/mail/smtp.interface.js.map +1 -0
  26. package/common/interfaces/touch/push/history/history.interface.d.ts +42 -0
  27. package/common/interfaces/touch/push/history/history.interface.js +3 -0
  28. package/common/interfaces/touch/push/history/history.interface.js.map +1 -0
  29. package/common/interfaces/touch/push/history/index.d.ts +2 -0
  30. package/common/interfaces/touch/push/history/index.js +19 -0
  31. package/common/interfaces/touch/push/history/index.js.map +1 -0
  32. package/common/interfaces/touch/push/history/reply.interface.d.ts +6 -0
  33. package/common/interfaces/touch/push/history/reply.interface.js +3 -0
  34. package/common/interfaces/touch/push/history/reply.interface.js.map +1 -0
  35. package/common/interfaces/touch/push/index.d.ts +3 -0
  36. package/common/interfaces/touch/push/index.js +20 -0
  37. package/common/interfaces/touch/push/index.js.map +1 -0
  38. package/common/interfaces/touch/push/keys.interface.d.ts +6 -0
  39. package/common/interfaces/touch/push/keys.interface.js +3 -0
  40. package/common/interfaces/touch/push/keys.interface.js.map +1 -0
  41. package/common/interfaces/touch/push/push.interface.d.ts +39 -0
  42. package/common/interfaces/touch/push/push.interface.js +3 -0
  43. package/common/interfaces/touch/push/push.interface.js.map +1 -0
  44. package/index.d.ts +3 -1
  45. package/index.js +4 -0
  46. package/index.js.map +1 -1
  47. package/package.json +7 -7
  48. package/services/index.d.ts +1 -0
  49. package/services/index.js +1 -0
  50. package/services/index.js.map +1 -1
  51. package/services/touch/index.d.ts +13 -0
  52. package/services/touch/index.js +36 -0
  53. package/services/touch/index.js.map +1 -0
  54. package/services/touch/mails.service.d.ts +7 -0
  55. package/services/touch/mails.service.js +12 -0
  56. package/services/touch/mails.service.js.map +1 -0
  57. package/services/touch/push/history.service.d.ts +7 -0
  58. package/services/touch/push/history.service.js +12 -0
  59. package/services/touch/push/history.service.js.map +1 -0
  60. package/services/touch/push/index.d.ts +2 -0
  61. package/services/touch/push/index.js +19 -0
  62. package/services/touch/push/index.js.map +1 -0
  63. package/services/touch/push/push.service.d.ts +10 -0
  64. package/services/touch/push/push.service.js +17 -0
  65. package/services/touch/push/push.service.js.map +1 -0
  66. package/common/interfaces/domain/client/otp-service.interface.d.ts +0 -8
  67. package/common/interfaces/domain/client/otp-service.interface.js.map +0 -1
@@ -1,4 +1,5 @@
1
1
  export * from './auth';
2
+ export * from './touch';
2
3
  export * from './common';
3
4
  export * from './domain';
4
5
  export * from './special';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./auth"), exports);
18
+ __exportStar(require("./touch"), exports);
18
19
  __exportStar(require("./common"), exports);
19
20
  __exportStar(require("./domain"), exports);
20
21
  __exportStar(require("./special"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B"}
@@ -0,0 +1 @@
1
+ export * from './push-urgency.enum';
@@ -0,0 +1,18 @@
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("./push-urgency.enum"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/touch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
@@ -0,0 +1,6 @@
1
+ export declare enum PushUrgency {
2
+ Low = "low",
3
+ High = "high",
4
+ Normal = "normal",
5
+ VeryLow = "very-low"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PushUrgency = void 0;
4
+ var PushUrgency;
5
+ (function (PushUrgency) {
6
+ PushUrgency["Low"] = "low";
7
+ PushUrgency["High"] = "high";
8
+ PushUrgency["Normal"] = "normal";
9
+ PushUrgency["VeryLow"] = "very-low";
10
+ })(PushUrgency || (exports.PushUrgency = PushUrgency = {}));
11
+ //# sourceMappingURL=push-urgency.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"push-urgency.enum.js","sourceRoot":"","sources":["../../../src/common/enums/touch/push-urgency.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,0BAAW,CAAA;IACX,4BAAa,CAAA;IACb,gCAAiB,CAAA;IACjB,mCAAoB,CAAA;AACtB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB"}
@@ -1,3 +1,4 @@
1
+ export type Payload = Record<string, any>;
1
2
  export type Metadata = Record<string, any>;
2
3
  export type Properties = Record<string, any>;
3
4
  export type Flags = Record<string, string>;
@@ -1,5 +1,6 @@
1
1
  export * from './common';
2
2
  export * from './auth';
3
+ export * from './touch';
3
4
  export * from './config';
4
5
  export * from './domain';
5
6
  export * from './special';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./common"), exports);
18
18
  __exportStar(require("./auth"), exports);
19
+ __exportStar(require("./touch"), exports);
19
20
  __exportStar(require("./config"), exports);
20
21
  __exportStar(require("./domain"), exports);
21
22
  __exportStar(require("./special"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AAEzB,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B"}
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,6CAA2B"}
@@ -0,0 +1,2 @@
1
+ export * from './mail';
2
+ export * from './push';
@@ -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("./mail"), exports);
18
+ __exportStar(require("./push"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/interfaces/touch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB"}
@@ -0,0 +1,2 @@
1
+ export * from './mail.interface';
2
+ export * from './smtp.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("./mail.interface"), exports);
18
+ __exportStar(require("./smtp.interface"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/touch/mail/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,mDAAiC"}
@@ -0,0 +1,42 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ import type { Document } from 'mongoose';
26
+ import { MailSmtp } from './smtp.interface';
27
+ import { Core, Dto, MakeOptional } from '../../common';
28
+ export interface Mail extends Core {
29
+ to: string[];
30
+ cc?: string[];
31
+ bcc?: string[];
32
+ from: string;
33
+ subject: string;
34
+ content?: string;
35
+ date?: Date;
36
+ reply_to?: string[];
37
+ in_reply_to?: string;
38
+ attachments?: string[];
39
+ smtp?: MailSmtp;
40
+ }
41
+ export type MailDoc = Mail & Document;
42
+ export type MailDto = Dto<MakeOptional<Mail, 'from'>>;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=otp-service.interface.js.map
3
+ //# sourceMappingURL=mail.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mail.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/touch/mail/mail.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { Optional } from '../../common';
2
+ export interface MailSmtp {
3
+ identity?: string;
4
+ response?: string;
5
+ accepted?: string[];
6
+ rejected?: string[];
7
+ }
8
+ export type MailSmtpDto = Optional<MailSmtp>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=smtp.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smtp.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/touch/mail/smtp.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ import type { Document } from 'mongoose';
26
+ import { PushUrgency } from '../../../../enums';
27
+ import { Core, Dto, MakeOptional, Payload } from '../../../common';
28
+ import { PushHistoryReply, PushHistoryReplyDto } from './reply.interface';
29
+ export interface PushHistory extends Core {
30
+ to: string;
31
+ from: string;
32
+ topic?: string;
33
+ urgency?: PushUrgency;
34
+ ttl?: number;
35
+ timeout?: number;
36
+ payload: Payload;
37
+ replies: PushHistoryReply[];
38
+ }
39
+ export type PushHistoryDoc = PushHistory & Document;
40
+ export type PushHistoryDto = Dto<MakeOptional<Omit<PushHistory, 'replies'>, 'from'>> & {
41
+ replies?: PushHistoryReplyDto[];
42
+ };
@@ -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/touch/push/history/history.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './reply.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("./reply.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/touch/push/history/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,sDAAoC"}
@@ -0,0 +1,6 @@
1
+ import { Core, Dto } from '../../../common';
2
+ export interface PushHistoryReply extends Core {
3
+ identity: string;
4
+ status: number;
5
+ }
6
+ export type PushHistoryReplyDto = Dto<PushHistoryReply>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=reply.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reply.interface.js","sourceRoot":"","sources":["../../../../../src/common/interfaces/touch/push/history/reply.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from './history';
2
+ export * from './push.interface';
3
+ export * from './keys.interface';
@@ -0,0 +1,20 @@
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("./history"), exports);
18
+ __exportStar(require("./push.interface"), exports);
19
+ __exportStar(require("./keys.interface"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/touch/push/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAE1B,mDAAiC;AACjC,mDAAiC"}
@@ -0,0 +1,6 @@
1
+ import { Required } from '../../common';
2
+ export interface PushKeys {
3
+ auth: string;
4
+ p256dh: string;
5
+ }
6
+ export type PushKeysDto = Required<PushKeys>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=keys.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keys.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/touch/push/keys.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ import type { Document } from 'mongoose';
26
+ import { PushKeys } from './keys.interface';
27
+ import { Core, Dto, MakeOptional } from '../../common';
28
+ export interface Push extends Core {
29
+ domain: string;
30
+ session: string;
31
+ identity: string;
32
+ keys: PushKeys;
33
+ endpoint: string;
34
+ blacklisted?: string[];
35
+ whitelisted?: string[];
36
+ expiration_time: number;
37
+ }
38
+ export type PushDoc = Push & Document;
39
+ export type PushDto = Dto<MakeOptional<Push, 'domain' | 'session' | 'identity'>>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=push.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"push.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/touch/push/push.interface.ts"],"names":[],"mappings":""}
package/index.d.ts CHANGED
@@ -1,11 +1,12 @@
1
1
  import type { AxiosInstance } from 'axios';
2
- import { AuthClient, ConfigClient, DomainClient, IdentityClient, SpecialClient } from './services';
2
+ import { AuthClient, ConfigClient, DomainClient, IdentityClient, SpecialClient, TouchClient } 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
7
  private $graphql;
8
8
  private $auth;
9
+ private $touch;
9
10
  private $config;
10
11
  private $domain;
11
12
  private $special;
@@ -13,6 +14,7 @@ export declare class PlatformClient {
13
14
  constructor(axios: AxiosInstance);
14
15
  get graphql(): GraphqlService;
15
16
  get auth(): AuthClient;
17
+ get touch(): TouchClient;
16
18
  get domain(): DomainClient;
17
19
  get config(): ConfigClient;
18
20
  get special(): SpecialClient;
package/index.js CHANGED
@@ -30,6 +30,10 @@ class PlatformClient {
30
30
  var _a;
31
31
  return (this.$auth = (_a = this.$auth) !== null && _a !== void 0 ? _a : new services_1.AuthClient(this.axios));
32
32
  }
33
+ get touch() {
34
+ var _a;
35
+ return (this.$touch = (_a = this.$touch) !== null && _a !== void 0 ? _a : new services_1.TouchClient(this.axios));
36
+ }
33
37
  get domain() {
34
38
  var _a;
35
39
  return (this.$domain = (_a = this.$domain) !== null && _a !== void 0 ? _a : new services_1.DomainClient(this.axios));
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,yCAMoB;AACpB,8CAAkD;AAElD,6CAA2B;AAE3B,MAAa,cAAc;IASzB,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,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;CACF;AAlCD,wCAkCC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,yCAOoB;AACpB,8CAAkD;AAElD,6CAA2B;AAE3B,MAAa,cAAc;IAUzB,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;CACF;AAvCD,wCAuCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenex/sdk",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Wenex SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -37,22 +37,22 @@
37
37
  "devDependencies": {
38
38
  "@types/debug": "^4.1.12",
39
39
  "@types/jest": "^29.5.11",
40
- "@types/node": "^20.10.5",
41
- "@typescript-eslint/eslint-plugin": "^6.15.0",
42
- "@typescript-eslint/parser": "^6.15.0",
40
+ "@types/node": "^20.11.0",
41
+ "@typescript-eslint/eslint-plugin": "^6.18.1",
42
+ "@typescript-eslint/parser": "^6.18.1",
43
43
  "dotenv": "^16.3.1",
44
44
  "eslint": "^8.56.0",
45
45
  "eslint-config-prettier": "^9.1.0",
46
- "eslint-plugin-prettier": "^5.0.1",
46
+ "eslint-plugin-prettier": "^5.1.3",
47
47
  "jest": "^29.7.0",
48
48
  "jshint": "^2.13.6",
49
49
  "make-coverage-badge": "^1.2.0",
50
- "prettier": "^3.1.1",
50
+ "prettier": "^3.2.2",
51
51
  "rimraf": "^5.0.5",
52
52
  "ts-jest": "^29.1.1",
53
53
  "ts-node": "^10.9.2",
54
54
  "tsconfig-paths": "^4.2.0",
55
- "typedoc": "^0.25.4",
55
+ "typedoc": "^0.25.7",
56
56
  "typescript": "^5.3.3"
57
57
  },
58
58
  "files": [
@@ -1,4 +1,5 @@
1
1
  export * from './auth';
2
+ export * from './touch';
2
3
  export * from './domain';
3
4
  export * from './config';
4
5
  export * from './special';
package/services/index.js CHANGED
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./auth"), exports);
18
+ __exportStar(require("./touch"), exports);
18
19
  __exportStar(require("./domain"), exports);
19
20
  __exportStar(require("./config"), exports);
20
21
  __exportStar(require("./special"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B"}
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,6CAA2B"}
@@ -0,0 +1,13 @@
1
+ import { AxiosInstance } from 'axios';
2
+ import { MailsService } from './mails.service';
3
+ import { PushService } from './push';
4
+ export * from './mails.service';
5
+ export * from './push/push.service';
6
+ export declare class TouchClient {
7
+ readonly axios: AxiosInstance;
8
+ private $push;
9
+ private $mails;
10
+ constructor(axios: AxiosInstance);
11
+ get mails(): MailsService;
12
+ get push(): PushService;
13
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.TouchClient = void 0;
18
+ const mails_service_1 = require("./mails.service");
19
+ const push_1 = require("./push");
20
+ __exportStar(require("./mails.service"), exports);
21
+ __exportStar(require("./push/push.service"), exports);
22
+ class TouchClient {
23
+ constructor(axios) {
24
+ this.axios = axios;
25
+ }
26
+ get mails() {
27
+ var _a;
28
+ return (this.$mails = (_a = this.$mails) !== null && _a !== void 0 ? _a : new mails_service_1.MailsService(this.axios));
29
+ }
30
+ get push() {
31
+ var _a;
32
+ return (this.$push = (_a = this.$push) !== null && _a !== void 0 ? _a : new push_1.PushService(this.axios));
33
+ }
34
+ }
35
+ exports.TouchClient = TouchClient;
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/touch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,mDAA+C;AAC/C,iCAAqC;AAErC,kDAAgC;AAChC,sDAAoC;AAEpC,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"}
@@ -0,0 +1,7 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ import { RestfulService } from '../../common/classes';
3
+ import { Mail, MailDto } from '../../common/interfaces';
4
+ export declare class MailsService extends RestfulService<Mail, MailDto> {
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.MailsService = void 0;
4
+ const classes_1 = require("../../common/classes");
5
+ class MailsService extends classes_1.RestfulService {
6
+ constructor(axios) {
7
+ super('mails', axios);
8
+ this.axios = axios;
9
+ }
10
+ }
11
+ exports.MailsService = MailsService;
12
+ //# sourceMappingURL=mails.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mails.service.js","sourceRoot":"","sources":["../../src/services/touch/mails.service.ts"],"names":[],"mappings":";;;AAEA,kDAAsD;AAGtD,MAAa,YAAa,SAAQ,wBAA6B;IAC7D,YAAsB,KAAoB;QACxC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QADF,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;CACF;AAJD,oCAIC"}
@@ -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 PushHistoryService 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.PushHistoryService = void 0;
4
+ const classes_1 = require("../../../common/classes");
5
+ class PushHistoryService extends classes_1.RestfulService {
6
+ constructor(axios) {
7
+ super('push-histories', axios);
8
+ this.axios = axios;
9
+ }
10
+ }
11
+ exports.PushHistoryService = PushHistoryService;
12
+ //# sourceMappingURL=history.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history.service.js","sourceRoot":"","sources":["../../../src/services/touch/push/history.service.ts"],"names":[],"mappings":";;;AAEA,qDAAyD;AAGzD,MAAa,kBAAmB,SAAQ,wBAA2C;IACjF,YAAsB,KAAoB;QACxC,KAAK,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;QADX,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;CACF;AAJD,gDAIC"}
@@ -0,0 +1,2 @@
1
+ export * from './push.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("./push.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/push/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,oDAAkC"}
@@ -0,0 +1,10 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ import { PushHistoryService } from './history.service';
3
+ import { RestfulService } from '../../../common/classes';
4
+ import { Push, PushDto } from '../../../common/interfaces';
5
+ export declare class PushService extends RestfulService<Push, PushDto> {
6
+ protected axios: AxiosInstance;
7
+ private $histories;
8
+ constructor(axios: AxiosInstance);
9
+ get histories(): PushHistoryService;
10
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PushService = void 0;
4
+ const history_service_1 = require("./history.service");
5
+ const classes_1 = require("../../../common/classes");
6
+ class PushService extends classes_1.RestfulService {
7
+ constructor(axios) {
8
+ super('push', 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.PushHistoryService(this.axios));
14
+ }
15
+ }
16
+ exports.PushService = PushService;
17
+ //# sourceMappingURL=push.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"push.service.js","sourceRoot":"","sources":["../../../src/services/touch/push/push.service.ts"],"names":[],"mappings":";;;AAEA,uDAAuD;AACvD,qDAAyD;AAGzD,MAAa,WAAY,SAAQ,wBAA6B;IAG5D,YAAsB,KAAoB;QACxC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QADD,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,IAAI,SAAS;;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,MAAA,IAAI,CAAC,UAAU,mCAAI,IAAI,oCAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACnF,CAAC;CACF;AAVD,kCAUC"}
@@ -1,8 +0,0 @@
1
- import { ClientOtpProvider, ClientOtpType } from '../../../enums';
2
- import { Core, Dto, MakeOptional, Properties } from '../../common';
3
- export interface ClientOtpService extends Core {
4
- type: ClientOtpType;
5
- config: Properties;
6
- provider: ClientOtpProvider;
7
- }
8
- export type ClientOtpServiceDto = Dto<MakeOptional<ClientOtpService, 'provider'>>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"otp-service.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/domain/client/otp-service.interface.ts"],"names":[],"mappings":""}