@bisondesk/commons-sdk 1.0.23-B → 1.0.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/lib/constants.d.ts +4 -34
- package/lib/constants.d.ts.map +1 -1
- package/lib/constants.js +8 -94
- package/lib/constants.js.map +1 -1
- package/lib/ids.d.ts +1 -2
- package/lib/ids.d.ts.map +1 -1
- package/lib/ids.js +1 -2
- package/lib/ids.js.map +1 -1
- package/lib/types.d.ts +2 -85
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js.map +1 -1
- package/package.json +3 -6
- package/src/constants.ts +7 -97
- package/src/ids.ts +0 -1
- package/src/types.ts +2 -97
- package/tsconfig.tsbuildinfo +2892 -1
- package/lib/dayjs-utils.d.ts +0 -7
- package/lib/dayjs-utils.d.ts.map +0 -1
- package/lib/dayjs-utils.js +0 -28
- package/lib/dayjs-utils.js.map +0 -1
- package/lib/discussions.d.ts +0 -43
- package/lib/discussions.d.ts.map +0 -1
- package/lib/discussions.js +0 -5
- package/lib/discussions.js.map +0 -1
- package/lib/errors.d.ts +0 -36
- package/lib/errors.d.ts.map +0 -1
- package/lib/errors.js +0 -67
- package/lib/errors.js.map +0 -1
- package/lib/exact.d.ts +0 -10
- package/lib/exact.d.ts.map +0 -1
- package/lib/exact.js +0 -3
- package/lib/exact.js.map +0 -1
- package/lib/insurance.d.ts +0 -19
- package/lib/insurance.d.ts.map +0 -1
- package/lib/insurance.js +0 -3
- package/lib/insurance.js.map +0 -1
- package/lib/messages.d.ts +0 -56
- package/lib/messages.d.ts.map +0 -1
- package/lib/messages.js +0 -3
- package/lib/messages.js.map +0 -1
- package/lib/notifications.d.ts +0 -35
- package/lib/notifications.d.ts.map +0 -1
- package/lib/notifications.js +0 -9
- package/lib/notifications.js.map +0 -1
- package/lib/pdf-gen.d.ts +0 -40
- package/lib/pdf-gen.d.ts.map +0 -1
- package/lib/pdf-gen.js +0 -3
- package/lib/pdf-gen.js.map +0 -1
- package/lib/storage.d.ts +0 -63
- package/lib/storage.d.ts.map +0 -1
- package/lib/storage.js +0 -14
- package/lib/storage.js.map +0 -1
- package/src/dayjs-utils.ts +0 -27
- package/src/discussions.ts +0 -50
- package/src/errors.ts +0 -79
- package/src/exact.ts +0 -9
- package/src/insurance.ts +0 -21
- package/src/messages.ts +0 -65
- package/src/notifications.ts +0 -40
- package/src/pdf-gen.ts +0 -43
- package/src/storage.ts +0 -83
package/lib/dayjs-utils.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import dayjs, { Dayjs } from 'dayjs';
|
|
2
|
-
export declare const tz: dayjs.DayjsTimezone;
|
|
3
|
-
export declare const utc: typeof dayjs.utc;
|
|
4
|
-
export declare const isSameOrAfter: (value: Dayjs, reference: Dayjs) => boolean;
|
|
5
|
-
export declare const isBetween: (value: Dayjs, startInclusive: Dayjs, endExclusive: Dayjs) => boolean;
|
|
6
|
-
export declare const businessDaysAdd: (value: Dayjs, days: number) => Dayjs;
|
|
7
|
-
//# sourceMappingURL=dayjs-utils.d.ts.map
|
package/lib/dayjs-utils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dayjs-utils.d.ts","sourceRoot":"","sources":["../src/dayjs-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAerC,eAAO,MAAM,EAAE,qBAAW,CAAC;AAE3B,eAAO,MAAM,GAAG,kBAAY,CAAC;AAE7B,eAAO,MAAM,aAAa,UAAW,KAAK,aAAa,KAAK,KAAG,OACV,CAAC;AAEtD,eAAO,MAAM,SAAS,UAAW,KAAK,kBAAkB,KAAK,gBAAgB,KAAK,KAAG,OACf,CAAC;AAEvE,eAAO,MAAM,eAAe,UAAW,KAAK,QAAQ,MAAM,KAAG,KACvB,CAAC"}
|
package/lib/dayjs-utils.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.businessDaysAdd = exports.isBetween = exports.isSameOrAfter = exports.utc = exports.tz = void 0;
|
|
7
|
-
const dayjs_1 = __importDefault(require("dayjs"));
|
|
8
|
-
const dayjs_business_days_1 = __importDefault(require("dayjs-business-days"));
|
|
9
|
-
const customParseFormat_1 = __importDefault(require("dayjs/plugin/customParseFormat"));
|
|
10
|
-
const isoWeek_1 = __importDefault(require("dayjs/plugin/isoWeek"));
|
|
11
|
-
const timezone_1 = __importDefault(require("dayjs/plugin/timezone"));
|
|
12
|
-
const utc_1 = __importDefault(require("dayjs/plugin/utc"));
|
|
13
|
-
dayjs_1.default.extend(dayjs_business_days_1.default);
|
|
14
|
-
dayjs_1.default.extend(isoWeek_1.default);
|
|
15
|
-
dayjs_1.default.extend(customParseFormat_1.default);
|
|
16
|
-
dayjs_1.default.extend(utc_1.default);
|
|
17
|
-
dayjs_1.default.extend(timezone_1.default);
|
|
18
|
-
// Exists only to make Typescript happy, otherwise the build would fail with
|
|
19
|
-
// "Property 'tz' does not exist on type 'Dayjs'"
|
|
20
|
-
exports.tz = dayjs_1.default.tz;
|
|
21
|
-
exports.utc = dayjs_1.default.utc;
|
|
22
|
-
const isSameOrAfter = (value, reference) => value.isAfter(reference) || value.isSame(reference);
|
|
23
|
-
exports.isSameOrAfter = isSameOrAfter;
|
|
24
|
-
const isBetween = (value, startInclusive, endExclusive) => (0, exports.isSameOrAfter)(value, startInclusive) && value.isBefore(endExclusive);
|
|
25
|
-
exports.isBetween = isBetween;
|
|
26
|
-
const businessDaysAdd = (value, days) => value.businessDaysAdd(days);
|
|
27
|
-
exports.businessDaysAdd = businessDaysAdd;
|
|
28
|
-
//# sourceMappingURL=dayjs-utils.js.map
|
package/lib/dayjs-utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dayjs-utils.js","sourceRoot":"","sources":["../src/dayjs-utils.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAqC;AACrC,8EAAoD;AACpD,uFAA+D;AAC/D,mEAA2C;AAC3C,qEAA6C;AAC7C,2DAAwC;AAExC,eAAK,CAAC,MAAM,CAAC,6BAAiB,CAAC,CAAC;AAChC,eAAK,CAAC,MAAM,CAAC,iBAAO,CAAC,CAAC;AACtB,eAAK,CAAC,MAAM,CAAC,2BAAiB,CAAC,CAAC;AAChC,eAAK,CAAC,MAAM,CAAC,aAAQ,CAAC,CAAC;AACvB,eAAK,CAAC,MAAM,CAAC,kBAAQ,CAAC,CAAC;AAEvB,4EAA4E;AAC5E,iDAAiD;AACpC,QAAA,EAAE,GAAG,eAAK,CAAC,EAAE,CAAC;AAEd,QAAA,GAAG,GAAG,eAAK,CAAC,GAAG,CAAC;AAEtB,MAAM,aAAa,GAAG,CAAC,KAAY,EAAE,SAAgB,EAAW,EAAE,CACvE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AADzC,QAAA,aAAa,iBAC4B;AAE/C,MAAM,SAAS,GAAG,CAAC,KAAY,EAAE,cAAqB,EAAE,YAAmB,EAAW,EAAE,CAC7F,IAAA,qBAAa,EAAC,KAAK,EAAE,cAAc,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;AAD1D,QAAA,SAAS,aACiD;AAEhE,MAAM,eAAe,GAAG,CAAC,KAAY,EAAE,IAAY,EAAS,EAAE,CAClE,KAAa,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAD1B,QAAA,eAAe,mBACW"}
|
package/lib/discussions.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { BusinessEntityIds } from './constants';
|
|
2
|
-
export declare type Discussion = {
|
|
3
|
-
businessEntityId: BusinessEntityIds;
|
|
4
|
-
createdAt: string;
|
|
5
|
-
followers: string[];
|
|
6
|
-
id: string;
|
|
7
|
-
recordId: string;
|
|
8
|
-
title?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare type DiscussionData = {
|
|
11
|
-
discussion: Discussion;
|
|
12
|
-
messages: Message[];
|
|
13
|
-
};
|
|
14
|
-
export declare type NewDiscussion = {
|
|
15
|
-
businessEntityId: BusinessEntityIds;
|
|
16
|
-
content: MessageContent;
|
|
17
|
-
recordId: string;
|
|
18
|
-
title?: string;
|
|
19
|
-
followers: string[];
|
|
20
|
-
};
|
|
21
|
-
export declare type Message = {
|
|
22
|
-
author: string;
|
|
23
|
-
content?: MessageContent;
|
|
24
|
-
createdAt: string;
|
|
25
|
-
deletedAt?: string;
|
|
26
|
-
id: string;
|
|
27
|
-
};
|
|
28
|
-
export declare type MessageContent = {
|
|
29
|
-
value: string;
|
|
30
|
-
mentions: string[];
|
|
31
|
-
};
|
|
32
|
-
export declare const MESSAGE_NOTIFICATION_ORIGIN = "message";
|
|
33
|
-
export declare type MessageNotificationData = {
|
|
34
|
-
snippet: string;
|
|
35
|
-
id: string;
|
|
36
|
-
mention?: boolean;
|
|
37
|
-
};
|
|
38
|
-
export declare type NewDiscussionEvent = {
|
|
39
|
-
discussion: NewDiscussion;
|
|
40
|
-
tenantId: string;
|
|
41
|
-
author: string;
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=discussions.d.ts.map
|
package/lib/discussions.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"discussions.d.ts","sourceRoot":"","sources":["../src/discussions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,oBAAY,UAAU,GAAG;IACvB,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC1B,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,OAAO,EAAE,cAAc,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAEF,oBAAY,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,2BAA2B,YAAY,CAAC;AAErD,oBAAY,uBAAuB,GAAG;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,oBAAY,kBAAkB,GAAG;IAC/B,UAAU,EAAE,aAAa,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
package/lib/discussions.js
DELETED
package/lib/discussions.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"discussions.js","sourceRoot":"","sources":["../src/discussions.ts"],"names":[],"mappings":";;;AAqCa,QAAA,2BAA2B,GAAG,SAAS,CAAC"}
|
package/lib/errors.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ValidationError } from 'joi';
|
|
2
|
-
export declare class XError extends Error {
|
|
3
|
-
errorCtx: any;
|
|
4
|
-
constructor(message?: string, errorCtx?: any);
|
|
5
|
-
}
|
|
6
|
-
export declare class WrappedError extends Error {
|
|
7
|
-
errorCtx: any;
|
|
8
|
-
constructor(err: Error, errorCtx?: any);
|
|
9
|
-
}
|
|
10
|
-
export declare class AsyncStopError extends Error {
|
|
11
|
-
constructor(message?: string);
|
|
12
|
-
}
|
|
13
|
-
export declare class ForbiddenError extends Error {
|
|
14
|
-
constructor(message?: string);
|
|
15
|
-
}
|
|
16
|
-
export declare class EntryAlreadyExistsError extends Error {
|
|
17
|
-
constructor(message?: string);
|
|
18
|
-
}
|
|
19
|
-
declare type FieldValidationError = {
|
|
20
|
-
message: string;
|
|
21
|
-
path: Array<string | number>;
|
|
22
|
-
type: string;
|
|
23
|
-
};
|
|
24
|
-
export declare class InvalidArgumentsError extends Error {
|
|
25
|
-
validationErrors?: {
|
|
26
|
-
errors: FieldValidationError[];
|
|
27
|
-
};
|
|
28
|
-
isValidation: boolean;
|
|
29
|
-
errorCtx: any;
|
|
30
|
-
constructor(message?: string, errors?: ValidationError, errorCtx?: any);
|
|
31
|
-
}
|
|
32
|
-
export declare class UnauthorizedError extends Error {
|
|
33
|
-
constructor(message?: string);
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
36
|
-
//# sourceMappingURL=errors.d.ts.map
|
package/lib/errors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAuB,MAAM,KAAK,CAAC;AAE3D,qBAAa,MAAO,SAAQ,KAAK;IAC/B,QAAQ,EAAE,GAAG,CAAC;gBAEF,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG;CAK7C;AAED,qBAAa,YAAa,SAAQ,KAAK;IACrC,QAAQ,EAAE,GAAG,CAAC;gBAEF,GAAG,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE,GAAG;CAMvC;AAED,qBAAa,cAAe,SAAQ,KAAK;gBAC3B,OAAO,CAAC,EAAE,MAAM;CAI7B;AAED,qBAAa,cAAe,SAAQ,KAAK;gBAC3B,OAAO,CAAC,EAAE,MAAM;CAI7B;AAED,qBAAa,uBAAwB,SAAQ,KAAK;gBACpC,OAAO,CAAC,EAAE,MAAM;CAI7B;AAED,aAAK,oBAAoB,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AACF,qBAAa,qBAAsB,SAAQ,KAAK;IAC9C,gBAAgB,CAAC,EAAE;QAAE,MAAM,EAAE,oBAAoB,EAAE,CAAA;KAAE,CAAC;IACtD,YAAY,UAAQ;IACpB,QAAQ,EAAE,GAAG,CAAC;gBAEF,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,GAAG;CAiBvE;AAED,qBAAa,iBAAkB,SAAQ,KAAK;gBAC9B,OAAO,CAAC,EAAE,MAAM;CAI7B"}
|
package/lib/errors.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnauthorizedError = exports.InvalidArgumentsError = exports.EntryAlreadyExistsError = exports.ForbiddenError = exports.AsyncStopError = exports.WrappedError = exports.XError = void 0;
|
|
4
|
-
class XError extends Error {
|
|
5
|
-
constructor(message, errorCtx) {
|
|
6
|
-
super(message);
|
|
7
|
-
this.name = 'XError';
|
|
8
|
-
this.errorCtx = errorCtx;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.XError = XError;
|
|
12
|
-
class WrappedError extends Error {
|
|
13
|
-
constructor(err, errorCtx) {
|
|
14
|
-
super(err.message);
|
|
15
|
-
this.name = err.name;
|
|
16
|
-
this.stack = err.stack;
|
|
17
|
-
this.errorCtx = errorCtx;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.WrappedError = WrappedError;
|
|
21
|
-
class AsyncStopError extends Error {
|
|
22
|
-
constructor(message) {
|
|
23
|
-
super(message);
|
|
24
|
-
this.name = 'AsyncStopError';
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.AsyncStopError = AsyncStopError;
|
|
28
|
-
class ForbiddenError extends Error {
|
|
29
|
-
constructor(message) {
|
|
30
|
-
super(message);
|
|
31
|
-
this.name = 'ForbiddenError';
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.ForbiddenError = ForbiddenError;
|
|
35
|
-
class EntryAlreadyExistsError extends Error {
|
|
36
|
-
constructor(message) {
|
|
37
|
-
super(message);
|
|
38
|
-
this.name = 'EntryAlreadyExistsError';
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.EntryAlreadyExistsError = EntryAlreadyExistsError;
|
|
42
|
-
class InvalidArgumentsError extends Error {
|
|
43
|
-
constructor(message, errors, errorCtx) {
|
|
44
|
-
super(message);
|
|
45
|
-
this.isValidation = true;
|
|
46
|
-
this.name = 'InvalidArgumentsError';
|
|
47
|
-
this.errorCtx = errorCtx;
|
|
48
|
-
if (errors != null) {
|
|
49
|
-
this.validationErrors = {
|
|
50
|
-
errors: errors.details.map(({ path, type, message }) => ({
|
|
51
|
-
message,
|
|
52
|
-
path,
|
|
53
|
-
type: type === 'custom' ? message : type,
|
|
54
|
-
})),
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.InvalidArgumentsError = InvalidArgumentsError;
|
|
60
|
-
class UnauthorizedError extends Error {
|
|
61
|
-
constructor(message) {
|
|
62
|
-
super(message);
|
|
63
|
-
this.name = 'UnauthorizedError';
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
exports.UnauthorizedError = UnauthorizedError;
|
|
67
|
-
//# sourceMappingURL=errors.js.map
|
package/lib/errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;AAEA,MAAa,MAAO,SAAQ,KAAK;IAG/B,YAAY,OAAgB,EAAE,QAAc;QAC1C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF;AARD,wBAQC;AAED,MAAa,YAAa,SAAQ,KAAK;IAGrC,YAAY,GAAU,EAAE,QAAc;QACpC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF;AATD,oCASC;AAED,MAAa,cAAe,SAAQ,KAAK;IACvC,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;IAC/B,CAAC;CACF;AALD,wCAKC;AAED,MAAa,cAAe,SAAQ,KAAK;IACvC,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;IAC/B,CAAC;CACF;AALD,wCAKC;AAED,MAAa,uBAAwB,SAAQ,KAAK;IAChD,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;IACxC,CAAC;CACF;AALD,0DAKC;AAOD,MAAa,qBAAsB,SAAQ,KAAK;IAK9C,YAAY,OAAgB,EAAE,MAAwB,EAAE,QAAc;QACpE,KAAK,CAAC,OAAO,CAAC,CAAC;QAJjB,iBAAY,GAAG,IAAI,CAAC;QAKlB,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,IAAI,MAAM,IAAI,IAAI,EAAE;YAClB,IAAI,CAAC,gBAAgB,GAAG;gBACtB,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CACxB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAuB,EAAwB,EAAE,CAAC,CAAC;oBACvE,OAAO;oBACP,IAAI;oBACJ,IAAI,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI;iBACzC,CAAC,CACH;aACF,CAAC;SACH;IACH,CAAC;CACF;AAtBD,sDAsBC;AAED,MAAa,iBAAkB,SAAQ,KAAK;IAC1C,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;IAClC,CAAC;CACF;AALD,8CAKC"}
|
package/lib/exact.d.ts
DELETED
package/lib/exact.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exact.d.ts","sourceRoot":"","sources":["../src/exact.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC"}
|
package/lib/exact.js
DELETED
package/lib/exact.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exact.js","sourceRoot":"","sources":["../src/exact.ts"],"names":[],"mappings":""}
|
package/lib/insurance.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare type InsuranceEntry = {
|
|
2
|
-
checkedAt: string;
|
|
3
|
-
insured: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare type InsuranceCheckEvent = {
|
|
6
|
-
contractId: string;
|
|
7
|
-
tenantId: string;
|
|
8
|
-
vin: string;
|
|
9
|
-
};
|
|
10
|
-
export declare type InsuranceCheckResponseEvent = InsuranceCheckEvent & {
|
|
11
|
-
insurance: InsuranceEntry;
|
|
12
|
-
};
|
|
13
|
-
export declare type InsuranceHistoryRequest = {
|
|
14
|
-
contractId: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
limit?: number;
|
|
17
|
-
nextToken?: string;
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=insurance.d.ts.map
|
package/lib/insurance.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"insurance.d.ts","sourceRoot":"","sources":["../src/insurance.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,oBAAY,2BAA2B,GAAG,mBAAmB,GAAG;IAC9D,SAAS,EAAE,cAAc,CAAC;CAC3B,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
package/lib/insurance.js
DELETED
package/lib/insurance.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"insurance.js","sourceRoot":"","sources":["../src/insurance.ts"],"names":[],"mappings":""}
|
package/lib/messages.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { AttachmentValue } from './types';
|
|
2
|
-
export declare type EmailAddress = {
|
|
3
|
-
name?: string;
|
|
4
|
-
email: string;
|
|
5
|
-
};
|
|
6
|
-
export declare type EmailDestination = EmailAddress & {
|
|
7
|
-
organizationId?: string;
|
|
8
|
-
contactId?: string;
|
|
9
|
-
addressType: 'TO' | 'CC' | 'BCC';
|
|
10
|
-
};
|
|
11
|
-
export declare type EmailContent = {
|
|
12
|
-
subject: string;
|
|
13
|
-
body: {
|
|
14
|
-
text?: string;
|
|
15
|
-
html?: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export declare type EmailMessage = {
|
|
19
|
-
id: string;
|
|
20
|
-
sentAt: string;
|
|
21
|
-
sentBy: string;
|
|
22
|
-
content?: AttachmentValue;
|
|
23
|
-
subject: string;
|
|
24
|
-
source: EmailAddress;
|
|
25
|
-
replyTo?: EmailAddress;
|
|
26
|
-
destinations: EmailDestination[];
|
|
27
|
-
};
|
|
28
|
-
export declare type EmailMessageEvent = {
|
|
29
|
-
tenantId: string;
|
|
30
|
-
message: EmailMessage;
|
|
31
|
-
};
|
|
32
|
-
export declare type TemplatedEmailRequest = {
|
|
33
|
-
data: Record<string, unknown>;
|
|
34
|
-
destinations: EmailDestination[];
|
|
35
|
-
replyTo?: EmailAddress;
|
|
36
|
-
source: EmailAddress;
|
|
37
|
-
subject: string;
|
|
38
|
-
template: string;
|
|
39
|
-
};
|
|
40
|
-
export declare type EmailRequest = {
|
|
41
|
-
references?: string[] | string;
|
|
42
|
-
inReplyTo?: string;
|
|
43
|
-
destinations: EmailDestination[];
|
|
44
|
-
replyTo?: EmailAddress;
|
|
45
|
-
source: EmailAddress;
|
|
46
|
-
subject: string;
|
|
47
|
-
attachments?: AttachmentValue[];
|
|
48
|
-
body: {
|
|
49
|
-
text?: string;
|
|
50
|
-
html: string;
|
|
51
|
-
} | {
|
|
52
|
-
html?: string;
|
|
53
|
-
text: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=messages.d.ts.map
|
package/lib/messages.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,oBAAY,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,gBAAgB,GAAG,YAAY,GAAG;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;CAClC,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE;QACJ,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC;CAClC,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAE/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,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"}
|
package/lib/messages.js
DELETED
package/lib/messages.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":""}
|
package/lib/notifications.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { BusinessEntityIds } from './constants';
|
|
2
|
-
export declare enum NotificationVisibility {
|
|
3
|
-
UNREAD = "unread",
|
|
4
|
-
READ = "read"
|
|
5
|
-
}
|
|
6
|
-
export declare type NewNotificationsEvent<T = unknown> = {
|
|
7
|
-
tenantId: string;
|
|
8
|
-
notifications: NewNotification<T>[];
|
|
9
|
-
};
|
|
10
|
-
declare type BaseNotification<T = {}> = {
|
|
11
|
-
sourceId: string;
|
|
12
|
-
destinationId: string;
|
|
13
|
-
businessEntityId: BusinessEntityIds;
|
|
14
|
-
recordId: string;
|
|
15
|
-
recordTitle?: string;
|
|
16
|
-
meta: T;
|
|
17
|
-
origin: string;
|
|
18
|
-
};
|
|
19
|
-
export declare type NewNotification<T = unknown> = BaseNotification<T>;
|
|
20
|
-
export declare type Notification<T = unknown> = BaseNotification<T> & {
|
|
21
|
-
id: string;
|
|
22
|
-
createdAt: string;
|
|
23
|
-
visibility: NotificationVisibility;
|
|
24
|
-
};
|
|
25
|
-
export declare type NotificationReadUpdates = {
|
|
26
|
-
notificationIds: string[] | undefined;
|
|
27
|
-
};
|
|
28
|
-
export declare type NotificationsInfo = {
|
|
29
|
-
unreadCount: number;
|
|
30
|
-
unseen: boolean;
|
|
31
|
-
latestSeenAt?: string;
|
|
32
|
-
latestNotificationAt?: string;
|
|
33
|
-
};
|
|
34
|
-
export {};
|
|
35
|
-
//# sourceMappingURL=notifications.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../src/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,oBAAY,sBAAsB;IAChC,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,oBAAY,qBAAqB,CAAC,CAAC,GAAG,OAAO,IAAI;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;CACrC,CAAC;AAEF,aAAK,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,oBAAY,eAAe,CAAC,CAAC,GAAG,OAAO,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAE/D,oBAAY,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,oBAAY,uBAAuB,GAAG;IACpC,eAAe,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,oBAAY,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"}
|
package/lib/notifications.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotificationVisibility = void 0;
|
|
4
|
-
var NotificationVisibility;
|
|
5
|
-
(function (NotificationVisibility) {
|
|
6
|
-
NotificationVisibility["UNREAD"] = "unread";
|
|
7
|
-
NotificationVisibility["READ"] = "read";
|
|
8
|
-
})(NotificationVisibility = exports.NotificationVisibility || (exports.NotificationVisibility = {}));
|
|
9
|
-
//# sourceMappingURL=notifications.js.map
|
package/lib/notifications.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../src/notifications.ts"],"names":[],"mappings":";;;AAEA,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,2CAAiB,CAAA;IACjB,uCAAa,CAAA;AACf,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC"}
|
package/lib/pdf-gen.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { BusinessEntityIds } from './constants';
|
|
2
|
-
import { AttachmentValue } from './types';
|
|
3
|
-
export declare type TemplateData = {
|
|
4
|
-
[key: string]: unknown;
|
|
5
|
-
};
|
|
6
|
-
export declare type NewPdfTemplateGroup = {
|
|
7
|
-
exampleData?: TemplateData;
|
|
8
|
-
title: string;
|
|
9
|
-
id: string;
|
|
10
|
-
};
|
|
11
|
-
export declare type PdfTemplateGroup = NewPdfTemplateGroup & {
|
|
12
|
-
modifiedAt: string;
|
|
13
|
-
modifiedBy: string;
|
|
14
|
-
};
|
|
15
|
-
declare type BasePdfTemplate = {
|
|
16
|
-
branch: string;
|
|
17
|
-
docx: AttachmentValue;
|
|
18
|
-
groupId: string;
|
|
19
|
-
language: string;
|
|
20
|
-
};
|
|
21
|
-
export declare type PdfTemplate = BasePdfTemplate & {
|
|
22
|
-
id: string;
|
|
23
|
-
modifiedAt: string;
|
|
24
|
-
modifiedBy: string;
|
|
25
|
-
pdf: AttachmentValue;
|
|
26
|
-
};
|
|
27
|
-
export declare type NewPdfTemplate = BasePdfTemplate & {
|
|
28
|
-
id?: string;
|
|
29
|
-
};
|
|
30
|
-
export declare type GeneratePdfEvent = {
|
|
31
|
-
branch: string;
|
|
32
|
-
businessEntityId: BusinessEntityIds;
|
|
33
|
-
data: TemplateData;
|
|
34
|
-
groupId: string;
|
|
35
|
-
language: string;
|
|
36
|
-
outputFilename?: string;
|
|
37
|
-
tenantId: string;
|
|
38
|
-
};
|
|
39
|
-
export {};
|
|
40
|
-
//# sourceMappingURL=pdf-gen.d.ts.map
|
package/lib/pdf-gen.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-gen.d.ts","sourceRoot":"","sources":["../src/pdf-gen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,oBAAY,YAAY,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAEtD,oBAAY,mBAAmB,GAAG;IAChC,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,oBAAY,gBAAgB,GAAG,mBAAmB,GAAG;IACnD,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,aAAK,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,oBAAY,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,oBAAY,cAAc,GAAG,eAAe,GAAG;IAC7C,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,oBAAY,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/pdf-gen.js
DELETED
package/lib/pdf-gen.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-gen.js","sourceRoot":"","sources":["../src/pdf-gen.ts"],"names":[],"mappings":""}
|
package/lib/storage.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type Joi from 'joi';
|
|
2
|
-
import { Requester } from './types';
|
|
3
|
-
export declare type UploadInfo = {
|
|
4
|
-
id: string;
|
|
5
|
-
uploadUrl: string;
|
|
6
|
-
downloadPath: string;
|
|
7
|
-
method: 'POST' | 'PATCH' | 'PUT';
|
|
8
|
-
headers?: {
|
|
9
|
-
[name: string]: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export declare type VideoDownloadInfo = {
|
|
13
|
-
url: string;
|
|
14
|
-
quality: string;
|
|
15
|
-
size: number;
|
|
16
|
-
};
|
|
17
|
-
export declare type VideoInfo = {
|
|
18
|
-
status: 'SUCCESS' | 'PROCESSING' | 'ERROR';
|
|
19
|
-
downloads: VideoDownloadInfo[];
|
|
20
|
-
id: string;
|
|
21
|
-
};
|
|
22
|
-
export declare enum UploadProviders {
|
|
23
|
-
Vimeo = "vimeo",
|
|
24
|
-
S3 = "s3"
|
|
25
|
-
}
|
|
26
|
-
declare type BaseUploadUrlRequest = {
|
|
27
|
-
contentType: string;
|
|
28
|
-
};
|
|
29
|
-
export declare type VimeoUploadRequest = BaseUploadUrlRequest & {
|
|
30
|
-
size: number;
|
|
31
|
-
name: string;
|
|
32
|
-
};
|
|
33
|
-
export declare type S3UploadRequest = BaseUploadUrlRequest & {
|
|
34
|
-
shared: boolean;
|
|
35
|
-
fileName: string;
|
|
36
|
-
businessEntityId: string;
|
|
37
|
-
};
|
|
38
|
-
export declare type UploadUrlRequest<Provider extends UploadProviders> = Provider extends UploadProviders.Vimeo ? VimeoUploadRequest : Provider extends UploadProviders.S3 ? S3UploadRequest : {};
|
|
39
|
-
export declare type UploadProvider = {
|
|
40
|
-
validationSchema: Joi.ObjectSchema<any>;
|
|
41
|
-
getVideoListInfo: (requester: Requester, videoIds: string[]) => Promise<VideoInfo[]>;
|
|
42
|
-
getUploadInfo(requester: Requester, request: UploadUrlRequest<UploadProviders>): Promise<UploadInfo>;
|
|
43
|
-
};
|
|
44
|
-
export declare type UploadProvidersDefinition = {
|
|
45
|
-
[key in UploadProviders]: UploadProvider;
|
|
46
|
-
};
|
|
47
|
-
export declare enum MediaExportResolution {
|
|
48
|
-
Low = "low",
|
|
49
|
-
High = "high"
|
|
50
|
-
}
|
|
51
|
-
export declare type MediaExportRequest = {
|
|
52
|
-
urls: string[];
|
|
53
|
-
resolution?: MediaExportResolution;
|
|
54
|
-
};
|
|
55
|
-
export declare type MediaExportEvent = {
|
|
56
|
-
s3Keys: string[];
|
|
57
|
-
outputId: string;
|
|
58
|
-
tenantId: string;
|
|
59
|
-
entityId: string;
|
|
60
|
-
resolution: MediaExportResolution;
|
|
61
|
-
};
|
|
62
|
-
export {};
|
|
63
|
-
//# sourceMappingURL=storage.d.ts.map
|
package/lib/storage.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,oBAAY,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IACjC,OAAO,CAAC,EAAE;QACR,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;KACxB,CAAC;CACH,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,oBAAY,SAAS,GAAG;IACtB,MAAM,EAAE,SAAS,GAAG,YAAY,GAAG,OAAO,CAAC;IAC3C,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,EAAE,OAAO;CACV;AAED,aAAK,oBAAoB,GAAG;IAC1B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oBAAY,kBAAkB,GAAG,oBAAoB,GAAG;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,oBAAY,eAAe,GAAG,oBAAoB,GAAG;IAEnD,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,oBAAY,gBAAgB,CAAC,QAAQ,SAAS,eAAe,IAC3D,QAAQ,SAAS,eAAe,CAAC,KAAK,GAClC,kBAAkB,GAClB,QAAQ,SAAS,eAAe,CAAC,EAAE,GACnC,eAAe,GACf,EAAE,CAAC;AAET,oBAAY,cAAc,GAAG;IAC3B,gBAAgB,EAAE,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,oBAAY,yBAAyB,GAAG;KACrC,GAAG,IAAI,eAAe,GAAG,cAAc;CACzC,CAAC;AAEF,oBAAY,qBAAqB;IAC/B,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,oBAAY,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACpC,CAAC;AAEF,oBAAY,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/storage.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MediaExportResolution = exports.UploadProviders = void 0;
|
|
4
|
-
var UploadProviders;
|
|
5
|
-
(function (UploadProviders) {
|
|
6
|
-
UploadProviders["Vimeo"] = "vimeo";
|
|
7
|
-
UploadProviders["S3"] = "s3";
|
|
8
|
-
})(UploadProviders = exports.UploadProviders || (exports.UploadProviders = {}));
|
|
9
|
-
var MediaExportResolution;
|
|
10
|
-
(function (MediaExportResolution) {
|
|
11
|
-
MediaExportResolution["Low"] = "low";
|
|
12
|
-
MediaExportResolution["High"] = "high";
|
|
13
|
-
})(MediaExportResolution = exports.MediaExportResolution || (exports.MediaExportResolution = {}));
|
|
14
|
-
//# sourceMappingURL=storage.js.map
|
package/lib/storage.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":";;;AAyBA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,4BAAS,CAAA;AACX,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAsCD,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,oCAAW,CAAA;IACX,sCAAa,CAAA;AACf,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
|
package/src/dayjs-utils.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import dayjs, { Dayjs } from 'dayjs';
|
|
2
|
-
import dayjsBusinessDays from 'dayjs-business-days';
|
|
3
|
-
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
4
|
-
import IsoWeek from 'dayjs/plugin/isoWeek';
|
|
5
|
-
import timezone from 'dayjs/plugin/timezone';
|
|
6
|
-
import dayjsUtc from 'dayjs/plugin/utc';
|
|
7
|
-
|
|
8
|
-
dayjs.extend(dayjsBusinessDays);
|
|
9
|
-
dayjs.extend(IsoWeek);
|
|
10
|
-
dayjs.extend(customParseFormat);
|
|
11
|
-
dayjs.extend(dayjsUtc);
|
|
12
|
-
dayjs.extend(timezone);
|
|
13
|
-
|
|
14
|
-
// Exists only to make Typescript happy, otherwise the build would fail with
|
|
15
|
-
// "Property 'tz' does not exist on type 'Dayjs'"
|
|
16
|
-
export const tz = dayjs.tz;
|
|
17
|
-
|
|
18
|
-
export const utc = dayjs.utc;
|
|
19
|
-
|
|
20
|
-
export const isSameOrAfter = (value: Dayjs, reference: Dayjs): boolean =>
|
|
21
|
-
value.isAfter(reference) || value.isSame(reference);
|
|
22
|
-
|
|
23
|
-
export const isBetween = (value: Dayjs, startInclusive: Dayjs, endExclusive: Dayjs): boolean =>
|
|
24
|
-
isSameOrAfter(value, startInclusive) && value.isBefore(endExclusive);
|
|
25
|
-
|
|
26
|
-
export const businessDaysAdd = (value: Dayjs, days: number): Dayjs =>
|
|
27
|
-
(value as any).businessDaysAdd(days);
|
package/src/discussions.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { BusinessEntityIds } from './constants';
|
|
2
|
-
|
|
3
|
-
export type Discussion = {
|
|
4
|
-
businessEntityId: BusinessEntityIds;
|
|
5
|
-
createdAt: string;
|
|
6
|
-
followers: string[];
|
|
7
|
-
id: string;
|
|
8
|
-
recordId: string;
|
|
9
|
-
title?: string;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export type DiscussionData = {
|
|
13
|
-
discussion: Discussion;
|
|
14
|
-
messages: Message[];
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export type NewDiscussion = {
|
|
18
|
-
businessEntityId: BusinessEntityIds;
|
|
19
|
-
content: MessageContent;
|
|
20
|
-
recordId: string;
|
|
21
|
-
title?: string;
|
|
22
|
-
followers: string[];
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export type Message = {
|
|
26
|
-
author: string;
|
|
27
|
-
content?: MessageContent; // optional if the content is deleted
|
|
28
|
-
createdAt: string;
|
|
29
|
-
deletedAt?: string;
|
|
30
|
-
id: string;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export type MessageContent = {
|
|
34
|
-
value: string;
|
|
35
|
-
mentions: string[];
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export const MESSAGE_NOTIFICATION_ORIGIN = 'message';
|
|
39
|
-
|
|
40
|
-
export type MessageNotificationData = {
|
|
41
|
-
snippet: string;
|
|
42
|
-
id: string;
|
|
43
|
-
mention?: boolean;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export type NewDiscussionEvent = {
|
|
47
|
-
discussion: NewDiscussion;
|
|
48
|
-
tenantId: string;
|
|
49
|
-
author: string;
|
|
50
|
-
};
|