@wenex/sdk 1.1.7 → 1.1.9

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 (105) hide show
  1. package/common/core/action.d.ts +4 -0
  2. package/common/core/action.js +4 -0
  3. package/common/core/action.js.map +1 -1
  4. package/common/core/collection.d.ts +4 -3
  5. package/common/core/collection.js.map +1 -1
  6. package/common/core/enums/collection.enum.d.ts +6 -1
  7. package/common/core/enums/collection.enum.js +6 -0
  8. package/common/core/enums/collection.enum.js.map +1 -1
  9. package/common/core/resource.d.ts +19 -0
  10. package/common/core/resource.js +22 -0
  11. package/common/core/resource.js.map +1 -1
  12. package/common/core/scope.d.ts +67 -0
  13. package/common/core/scope.js +70 -0
  14. package/common/core/scope.js.map +1 -1
  15. package/common/core/stat.d.ts +49 -0
  16. package/common/core/stat.js +52 -0
  17. package/common/core/stat.js.map +1 -1
  18. package/common/enums/conjoint/accounts/index.d.ts +1 -0
  19. package/common/enums/conjoint/accounts/index.js +18 -0
  20. package/common/enums/conjoint/accounts/index.js.map +1 -0
  21. package/common/enums/conjoint/accounts/type.enum.d.ts +4 -0
  22. package/common/enums/conjoint/accounts/type.enum.js +9 -0
  23. package/common/enums/conjoint/accounts/type.enum.js.map +1 -0
  24. package/common/enums/conjoint/channels/index.d.ts +2 -0
  25. package/common/enums/conjoint/channels/index.js +19 -0
  26. package/common/enums/conjoint/channels/index.js.map +1 -0
  27. package/common/enums/conjoint/channels/scope.enum.d.ts +5 -0
  28. package/common/enums/conjoint/channels/scope.enum.js +10 -0
  29. package/common/enums/conjoint/channels/scope.enum.js.map +1 -0
  30. package/common/enums/conjoint/channels/type.enum.d.ts +5 -0
  31. package/common/enums/conjoint/channels/type.enum.js +10 -0
  32. package/common/enums/conjoint/channels/type.enum.js.map +1 -0
  33. package/common/enums/conjoint/contacts/index.d.ts +1 -0
  34. package/common/enums/conjoint/contacts/index.js +18 -0
  35. package/common/enums/conjoint/contacts/index.js.map +1 -0
  36. package/common/enums/conjoint/contacts/type.enum.d.ts +6 -0
  37. package/common/enums/conjoint/contacts/type.enum.js +11 -0
  38. package/common/enums/conjoint/contacts/type.enum.js.map +1 -0
  39. package/common/enums/conjoint/index.d.ts +4 -0
  40. package/common/enums/conjoint/index.js +21 -0
  41. package/common/enums/conjoint/index.js.map +1 -0
  42. package/common/enums/conjoint/messages/index.d.ts +1 -0
  43. package/common/enums/conjoint/messages/index.js +18 -0
  44. package/common/enums/conjoint/messages/index.js.map +1 -0
  45. package/common/enums/conjoint/messages/type.enum.d.ts +14 -0
  46. package/common/enums/conjoint/messages/type.enum.js +19 -0
  47. package/common/enums/conjoint/messages/type.enum.js.map +1 -0
  48. package/common/interfaces/conjoint/accounts/account.interface.d.ts +11 -0
  49. package/common/interfaces/conjoint/accounts/account.interface.js +3 -0
  50. package/common/interfaces/conjoint/accounts/account.interface.js.map +1 -0
  51. package/common/interfaces/conjoint/accounts/index.d.ts +1 -0
  52. package/common/interfaces/conjoint/accounts/index.js +18 -0
  53. package/common/interfaces/conjoint/accounts/index.js.map +1 -0
  54. package/common/interfaces/conjoint/channels/channel.interface.d.ts +16 -0
  55. package/common/interfaces/conjoint/channels/channel.interface.js +3 -0
  56. package/common/interfaces/conjoint/channels/channel.interface.js.map +1 -0
  57. package/common/interfaces/conjoint/channels/index.d.ts +1 -0
  58. package/common/interfaces/conjoint/channels/index.js +18 -0
  59. package/common/interfaces/conjoint/channels/index.js.map +1 -0
  60. package/common/interfaces/conjoint/contacts/contact.interface.d.ts +12 -0
  61. package/common/interfaces/conjoint/contacts/contact.interface.js +3 -0
  62. package/common/interfaces/conjoint/contacts/contact.interface.js.map +1 -0
  63. package/common/interfaces/conjoint/contacts/index.d.ts +1 -0
  64. package/common/interfaces/conjoint/contacts/index.js +18 -0
  65. package/common/interfaces/conjoint/contacts/index.js.map +1 -0
  66. package/common/interfaces/conjoint/index.d.ts +5 -0
  67. package/common/interfaces/conjoint/index.js +22 -0
  68. package/common/interfaces/conjoint/index.js.map +1 -0
  69. package/common/interfaces/conjoint/members/index.d.ts +1 -0
  70. package/common/interfaces/conjoint/members/index.js +18 -0
  71. package/common/interfaces/conjoint/members/index.js.map +1 -0
  72. package/common/interfaces/conjoint/members/member.interface.d.ts +10 -0
  73. package/common/interfaces/conjoint/members/member.interface.js +3 -0
  74. package/common/interfaces/conjoint/members/member.interface.js.map +1 -0
  75. package/common/interfaces/conjoint/messages/index.d.ts +1 -0
  76. package/common/interfaces/conjoint/messages/index.js +18 -0
  77. package/common/interfaces/conjoint/messages/index.js.map +1 -0
  78. package/common/interfaces/conjoint/messages/message.interface.d.ts +23 -0
  79. package/common/interfaces/conjoint/messages/message.interface.js +3 -0
  80. package/common/interfaces/conjoint/messages/message.interface.js.map +1 -0
  81. package/index.d.ts +24 -22
  82. package/index.js +14 -11
  83. package/index.js.map +1 -1
  84. package/package.json +1 -1
  85. package/services/conjoint/accounts.service.d.ts +8 -0
  86. package/services/conjoint/accounts.service.js +15 -0
  87. package/services/conjoint/accounts.service.js.map +1 -0
  88. package/services/conjoint/channels.service.d.ts +8 -0
  89. package/services/conjoint/channels.service.js +15 -0
  90. package/services/conjoint/channels.service.js.map +1 -0
  91. package/services/conjoint/contacts.service.d.ts +8 -0
  92. package/services/conjoint/contacts.service.js +15 -0
  93. package/services/conjoint/contacts.service.js.map +1 -0
  94. package/services/conjoint/index.d.ts +26 -0
  95. package/services/conjoint/index.js +52 -0
  96. package/services/conjoint/index.js.map +1 -0
  97. package/services/conjoint/members.service.d.ts +8 -0
  98. package/services/conjoint/members.service.js +15 -0
  99. package/services/conjoint/members.service.js.map +1 -0
  100. package/services/conjoint/messages.service.d.ts +8 -0
  101. package/services/conjoint/messages.service.js +15 -0
  102. package/services/conjoint/messages.service.js.map +1 -0
  103. package/services/index.d.ts +12 -11
  104. package/services/index.js +35 -14
  105. package/services/index.js.map +1 -1
