@cakemail-org/ui-components-v2 2.1.47 → 2.1.49
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/cjs/index.js
CHANGED
|
@@ -9567,6 +9567,7 @@ var AccountModel = /** @class */ (function () {
|
|
|
9567
9567
|
this.stripe_customer_id = params.stripe_customer_id || "";
|
|
9568
9568
|
this.metadata = params.metadata || {};
|
|
9569
9569
|
this.usage = params.usage || undefined;
|
|
9570
|
+
this.account_owner = params.account_owner || { user_id: 0 };
|
|
9570
9571
|
if (params.isMainAccount) {
|
|
9571
9572
|
this.getUsageReport();
|
|
9572
9573
|
}
|
|
@@ -10478,10 +10479,9 @@ function listSuppressedEmails(_a) {
|
|
|
10478
10479
|
function deleteSuppressedEmail(_a) {
|
|
10479
10480
|
var email = _a.email;
|
|
10480
10481
|
return callApi({
|
|
10481
|
-
url: uiKitConfig.GATEWAY_PROXY + "/suppressed-emails",
|
|
10482
|
+
url: uiKitConfig.GATEWAY_PROXY + "/suppressed-emails/" + email,
|
|
10482
10483
|
fetchOptions: {
|
|
10483
10484
|
method: exports.EMethods.delete,
|
|
10484
|
-
body: { email: email }
|
|
10485
10485
|
}
|
|
10486
10486
|
});
|
|
10487
10487
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TBrand } from "../../factories";
|
|
2
|
-
import { TAccountAddress, TAccountDomains, TAccountLimits, TAccountModel, TAccountReport, TGetAccountReport } from "./types";
|
|
2
|
+
import { TAccountAddress, TAccountDomains, TAccountLimits, TAccountModel, TAccountOwner, TAccountReport, TGetAccountReport } from "./types";
|
|
3
3
|
export declare class AccountModel {
|
|
4
4
|
readonly id: number;
|
|
5
5
|
readonly lineage: string;
|
|
@@ -19,6 +19,7 @@ export declare class AccountModel {
|
|
|
19
19
|
stripe_customer_id: string;
|
|
20
20
|
metadata: any;
|
|
21
21
|
usage?: TAccountReport;
|
|
22
|
+
account_owner: TAccountOwner;
|
|
22
23
|
constructor(params: Partial<TAccountModel> & {
|
|
23
24
|
isMainAccount?: boolean;
|
|
24
25
|
usage?: TAccountReport;
|
|
@@ -16,6 +16,7 @@ export interface TAccountModel {
|
|
|
16
16
|
stripe_customer_id: string;
|
|
17
17
|
organization: boolean;
|
|
18
18
|
metadata: any;
|
|
19
|
+
account_owner: TAccountOwner;
|
|
19
20
|
}
|
|
20
21
|
export interface TCreateAccount {
|
|
21
22
|
name: string;
|
|
@@ -107,3 +108,6 @@ export type TAccountDomains = {
|
|
|
107
108
|
dkim: "string";
|
|
108
109
|
tracking: "string";
|
|
109
110
|
};
|
|
111
|
+
export type TAccountOwner = {
|
|
112
|
+
user_id: number;
|
|
113
|
+
};
|
package/dist/esm/index.js
CHANGED
|
@@ -9547,6 +9547,7 @@ var AccountModel = /** @class */ (function () {
|
|
|
9547
9547
|
this.stripe_customer_id = params.stripe_customer_id || "";
|
|
9548
9548
|
this.metadata = params.metadata || {};
|
|
9549
9549
|
this.usage = params.usage || undefined;
|
|
9550
|
+
this.account_owner = params.account_owner || { user_id: 0 };
|
|
9550
9551
|
if (params.isMainAccount) {
|
|
9551
9552
|
this.getUsageReport();
|
|
9552
9553
|
}
|
|
@@ -10458,10 +10459,9 @@ function listSuppressedEmails(_a) {
|
|
|
10458
10459
|
function deleteSuppressedEmail(_a) {
|
|
10459
10460
|
var email = _a.email;
|
|
10460
10461
|
return callApi({
|
|
10461
|
-
url: uiKitConfig.GATEWAY_PROXY + "/suppressed-emails",
|
|
10462
|
+
url: uiKitConfig.GATEWAY_PROXY + "/suppressed-emails/" + email,
|
|
10462
10463
|
fetchOptions: {
|
|
10463
10464
|
method: EMethods.delete,
|
|
10464
|
-
body: { email: email }
|
|
10465
10465
|
}
|
|
10466
10466
|
});
|
|
10467
10467
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TBrand } from "../../factories";
|
|
2
|
-
import { TAccountAddress, TAccountDomains, TAccountLimits, TAccountModel, TAccountReport, TGetAccountReport } from "./types";
|
|
2
|
+
import { TAccountAddress, TAccountDomains, TAccountLimits, TAccountModel, TAccountOwner, TAccountReport, TGetAccountReport } from "./types";
|
|
3
3
|
export declare class AccountModel {
|
|
4
4
|
readonly id: number;
|
|
5
5
|
readonly lineage: string;
|
|
@@ -19,6 +19,7 @@ export declare class AccountModel {
|
|
|
19
19
|
stripe_customer_id: string;
|
|
20
20
|
metadata: any;
|
|
21
21
|
usage?: TAccountReport;
|
|
22
|
+
account_owner: TAccountOwner;
|
|
22
23
|
constructor(params: Partial<TAccountModel> & {
|
|
23
24
|
isMainAccount?: boolean;
|
|
24
25
|
usage?: TAccountReport;
|
|
@@ -16,6 +16,7 @@ export interface TAccountModel {
|
|
|
16
16
|
stripe_customer_id: string;
|
|
17
17
|
organization: boolean;
|
|
18
18
|
metadata: any;
|
|
19
|
+
account_owner: TAccountOwner;
|
|
19
20
|
}
|
|
20
21
|
export interface TCreateAccount {
|
|
21
22
|
name: string;
|
|
@@ -107,3 +108,6 @@ export type TAccountDomains = {
|
|
|
107
108
|
dkim: "string";
|
|
108
109
|
tracking: "string";
|
|
109
110
|
};
|
|
111
|
+
export type TAccountOwner = {
|
|
112
|
+
user_id: number;
|
|
113
|
+
};
|