@bisondesk/commons-sdk 1.0.257 → 1.0.258
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/lib/tsconfig.cjs.tsbuildinfo +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/becris.d.ts +4 -4
- package/lib/types/becris.d.ts.map +1 -1
- package/lib/types/discussions.d.ts +7 -7
- package/lib/types/discussions.d.ts.map +1 -1
- package/lib/types/errors.d.ts +1 -1
- package/lib/types/errors.d.ts.map +1 -1
- package/lib/types/exact.d.ts +1 -1
- package/lib/types/exact.d.ts.map +1 -1
- package/lib/types/insurance.d.ts +4 -4
- package/lib/types/insurance.d.ts.map +1 -1
- package/lib/types/locations.d.ts +5 -5
- package/lib/types/locations.d.ts.map +1 -1
- package/lib/types/messages.d.ts +7 -7
- package/lib/types/messages.d.ts.map +1 -1
- package/lib/types/notifications.d.ts +7 -7
- package/lib/types/notifications.d.ts.map +1 -1
- package/lib/types/pdf-gen.d.ts +7 -7
- package/lib/types/pdf-gen.d.ts.map +1 -1
- package/lib/types/storage.d.ts +11 -11
- package/lib/types/storage.d.ts.map +1 -1
- package/lib/types/types.d.ts +19 -19
- package/lib/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/lib/types/messages.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { AttachmentValue } from './types';
|
|
2
|
-
export
|
|
2
|
+
export type EmailAddress = {
|
|
3
3
|
name?: string;
|
|
4
4
|
email: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type EmailDestination = EmailAddress & {
|
|
7
7
|
organizationId?: string;
|
|
8
8
|
contactId?: string;
|
|
9
9
|
addressType: 'TO' | 'CC' | 'BCC';
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type EmailContent = {
|
|
12
12
|
subject: string;
|
|
13
13
|
body: {
|
|
14
14
|
text?: string;
|
|
15
15
|
html?: string;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type EmailMessage = {
|
|
19
19
|
id: string;
|
|
20
20
|
sentAt: string;
|
|
21
21
|
sentBy: string;
|
|
@@ -25,11 +25,11 @@ export declare type EmailMessage = {
|
|
|
25
25
|
replyTo?: EmailAddress;
|
|
26
26
|
destinations: EmailDestination[];
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type EmailMessageEvent = {
|
|
29
29
|
tenantId: string;
|
|
30
30
|
message: EmailMessage;
|
|
31
31
|
};
|
|
32
|
-
export
|
|
32
|
+
export type TemplatedEmailRequest = {
|
|
33
33
|
data: Record<string, unknown>;
|
|
34
34
|
destinations: EmailDestination[];
|
|
35
35
|
replyTo?: EmailAddress;
|
|
@@ -38,7 +38,7 @@ export declare type TemplatedEmailRequest = {
|
|
|
38
38
|
template: string;
|
|
39
39
|
attachments?: AttachmentValue[];
|
|
40
40
|
};
|
|
41
|
-
export
|
|
41
|
+
export type EmailRequest = {
|
|
42
42
|
references?: string[] | string;
|
|
43
43
|
inReplyTo?: string;
|
|
44
44
|
destinations: EmailDestination[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"/","sources":["messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"/","sources":["messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,W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eAAe,EAAE,CAAC;IAChC,IAAI,EACA;QACE,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACd,GACD;QACE,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACP,CAAC"}
|
|
@@ -6,11 +6,11 @@ export declare enum NotificationVisibility {
|
|
|
6
6
|
UNREAD = "unread",
|
|
7
7
|
READ = "read"
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type NewNotificationsEvent<T = unknown> = {
|
|
10
10
|
tenantId: string;
|
|
11
11
|
notifications: NewNotification<T>[];
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
type BaseNotification<T = {}> = {
|
|
14
14
|
sourceId: string;
|
|
15
15
|
destinationId: string;
|
|
16
16
|
businessEntityId: BusinessEntityIds;
|
|
@@ -19,23 +19,23 @@ declare type BaseNotification<T = {}> = {
|
|
|
19
19
|
meta: T;
|
|
20
20
|
origin: string;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
23
|
-
export
|
|
22
|
+
export type NewNotification<T = unknown> = BaseNotification<T>;
|
|
23
|
+
export type Notification<T = unknown> = BaseNotification<T> & {
|
|
24
24
|
id: string;
|
|
25
25
|
createdAt: string;
|
|
26
26
|
visibility: NotificationVisibility;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type NotificationReadUpdates = {
|
|
29
29
|
notificationIds: string[] | undefined;
|
|
30
30
|
origin?: GroupableNotificationOrigin;
|
|
31
31
|
};
|
|
32
|
-
export
|
|
32
|
+
export type NotificationsInfo = {
|
|
33
33
|
unreadCount: number;
|
|
34
34
|
unseen: boolean;
|
|
35
35
|
latestSeenAt?: string;
|
|
36
36
|
latestNotificationAt?: string;
|
|
37
37
|
};
|
|
38
|
-
export
|
|
38
|
+
export type NotificationsQuery = {
|
|
39
39
|
limit?: number;
|
|
40
40
|
unreadOnly?: boolean;
|
|
41
41
|
nextToken?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.d.ts","sourceRoot":"/","sources":["notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,oBAAY,2BAA2B;IACrC,OAAO,YAAY;CACpB;AACD,oBAAY,sBAAsB;IAChC,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"/","sources":["notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,oBAAY,2BAA2B;IACrC,OAAO,YAAY;CACpB;AACD,oBAAY,sBAAsB;IAChC,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,MAAM,MAAM,qBAAqB,CAAC,CAAC,GAAG,OAAO,IAAI;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;CACrC,CAAC;AAEF,KAAK,gBAAgB,CAAC,CAAC,GAAG,EAAE,IAAI;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,CAAC,GAAG,OAAO,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAE/D,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,OAAO,IAAI,gBAAgB,CAAC,CAAC,CAAC,GAAG;IAC5D,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,sBAAsB,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAEpC,eAAe,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACtC,MAAM,CAAC,EAAE,2BAA2B,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,2BAA2B,CAAC;CACtC,CAAC"}
|
package/lib/types/pdf-gen.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { BusinessEntityIds } from './constants';
|
|
2
2
|
import { AttachmentValue } from './types';
|
|
3
|
-
export
|
|
3
|
+
export type TemplateData = {
|
|
4
4
|
[key: string]: unknown;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type NewPdfTemplateGroup = {
|
|
7
7
|
exampleData?: TemplateData;
|
|
8
8
|
title: string;
|
|
9
9
|
id: string;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type PdfTemplateGroup = NewPdfTemplateGroup & {
|
|
12
12
|
modifiedAt: string;
|
|
13
13
|
modifiedBy: string;
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
type BasePdfTemplate = {
|
|
16
16
|
branch: string;
|
|
17
17
|
docx: AttachmentValue;
|
|
18
18
|
groupId: string;
|
|
19
19
|
language: string;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type PdfTemplate = BasePdfTemplate & {
|
|
22
22
|
id: string;
|
|
23
23
|
modifiedAt: string;
|
|
24
24
|
modifiedBy: string;
|
|
25
25
|
pdf: AttachmentValue;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type NewPdfTemplate = BasePdfTemplate & {
|
|
28
28
|
id?: string;
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type GeneratePdfEvent = {
|
|
31
31
|
branch: string;
|
|
32
32
|
businessEntityId: BusinessEntityIds;
|
|
33
33
|
data: TemplateData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-gen.d.ts","sourceRoot":"/","sources":["pdf-gen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,
|
|
1
|
+
{"version":3,"file":"pdf-gen.d.ts","sourceRoot":"/","sources":["pdf-gen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,MAAM,YAAY,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAEtD,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,GAAG;IACnD,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,eAAe,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,eAAe,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG;IAC7C,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
package/lib/types/storage.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type Joi from 'joi';
|
|
2
2
|
import { Requester } from './types';
|
|
3
|
-
export
|
|
3
|
+
export type UploadInfo = {
|
|
4
4
|
id: string;
|
|
5
5
|
uploadUrl: string;
|
|
6
6
|
downloadPath: string;
|
|
@@ -9,12 +9,12 @@ export declare type UploadInfo = {
|
|
|
9
9
|
[name: string]: string;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type VideoDownloadInfo = {
|
|
13
13
|
url: string;
|
|
14
14
|
quality: string;
|
|
15
15
|
size: number;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type VideoInfo = {
|
|
18
18
|
status: 'SUCCESS' | 'PROCESSING' | 'ERROR';
|
|
19
19
|
downloads: VideoDownloadInfo[];
|
|
20
20
|
id: string;
|
|
@@ -23,36 +23,36 @@ export declare enum UploadProviders {
|
|
|
23
23
|
Vimeo = "vimeo",
|
|
24
24
|
S3 = "s3"
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
type BaseUploadUrlRequest = {
|
|
27
27
|
contentType: string;
|
|
28
28
|
};
|
|
29
|
-
export
|
|
29
|
+
export type VimeoUploadRequest = BaseUploadUrlRequest & {
|
|
30
30
|
size: number;
|
|
31
31
|
name: string;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type S3UploadRequest = BaseUploadUrlRequest & {
|
|
34
34
|
shared: boolean;
|
|
35
35
|
fileName: string;
|
|
36
36
|
businessEntityId: string;
|
|
37
37
|
};
|
|
38
|
-
export
|
|
39
|
-
export
|
|
38
|
+
export type UploadUrlRequest<Provider extends UploadProviders> = Provider extends UploadProviders.Vimeo ? VimeoUploadRequest : Provider extends UploadProviders.S3 ? S3UploadRequest : {};
|
|
39
|
+
export type UploadProvider = {
|
|
40
40
|
validationSchema: Joi.ObjectSchema<any>;
|
|
41
41
|
getVideoListInfo: (requester: Requester, videoIds: string[]) => Promise<VideoInfo[]>;
|
|
42
42
|
getUploadInfo(requester: Requester, request: UploadUrlRequest<UploadProviders>): Promise<UploadInfo>;
|
|
43
43
|
};
|
|
44
|
-
export
|
|
44
|
+
export type UploadProvidersDefinition = {
|
|
45
45
|
[key in UploadProviders]: UploadProvider;
|
|
46
46
|
};
|
|
47
47
|
export declare enum MediaExportResolution {
|
|
48
48
|
Low = "low",
|
|
49
49
|
High = "high"
|
|
50
50
|
}
|
|
51
|
-
export
|
|
51
|
+
export type MediaExportRequest = {
|
|
52
52
|
urls: string[];
|
|
53
53
|
resolution?: MediaExportResolution;
|
|
54
54
|
};
|
|
55
|
-
export
|
|
55
|
+
export type MediaExportEvent = {
|
|
56
56
|
s3Keys: string[];
|
|
57
57
|
outputId: string;
|
|
58
58
|
tenantId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"/","sources":["storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"/","sources":["storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3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,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IACxC,gBAAgB,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;IACrF,aAAa,CACX,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,gBAAgB,CAAC,eAAe,CAAC,GACzC,OAAO,CAAC,UAAU,CAAC,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;KACrC,GAAG,IAAI,eAAe,GAAG,cAAc;CACzC,CAAC;AAEF,oBAAY,qBAAqB;IAC/B,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,qBAAqB,CAAC;CACnC,CAAC"}
|
package/lib/types/types.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { AppRoles } from './constants';
|
|
2
2
|
import { LocationValue } from './locations';
|
|
3
3
|
export { GPSCoord, LocationValue } from './locations';
|
|
4
|
-
export
|
|
4
|
+
export type PaginatedList<T, M = {}> = {
|
|
5
5
|
results: T[];
|
|
6
6
|
totalCount: number;
|
|
7
7
|
meta: M;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type PaginationRequest = {
|
|
10
10
|
limit: number;
|
|
11
11
|
offset: number;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type NextList<T, M = {}> = {
|
|
14
14
|
results: T[];
|
|
15
15
|
nextToken?: string;
|
|
16
16
|
meta: M;
|
|
17
17
|
totalCount?: number;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type PaginatedRequest = {
|
|
20
20
|
limit?: number;
|
|
21
21
|
offset?: number;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type Requester = {
|
|
24
24
|
lang: string;
|
|
25
25
|
roles: AppRoles[];
|
|
26
26
|
tenantId: string;
|
|
@@ -30,7 +30,7 @@ export declare type Requester = {
|
|
|
30
30
|
userId: string;
|
|
31
31
|
isApi: boolean;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type Option = {
|
|
34
34
|
value: string | number;
|
|
35
35
|
label: string;
|
|
36
36
|
color?: string;
|
|
@@ -38,44 +38,44 @@ export declare type Option = {
|
|
|
38
38
|
export declare enum Region {
|
|
39
39
|
euWest1 = "eu-west-1"
|
|
40
40
|
}
|
|
41
|
-
export
|
|
41
|
+
export type ErrorResponse = {
|
|
42
42
|
message?: string;
|
|
43
43
|
data?: unknown;
|
|
44
44
|
};
|
|
45
|
-
export
|
|
45
|
+
export type MultiLangValue = {
|
|
46
46
|
key?: string;
|
|
47
47
|
} & {
|
|
48
48
|
[languageCode: string]: string;
|
|
49
49
|
};
|
|
50
|
-
export
|
|
50
|
+
export type CognitoInfo = {
|
|
51
51
|
userPoolId: string;
|
|
52
52
|
appClientId: string;
|
|
53
53
|
region: Region;
|
|
54
54
|
};
|
|
55
|
-
export
|
|
55
|
+
export type SearchPermissions = {
|
|
56
56
|
users: string[];
|
|
57
57
|
roles: AppRoles[];
|
|
58
58
|
};
|
|
59
|
-
export
|
|
59
|
+
export type PhoneNumberValue = {
|
|
60
60
|
country: string;
|
|
61
61
|
e164: string;
|
|
62
62
|
international: string;
|
|
63
63
|
national: string;
|
|
64
64
|
};
|
|
65
|
-
export
|
|
65
|
+
export type PhoneNumberRawValue = {
|
|
66
66
|
defaultCountry?: string;
|
|
67
67
|
input: string;
|
|
68
68
|
};
|
|
69
|
-
export
|
|
69
|
+
export type LinkValue = {
|
|
70
70
|
text?: string;
|
|
71
71
|
url: string;
|
|
72
72
|
};
|
|
73
|
-
export
|
|
73
|
+
export type Document = {
|
|
74
74
|
type: string;
|
|
75
75
|
displayName: string;
|
|
76
76
|
file: AttachmentValue;
|
|
77
77
|
};
|
|
78
|
-
export
|
|
78
|
+
export type AttachmentValue = {
|
|
79
79
|
contentType: string;
|
|
80
80
|
fileName: string;
|
|
81
81
|
id: string;
|
|
@@ -86,7 +86,7 @@ export declare type AttachmentValue = {
|
|
|
86
86
|
url: string;
|
|
87
87
|
descriptions?: string | MultiLangValue;
|
|
88
88
|
};
|
|
89
|
-
export
|
|
89
|
+
export type VatLayerResponse = {
|
|
90
90
|
vatNumber: string;
|
|
91
91
|
} & ({
|
|
92
92
|
formatValid: false;
|
|
@@ -98,7 +98,7 @@ export declare type VatLayerResponse = {
|
|
|
98
98
|
name: string;
|
|
99
99
|
addressLines: string[];
|
|
100
100
|
});
|
|
101
|
-
export
|
|
101
|
+
export type VatValidationResponse = {
|
|
102
102
|
vatNumber: string;
|
|
103
103
|
formatValid?: boolean;
|
|
104
104
|
countryCode?: string;
|
|
@@ -110,11 +110,11 @@ export declare type VatValidationResponse = {
|
|
|
110
110
|
normalizedAddress?: LocationValue;
|
|
111
111
|
officialAddress?: string[];
|
|
112
112
|
});
|
|
113
|
-
export
|
|
113
|
+
export type VatValidationRequest = {
|
|
114
114
|
defaultCountry?: string;
|
|
115
115
|
input: string;
|
|
116
116
|
};
|
|
117
|
-
export
|
|
117
|
+
export type CurrencyLayerResponse = {
|
|
118
118
|
conversionRate: number;
|
|
119
119
|
targetCurrency: string;
|
|
120
120
|
sourceCurrency: string;
|
package/lib/types/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,a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