@@ -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("./scope.enum"), exports);
18
+ __exportStar(require("./type.enum"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/conjoint/channels/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,8CAA4B"}
@@ -0,0 +1,5 @@
1
+ export declare enum ChannelScope {
2
+ PUBLIC = "PUBLIC",
3
+ PRIVATE = "PRIVATE",
4
+ PROTECTED = "PROTECTED"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChannelScope = void 0;
4
+ var ChannelScope;
5
+ (function (ChannelScope) {
6
+ ChannelScope["PUBLIC"] = "PUBLIC";
7
+ ChannelScope["PRIVATE"] = "PRIVATE";
8
+ ChannelScope["PROTECTED"] = "PROTECTED";
9
+ })(ChannelScope || (exports.ChannelScope = ChannelScope = {}));
10
+ //# sourceMappingURL=scope.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scope.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/conjoint/channels/scope.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,uCAAuB,CAAA;AACzB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
@@ -0,0 +1,5 @@
1
+ export declare enum ChannelType {
2
+ GROUP = "GROUP",
3
+ BROADCAST = "BROADCAST",
4
+ CONVERSATION = "CONVERSATION"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChannelType = void 0;
4
+ var ChannelType;
5
+ (function (ChannelType) {
6
+ ChannelType["GROUP"] = "GROUP";
7
+ ChannelType["BROADCAST"] = "BROADCAST";
8
+ ChannelType["CONVERSATION"] = "CONVERSATION";
9
+ })(ChannelType || (exports.ChannelType = ChannelType = {}));
10
+ //# sourceMappingURL=type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/conjoint/channels/type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,sCAAuB,CAAA;IACvB,4CAA6B,CAAA;AAC/B,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB"}
@@ -0,0 +1 @@
1
+ export * from './type.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("./type.enum"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/conjoint/contacts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
@@ -0,0 +1,6 @@
1
+ export declare enum ContactType {
2
+ MAIN = "MAIN",
3
+ HOME = "HOME",
4
+ WORK = "WORK",
5
+ OTHER = "OTHER"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContactType = void 0;
4
+ var ContactType;
5
+ (function (ContactType) {
6
+ ContactType["MAIN"] = "MAIN";
7
+ ContactType["HOME"] = "HOME";
8
+ ContactType["WORK"] = "WORK";
9
+ ContactType["OTHER"] = "OTHER";
10
+ })(ContactType || (exports.ContactType = ContactType = {}));
11
+ //# sourceMappingURL=type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/conjoint/contacts/type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,4BAAa,CAAA;IACb,4BAAa,CAAA;IACb,8BAAe,CAAA;AACjB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB"}
@@ -0,0 +1,4 @@
1
+ export * from './accounts';
2
+ export * from './channels';
3
+ export * from './contacts';
4
+ export * from './messages';
@@ -0,0 +1,21 @@
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("./accounts"), exports);
18
+ __exportStar(require("./channels"), exports);
19
+ __exportStar(require("./contacts"), exports);
20
+ __exportStar(require("./messages"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/conjoint/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B;AAC3B,6CAA2B;AAC3B,6CAA2B"}
@@ -0,0 +1 @@
1
+ export * from './type.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("./type.enum"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/conjoint/messages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
@@ -0,0 +1,14 @@
1
+ export declare enum MessageType {
2
+ TEXT = "TEXT",
3
+ FILE = "FILE",
4
+ PULL = "PULL",
5
+ IMAGE = "IMAGE",
6
+ VIDEO = "VIDEO",
7
+ AUDIO = "AUDIO",
8
+ STICKER = "STICKER",
9
+ GALLERY = "GALLERY",
10
+ CONTACT = "CONTACT",
11
+ COMMAND = "COMMAND",
12
+ DOCUMENT = "DOCUMENT",
13
+ LOCATION = "LOCATION"
14
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MessageType = void 0;
4
+ var MessageType;
5
+ (function (MessageType) {
6
+ MessageType["TEXT"] = "TEXT";
7
+ MessageType["FILE"] = "FILE";
8
+ MessageType["PULL"] = "PULL";
9
+ MessageType["IMAGE"] = "IMAGE";
10
+ MessageType["VIDEO"] = "VIDEO";
11
+ MessageType["AUDIO"] = "AUDIO";
12
+ MessageType["STICKER"] = "STICKER";
13
+ MessageType["GALLERY"] = "GALLERY";
14
+ MessageType["CONTACT"] = "CONTACT";
15
+ MessageType["COMMAND"] = "COMMAND";
16
+ MessageType["DOCUMENT"] = "DOCUMENT";
17
+ MessageType["LOCATION"] = "LOCATION";
18
+ })(MessageType || (exports.MessageType = MessageType = {}));
19
+ //# sourceMappingURL=type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/conjoint/messages/type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAaX;AAbD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,4BAAa,CAAA;IACb,4BAAa,CAAA;IACb,8BAAe,CAAA;IACf,8BAAe,CAAA;IACf,8BAAe,CAAA;IACf,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;IACnB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;AACvB,CAAC,EAbW,WAAW,2BAAX,WAAW,QAatB"}
@@ -0,0 +1,11 @@
1
+ import type { Document } from 'mongoose';
2
+ import { Core, Dto } from '../../../core/interfaces';
3
+ import { AccountType } from '../../../enums/conjoint';
4
+ export interface Account<Properties extends object = object> extends Core<Properties> {
5
+ type: AccountType;
6
+ profile?: string;
7
+ bio?: string;
8
+ status?: string;
9
+ }
10
+ export type AccountDoc<Properties extends object = object> = Account<Properties> & Document;
11
+ export type AccountDto<Properties extends object = object> = Dto<Account<Properties>>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=account.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/conjoint/accounts/account.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './account.interface';
@@ -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("./account.interface"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/conjoint/accounts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
@@ -0,0 +1,16 @@
1
+ import type { Document } from 'mongoose';
2
+ import { State, Status } from '../../../core/enums';
3
+ import { Core, Dto } from '../../../core/interfaces';
4
+ import { ChannelScope, ChannelType } from '../../../enums/conjoint';
5
+ export interface Channel<Properties extends object = object> extends Core<Properties> {
6
+ type: ChannelType;
7
+ scope: ChannelScope;
8
+ name: string;
9
+ title?: string;
10
+ state?: State;
11
+ status?: Status;
12
+ profile?: string;
13
+ pinned_messages?: string[];
14
+ }
15
+ export type ChannelDoc<Properties extends object = object> = Channel<Properties> & Document;
16
+ export type ChannelDto<Properties extends object = object> = Dto<Channel<Properties>>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=channel.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/conjoint/channels/channel.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './channel.interface';
@@ -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("./channel.interface"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/conjoint/channels/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
@@ -0,0 +1,12 @@
1
+ import type { Document } from 'mongoose';
2
+ import { Core, Dto } from '../../../core/interfaces';
3
+ import { ContactType } from '../../../enums/conjoint';
4
+ export interface Contact<Properties extends object = object> extends Core<Properties> {
5
+ type: ContactType;
6
+ phone?: string;
7
+ email?: string;
8
+ account?: string;
9
+ nickname?: string;
10
+ }
11
+ export type ContactDoc<Properties extends object = object> = Contact<Properties> & Document;
12
+ export type ContactDto<Properties extends object = object> = Dto<Contact<Properties>>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=contact.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/conjoint/contacts/contact.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './contact.interface';
@@ -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("./contact.interface"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/conjoint/contacts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
@@ -0,0 +1,5 @@
1
+ export * from './accounts';
2
+ export * from './channels';
3
+ export * from './contacts';
4
+ export * from './members';
5
+ export * from './messages';
@@ -0,0 +1,22 @@
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("./accounts"), exports);
18
+ __exportStar(require("./channels"), exports);
19
+ __exportStar(require("./contacts"), exports);
20
+ __exportStar(require("./members"), exports);
21
+ __exportStar(require("./messages"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/interfaces/conjoint/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B;AAC3B,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B"}
@@ -0,0 +1 @@
1
+ export * from './member.interface';
@@ -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("./member.interface"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/conjoint/members/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
@@ -0,0 +1,10 @@
1
+ import type { Document } from 'mongoose';
2
+ import { Core, Dto } from '../../../core/interfaces';
3
+ export interface Member<Properties extends object = object> extends Core<Properties> {
4
+ channel: string;
5
+ account: string;
6
+ role?: string;
7
+ permissions?: string[];
8
+ }
9
+ export type MemberDoc<Properties extends object = object> = Member<Properties> & Document;
10
+ export type MemberDto<Properties extends object = object> = Dto<Member<Properties>>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=member.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"member.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/conjoint/members/member.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './message.interface';
@@ -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("./message.interface"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/conjoint/messages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
@@ -0,0 +1,23 @@
1
+ import type { Document } from 'mongoose';
2
+ import { MessageType } from '../../../enums/conjoint';
3
+ import { Core, Dto, Reaction } from '../../../core/interfaces';
4
+ export interface Message<T = any, Properties extends object = object> extends Core<Properties> {
5
+ type: MessageType;
6
+ content: T;
7
+ caption?: string;
8
+ channel?: string;
9
+ account?: string;
10
+ mentions?: string[];
11
+ hashtags?: string[];
12
+ reply_to?: string;
13
+ edited_at?: Date;
14
+ delivered_at?: Date;
15
+ scheduled_at?: Date;
16
+ views?: number;
17
+ visited_at?: Date;
18
+ originate_from?: string;
19
+ forwarded_from?: string;
20
+ reactions?: Reaction[];
21
+ }
22
+ export type MessageDoc<T = any, Properties extends object = object> = Message<T, Properties> & Document;
23
+ export type MessageDto<T = any, Properties extends object = object> = Dto<Message<T, Properties>>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=message.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/conjoint/messages/message.interface.ts"],"names":[],"mappings":""}
package/index.d.ts CHANGED
@@ -5,29 +5,31 @@ export * from './services';
5
5
  export declare class Platform<Properties extends object = object> {
6
6
  readonly axios: AxiosInstance;
7
7
  protected _graphql?: GraphqlService;
8
- protected _auth?: Services.AuthClient<Properties>;
9
- protected _context?: Services.ContextClient<Properties>;
10
- protected _domain?: Services.DomainClient<Properties>;
11
- protected _essential?: Services.EssentialClient<Properties>;
12
- protected _financial?: Services.FinancialClient<Properties>;
13
- protected _general?: Services.GeneralClient<Properties>;
14
- protected _identity?: Services.IdentityClient<Properties>;
15
- protected _special?: Services.SpecialClient<Properties>;
16
- protected _touch?: Services.TouchClient<Properties>;
17
- protected _content?: Services.ContentClient<Properties>;
18
- protected _logistic?: Services.LogisticClient<Properties>;
8
+ protected _auth?: Services.Auth.AuthClient<Properties>;
9
+ protected _context?: Services.Context.ContextClient<Properties>;
10
+ protected _domain?: Services.Domain.DomainClient<Properties>;
11
+ protected _essential?: Services.Essential.EssentialClient<Properties>;
12
+ protected _financial?: Services.Financial.FinancialClient<Properties>;
13
+ protected _general?: Services.General.GeneralClient<Properties>;
14
+ protected _identity?: Services.Identity.IdentityClient<Properties>;
15
+ protected _special?: Services.Special.SpecialClient<Properties>;
16
+ protected _touch?: Services.Touch.TouchClient<Properties>;
17
+ protected _content?: Services.Content.ContentClient<Properties>;
18
+ protected _logistic?: Services.Logistic.LogisticClient<Properties>;
19
+ protected _conjoint?: Services.Conjoint.ConjointClient<Properties>;
19
20
  constructor(axios: AxiosInstance);
20
- get auth(): Services.AuthClient<Properties>;
21
- get context(): Services.ContextClient<Properties>;
22
- get domain(): Services.DomainClient<Properties>;
23
- get essential(): Services.EssentialClient<Properties>;
24
- get financial(): Services.FinancialClient<Properties>;
25
- get general(): Services.GeneralClient<Properties>;
26
- get identity(): Services.IdentityClient<Properties>;
27
- get special(): Services.SpecialClient<Properties>;
28
- get touch(): Services.TouchClient<Properties>;
29
- get content(): Services.ContentClient<Properties>;
30
- get logistic(): Services.LogisticClient<Properties>;
21
+ get auth(): Services.Auth.AuthClient<Properties>;
22
+ get context(): Services.Context.ContextClient<Properties>;
23
+ get domain(): Services.Domain.DomainClient<Properties>;
24
+ get essential(): Services.Essential.EssentialClient<Properties>;
25
+ get financial(): Services.Financial.FinancialClient<Properties>;
26
+ get general(): Services.General.GeneralClient<Properties>;
27
+ get identity(): Services.Identity.IdentityClient<Properties>;
28
+ get special(): Services.Special.SpecialClient<Properties>;
29
+ get touch(): Services.Touch.TouchClient<Properties>;
30
+ get content(): Services.Content.ContentClient<Properties>;
31
+ get logistic(): Services.Logistic.LogisticClient<Properties>;
32
+ get conjoint(): Services.Conjoint.ConjointClient<Properties>;
31
33
  get graphql(): GraphqlService;
32
34
  static build<Properties extends object = object>(axios: AxiosInstance): Platform<Properties>;
33
35
  }
package/index.js CHANGED
@@ -45,37 +45,40 @@ class Platform {
45
45
  this.axios = axios;
46
46
  }
47
47
  get auth() {
48
- return (this._auth = this._auth ?? Services.AuthClient.build(this.axios));
48
+ return (this._auth = this._auth ?? Services.Auth.AuthClient.build(this.axios));
49
49
  }
50
50
  get context() {
51
- return (this._context = this._context ?? Services.ContextClient.build(this.axios));
51
+ return (this._context = this._context ?? Services.Context.ContextClient.build(this.axios));
52
52
  }
53
53
  get domain() {
54
- return (this._domain = this._domain ?? Services.DomainClient.build(this.axios));
54
+ return (this._domain = this._domain ?? Services.Domain.DomainClient.build(this.axios));
55
55
  }
56
56
  get essential() {
57
- return (this._essential = this._essential ?? Services.EssentialClient.build(this.axios));
57
+ return (this._essential = this._essential ?? Services.Essential.EssentialClient.build(this.axios));
58
58
  }
59
59
  get financial() {
60
- return (this._financial = this._financial ?? Services.FinancialClient.build(this.axios));
60
+ return (this._financial = this._financial ?? Services.Financial.FinancialClient.build(this.axios));
61
61
  }
62
62
  get general() {
63
- return (this._general = this._general ?? Services.GeneralClient.build(this.axios));
63
+ return (this._general = this._general ?? Services.General.GeneralClient.build(this.axios));
64
64
  }
65
65
  get identity() {
66
- return (this._identity = this._identity ?? Services.IdentityClient.build(this.axios));
66
+ return (this._identity = this._identity ?? Services.Identity.IdentityClient.build(this.axios));
67
67
  }
68
68
  get special() {
69
- return (this._special = this._special ?? Services.SpecialClient.build(this.axios));
69
+ return (this._special = this._special ?? Services.Special.SpecialClient.build(this.axios));
70
70
  }
71
71
  get touch() {
72
- return (this._touch = this._touch ?? Services.TouchClient.build(this.axios));
72
+ return (this._touch = this._touch ?? Services.Touch.TouchClient.build(this.axios));
73
73
  }
74
74
  get content() {
75
- return (this._content = this._content ?? Services.ContentClient.build(this.axios));
75
+ return (this._content = this._content ?? Services.Content.ContentClient.build(this.axios));
76
76
  }
77
77
  get logistic() {
78
- return (this._logistic = this._logistic ?? Services.LogisticClient.build(this.axios));
78
+ return (this._logistic = this._logistic ?? Services.Logistic.LogisticClient.build(this.axios));
79
+ }
80
+ get conjoint() {
81
+ return (this._conjoint = this._conjoint ?? Services.Conjoint.ConjointClient.build(this.axios));
79
82
  }
80
83
  get graphql() {
81
84
  return (this._graphql = this._graphql ?? classes_1.GraphqlService.build(this.axios));