@merkaly/api 0.35.0 → 0.35.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/integration/payment/account.d.ts +5 -1
- package/dist/integration/payment/account.enum.d.ts +6 -0
- package/dist/integration/payment/account.enum.js +7 -0
- package/dist/integration/supplier/provider.enum.d.ts +4 -0
- package/dist/integration/supplier/provider.enum.js +5 -0
- package/dist/settings/organization/organization.contract.d.ts +8 -0
- package/dist/settings/organization/organization.d.ts +5 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PaymentAccountApprovalEnum, PaymentAccountCompanyTypeEnum, PaymentAccountDocumentStatusEnum, PaymentAccountTypeEnum, PaymentPixKeyTypeEnum } from './account.enum.js';
|
|
1
|
+
import type { PaymentAccountApprovalEnum, PaymentAccountCompanyTypeEnum, PaymentAccountDocumentStatusEnum, PaymentAccountReadinessEnum, PaymentAccountTypeEnum, PaymentPixKeyTypeEnum } from './account.enum.js';
|
|
2
2
|
import type { PaymentProviderEnum } from './provider.enum.js';
|
|
3
3
|
export interface PaymentAccountApproval {
|
|
4
4
|
general: PaymentAccountApprovalEnum;
|
|
@@ -34,6 +34,10 @@ export interface PaymentAccountStatus {
|
|
|
34
34
|
warnings: string[];
|
|
35
35
|
accountError: string | null;
|
|
36
36
|
}
|
|
37
|
+
export interface PaymentAccountReadiness {
|
|
38
|
+
canSell: boolean;
|
|
39
|
+
payments: PaymentAccountReadinessEnum;
|
|
40
|
+
}
|
|
37
41
|
export interface PaymentAccountDocument {
|
|
38
42
|
id: string;
|
|
39
43
|
type: string | null;
|
|
@@ -28,3 +28,9 @@ export declare enum PaymentPixKeyTypeEnum {
|
|
|
28
28
|
PHONE = "PHONE",
|
|
29
29
|
EVP = "EVP"
|
|
30
30
|
}
|
|
31
|
+
export declare enum PaymentAccountReadinessEnum {
|
|
32
|
+
NOT_CONNECTED = "NOT_CONNECTED",
|
|
33
|
+
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
34
|
+
REJECTED = "REJECTED",
|
|
35
|
+
READY = "READY"
|
|
36
|
+
}
|
|
@@ -33,3 +33,10 @@ export var PaymentPixKeyTypeEnum;
|
|
|
33
33
|
PaymentPixKeyTypeEnum["PHONE"] = "PHONE";
|
|
34
34
|
PaymentPixKeyTypeEnum["EVP"] = "EVP";
|
|
35
35
|
})(PaymentPixKeyTypeEnum || (PaymentPixKeyTypeEnum = {}));
|
|
36
|
+
export var PaymentAccountReadinessEnum;
|
|
37
|
+
(function (PaymentAccountReadinessEnum) {
|
|
38
|
+
PaymentAccountReadinessEnum["NOT_CONNECTED"] = "NOT_CONNECTED";
|
|
39
|
+
PaymentAccountReadinessEnum["PENDING_APPROVAL"] = "PENDING_APPROVAL";
|
|
40
|
+
PaymentAccountReadinessEnum["REJECTED"] = "REJECTED";
|
|
41
|
+
PaymentAccountReadinessEnum["READY"] = "READY";
|
|
42
|
+
})(PaymentAccountReadinessEnum || (PaymentAccountReadinessEnum = {}));
|
|
@@ -2,3 +2,8 @@ export var SupplierProviderEnum;
|
|
|
2
2
|
(function (SupplierProviderEnum) {
|
|
3
3
|
SupplierProviderEnum["ALIEXPRESS"] = "aliexpress";
|
|
4
4
|
})(SupplierProviderEnum || (SupplierProviderEnum = {}));
|
|
5
|
+
export var SupplierReadinessEnum;
|
|
6
|
+
(function (SupplierReadinessEnum) {
|
|
7
|
+
SupplierReadinessEnum["NOT_CONNECTED"] = "NOT_CONNECTED";
|
|
8
|
+
SupplierReadinessEnum["READY"] = "READY";
|
|
9
|
+
})(SupplierReadinessEnum || (SupplierReadinessEnum = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { SettingsOrganizationEnum, SettingsOrganizationSocialEnum } from './organization.enum.js';
|
|
2
|
+
import type { PaymentAccountReadinessEnum } from '../../integration/payment';
|
|
3
|
+
import type { SupplierReadinessEnum } from '../../integration/supplier';
|
|
2
4
|
export interface SettingsOrganizationLocationContract {
|
|
3
5
|
lat?: number;
|
|
4
6
|
lng?: number;
|
|
@@ -57,7 +59,13 @@ export interface SettingsOrganizationProfileContract {
|
|
|
57
59
|
identity: SettingsOrganizationIdentityContract;
|
|
58
60
|
localization: SettingsOrganizationLocalizationContract;
|
|
59
61
|
}
|
|
62
|
+
export interface SettingsOrganizationReadinessContract {
|
|
63
|
+
canSell: boolean;
|
|
64
|
+
payments: PaymentAccountReadinessEnum;
|
|
65
|
+
supplier: SupplierReadinessEnum;
|
|
66
|
+
}
|
|
60
67
|
export interface SettingsOrganizationProfileResponse extends SettingsOrganizationProfileContract {
|
|
68
|
+
readiness: SettingsOrganizationReadinessContract;
|
|
61
69
|
store: SettingsOrganizationStoreContract;
|
|
62
70
|
}
|
|
63
71
|
export interface SettingsOrganizationValueMap {
|
|
@@ -17,3 +17,8 @@ export interface SettingsOrganizationStoreProfile {
|
|
|
17
17
|
primaryColor?: string;
|
|
18
18
|
social?: SettingsOrganizationSocialContract;
|
|
19
19
|
}
|
|
20
|
+
export interface SettingsOrganizationStoreCompany extends SettingsOrganizationStoreProfile {
|
|
21
|
+
checkout: {
|
|
22
|
+
available: boolean;
|
|
23
|
+
};
|
|
24
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@merkaly/api",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shared TypeScript interfaces and enums for Merkaly API",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^26.6.1",
|
|
33
33
|
"changelogen": "^0.6.2",
|
|
34
|
-
"oxlint": "^1.
|
|
34
|
+
"oxlint": "^1.93.0",
|
|
35
35
|
"tsx": "^4.23.0",
|
|
36
36
|
"typescript": "^7.0.2"
|
|
37
37
|
},
|