cv-contracts 0.0.23 → 0.0.24
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/dist/interfaces/Attachment.d.ts +3 -3
- package/dist/interfaces/Message.d.ts +3 -3
- package/dist/interfaces/User.d.ts +1 -1
- package/dist/schemas/AttachmentSchema.d.ts +2 -15
- package/dist/schemas/AttachmentSchema.js +2 -19
- package/dist/schemas/AttachmentSchema.js.map +1 -1
- package/dist/schemas/MessageSchema.d.ts +3 -24
- package/dist/schemas/MessageSchema.js +3 -30
- package/dist/schemas/MessageSchema.js.map +1 -1
- package/dist/schemas/UserSchema.d.ts +0 -1
- package/dist/schemas/UserSchema.js +0 -1
- package/dist/schemas/UserSchema.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,11 +2,11 @@ import { AttachmentType } from '../enums';
|
|
|
2
2
|
export interface Attachment {
|
|
3
3
|
_id: string;
|
|
4
4
|
creator_id: string;
|
|
5
|
-
created_at:
|
|
5
|
+
created_at: string;
|
|
6
6
|
type: AttachmentType;
|
|
7
7
|
link: string;
|
|
8
|
-
active_begin?:
|
|
9
|
-
active_end?:
|
|
8
|
+
active_begin?: string | null;
|
|
9
|
+
active_end?: string | null;
|
|
10
10
|
filename?: string | null;
|
|
11
11
|
mime_type?: string | null;
|
|
12
12
|
length_in_bytes?: number | null;
|
|
@@ -7,9 +7,9 @@ export interface Message {
|
|
|
7
7
|
creator_guid: string;
|
|
8
8
|
channel_guid?: string | null;
|
|
9
9
|
workspace_guid?: string | null;
|
|
10
|
-
created_at:
|
|
11
|
-
last_updated_at:
|
|
12
|
-
deleted_at?:
|
|
10
|
+
created_at: string;
|
|
11
|
+
last_updated_at: string;
|
|
12
|
+
deleted_at?: string | null;
|
|
13
13
|
duration_ms: number;
|
|
14
14
|
message_url?: string | null;
|
|
15
15
|
audio_stream_url?: string | null;
|
|
@@ -9,7 +9,6 @@ export declare const AttachmentSchema: {
|
|
|
9
9
|
};
|
|
10
10
|
created_at: {
|
|
11
11
|
type: string;
|
|
12
|
-
format: string;
|
|
13
12
|
};
|
|
14
13
|
type: {
|
|
15
14
|
$ref: string;
|
|
@@ -18,22 +17,10 @@ export declare const AttachmentSchema: {
|
|
|
18
17
|
type: string;
|
|
19
18
|
};
|
|
20
19
|
active_begin: {
|
|
21
|
-
|
|
22
|
-
type: string;
|
|
23
|
-
format: string;
|
|
24
|
-
} | {
|
|
25
|
-
type: string;
|
|
26
|
-
format?: undefined;
|
|
27
|
-
})[];
|
|
20
|
+
type: string[];
|
|
28
21
|
};
|
|
29
22
|
active_end: {
|
|
30
|
-
|
|
31
|
-
type: string;
|
|
32
|
-
format: string;
|
|
33
|
-
} | {
|
|
34
|
-
type: string;
|
|
35
|
-
format?: undefined;
|
|
36
|
-
})[];
|
|
23
|
+
type: string[];
|
|
37
24
|
};
|
|
38
25
|
filename: {
|
|
39
26
|
type: string[];
|
|
@@ -12,7 +12,6 @@ exports.AttachmentSchema = {
|
|
|
12
12
|
},
|
|
13
13
|
created_at: {
|
|
14
14
|
type: 'string',
|
|
15
|
-
format: 'date-time',
|
|
16
15
|
},
|
|
17
16
|
type: {
|
|
18
17
|
$ref: '#/definitions/AttachmentType',
|
|
@@ -21,26 +20,10 @@ exports.AttachmentSchema = {
|
|
|
21
20
|
type: 'string',
|
|
22
21
|
},
|
|
23
22
|
active_begin: {
|
|
24
|
-
|
|
25
|
-
{
|
|
26
|
-
type: 'string',
|
|
27
|
-
format: 'date-time',
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
type: 'null',
|
|
31
|
-
},
|
|
32
|
-
],
|
|
23
|
+
type: ['null', 'string'],
|
|
33
24
|
},
|
|
34
25
|
active_end: {
|
|
35
|
-
|
|
36
|
-
{
|
|
37
|
-
type: 'string',
|
|
38
|
-
format: 'date-time',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
type: 'null',
|
|
42
|
-
},
|
|
43
|
-
],
|
|
26
|
+
type: ['null', 'string'],
|
|
44
27
|
},
|
|
45
28
|
filename: {
|
|
46
29
|
type: ['null', 'string'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentSchema.js","sourceRoot":"","sources":["../../src/schemas/AttachmentSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,GAAG,EAAE;YACH,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"AttachmentSchema.js","sourceRoot":"","sources":["../../src/schemas/AttachmentSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,GAAG,EAAE;YACH,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,8BAA8B;SACrC;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,UAAU,EAAE;YACV,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,SAAS,EAAE;YACT,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,eAAe,EAAE;YACf,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,QAAQ,EAAE,EAAE;KACb;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC;IAC7D,WAAW,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC;SACnC;KACF;IACD,OAAO,EAAE,yCAAyC;CACnD,CAAC;AAEF,IAAY,cAYX;AAZD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,2CAAyB,CAAA;IACzB,2CAAyB,CAAA;IACzB,+BAAa,CAAA;IACb,+BAAa,CAAA;IACb,+CAA6B,CAAA;IAC7B,2CAAyB,CAAA;IACzB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,qDAAmC,CAAA;IACnC,uCAAqB,CAAA;AACvB,CAAC,EAZW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAYzB"}
|
|
@@ -18,20 +18,12 @@ export declare const MessageSchema: {
|
|
|
18
18
|
};
|
|
19
19
|
created_at: {
|
|
20
20
|
type: string;
|
|
21
|
-
format: string;
|
|
22
21
|
};
|
|
23
22
|
last_updated_at: {
|
|
24
23
|
type: string;
|
|
25
|
-
format: string;
|
|
26
24
|
};
|
|
27
25
|
deleted_at: {
|
|
28
|
-
|
|
29
|
-
type: string;
|
|
30
|
-
format: string;
|
|
31
|
-
} | {
|
|
32
|
-
type: string;
|
|
33
|
-
format?: undefined;
|
|
34
|
-
})[];
|
|
26
|
+
type: string[];
|
|
35
27
|
};
|
|
36
28
|
duration_ms: {
|
|
37
29
|
type: string;
|
|
@@ -94,7 +86,6 @@ export declare const MessageSchema: {
|
|
|
94
86
|
};
|
|
95
87
|
created_at: {
|
|
96
88
|
type: string;
|
|
97
|
-
format: string;
|
|
98
89
|
};
|
|
99
90
|
type: {
|
|
100
91
|
$ref: string;
|
|
@@ -103,22 +94,10 @@ export declare const MessageSchema: {
|
|
|
103
94
|
type: string;
|
|
104
95
|
};
|
|
105
96
|
active_begin: {
|
|
106
|
-
|
|
107
|
-
type: string;
|
|
108
|
-
format: string;
|
|
109
|
-
} | {
|
|
110
|
-
type: string;
|
|
111
|
-
format?: undefined;
|
|
112
|
-
})[];
|
|
97
|
+
type: string[];
|
|
113
98
|
};
|
|
114
99
|
active_end: {
|
|
115
|
-
|
|
116
|
-
type: string;
|
|
117
|
-
format: string;
|
|
118
|
-
} | {
|
|
119
|
-
type: string;
|
|
120
|
-
format?: undefined;
|
|
121
|
-
})[];
|
|
100
|
+
type: string[];
|
|
122
101
|
};
|
|
123
102
|
filename: {
|
|
124
103
|
type: string[];
|
|
@@ -21,22 +21,12 @@ exports.MessageSchema = {
|
|
|
21
21
|
},
|
|
22
22
|
created_at: {
|
|
23
23
|
type: 'string',
|
|
24
|
-
format: 'date-time',
|
|
25
24
|
},
|
|
26
25
|
last_updated_at: {
|
|
27
26
|
type: 'string',
|
|
28
|
-
format: 'date-time',
|
|
29
27
|
},
|
|
30
28
|
deleted_at: {
|
|
31
|
-
|
|
32
|
-
{
|
|
33
|
-
type: 'string',
|
|
34
|
-
format: 'date-time',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
type: 'null',
|
|
38
|
-
},
|
|
39
|
-
],
|
|
29
|
+
type: ['null', 'string'],
|
|
40
30
|
},
|
|
41
31
|
duration_ms: {
|
|
42
32
|
type: 'number',
|
|
@@ -120,7 +110,6 @@ exports.MessageSchema = {
|
|
|
120
110
|
},
|
|
121
111
|
created_at: {
|
|
122
112
|
type: 'string',
|
|
123
|
-
format: 'date-time',
|
|
124
113
|
},
|
|
125
114
|
type: {
|
|
126
115
|
$ref: '#/definitions/AttachmentType',
|
|
@@ -129,26 +118,10 @@ exports.MessageSchema = {
|
|
|
129
118
|
type: 'string',
|
|
130
119
|
},
|
|
131
120
|
active_begin: {
|
|
132
|
-
|
|
133
|
-
{
|
|
134
|
-
type: 'string',
|
|
135
|
-
format: 'date-time',
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
type: 'null',
|
|
139
|
-
},
|
|
140
|
-
],
|
|
121
|
+
type: ['null', 'string'],
|
|
141
122
|
},
|
|
142
123
|
active_end: {
|
|
143
|
-
|
|
144
|
-
{
|
|
145
|
-
type: 'string',
|
|
146
|
-
format: 'date-time',
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
type: 'null',
|
|
150
|
-
},
|
|
151
|
-
],
|
|
124
|
+
type: ['null', 'string'],
|
|
152
125
|
},
|
|
153
126
|
filename: {
|
|
154
127
|
type: ['null', 'string'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageSchema.js","sourceRoot":"","sources":["../../src/schemas/MessageSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;SACf;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;SACf;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;SACf;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,cAAc,EAAE;YACd,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"MessageSchema.js","sourceRoot":"","sources":["../../src/schemas/MessageSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;SACf;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;SACf;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;SACf;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,cAAc,EAAE;YACd,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;Q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AAyC;CACnD,CAAC;AAEF,IAAY,WAsBX;AAtBD,WAAY,WAAW;IACrB,4CAA6B,CAAA;IAC7B,sCAAuB,CAAA;IACvB,4CAA6B,CAAA;IAC7B,4CAA6B,CAAA;IAC7B,gDAAiC,CAAA;IACjC,wCAAyB,CAAA;IACzB,kDAAmC,CAAA;IACnC,wCAAyB,CAAA;IACzB,0CAA2B,CAAA;IAC3B,0CAA2B,CAAA;IAC3B,oDAAqC,CAAA;IACrC,gDAAiC,CAAA;IACjC,gDAAiC,CAAA;IACjC,gDAAiC,CAAA;IACjC,4CAA6B,CAAA;IAC7B,0CAA2B,CAAA;IAC3B,0DAA2C,CAAA;IAC3C,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,0CAA2B,CAAA;IAC3B,4BAAa,CAAA;AACf,CAAC,EAtBW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAsBtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserSchema.js","sourceRoot":"","sources":["../../src/schemas/UserSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,GAAG,EAAE;YACH,IAAI,EAAE,QAAQ;SACf;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;SACf;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;SACf;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"UserSchema.js","sourceRoot":"","sources":["../../src/schemas/UserSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,GAAG,EAAE;YACH,IAAI,EAA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