@linkiez/jcm-library 3.24.0 → 3.24.1
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/common/icustom-error.d.ts +2 -1
- package/dist/interfaces/common/icustom-error.d.ts.map +1 -1
- package/dist/interfaces/common/ierror-chain.d.ts +11 -10
- package/dist/interfaces/common/ierror-chain.d.ts.map +1 -1
- package/dist/interfaces/common/ierror-details.d.ts +2 -1
- package/dist/interfaces/common/ierror-details.d.ts.map +1 -1
- package/dist/interfaces/common/ierror-response.d.ts +3 -1
- package/dist/interfaces/common/ierror-response.d.ts.map +1 -1
- package/dist/interfaces/common/ifind-config.d.ts +2 -1
- package/dist/interfaces/common/ifind-config.d.ts.map +1 -1
- package/dist/interfaces/common/ilogger.d.ts +2 -1
- package/dist/interfaces/common/ilogger.d.ts.map +1 -1
- package/dist/interfaces/common/ilogger.js.map +1 -1
- package/dist/interfaces/common/irepository.d.ts +2 -1
- package/dist/interfaces/common/irepository.d.ts.map +1 -1
- package/dist/interfaces/login/ijwt-payload.d.ts +2 -1
- package/dist/interfaces/login/ijwt-payload.d.ts.map +1 -1
- package/dist/interfaces/message-channel-account/ichatwoot.d.ts +3 -2
- package/dist/interfaces/message-channel-account/ichatwoot.d.ts.map +1 -1
- package/dist/interfaces/message-channel-account/imessage-channel-account-resolver.d.ts +4 -2
- package/dist/interfaces/message-channel-account/imessage-channel-account-resolver.d.ts.map +1 -1
- package/dist/interfaces/message-channel-account/imessage-channel-account.d.ts +11 -7
- package/dist/interfaces/message-channel-account/imessage-channel-account.d.ts.map +1 -1
- package/dist/interfaces/message-channel-account/imessage-provider-config.d.ts +35 -27
- package/dist/interfaces/message-channel-account/imessage-provider-config.d.ts.map +1 -1
- package/dist/interfaces/message-channel-account/imessage-provider.d.ts +2 -1
- package/dist/interfaces/message-channel-account/imessage-provider.d.ts.map +1 -1
- package/dist/interfaces/message-channel-account/imessage-service.d.ts +2 -1
- package/dist/interfaces/message-channel-account/imessage-service.d.ts.map +1 -1
- package/dist/interfaces/message-channel-account/imessage-webhooks.d.ts +5 -5
- package/dist/interfaces/message-channel-account/imessage-webhooks.d.ts.map +1 -1
- package/dist/interfaces/message-channel-account/isend-dialog.d.ts +3 -3
- package/dist/interfaces/message-channel-account/isend-dialog.d.ts.map +1 -1
- package/dist/interfaces/message-channel-account/isend-message-provider.d.ts +7 -5
- package/dist/interfaces/message-channel-account/isend-message-provider.d.ts.map +1 -1
- package/dist/interfaces/message-channel-account/iwhatsapp-embedded-signup-client.d.ts +13 -6
- package/dist/interfaces/message-channel-account/iwhatsapp-embedded-signup-client.d.ts.map +1 -1
- package/dist/interfaces/message-channel-account/iwhatsapp-provider-requests.d.ts +20 -20
- package/dist/interfaces/message-channel-account/iwhatsapp-provider-requests.d.ts.map +1 -1
- package/dist/interfaces/message-channel-account/iwhatsapp-template.d.ts +5 -4
- package/dist/interfaces/message-channel-account/iwhatsapp-template.d.ts.map +1 -1
- package/dist/interfaces/orcamento/iorcamento-query-result.d.ts +8 -7
- package/dist/interfaces/orcamento/iorcamento-query-result.d.ts.map +1 -1
- package/dist/interfaces/orm/ifind-all-config.d.ts +1 -1
- package/dist/interfaces/orm/ifind-all-config.d.ts.map +1 -1
- package/dist/types/api-response.d.ts +3 -2
- package/dist/types/api-response.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/json.d.ts +7 -0
- package/dist/types/json.d.ts.map +1 -0
- package/dist/types/json.js +2 -0
- package/dist/types/json.js.map +1 -0
- package/dist/types/message-channel-account.d.ts +4 -2
- package/dist/types/message-channel-account.d.ts.map +1 -1
- package/dist/types/message-delivery.d.ts +4 -3
- package/dist/types/message-delivery.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { HttpStatusCode } from "../../enums/HttpStatusCode.js";
|
|
2
|
+
import type { IErrorContainer } from "./ierror-chain.js";
|
|
2
3
|
import type { ValidationErrorItem } from "sequelize";
|
|
3
4
|
export interface ICustomError extends Error {
|
|
4
5
|
statusCode?: HttpStatusCode;
|
|
5
6
|
errors?: ValidationErrorItem[];
|
|
6
|
-
originalError?:
|
|
7
|
+
originalError?: Error | IErrorContainer | string | number | boolean | null;
|
|
7
8
|
parent?: {
|
|
8
9
|
detail?: string;
|
|
9
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icustom-error.d.ts","sourceRoot":"","sources":["../../../src/interfaces/common/icustom-error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAErD,MAAM,WAAW,YAAa,SAAQ,KAAK;IACzC,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,MAAM,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"icustom-error.d.ts","sourceRoot":"","sources":["../../../src/interfaces/common/icustom-error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAErD,MAAM,WAAW,YAAa,SAAQ,KAAK;IACzC,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,MAAM,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC/B,aAAa,CAAC,EAAE,KAAK,GAAG,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IAC3E,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9B"}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
+
import type { TJsonObject, TJsonValue } from "../../types/json.js";
|
|
1
2
|
export interface IErrorContainer {
|
|
2
|
-
cause?:
|
|
3
|
-
originalError?:
|
|
4
|
-
statusCode?:
|
|
5
|
-
status?:
|
|
6
|
-
body?:
|
|
7
|
-
responseBody?:
|
|
8
|
-
message?:
|
|
9
|
-
name?:
|
|
10
|
-
stack?:
|
|
3
|
+
cause?: Error | IErrorContainer | string | number | boolean | null;
|
|
4
|
+
originalError?: Error | IErrorContainer | string | number | boolean | null;
|
|
5
|
+
statusCode?: number;
|
|
6
|
+
status?: number | string;
|
|
7
|
+
body?: TJsonValue;
|
|
8
|
+
responseBody?: TJsonValue;
|
|
9
|
+
message?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
stack?: string;
|
|
11
12
|
}
|
|
12
13
|
export interface IRootErrorInfo {
|
|
13
14
|
rootErrorName?: string;
|
|
14
15
|
rootErrorMessage?: string;
|
|
15
16
|
rootErrorStack?: string;
|
|
16
|
-
rootErrorMeta?:
|
|
17
|
+
rootErrorMeta?: TJsonObject;
|
|
17
18
|
depth: number;
|
|
18
19
|
}
|
|
19
20
|
//# sourceMappingURL=ierror-chain.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ierror-chain.d.ts","sourceRoot":"","sources":["../../../src/interfaces/common/ierror-chain.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ierror-chain.d.ts","sourceRoot":"","sources":["../../../src/interfaces/common/ierror-chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAKnE,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,KAAK,GAAG,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IACnE,aAAa,CAAC,EAAE,KAAK,GAAG,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { IErrorContainer } from "./ierror-chain.js";
|
|
1
2
|
export interface IErrorDetails {
|
|
2
3
|
title: string;
|
|
3
4
|
message: string;
|
|
4
|
-
error:
|
|
5
|
+
error: Error | IErrorContainer | string | number | boolean | null;
|
|
5
6
|
}
|
|
6
7
|
//# sourceMappingURL=ierror-details.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ierror-details.d.ts","sourceRoot":"","sources":["../../../src/interfaces/common/ierror-details.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ierror-details.d.ts","sourceRoot":"","sources":["../../../src/interfaces/common/ierror-details.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,KAAK,GAAG,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;CACnE"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type { IValidationError } from "./ivalidation-error.js";
|
|
2
|
+
import type { ValidationErrorItem } from "sequelize";
|
|
1
3
|
export interface IErrorResponse {
|
|
2
4
|
success: false;
|
|
3
5
|
message: string;
|
|
4
6
|
error?: string;
|
|
5
7
|
requestId?: string;
|
|
6
|
-
errors?:
|
|
8
|
+
errors?: Array<IValidationError | ValidationErrorItem | string>;
|
|
7
9
|
originalError?: string;
|
|
8
10
|
}
|
|
9
11
|
//# sourceMappingURL=ierror-response.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ierror-response.d.ts","sourceRoot":"","sources":["../../../src/interfaces/common/ierror-response.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,KAAK,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"ierror-response.d.ts","sourceRoot":"","sources":["../../../src/interfaces/common/ierror-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAErD,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,KAAK,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,KAAK,CAAC,gBAAgB,GAAG,mBAAmB,GAAG,MAAM,CAAC,CAAC;IAChE,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { TJsonValue } from "../../types/json.js";
|
|
1
2
|
export interface IIdParseResult {
|
|
2
3
|
parsedId: number | string;
|
|
3
|
-
whereClause: Record<string,
|
|
4
|
+
whereClause: Record<string, TJsonValue>;
|
|
4
5
|
}
|
|
5
6
|
export interface IGenericFindOneConfig {
|
|
6
7
|
entityName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ifind-config.d.ts","sourceRoot":"","sources":["../../../src/interfaces/common/ifind-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ifind-config.d.ts","sourceRoot":"","sources":["../../../src/interfaces/common/ifind-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAiBtD,MAAM,WAAW,cAAc;IAE7B,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAM1B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CACzC;AAiBD,MAAM,WAAW,qBAAqB;IAKpC,UAAU,EAAE,MAAM,CAAC;IAOnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAiBD,MAAM,WAAW,qBAAqB;IAKpC,UAAU,EAAE,MAAM,CAAC;IAOnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAM5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAO1B,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ilogger.d.ts","sourceRoot":"","sources":["../../../src/interfaces/common/ilogger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ilogger.d.ts","sourceRoot":"","sources":["../../../src/interfaces/common/ilogger.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAMtD,MAAM,WAAW,QAAQ;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC;CAC3B;AAKD,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAKD,MAAM,WAAW,cAAc;IAE7B,WAAW,EAAE,MAAM,CAAC;IAGpB,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,YAAY,CAAC,EAAE,OAAO,CAAC;IAGvB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAMD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ilogger.js","sourceRoot":"","sources":["../../../src/interfaces/common/ilogger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ilogger.js","sourceRoot":"","sources":["../../../src/interfaces/common/ilogger.ts"],"names":[],"mappings":"AA6BA,MAAM,CAAN,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,2BAAe,CAAA;IACf,2BAAe,CAAA;AACjB,CAAC,EANW,QAAQ,KAAR,QAAQ,QAMnB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IPaginatedResponse } from "./ipaginated-response.js";
|
|
2
|
+
import type { TJsonValue } from "../../types/json.js";
|
|
2
3
|
export interface IRepositoryFindFilters {
|
|
3
4
|
page?: number;
|
|
4
5
|
limit?: number;
|
|
@@ -8,7 +9,7 @@ export interface IRepositoryFindFilters {
|
|
|
8
9
|
direction: "ASC" | "DESC";
|
|
9
10
|
}[];
|
|
10
11
|
paranoid?: boolean;
|
|
11
|
-
where?: Record<string,
|
|
12
|
+
where?: Record<string, TJsonValue>;
|
|
12
13
|
}
|
|
13
14
|
export type TCreateInput<T> = Omit<T, "id" | "createdAt" | "updatedAt" | "deletedAt">;
|
|
14
15
|
export type TUpdateInput<T> = Partial<TCreateInput<T>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"irepository.d.ts","sourceRoot":"","sources":["../../../src/interfaces/common/irepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"irepository.d.ts","sourceRoot":"","sources":["../../../src/interfaces/common/irepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAgBtD,MAAM,WAAW,sBAAsB;IAErC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,KAAK,GAAG,MAAM,CAAA;KAAE,EAAE,CAAC;IAEvD,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CACpC;AAKD,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,IAAI,CAChC,CAAC,EACD,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CAC/C,CAAC;AAKF,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAwBvD,MAAM,WAAW,WAAW,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM;IAK1C,QAAQ,CAAC,EAAE,EAAE,GAAG,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAMrC,OAAO,CAAC,OAAO,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;IAM1E,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAM1C,MAAM,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAMnD,MAAM,CAAC,EAAE,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAKhD,KAAK,CAAC,OAAO,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC1D"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TJsonValue } from "../../types/json.js";
|
|
1
2
|
export interface IJwtPayload {
|
|
2
3
|
readonly exp?: number;
|
|
3
4
|
readonly iat?: number;
|
|
@@ -8,6 +9,6 @@ export interface IJwtPayload {
|
|
|
8
9
|
readonly type?: "access" | "refresh";
|
|
9
10
|
readonly jti?: string;
|
|
10
11
|
readonly nbf?: number;
|
|
11
|
-
[key: string]:
|
|
12
|
+
[key: string]: TJsonValue;
|
|
12
13
|
}
|
|
13
14
|
//# sourceMappingURL=ijwt-payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ijwt-payload.d.ts","sourceRoot":"","sources":["../../../src/interfaces/login/ijwt-payload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ijwt-payload.d.ts","sourceRoot":"","sources":["../../../src/interfaces/login/ijwt-payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAMtD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC;CAC3B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TJsonValue } from "../../types/json.js";
|
|
1
2
|
export interface IChatwootCannedResponseDto {
|
|
2
3
|
id: number;
|
|
3
4
|
shortCode?: string;
|
|
@@ -25,8 +26,8 @@ export type TChatwootFetchResponse = {
|
|
|
25
26
|
ok: boolean;
|
|
26
27
|
status: number;
|
|
27
28
|
statusText?: string;
|
|
28
|
-
json: () => Promise<
|
|
29
|
+
json: () => Promise<TJsonValue>;
|
|
29
30
|
text?: () => Promise<string>;
|
|
30
31
|
};
|
|
31
|
-
export type TChatwootFetchLike = (url: string, init?:
|
|
32
|
+
export type TChatwootFetchLike = (url: string, init?: RequestInit) => Promise<TChatwootFetchResponse>;
|
|
32
33
|
//# sourceMappingURL=ichatwoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ichatwoot.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/ichatwoot.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oCAAoC;IACnD,KAAK,EAAE,0BAA0B,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,oCAAoC;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oCAAoC;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qCAAqC;IACpD,IAAI,CAAC,EAAE,0BAA0B,CAAC;CACnC;AAED,MAAM,WAAW,qCAAqC;IACpD,IAAI,CAAC,EAAE,0BAA0B,CAAC;CACnC;AAED,MAAM,MAAM,qCAAqC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE1E,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"ichatwoot.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/ichatwoot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oCAAoC;IACnD,KAAK,EAAE,0BAA0B,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,oCAAoC;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oCAAoC;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qCAAqC;IACpD,IAAI,CAAC,EAAE,0BAA0B,CAAC;CACnC;AAED,MAAM,WAAW,qCAAqC;IACpD,IAAI,CAAC,EAAE,0BAA0B,CAAC;CACnC;AAED,MAAM,MAAM,qCAAqC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE1E,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAC/B,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,WAAW,KACf,OAAO,CAAC,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { TJsonObject } from "../../types/json.js";
|
|
1
2
|
import type { TMessageChannel } from "./imessage-channel-account.js";
|
|
2
|
-
|
|
3
|
+
import type { TMessageChannelAccountConfig, TMessageChannelAccountSecrets } from "./imessage-provider-config.js";
|
|
4
|
+
export type TMessageChannelAccountResolverContext = TJsonObject;
|
|
3
5
|
export type TResolveMessageChannelAccountOptions = {
|
|
4
6
|
schema: string;
|
|
5
7
|
channel: TMessageChannel;
|
|
@@ -16,7 +18,7 @@ export type TResolvedMessageChannelAccount = {
|
|
|
16
18
|
name: string;
|
|
17
19
|
isDefault: boolean;
|
|
18
20
|
isActive: boolean;
|
|
19
|
-
config:
|
|
21
|
+
config: TMessageChannelAccountConfig;
|
|
20
22
|
secretsEncrypted?: string | null;
|
|
21
23
|
secretsKeyVersion: number;
|
|
22
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imessage-channel-account-resolver.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/imessage-channel-account-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"imessage-channel-account-resolver.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/imessage-channel-account-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EACV,4BAA4B,EAC5B,6BAA6B,EAC9B,MAAM,+BAA+B,CAAC;AAEvC,MAAM,MAAM,qCAAqC,GAAG,WAAW,CAAC;AAEhE,MAAM,MAAM,oCAAoC,GAAG;IACjD,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,eAAe,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1B,OAAO,EAAE,eAAe,CAAC;QACzB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,OAAO,CAAC;QACnB,QAAQ,EAAE,OAAO,CAAC;QAClB,MAAM,EAAE,4BAA4B,CAAC;QACrC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACjC,iBAAiB,EAAE,MAAM,CAAC;KAC3B,CAAC;IACF,OAAO,CAAC,EAAE,6BAA6B,CAAC;CACzC,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import type { TMessageChannelAccountConfig, TMessageChannelAccountSecrets } from "./imessage-provider-config.js";
|
|
1
2
|
export type TMessageDeliveryDirection = "outgoing" | "incoming";
|
|
2
3
|
export type TMessageChannel = "email" | "whatsapp" | "chatwoot";
|
|
4
|
+
export interface IMessageChannelAccountSaveFormState {
|
|
5
|
+
valid: boolean;
|
|
6
|
+
}
|
|
3
7
|
export interface IMessageChannelAccountResponse {
|
|
4
8
|
uId: string;
|
|
5
9
|
channel: TMessageChannel;
|
|
@@ -7,7 +11,7 @@ export interface IMessageChannelAccountResponse {
|
|
|
7
11
|
name: string;
|
|
8
12
|
isActive: boolean;
|
|
9
13
|
isDefault: boolean;
|
|
10
|
-
config:
|
|
14
|
+
config: TMessageChannelAccountConfig;
|
|
11
15
|
hasSecrets: boolean;
|
|
12
16
|
createdAt: Date | string;
|
|
13
17
|
updatedAt: Date | string;
|
|
@@ -17,23 +21,23 @@ export interface ICreateMessageChannelAccountRequest {
|
|
|
17
21
|
name: string;
|
|
18
22
|
isActive?: boolean;
|
|
19
23
|
isDefault?: boolean;
|
|
20
|
-
config?:
|
|
21
|
-
secrets?:
|
|
24
|
+
config?: TMessageChannelAccountConfig;
|
|
25
|
+
secrets?: TMessageChannelAccountSecrets;
|
|
22
26
|
}
|
|
23
27
|
export interface IUpdateMessageChannelAccountRequest {
|
|
24
28
|
name?: string;
|
|
25
29
|
isActive?: boolean;
|
|
26
30
|
isDefault?: boolean;
|
|
27
|
-
config?:
|
|
28
|
-
secrets?:
|
|
31
|
+
config?: TMessageChannelAccountConfig;
|
|
32
|
+
secrets?: TMessageChannelAccountSecrets;
|
|
29
33
|
}
|
|
30
34
|
export type TMessageChannelAccountSaveEvent = {
|
|
31
35
|
type: "create";
|
|
32
|
-
form:
|
|
36
|
+
form: IMessageChannelAccountSaveFormState;
|
|
33
37
|
payload: ICreateMessageChannelAccountRequest;
|
|
34
38
|
} | {
|
|
35
39
|
type: "update";
|
|
36
|
-
form:
|
|
40
|
+
form: IMessageChannelAccountSaveFormState;
|
|
37
41
|
accountUid: string;
|
|
38
42
|
payload: IUpdateMessageChannelAccountRequest;
|
|
39
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imessage-channel-account.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/imessage-channel-account.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG,UAAU,GAAG,UAAU,CAAC;AAEhE,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"imessage-channel-account.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/imessage-channel-account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,6BAA6B,EAC9B,MAAM,+BAA+B,CAAC;AAEvC,MAAM,MAAM,yBAAyB,GAAG,UAAU,GAAG,UAAU,CAAC;AAEhE,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC;AAKhE,MAAM,WAAW,mCAAmC;IAClD,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,8BAA8B;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,eAAe,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,4BAA4B,CAAC;IACrC,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;IACzB,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,mCAAmC;IAClD,OAAO,EAAE,eAAe,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,OAAO,CAAC,EAAE,6BAA6B,CAAC;CACzC;AAED,MAAM,WAAW,mCAAmC;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,OAAO,CAAC,EAAE,6BAA6B,CAAC;CACzC;AAED,MAAM,MAAM,+BAA+B,GACvC;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,mCAAmC,CAAC;IAC1C,OAAO,EAAE,mCAAmC,CAAC;CAC9C,GACD;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,mCAAmC,CAAC;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,mCAAmC,CAAC;CAC9C,CAAC"}
|
|
@@ -1,40 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import type { TJsonObject } from "../../types/json.js";
|
|
2
|
+
export type TEmailSecrets = TJsonObject & {
|
|
3
|
+
user?: string;
|
|
4
|
+
pass?: string;
|
|
5
|
+
smtpUser?: string;
|
|
6
|
+
smtpPass?: string;
|
|
6
7
|
};
|
|
7
|
-
export type TEmailConfig = {
|
|
8
|
-
from?:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
export type TEmailConfig = TJsonObject & {
|
|
9
|
+
from?: string;
|
|
10
|
+
fromName?: string;
|
|
11
|
+
fromEmail?: string;
|
|
12
|
+
service?: string;
|
|
13
|
+
smtpHost?: string;
|
|
14
|
+
smtpPort?: number | string;
|
|
15
|
+
smtpSecure?: boolean;
|
|
13
16
|
};
|
|
14
|
-
export type TChatwootConfig = {
|
|
15
|
-
baseUrl?:
|
|
16
|
-
|
|
17
|
+
export type TChatwootConfig = TJsonObject & {
|
|
18
|
+
baseUrl?: string;
|
|
19
|
+
accountId?: number | string;
|
|
20
|
+
inboxId?: number | string;
|
|
17
21
|
};
|
|
18
|
-
export type TChatwootSecrets = {
|
|
19
|
-
apiAccessToken?:
|
|
20
|
-
accessToken?:
|
|
21
|
-
token?:
|
|
22
|
+
export type TChatwootSecrets = TJsonObject & {
|
|
23
|
+
apiAccessToken?: string;
|
|
24
|
+
accessToken?: string;
|
|
25
|
+
token?: string;
|
|
22
26
|
};
|
|
23
|
-
export type TWhatsAppSecrets = {
|
|
24
|
-
accessToken?:
|
|
25
|
-
token?:
|
|
27
|
+
export type TWhatsAppSecrets = TJsonObject & {
|
|
28
|
+
accessToken?: string;
|
|
29
|
+
token?: string;
|
|
26
30
|
};
|
|
27
|
-
export type
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
export type TWhatsAppAdvancedConfig = TJsonObject;
|
|
32
|
+
export type TWhatsAppConfig = TJsonObject & {
|
|
33
|
+
apiVersion?: string;
|
|
34
|
+
baseUrl?: string;
|
|
35
|
+
phoneNumberId?: string;
|
|
36
|
+
businessAccountId?: string;
|
|
37
|
+
advanced?: TWhatsAppAdvancedConfig;
|
|
32
38
|
};
|
|
39
|
+
export type TMessageChannelAccountConfig = TEmailConfig | TChatwootConfig | TWhatsAppConfig;
|
|
40
|
+
export type TMessageChannelAccountSecrets = TEmailSecrets | TChatwootSecrets | TWhatsAppSecrets;
|
|
33
41
|
export type TResolvedWhatsAppAccount = {
|
|
34
42
|
accessToken: string;
|
|
35
43
|
apiVersion: string;
|
|
36
44
|
baseUrl: string;
|
|
37
45
|
phoneNumberId?: string;
|
|
38
|
-
advancedConfig?:
|
|
46
|
+
advancedConfig?: TWhatsAppAdvancedConfig;
|
|
39
47
|
};
|
|
40
48
|
//# sourceMappingURL=imessage-provider-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imessage-provider-config.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/imessage-provider-config.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;
|
|
1
|
+
{"version":3,"file":"imessage-provider-config.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/imessage-provider-config.ts"],"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CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,uBAAuB,CAAC;CACpC,CAAC;AAKF,MAAM,MAAM,4BAA4B,GACpC,YAAY,GACZ,eAAe,GACf,eAAe,CAAC;AAKpB,MAAM,MAAM,6BAA6B,GACrC,aAAa,GACb,gBAAgB,GAChB,gBAAgB,CAAC;AAErB,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,uBAAuB,CAAC;CAC1C,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { TJsonValue } from "../../types/json.js";
|
|
2
|
+
export interface IMessageProvider<TRequest, TResult = TJsonValue> {
|
|
2
3
|
send(request: TRequest): Promise<TResult>;
|
|
3
4
|
}
|
|
4
5
|
//# sourceMappingURL=imessage-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imessage-provider.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/imessage-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"imessage-provider.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/imessage-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAQtD,MAAM,WAAW,gBAAgB,CAAC,QAAQ,EAAE,OAAO,GAAG,UAAU;IAC9D,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC3C"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { TJsonValue } from "../../types/json.js";
|
|
2
|
+
export interface IMessageService<TRequest, TResult = TJsonValue> {
|
|
2
3
|
send(request: TRequest): Promise<TResult>;
|
|
3
4
|
}
|
|
4
5
|
//# sourceMappingURL=imessage-service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imessage-service.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/imessage-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"imessage-service.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/imessage-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAQtD,MAAM,WAAW,eAAe,CAAC,QAAQ,EAAE,OAAO,GAAG,UAAU;IAC7D,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC3C"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export type TChatwootContactPayload = {
|
|
2
|
-
name?:
|
|
3
|
-
email?:
|
|
4
|
-
phone_number?:
|
|
2
|
+
name?: string;
|
|
3
|
+
email?: string;
|
|
4
|
+
phone_number?: string;
|
|
5
5
|
};
|
|
6
6
|
export type TChatwootMessagePayload = {
|
|
7
|
-
id?:
|
|
8
|
-
status?:
|
|
7
|
+
id?: string;
|
|
8
|
+
status?: string;
|
|
9
9
|
};
|
|
10
10
|
export type TWhatsAppWebhookStatus = {
|
|
11
11
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imessage-webhooks.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/imessage-webhooks.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"imessage-webhooks.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/imessage-webhooks.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IContato } from "../contato/icontato.js";
|
|
2
2
|
import type { IMessageChannelAccountResponse, TMessageChannel } from "./imessage-channel-account.js";
|
|
3
3
|
import type { ISendMessageRequest, ISendTemplateRequest } from "./isend-message.js";
|
|
4
|
-
import type { IWhatsAppTemplateDto, IWhatsAppTemplateVariable } from "./iwhatsapp-template.js";
|
|
4
|
+
import type { IWhatsAppTemplateDto, IWhatsAppTemplateVariable, TWhatsAppTemplateComponent } from "./iwhatsapp-template.js";
|
|
5
5
|
export interface IChannelOption {
|
|
6
6
|
label: string;
|
|
7
7
|
value: TMessageChannel;
|
|
@@ -22,7 +22,7 @@ export interface IContactWithChannel extends IContato {
|
|
|
22
22
|
selectedTemplate?: {
|
|
23
23
|
name: string;
|
|
24
24
|
language: string;
|
|
25
|
-
components:
|
|
25
|
+
components: TWhatsAppTemplateComponent[];
|
|
26
26
|
variables: IWhatsAppTemplateVariable[];
|
|
27
27
|
};
|
|
28
28
|
templateVariables?: Record<string, string>;
|
|
@@ -41,7 +41,7 @@ export interface IWhatsAppTemplateBodyComponent {
|
|
|
41
41
|
export interface IWhatsAppTemplatePreviewInput {
|
|
42
42
|
name: string;
|
|
43
43
|
language: string;
|
|
44
|
-
components?:
|
|
44
|
+
components?: TWhatsAppTemplateComponent[];
|
|
45
45
|
}
|
|
46
46
|
export interface IWhatsAppTemplatePreviewMultiItem {
|
|
47
47
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isend-dialog.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/isend-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,EACV,8BAA8B,EAC9B,eAAe,EAChB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EACV,oBAAoB,EACpB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"isend-dialog.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/isend-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,EACV,8BAA8B,EAC9B,eAAe,EAChB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EACV,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,yBAAyB,CAAC;AAEjC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,eAAe,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,I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CAAiC,EAAE,CAAC;AAExC,MAAM,WAAW,sCAAsC;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kCAAkC;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,sCAAsC,EAAE,CAAC;CACrD;AAED,MAAM,WAAW,0CAA0C;IACzD,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,mBAAmB,CAAC;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,6BAA6B,GACrC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,GAC/C;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnC,MAAM,MAAM,wBAAwB,GAChC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAA;CAAE,GACzD;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnC,MAAM,MAAM,8BAA8B,GACtC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,oBAAoB,CAAA;CAAE,GAC3C;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { TMessageChannel } from "./imessage-channel-account.js";
|
|
2
|
+
import type { TJsonObject, TJsonValue } from "../../types/json.js";
|
|
3
|
+
import type { TWhatsAppTemplateComponent } from "./iwhatsapp-template.js";
|
|
2
4
|
export type TEmailAttachment = {
|
|
3
5
|
filename: string;
|
|
4
6
|
contentType: string;
|
|
@@ -28,7 +30,7 @@ export type TSendWhatsAppTemplateRequest = TBaseSendMessageRequest & {
|
|
|
28
30
|
channel: "whatsapp";
|
|
29
31
|
templateName: string;
|
|
30
32
|
languageCode?: string;
|
|
31
|
-
components?:
|
|
33
|
+
components?: TWhatsAppTemplateComponent[];
|
|
32
34
|
};
|
|
33
35
|
export type TSendWhatsAppBaseRequest = TBaseSendMessageRequest & {
|
|
34
36
|
channel: "whatsapp";
|
|
@@ -44,7 +46,7 @@ export type TSendWhatsAppTemplateTypedRequest = Omit<TSendWhatsAppBaseRequest, "
|
|
|
44
46
|
type: "template";
|
|
45
47
|
templateName: string;
|
|
46
48
|
languageCode?: string;
|
|
47
|
-
components?:
|
|
49
|
+
components?: TWhatsAppTemplateComponent[];
|
|
48
50
|
};
|
|
49
51
|
export type TSendWhatsAppLocationRequest = Omit<TSendWhatsAppBaseRequest, "type"> & {
|
|
50
52
|
type: "location";
|
|
@@ -55,7 +57,7 @@ export type TSendWhatsAppLocationRequest = Omit<TSendWhatsAppBaseRequest, "type"
|
|
|
55
57
|
};
|
|
56
58
|
export type TSendWhatsAppContactsRequest = Omit<TSendWhatsAppBaseRequest, "type"> & {
|
|
57
59
|
type: "contacts";
|
|
58
|
-
contacts:
|
|
60
|
+
contacts: TJsonObject[];
|
|
59
61
|
};
|
|
60
62
|
export type TSendWhatsAppReactionRequest = Omit<TSendWhatsAppBaseRequest, "type"> & {
|
|
61
63
|
type: "reaction";
|
|
@@ -64,7 +66,7 @@ export type TSendWhatsAppReactionRequest = Omit<TSendWhatsAppBaseRequest, "type"
|
|
|
64
66
|
};
|
|
65
67
|
export type TSendWhatsAppInteractiveRequest = Omit<TSendWhatsAppBaseRequest, "type"> & {
|
|
66
68
|
type: "interactive";
|
|
67
|
-
interactive:
|
|
69
|
+
interactive: TJsonObject;
|
|
68
70
|
};
|
|
69
71
|
export type TSendWhatsAppMediaBase = Omit<TSendWhatsAppBaseRequest, "type"> & {
|
|
70
72
|
mediaId?: string;
|
|
@@ -99,6 +101,6 @@ export type TSendMessageResult = {
|
|
|
99
101
|
channel: TMessageChannel;
|
|
100
102
|
providerMessageId?: string;
|
|
101
103
|
trackingUid?: string;
|
|
102
|
-
raw?:
|
|
104
|
+
raw?: TJsonValue;
|
|
103
105
|
};
|
|
104
106
|
//# sourceMappingURL=isend-message-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isend-message-provider.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/isend-message-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"isend-message-provider.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/isend-message-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAE1E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,eAAe,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG;IACxD,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,C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C;AAEF,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAC5C,sBAAsB,EACtB,KAAK,CACN,GAAG;IACF,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,sBAAsB,GAAG;IAClE,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GACnC,6BAA6B,GAC7B,iCAAiC,GACjC,4BAA4B,GAC5B,4BAA4B,GAC5B,4BAA4B,GAC5B,+BAA+B,GAC/B,yBAAyB,GACzB,yBAAyB,GACzB,yBAAyB,GACzB,4BAA4B,GAC5B,2BAA2B,GAC3B,wBAAwB,GACxB,4BAA4B,CAAC;AAEjC,MAAM,MAAM,2BAA2B,GAAG,uBAAuB,GAAG;IAClE,OAAO,EAAE,UAAU,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAC3B,iBAAiB,GACjB,2BAA2B,GAC3B,2BAA2B,CAAC;AAEhC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,eAAe,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,UAAU,CAAC;CAClB,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import type { TJsonObject } from "../../types/json.js";
|
|
1
2
|
export interface IEmbeddedSignupResult {
|
|
2
3
|
phoneNumberId?: string;
|
|
3
4
|
wabaId?: string;
|
|
4
5
|
businessId?: string;
|
|
5
6
|
code: string;
|
|
6
7
|
}
|
|
8
|
+
export interface IFacebookLoginResponse {
|
|
9
|
+
authResponse?: {
|
|
10
|
+
code?: string;
|
|
11
|
+
};
|
|
12
|
+
status?: string;
|
|
13
|
+
}
|
|
7
14
|
export interface IFacebookInitOptions {
|
|
8
15
|
appId: string;
|
|
9
16
|
version: string;
|
|
@@ -15,20 +22,20 @@ export interface IFacebookLoginOptions {
|
|
|
15
22
|
response_type: string;
|
|
16
23
|
override_default_response_type: boolean;
|
|
17
24
|
extras: {
|
|
18
|
-
setup:
|
|
25
|
+
setup: TJsonObject;
|
|
19
26
|
};
|
|
20
27
|
}
|
|
21
28
|
export interface IFacebookSdk {
|
|
22
29
|
init: (options: IFacebookInitOptions) => void;
|
|
23
|
-
login: (callback: (response:
|
|
30
|
+
login: (callback: (response: IFacebookLoginResponse) => void, options: IFacebookLoginOptions) => void;
|
|
24
31
|
}
|
|
25
32
|
export interface IFacebookGlobal {
|
|
26
|
-
FB?:
|
|
33
|
+
FB?: IFacebookSdk;
|
|
27
34
|
fbAsyncInit?: () => void;
|
|
28
35
|
}
|
|
29
36
|
export interface IEmbeddedSignupMessagePayload {
|
|
30
|
-
type?:
|
|
31
|
-
event?:
|
|
32
|
-
data?:
|
|
37
|
+
type?: string;
|
|
38
|
+
event?: string;
|
|
39
|
+
data?: TJsonObject;
|
|
33
40
|
}
|
|
34
41
|
//# sourceMappingURL=iwhatsapp-embedded-signup-client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iwhatsapp-embedded-signup-client.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/iwhatsapp-embedded-signup-client.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,8BAA8B,EAAE,OAAO,CAAC;IACxC,MAAM,EAAE;QACN,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"iwhatsapp-embedded-signup-client.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/iwhatsapp-embedded-signup-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,YAAY,CAAC,EAAE;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,8BAA8B,EAAE,OAAO,CAAC;IACxC,MAAM,EAAE;QACN,KAAK,EAAE,WAAW,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,CAAC,OAAO,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC9C,KAAK,EAAE,CACL,QAAQ,EAAE,CAAC,QAAQ,EAAE,sBAAsB,KAAK,IAAI,EACpD,OAAO,EAAE,qBAAqB,KAC3B,IAAI,CAAC;CACX;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,6BAA6B;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { TJsonObject, TJsonValue } from "../../types/json.js";
|
|
1
2
|
export type TFetchLikeResponse = {
|
|
2
3
|
status?: number;
|
|
3
4
|
statusCode?: number;
|
|
4
5
|
ok?: boolean;
|
|
5
|
-
json?: () => Promise<
|
|
6
|
+
json?: () => Promise<TJsonValue>;
|
|
6
7
|
text?: () => Promise<string>;
|
|
7
8
|
arrayBuffer?: () => Promise<ArrayBuffer>;
|
|
8
9
|
};
|
|
@@ -32,11 +33,11 @@ export type TGetWabaFieldsRequest = TWhatsAppAccountRequestBase & {
|
|
|
32
33
|
wabaId: string;
|
|
33
34
|
fields: string[];
|
|
34
35
|
};
|
|
35
|
-
export type TCreateMessageTemplateRequest<TBody =
|
|
36
|
+
export type TCreateMessageTemplateRequest<TBody = TJsonObject> = TWhatsAppAccountRequestBase & {
|
|
36
37
|
wabaId: string;
|
|
37
38
|
body: TBody;
|
|
38
39
|
};
|
|
39
|
-
export type TUpdateMessageTemplateRequest<TBody =
|
|
40
|
+
export type TUpdateMessageTemplateRequest<TBody = TJsonObject> = TWhatsAppAccountRequestBase & {
|
|
40
41
|
wabaId: string;
|
|
41
42
|
templateNameOrId: string;
|
|
42
43
|
body: TBody;
|
|
@@ -50,62 +51,61 @@ export type TGetMessageTemplateRequest = TWhatsAppAccountRequestBase & {
|
|
|
50
51
|
templateNameOrId: string;
|
|
51
52
|
};
|
|
52
53
|
export type TWhatsAppAdvancedCategory = "groups" | "calling";
|
|
53
|
-
export type
|
|
54
|
-
export type TAdvancedRequestParams = TAdvancedRequestBase & {
|
|
54
|
+
export type TAdvancedRequestParams = TWhatsAppAccountRequestBase & {
|
|
55
55
|
category: TWhatsAppAdvancedCategory;
|
|
56
56
|
path: string;
|
|
57
57
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
58
58
|
query?: Record<string, string | undefined>;
|
|
59
|
-
body?:
|
|
59
|
+
body?: TJsonValue;
|
|
60
60
|
basePathOverride?: string;
|
|
61
61
|
};
|
|
62
|
-
export type TCreateGroupRequest =
|
|
62
|
+
export type TCreateGroupRequest = TWhatsAppAccountRequestBase & {
|
|
63
63
|
subject: string;
|
|
64
64
|
description?: string;
|
|
65
65
|
joinApprovalMode?: string;
|
|
66
66
|
};
|
|
67
|
-
export type TListActiveGroupsRequest =
|
|
67
|
+
export type TListActiveGroupsRequest = TWhatsAppAccountRequestBase & {
|
|
68
68
|
limit?: number;
|
|
69
69
|
};
|
|
70
|
-
export type TGetGroupInfoRequest =
|
|
70
|
+
export type TGetGroupInfoRequest = TWhatsAppAccountRequestBase & {
|
|
71
71
|
groupId: string;
|
|
72
72
|
fields?: string[];
|
|
73
73
|
};
|
|
74
|
-
export type TGroupIdRequest =
|
|
74
|
+
export type TGroupIdRequest = TWhatsAppAccountRequestBase & {
|
|
75
75
|
groupId: string;
|
|
76
76
|
};
|
|
77
|
-
export type TJoinRequestsRequest =
|
|
77
|
+
export type TJoinRequestsRequest = TWhatsAppAccountRequestBase & {
|
|
78
78
|
groupId: string;
|
|
79
79
|
joinRequests: string[];
|
|
80
80
|
};
|
|
81
|
-
export type TRemoveParticipantsRequest =
|
|
81
|
+
export type TRemoveParticipantsRequest = TWhatsAppAccountRequestBase & {
|
|
82
82
|
groupId: string;
|
|
83
83
|
participants: string[];
|
|
84
84
|
};
|
|
85
|
-
export type TPinMessageRequest =
|
|
85
|
+
export type TPinMessageRequest = TWhatsAppAccountRequestBase & {
|
|
86
86
|
groupId: string;
|
|
87
87
|
messageId: string;
|
|
88
88
|
expirationDays?: number;
|
|
89
89
|
};
|
|
90
|
-
export type TUnpinMessageRequest =
|
|
90
|
+
export type TUnpinMessageRequest = TWhatsAppAccountRequestBase & {
|
|
91
91
|
groupId: string;
|
|
92
92
|
messageId: string;
|
|
93
93
|
};
|
|
94
|
-
export type TStartBusinessInitiatedCallRequest =
|
|
94
|
+
export type TStartBusinessInitiatedCallRequest = TWhatsAppAccountRequestBase & {
|
|
95
95
|
to: string;
|
|
96
96
|
sdp: string;
|
|
97
97
|
};
|
|
98
|
-
export type TCallingControlRequest =
|
|
98
|
+
export type TCallingControlRequest = TWhatsAppAccountRequestBase & {
|
|
99
99
|
callId: string;
|
|
100
100
|
sdp?: string;
|
|
101
101
|
};
|
|
102
|
-
export type TCallingUpdateSettingsRequest =
|
|
103
|
-
calling:
|
|
102
|
+
export type TCallingUpdateSettingsRequest = TWhatsAppAccountRequestBase & {
|
|
103
|
+
calling: TJsonObject;
|
|
104
104
|
};
|
|
105
|
-
export type TCallingGetSettingsRequest =
|
|
105
|
+
export type TCallingGetSettingsRequest = TWhatsAppAccountRequestBase & {
|
|
106
106
|
includeSipCredentials?: boolean;
|
|
107
107
|
};
|
|
108
|
-
export type TDeleteGroupRequest =
|
|
108
|
+
export type TDeleteGroupRequest = TWhatsAppAccountRequestBase & {
|
|
109
109
|
groupId: string;
|
|
110
110
|
};
|
|
111
111
|
export type TUploadMediaRequest = TWhatsAppAccountRequestBase & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iwhatsapp-provider-requests.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/iwhatsapp-provider-requests.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"iwhatsapp-provider-requests.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/iwhatsapp-prov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ACrE,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,2BAA2B,GAAG;IAC9D,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,2BAA2B,GAAG;IAC9D,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,2BAA2B,GAAG;IAC9D,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,GAAG;IAChE,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,2BAA2B,GAAG;IAC9D,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { TJsonObject } from "../../types/json.js";
|
|
1
2
|
export type TWhatsAppTemplateComponent = {
|
|
2
3
|
type?: string;
|
|
3
4
|
text?: string;
|
|
4
|
-
example?:
|
|
5
|
-
} &
|
|
5
|
+
example?: TJsonObject;
|
|
6
|
+
} & TJsonObject;
|
|
6
7
|
export interface IWhatsAppTemplateVariable {
|
|
7
8
|
key: string;
|
|
8
9
|
example?: string;
|
|
@@ -32,10 +33,10 @@ export interface IUpdateWhatsAppTemplateRequest {
|
|
|
32
33
|
components?: TWhatsAppTemplateComponent[];
|
|
33
34
|
}
|
|
34
35
|
export interface ICreateWhatsAppTemplateResponse {
|
|
35
|
-
template:
|
|
36
|
+
template: TJsonObject;
|
|
36
37
|
}
|
|
37
38
|
export interface IUpdateWhatsAppTemplateResponse {
|
|
38
|
-
template:
|
|
39
|
+
template: TJsonObject;
|
|
39
40
|
}
|
|
40
41
|
export type TDeleteWhatsAppTemplateResponse = Record<string, never>;
|
|
41
42
|
//# sourceMappingURL=iwhatsapp-template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iwhatsapp-template.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/iwhatsapp-template.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"iwhatsapp-template.d.ts","sourceRoot":"","sources":["../../../src/interfaces/message-channel-account/iwhatsapp-template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB,GAAG,WAAW,CAAC;AAEhB,MAAM,WAAW,yBAAyB;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,0BAA0B,EAAE,CAAC;IACzC,SAAS,EAAE,yBAAyB,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,8BAA8B;IAC7C,SAAS,EAAE,oBAAoB,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,8BAA8B;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,WAAW,GAAG,SAAS,GAAG,gBAAgB,CAAC;IACrD,UAAU,EAAE,0BAA0B,EAAE,CAAC;CAC1C;AAED,MAAM,WAAW,8BAA8B;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,gBAAgB,CAAC;IACtD,UAAU,CAAC,EAAE,0BAA0B,EAAE,CAAC;CAC3C;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,EAAE,WAAW,CAAC;CACvB;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,EAAE,WAAW,CAAC;CACvB;AAED,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import type { TJsonObject, TJsonValue } from "../../types/json.js";
|
|
1
2
|
export interface IOrcamentoQueryResult {
|
|
2
3
|
id: number;
|
|
3
|
-
contatos?:
|
|
4
|
-
empresa?:
|
|
5
|
-
pessoa?:
|
|
6
|
-
vendedor?:
|
|
7
|
-
tiny_sales?:
|
|
4
|
+
contatos?: TJsonObject[];
|
|
5
|
+
empresa?: TJsonObject;
|
|
6
|
+
pessoa?: TJsonObject;
|
|
7
|
+
vendedor?: TJsonObject;
|
|
8
|
+
tiny_sales?: TJsonObject[];
|
|
8
9
|
orcamento_items?: Array<{
|
|
9
10
|
produto?: {
|
|
10
|
-
pedido_compra_items?:
|
|
11
|
+
pedido_compra_items?: TJsonObject[];
|
|
11
12
|
};
|
|
12
13
|
}>;
|
|
13
|
-
[key: string]:
|
|
14
|
+
[key: string]: TJsonValue;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=iorcamento-query-result.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iorcamento-query-result.d.ts","sourceRoot":"","sources":["../../../src/interfaces/orcamento/iorcamento-query-result.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"iorcamento-query-result.d.ts","sourceRoot":"","sources":["../../../src/interfaces/orcamento/iorcamento-query-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEnE,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IACzB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,UAAU,CAAC,EAAE,WAAW,EAAE,CAAC;IAC3B,eAAe,CAAC,EAAE,KAAK,CAAC;QACtB,OAAO,CAAC,EAAE;YACR,mBAAmB,CAAC,EAAE,WAAW,EAAE,CAAC;SACrC,CAAC;KACH,CAAC,CAAC;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC;CAC3B"}
|
|
@@ -13,7 +13,7 @@ export interface IFindAllConfig<T, P extends IFindAllParams = IFindAllParams> ex
|
|
|
13
13
|
paramsBuilder?: (request: Request) => P;
|
|
14
14
|
customWhereBuilder?: (params: P) => WhereOptions<T>;
|
|
15
15
|
dataFetcher?: (args: IFindAllDataFetcherArgs<T, P>) => Promise<{
|
|
16
|
-
rows:
|
|
16
|
+
rows: T[];
|
|
17
17
|
count: number;
|
|
18
18
|
}>;
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ifind-all-config.d.ts","sourceRoot":"","sources":["../../../src/interfaces/orm/ifind-all-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE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,SAAQ,qBAAqB;IAC7B,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;IAC9B,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,CAAC,CAAC;IACxC,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC;IACpD,WAAW,CAAC,EAAE,CACZ,IAAI,EAAE,uBAAuB,CAAC,CAAC,EAAE,CAAC,CAAC,KAChC,OAAO,CAAC;QAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC5C;AAKD,MAAM,WAAW,uBAAuB,CAAC,CAAC,EAAE,CAAC,SAAS,cAAc;IAClE,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,CAAC,CAAC;IACV,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;CAClC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IErrorResponse } from "../interfaces/common/ierror-response.js";
|
|
2
2
|
import { IPaginatedResponse } from "../interfaces/common/ipaginated-response.js";
|
|
3
3
|
import { ISuccessResponse } from "../interfaces/common/isuccess-response.js";
|
|
4
|
-
|
|
5
|
-
export type
|
|
4
|
+
import type { TJsonValue } from "./json.js";
|
|
5
|
+
export type TApiResponse<T = TJsonValue> = ISuccessResponse<T> | IErrorResponse;
|
|
6
|
+
export type TPaginatedApiResponse<T = TJsonValue> = IPaginatedResponse<T> | IErrorResponse;
|
|
6
7
|
//# sourceMappingURL=api-response.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-response.d.ts","sourceRoot":"","sources":["../../src/types/api-response.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"api-response.d.ts","sourceRoot":"","sources":["../../src/types/api-response.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAM5C,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,UAAU,IAAI,gBAAgB,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC;AAMhF,MAAM,MAAM,qBAAqB,CAAC,CAAC,GAAG,UAAU,IAC5C,kBAAkB,CAAC,CAAC,CAAC,GACrB,cAAc,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./ui.js";
|
|
|
9
9
|
export * from "./crypto.js";
|
|
10
10
|
export * from "./express.js";
|
|
11
11
|
export * from "./model.js";
|
|
12
|
+
export * from "./json.js";
|
|
12
13
|
export * from "./message-channel-account.js";
|
|
13
14
|
export * from "./message-delivery.js";
|
|
14
15
|
export * from "./auth.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
|
package/dist/types/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./ui.js";
|
|
|
9
9
|
export * from "./crypto.js";
|
|
10
10
|
export * from "./express.js";
|
|
11
11
|
export * from "./model.js";
|
|
12
|
+
export * from "./json.js";
|
|
12
13
|
export * from "./message-channel-account.js";
|
|
13
14
|
export * from "./message-delivery.js";
|
|
14
15
|
export * from "./auth.js";
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type TJsonPrimitive = string | number | boolean | null;
|
|
2
|
+
export type TJsonArray = TJsonValue[];
|
|
3
|
+
export type TJsonObject = {
|
|
4
|
+
[key: string]: TJsonValue;
|
|
5
|
+
};
|
|
6
|
+
export type TJsonValue = TJsonPrimitive | TJsonArray | TJsonObject;
|
|
7
|
+
//# sourceMappingURL=json.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/types/json.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAK9D,MAAM,MAAM,UAAU,GAAG,UAAU,EAAE,CAAC;AAKtC,MAAM,MAAM,WAAW,GAAG;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC;CAC3B,CAAC;AAKF,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json.js","sourceRoot":"","sources":["../../src/types/json.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { TMessageChannel } from "../interfaces/message-channel-account/imessage-channel-account.js";
|
|
2
|
+
import type { TMessageChannelAccountConfig } from "../interfaces/message-channel-account/imessage-provider-config.js";
|
|
2
3
|
import type { TPublicSaleQuoteEventType } from "../interfaces/orcamento/iorcamento-events.js";
|
|
4
|
+
import type { TJsonObject } from "./json.js";
|
|
3
5
|
export type TMessageChannelAccountAttributes = {
|
|
4
6
|
id?: number;
|
|
5
7
|
uId?: string;
|
|
@@ -8,7 +10,7 @@ export type TMessageChannelAccountAttributes = {
|
|
|
8
10
|
name: string;
|
|
9
11
|
isDefault: boolean;
|
|
10
12
|
isActive: boolean;
|
|
11
|
-
config:
|
|
13
|
+
config: TMessageChannelAccountConfig;
|
|
12
14
|
secretsEncrypted?: string | null;
|
|
13
15
|
secretsKeyVersion?: number;
|
|
14
16
|
createdAt?: Date;
|
|
@@ -30,7 +32,7 @@ export type TSaleQuotePublicAccessEventAttributes = {
|
|
|
30
32
|
requestIp?: string | null;
|
|
31
33
|
userAgent?: string | null;
|
|
32
34
|
responseStatusCode?: number | null;
|
|
33
|
-
payload?:
|
|
35
|
+
payload?: TJsonObject | null;
|
|
34
36
|
approverName?: string | null;
|
|
35
37
|
approverCpf?: string | null;
|
|
36
38
|
termsVersion?: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-channel-account.d.ts","sourceRoot":"","sources":["../../src/types/message-channel-account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mEAAmE,CAAC;AACz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,CAAC;IAClB,SAAS,EAAE,yBAAyB,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC9B,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TMessageChannel, TMessageDeliveryDirection } from "../interfaces/message-channel-account/imessage-channel-account.js";
|
|
2
|
+
import type { TJsonObject } from "./json.js";
|
|
2
3
|
export type TMessageWebhookEventAttributes = {
|
|
3
4
|
id?: number;
|
|
4
5
|
uId?: string;
|
|
@@ -6,7 +7,7 @@ export type TMessageWebhookEventAttributes = {
|
|
|
6
7
|
payloadHash: string;
|
|
7
8
|
providerMessageId?: string | null;
|
|
8
9
|
eventType?: string | null;
|
|
9
|
-
payload:
|
|
10
|
+
payload: TJsonObject;
|
|
10
11
|
receivedAt?: Date;
|
|
11
12
|
createdAt?: Date;
|
|
12
13
|
updatedAt?: Date;
|
|
@@ -20,8 +21,8 @@ export type TMessageDeliveryAttributes = {
|
|
|
20
21
|
status: string;
|
|
21
22
|
recipientContactId?: number | null;
|
|
22
23
|
accountUid?: string | null;
|
|
23
|
-
requestPayload?:
|
|
24
|
-
providerResponse?:
|
|
24
|
+
requestPayload?: TJsonObject | null;
|
|
25
|
+
providerResponse?: TJsonObject | null;
|
|
25
26
|
lastWebhookAt?: Date | null;
|
|
26
27
|
createdAt?: Date;
|
|
27
28
|
updatedAt?: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-delivery.d.ts","sourceRoot":"","sources":["../../src/types/message-delivery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,yBAAyB,EAC1B,MAAM,mEAAmE,CAAC;
|
|
1
|
+
{"version":3,"file":"message-delivery.d.ts","sourceRoot":"","sources":["../../src/types/message-delivery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,yBAAyB,EAC1B,MAAM,mEAAmE,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C,MAAM,MAAM,8BAA8B,GAAG;IAC3C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,eAAe,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,eAAe,CAAC;IACzB,SAAS,EAAE,yBAAyB,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,UAAU,CAAC,EAAE,MAAM,GAAG,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