@wenex/sdk 1.1.21 → 1.1.23
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.
- package/common/core/interfaces/core.interface.d.ts +1 -0
- package/common/interfaces/content/notes/note.interface.d.ts +1 -1
- package/common/interfaces/context/configs/config.interface.d.ts +1 -1
- package/common/interfaces/general/events/event.interface.d.ts +0 -1
- package/common/interfaces/general/workflows/workflow.interface.d.ts +1 -2
- package/common/interfaces/identity/profiles/profile.interface.d.ts +1 -1
- package/common/interfaces/logistic/locations/location.interface.d.ts +2 -0
- package/common/interfaces/touch/emails/smtp.interface.d.ts +6 -4
- package/common/interfaces/touch/pushes/push.interface.d.ts +0 -1
- package/package.json +1 -1
- package/services/conjoint/index.d.ts +5 -5
- package/services/conjoint/index.js +5 -5
- package/services/conjoint/index.js.map +1 -1
|
@@ -3,7 +3,7 @@ import { ConfigKey } from '../../../enums/context';
|
|
|
3
3
|
import { Core, Dto } from '../../../core/interfaces';
|
|
4
4
|
export interface Config<T = any, Properties extends object = object> extends Core<Properties> {
|
|
5
5
|
key: ConfigKey;
|
|
6
|
-
|
|
6
|
+
eid: string;
|
|
7
7
|
value?: T;
|
|
8
8
|
}
|
|
9
9
|
export type ConfigDoc<T = any, Properties extends object = object> = Config<T, Properties> & Document;
|
|
@@ -3,8 +3,7 @@ import { WorkflowToken } from './token.interface';
|
|
|
3
3
|
import { Core, Dto } from '../../../core/interfaces';
|
|
4
4
|
import { WorkflowStatus } from '../../../enums/general';
|
|
5
5
|
export interface Workflow<D = any, V = any, Properties extends object = object> extends Core<Properties> {
|
|
6
|
-
|
|
7
|
-
identity: string;
|
|
6
|
+
name: string;
|
|
8
7
|
status: WorkflowStatus;
|
|
9
8
|
tokens: WorkflowToken<V>[];
|
|
10
9
|
data?: D;
|
|
@@ -13,8 +13,8 @@ export interface Profile<Properties extends object = object> extends Core<Proper
|
|
|
13
13
|
last_name?: string;
|
|
14
14
|
first_name?: string;
|
|
15
15
|
middle_name?: string;
|
|
16
|
-
identity?: string;
|
|
17
16
|
nationality?: string;
|
|
17
|
+
national_code?: string;
|
|
18
18
|
verified_at?: Date;
|
|
19
19
|
verified_by?: string;
|
|
20
20
|
verified_in?: string;
|
|
@@ -3,6 +3,8 @@ import { Core, Dto } from '../../../core/interfaces';
|
|
|
3
3
|
import { LocationType } from '../../../enums/logistic';
|
|
4
4
|
import { LocationGeometry } from './geometry.interface';
|
|
5
5
|
export interface Location<Properties extends object = object> extends Core<Properties> {
|
|
6
|
+
name?: string;
|
|
7
|
+
title?: string;
|
|
6
8
|
type?: LocationType;
|
|
7
9
|
geometry: LocationGeometry;
|
|
8
10
|
properties?: Properties;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export interface EmailSmtp {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
response: string;
|
|
3
|
+
accepted: string[];
|
|
4
|
+
rejected: string[];
|
|
5
|
+
message_id: string;
|
|
6
|
+
message_time: number;
|
|
7
|
+
message_size: number;
|
|
6
8
|
}
|
|
7
9
|
export type EmailSmtpDto = EmailSmtp;
|
package/package.json
CHANGED
|
@@ -17,10 +17,10 @@ export declare class Client<Properties extends object = object> {
|
|
|
17
17
|
protected _contacts?: ContactsService<Properties>;
|
|
18
18
|
protected _messages?: MessagesService<any, Properties>;
|
|
19
19
|
constructor(axios: AxiosInstance);
|
|
20
|
-
get members():
|
|
21
|
-
get accounts():
|
|
22
|
-
get channels():
|
|
23
|
-
get contacts():
|
|
24
|
-
get messages(): any
|
|
20
|
+
get members(): MembersService<Properties>;
|
|
21
|
+
get accounts(): AccountsService<Properties>;
|
|
22
|
+
get channels(): ChannelsService<Properties>;
|
|
23
|
+
get contacts(): ContactsService<Properties>;
|
|
24
|
+
get messages(): MessagesService<any, Properties>;
|
|
25
25
|
static build<Properties extends object = object>(axios: AxiosInstance): Client<Properties>;
|
|
26
26
|
}
|
|
@@ -30,19 +30,19 @@ class Client {
|
|
|
30
30
|
this.axios = axios;
|
|
31
31
|
}
|
|
32
32
|
get members() {
|
|
33
|
-
return (this._members = this.
|
|
33
|
+
return (this._members = this._members ?? members_service_1.MembersService.build(this.axios));
|
|
34
34
|
}
|
|
35
35
|
get accounts() {
|
|
36
|
-
return (this._accounts = this.
|
|
36
|
+
return (this._accounts = this._accounts ?? accounts_service_1.AccountsService.build(this.axios));
|
|
37
37
|
}
|
|
38
38
|
get channels() {
|
|
39
|
-
return (this._channels = this.
|
|
39
|
+
return (this._channels = this._channels ?? channels_service_1.ChannelsService.build(this.axios));
|
|
40
40
|
}
|
|
41
41
|
get contacts() {
|
|
42
|
-
return (this._contacts = this.
|
|
42
|
+
return (this._contacts = this._contacts ?? contacts_service_1.ContactsService.build(this.axios));
|
|
43
43
|
}
|
|
44
44
|
get messages() {
|
|
45
|
-
return (this._messages = this.
|
|
45
|
+
return (this._messages = this._messages ?? messages_service_1.MessagesService.build(this.axios));
|
|
46
46
|
}
|
|
47
47
|
static build(axios) {
|
|
48
48
|
return new Client(axios);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/conjoint/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,uDAAmD;AACnD,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AAErD,oDAAkC;AAClC,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AAEnC,MAAa,MAAM;IAOjB,YAAqB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE7C,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/conjoint/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,uDAAmD;AACnD,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AACrD,yDA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