@merkaly/api 0.28.4 → 0.28.6
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/account/auth/auth.d.ts +65 -0
- package/dist/account/auth/index.d.ts +2 -0
- package/dist/account/auth/index.js +1 -0
- package/dist/account/auth/request.validator.d.ts +8 -0
- package/dist/account/auth/request.validator.js +37 -0
- package/dist/dashboard/client/client.d.ts +36 -0
- package/dist/dashboard/client/index.d.ts +1 -0
- package/dist/dashboard/client/index.js +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -0
- package/dist/integration/payment/charge.enum.d.ts +15 -0
- package/dist/integration/payment/charge.enum.js +16 -0
- package/dist/integration/supplier/supplier.connection.entity.d.ts +1 -0
- package/dist/query.interface.d.ts +14 -0
- package/dist/settings/authentication/authentication.d.ts +6 -0
- package/dist/settings/authentication/index.d.ts +1 -0
- package/dist/settings/authentication/index.js +1 -0
- package/dist/settings/organization/index.d.ts +1 -0
- package/dist/settings/organization/organization.d.ts +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export interface AccountAuthIdentity {
|
|
2
|
+
connection: string;
|
|
3
|
+
isSocial: boolean;
|
|
4
|
+
profileData?: {
|
|
5
|
+
email?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
};
|
|
8
|
+
provider: string;
|
|
9
|
+
user_id: string | number;
|
|
10
|
+
}
|
|
11
|
+
export interface AccountAuthConnection {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
strategy: string;
|
|
15
|
+
}
|
|
16
|
+
export interface AccountAuthProfile {
|
|
17
|
+
avatar?: string;
|
|
18
|
+
email?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
picture?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface AccountAuthPasswordTicket {
|
|
23
|
+
ticket: string;
|
|
24
|
+
}
|
|
25
|
+
export interface AccountAuthOrganizationMetadata {
|
|
26
|
+
CONTACT_EMAIL?: string | null;
|
|
27
|
+
email?: string | null;
|
|
28
|
+
ORG_COUNTRY?: string | null;
|
|
29
|
+
ORG_CURRENCY?: string | null;
|
|
30
|
+
ORG_EMAIL?: string | null;
|
|
31
|
+
ORG_SIZE?: string | null;
|
|
32
|
+
ORG_TYPE?: string | null;
|
|
33
|
+
[key: string]: string | null | undefined;
|
|
34
|
+
}
|
|
35
|
+
export interface AccountAuthOrganization {
|
|
36
|
+
branding?: {
|
|
37
|
+
logo_url?: string;
|
|
38
|
+
};
|
|
39
|
+
display_name?: string;
|
|
40
|
+
id?: string;
|
|
41
|
+
metadata?: AccountAuthOrganizationMetadata;
|
|
42
|
+
name?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface AccountAuthOrganizationMember {
|
|
45
|
+
email?: string;
|
|
46
|
+
name?: string;
|
|
47
|
+
picture?: string;
|
|
48
|
+
roles?: {
|
|
49
|
+
id?: string;
|
|
50
|
+
name?: string;
|
|
51
|
+
}[];
|
|
52
|
+
user_id?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface AccountAuthOrganizationInvitation {
|
|
55
|
+
created_at?: string;
|
|
56
|
+
expires_at?: string;
|
|
57
|
+
id?: string;
|
|
58
|
+
invitee?: {
|
|
59
|
+
email: string;
|
|
60
|
+
};
|
|
61
|
+
inviter?: {
|
|
62
|
+
name: string;
|
|
63
|
+
};
|
|
64
|
+
roles?: string[];
|
|
65
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './request.validator.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AbstractRequestValidator } from '../../abstract.validator.js';
|
|
2
|
+
export declare class LinkIdentityRequestValidator extends AbstractRequestValidator {
|
|
3
|
+
idToken: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class UnlinkIdentityRequestValidator extends AbstractRequestValidator {
|
|
6
|
+
provider: string;
|
|
7
|
+
userId: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
import * as class_validator_1 from "class-validator";
|
|
12
|
+
import * as abstract_validator_1 from '../../abstract.validator.js';
|
|
13
|
+
export class LinkIdentityRequestValidator extends abstract_validator_1.AbstractRequestValidator {
|
|
14
|
+
idToken;
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, class_validator_1.IsJWT)(),
|
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
(0, class_validator_1.Length)(0, 8192),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], LinkIdentityRequestValidator.prototype, "idToken", void 0);
|
|
22
|
+
export class UnlinkIdentityRequestValidator extends abstract_validator_1.AbstractRequestValidator {
|
|
23
|
+
provider;
|
|
24
|
+
userId;
|
|
25
|
+
}
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
(0, class_validator_1.Length)(0, 100),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], UnlinkIdentityRequestValidator.prototype, "provider", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
+
(0, class_validator_1.Length)(0, 255),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], UnlinkIdentityRequestValidator.prototype, "userId", void 0);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { AccountAuthOrganization, AccountAuthOrganizationInvitation, AccountAuthOrganizationMember } from '../../account/auth';
|
|
2
|
+
export interface DashboardClientList {
|
|
3
|
+
items: AccountAuthOrganization[];
|
|
4
|
+
total: number;
|
|
5
|
+
}
|
|
6
|
+
export interface DashboardClientDetail {
|
|
7
|
+
invitations: AccountAuthOrganizationInvitation[];
|
|
8
|
+
members: AccountAuthOrganizationMember[];
|
|
9
|
+
organization: AccountAuthOrganization;
|
|
10
|
+
}
|
|
11
|
+
export interface DashboardClientRole {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}
|
|
15
|
+
export interface DashboardClientBillingPlan {
|
|
16
|
+
amount: number | null;
|
|
17
|
+
currency: string | null;
|
|
18
|
+
interval: string | null;
|
|
19
|
+
name: string | null;
|
|
20
|
+
}
|
|
21
|
+
export interface DashboardClientBillingSubscription {
|
|
22
|
+
cancelAtPeriodEnd: boolean;
|
|
23
|
+
currentPeriodEnd: number | null;
|
|
24
|
+
id: string;
|
|
25
|
+
plan: DashboardClientBillingPlan;
|
|
26
|
+
status: string;
|
|
27
|
+
}
|
|
28
|
+
export interface DashboardClientBilling {
|
|
29
|
+
customer: {
|
|
30
|
+
email: string | null;
|
|
31
|
+
id: string;
|
|
32
|
+
name: string | null;
|
|
33
|
+
} | null;
|
|
34
|
+
linked: boolean;
|
|
35
|
+
subscriptions: DashboardClientBillingSubscription[];
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/index.d.ts
CHANGED
|
@@ -7,15 +7,18 @@ export * from './address.entity';
|
|
|
7
7
|
export * from './transaction.entity';
|
|
8
8
|
export * from './contact.entity';
|
|
9
9
|
export * from './transitionable.interface';
|
|
10
|
+
export * from './query.interface';
|
|
10
11
|
export * from './abstract.entity';
|
|
11
12
|
export * from './abstract.transition';
|
|
12
13
|
export * from './abstract.validator';
|
|
13
14
|
export * from './relation.status.enum';
|
|
14
15
|
export * from './account/user';
|
|
16
|
+
export * from './account/auth';
|
|
15
17
|
export * from './assets/asset';
|
|
16
18
|
export * from './contact/customer';
|
|
17
19
|
export * from './contact/vendor';
|
|
18
20
|
export * from './dashboard/home';
|
|
21
|
+
export * from './dashboard/client';
|
|
19
22
|
export * from './finance/payment';
|
|
20
23
|
export * from './integration/supplier';
|
|
21
24
|
export * from './integration/payment';
|
|
@@ -28,4 +31,5 @@ export * from './order/purchase';
|
|
|
28
31
|
export * from './order/sale';
|
|
29
32
|
export * from './order/item';
|
|
30
33
|
export * from './settings/organization';
|
|
34
|
+
export * from './settings/authentication';
|
|
31
35
|
export type { SaveEntityArgs } from './repository.types';
|
package/dist/index.js
CHANGED
|
@@ -4,10 +4,12 @@ export * from './abstract.transition.js';
|
|
|
4
4
|
export * from './abstract.validator.js';
|
|
5
5
|
export * from './relation.status.enum.js';
|
|
6
6
|
export * from './account/user/index.js';
|
|
7
|
+
export * from './account/auth/index.js';
|
|
7
8
|
export * from './assets/asset/index.js';
|
|
8
9
|
export * from './contact/customer/index.js';
|
|
9
10
|
export * from './contact/vendor/index.js';
|
|
10
11
|
export * from './dashboard/home/index.js';
|
|
12
|
+
export * from './dashboard/client/index.js';
|
|
11
13
|
export * from './finance/payment/index.js';
|
|
12
14
|
export * from './integration/supplier/index.js';
|
|
13
15
|
export * from './integration/payment/index.js';
|
|
@@ -20,3 +22,4 @@ export * from './order/purchase/index.js';
|
|
|
20
22
|
export * from './order/sale/index.js';
|
|
21
23
|
export * from './order/item/index.js';
|
|
22
24
|
export * from './settings/organization/index.js';
|
|
25
|
+
export * from './settings/authentication/index.js';
|
|
@@ -7,6 +7,21 @@ export declare enum PaymentChargeStatusEnum {
|
|
|
7
7
|
EXPIRED = "EXPIRED",
|
|
8
8
|
REFUNDED = "REFUNDED"
|
|
9
9
|
}
|
|
10
|
+
export declare enum PaymentAsaasChargeStatusEnum {
|
|
11
|
+
AUTHORIZED = "AUTHORIZED",
|
|
12
|
+
AWAITING_CHARGEBACK_REVERSAL = "AWAITING_CHARGEBACK_REVERSAL",
|
|
13
|
+
AWAITING_RISK_ANALYSIS = "AWAITING_RISK_ANALYSIS",
|
|
14
|
+
CHARGEBACK_DISPUTE = "CHARGEBACK_DISPUTE",
|
|
15
|
+
CHARGEBACK_REQUESTED = "CHARGEBACK_REQUESTED",
|
|
16
|
+
CONFIRMED = "CONFIRMED",
|
|
17
|
+
OVERDUE = "OVERDUE",
|
|
18
|
+
PENDING = "PENDING",
|
|
19
|
+
RECEIVED = "RECEIVED",
|
|
20
|
+
RECEIVED_IN_CASH = "RECEIVED_IN_CASH",
|
|
21
|
+
REFUND_IN_PROGRESS = "REFUND_IN_PROGRESS",
|
|
22
|
+
REFUND_REQUESTED = "REFUND_REQUESTED",
|
|
23
|
+
REFUNDED = "REFUNDED"
|
|
24
|
+
}
|
|
10
25
|
export declare enum PaymentChargeAccountEnum {
|
|
11
26
|
MAIN = "MAIN",
|
|
12
27
|
SUBCONTA = "SUBCONTA"
|
|
@@ -8,6 +8,22 @@ export var PaymentChargeStatusEnum;
|
|
|
8
8
|
PaymentChargeStatusEnum["EXPIRED"] = "EXPIRED";
|
|
9
9
|
PaymentChargeStatusEnum["REFUNDED"] = "REFUNDED";
|
|
10
10
|
})(PaymentChargeStatusEnum || (PaymentChargeStatusEnum = {}));
|
|
11
|
+
export var PaymentAsaasChargeStatusEnum;
|
|
12
|
+
(function (PaymentAsaasChargeStatusEnum) {
|
|
13
|
+
PaymentAsaasChargeStatusEnum["AUTHORIZED"] = "AUTHORIZED";
|
|
14
|
+
PaymentAsaasChargeStatusEnum["AWAITING_CHARGEBACK_REVERSAL"] = "AWAITING_CHARGEBACK_REVERSAL";
|
|
15
|
+
PaymentAsaasChargeStatusEnum["AWAITING_RISK_ANALYSIS"] = "AWAITING_RISK_ANALYSIS";
|
|
16
|
+
PaymentAsaasChargeStatusEnum["CHARGEBACK_DISPUTE"] = "CHARGEBACK_DISPUTE";
|
|
17
|
+
PaymentAsaasChargeStatusEnum["CHARGEBACK_REQUESTED"] = "CHARGEBACK_REQUESTED";
|
|
18
|
+
PaymentAsaasChargeStatusEnum["CONFIRMED"] = "CONFIRMED";
|
|
19
|
+
PaymentAsaasChargeStatusEnum["OVERDUE"] = "OVERDUE";
|
|
20
|
+
PaymentAsaasChargeStatusEnum["PENDING"] = "PENDING";
|
|
21
|
+
PaymentAsaasChargeStatusEnum["RECEIVED"] = "RECEIVED";
|
|
22
|
+
PaymentAsaasChargeStatusEnum["RECEIVED_IN_CASH"] = "RECEIVED_IN_CASH";
|
|
23
|
+
PaymentAsaasChargeStatusEnum["REFUND_IN_PROGRESS"] = "REFUND_IN_PROGRESS";
|
|
24
|
+
PaymentAsaasChargeStatusEnum["REFUND_REQUESTED"] = "REFUND_REQUESTED";
|
|
25
|
+
PaymentAsaasChargeStatusEnum["REFUNDED"] = "REFUNDED";
|
|
26
|
+
})(PaymentAsaasChargeStatusEnum || (PaymentAsaasChargeStatusEnum = {}));
|
|
11
27
|
export var PaymentChargeAccountEnum;
|
|
12
28
|
(function (PaymentChargeAccountEnum) {
|
|
13
29
|
PaymentChargeAccountEnum["MAIN"] = "MAIN";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface MetaPagination {
|
|
2
|
+
currentPage: number;
|
|
3
|
+
nextPage: number | null;
|
|
4
|
+
pageLimit: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
prevPage: number | null;
|
|
7
|
+
totalItems: number;
|
|
8
|
+
totalPages: number;
|
|
9
|
+
}
|
|
10
|
+
export interface JoinPath {
|
|
11
|
+
path: string;
|
|
12
|
+
populate?: JoinOption[];
|
|
13
|
+
}
|
|
14
|
+
export type JoinOption = JoinPath | string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './authentication';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|