@aptly-as/types 2.4.2 → 2.4.3
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/enums/index.d.ts +1 -0
- package/enums/index.js +1 -0
- package/models/order.d.ts +18 -9
- package/models/order.js +1 -0
- package/models/payment.d.ts +1 -3
- package/models/unit.d.ts +2 -5
- package/models/user.d.ts +1 -0
- package/package.json +1 -1
package/enums/index.d.ts
CHANGED
|
@@ -136,6 +136,7 @@ export declare enum AptlyEmailType {
|
|
|
136
136
|
OrderSign = "order-sign",
|
|
137
137
|
OrderSigned = "order-signed",
|
|
138
138
|
OrderPay = "order-pay",
|
|
139
|
+
OrderPayFailed = "order-pay-failed",
|
|
139
140
|
OrderPayed = "order-payed",
|
|
140
141
|
OrderReceipt = "order-receipt",
|
|
141
142
|
OrderCompleted = "order-completed",
|
package/enums/index.js
CHANGED
|
@@ -156,6 +156,7 @@ export var AptlyEmailType;
|
|
|
156
156
|
AptlyEmailType["OrderSign"] = "order-sign";
|
|
157
157
|
AptlyEmailType["OrderSigned"] = "order-signed";
|
|
158
158
|
AptlyEmailType["OrderPay"] = "order-pay";
|
|
159
|
+
AptlyEmailType["OrderPayFailed"] = "order-pay-failed";
|
|
159
160
|
AptlyEmailType["OrderPayed"] = "order-payed";
|
|
160
161
|
AptlyEmailType["OrderReceipt"] = "order-receipt";
|
|
161
162
|
AptlyEmailType["OrderCompleted"] = "order-completed";
|
package/models/order.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { AptlyBaseSchema } from './extends.js';
|
|
|
11
11
|
import { AptlyUser, AptlyUserSchema } from './user.js';
|
|
12
12
|
export declare enum AptlyOrderPaymentStatus {
|
|
13
13
|
Pending = "PENDING",
|
|
14
|
+
OnHold = "ON_HOLD",
|
|
14
15
|
Authorized = "AUTHORIZED",
|
|
15
16
|
Captured = "CAPTURED"
|
|
16
17
|
}
|
|
@@ -39,16 +40,20 @@ export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DAT
|
|
|
39
40
|
user?: ID | AptlyUserSchema<ID, DATE>;
|
|
40
41
|
at?: DATE;
|
|
41
42
|
};
|
|
42
|
-
paymentSession?: AptlyOrderPaymentSessionSchema<DATE> | null;
|
|
43
|
+
paymentSession?: AptlyOrderPaymentSessionSchema<ID, DATE> | null;
|
|
43
44
|
payment?: ID | AptlyPaymentSchema<ID, DATE>;
|
|
45
|
+
createdBy?: ID | AptlyUserSchema<ID, DATE>;
|
|
46
|
+
createdByAdmin?: boolean;
|
|
44
47
|
created: DATE;
|
|
45
48
|
}
|
|
46
|
-
export type AptlyOrderPaymentSession = AptlyOrderPaymentSessionSchema<string>;
|
|
47
|
-
export interface AptlyOrderPaymentSessionSchema<DATE> {
|
|
48
|
-
status
|
|
49
|
-
url
|
|
50
|
-
id
|
|
51
|
-
at
|
|
49
|
+
export type AptlyOrderPaymentSession = AptlyOrderPaymentSessionSchema<string, string>;
|
|
50
|
+
export interface AptlyOrderPaymentSessionSchema<ID, DATE> {
|
|
51
|
+
status?: AptlyOrderPaymentStatus;
|
|
52
|
+
url?: string;
|
|
53
|
+
id?: string;
|
|
54
|
+
at?: DATE | null;
|
|
55
|
+
user?: ID | null;
|
|
56
|
+
expiresAt?: DATE | null;
|
|
52
57
|
paidAt?: DATE | null;
|
|
53
58
|
capturedAt?: DATE | null;
|
|
54
59
|
}
|
|
@@ -72,10 +77,14 @@ export interface AptlyOrderPricePipelineItemSchema<ID> {
|
|
|
72
77
|
}
|
|
73
78
|
export type AptlyOrderSignage = AptlyOrderSignageSchema<string, string>;
|
|
74
79
|
export interface AptlyOrderSignageSchema<ID, DATE> {
|
|
75
|
-
hasReceivedFile: boolean;
|
|
76
80
|
signed: boolean;
|
|
77
|
-
|
|
81
|
+
createdAt?: DATE | null;
|
|
82
|
+
expiresAt?: DATE | null;
|
|
83
|
+
signedAt?: DATE | null;
|
|
84
|
+
document?: ID | AptlyDocumentSchema<ID, DATE>;
|
|
85
|
+
hasReceivedFile?: boolean;
|
|
78
86
|
signedFile?: ID | AptlyDocumentSchema<ID, DATE>;
|
|
87
|
+
documentId?: ID;
|
|
79
88
|
documentCreationDate?: DATE;
|
|
80
89
|
expireDate?: DATE;
|
|
81
90
|
customerSignerId?: string;
|
package/models/order.js
CHANGED
|
@@ -2,6 +2,7 @@ import { AptlyAppImplementationSetting } from './app.js';
|
|
|
2
2
|
export var AptlyOrderPaymentStatus;
|
|
3
3
|
(function (AptlyOrderPaymentStatus) {
|
|
4
4
|
AptlyOrderPaymentStatus["Pending"] = "PENDING";
|
|
5
|
+
AptlyOrderPaymentStatus["OnHold"] = "ON_HOLD";
|
|
5
6
|
AptlyOrderPaymentStatus["Authorized"] = "AUTHORIZED";
|
|
6
7
|
AptlyOrderPaymentStatus["Captured"] = "CAPTURED";
|
|
7
8
|
})(AptlyOrderPaymentStatus || (AptlyOrderPaymentStatus = {}));
|
package/models/payment.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { AptlyAddress, AptlyBaseSchema } from './extends.js';
|
|
|
4
4
|
import { AptlyOrderPaymentStatus, AptlyOrderSchema } from './order.js';
|
|
5
5
|
import { AptlyOrganizationSchema } from './organization.js';
|
|
6
6
|
import { AptlyProjectSchema } from './project.js';
|
|
7
|
-
import {
|
|
7
|
+
import { AptlyUnitSchema } from './unit.js';
|
|
8
8
|
import { AptlyUserSchema } from './user.js';
|
|
9
9
|
export type AptlyPayment = AptlyPaymentSchema<string, string>;
|
|
10
10
|
export interface AptlyPaymentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
|
|
@@ -60,7 +60,6 @@ export interface AptlyPaymentCustomerSchema<ID, DATE> {
|
|
|
60
60
|
lastName: string;
|
|
61
61
|
email: string;
|
|
62
62
|
phone?: string;
|
|
63
|
-
company?: AptlyUnitCompany;
|
|
64
63
|
}
|
|
65
64
|
export interface AptlyPaymentItemSchema<ID> {
|
|
66
65
|
_id: ID;
|
|
@@ -88,7 +87,6 @@ export interface AptlyPaymentTransactionBody {
|
|
|
88
87
|
lastName: string;
|
|
89
88
|
email: string;
|
|
90
89
|
phone?: string;
|
|
91
|
-
company?: AptlyUnitCompany;
|
|
92
90
|
};
|
|
93
91
|
card: AptlyPayment['card'];
|
|
94
92
|
shipping: AptlyAddress;
|
package/models/unit.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export interface AptlyUnitSchema<ID, DATE> extends AptlyUnitTemplateBaseSchema<I
|
|
|
13
13
|
vat?: string;
|
|
14
14
|
shipping?: AptlyAddress;
|
|
15
15
|
billing?: AptlyAddress;
|
|
16
|
-
company?: AptlyUnitCompany;
|
|
17
16
|
rooms: AptlyUnitRoomSchema<ID>[];
|
|
18
17
|
selectedOptions: AptlyUnitSelectedOptionSchema<ID, DATE>[];
|
|
19
18
|
items: AptlyUnitOptionItemSchema<ID, DATE>[];
|
|
@@ -228,16 +227,14 @@ export interface AptlyUnitInviteSchema<ID, DATE> {
|
|
|
228
227
|
created: DATE;
|
|
229
228
|
createdBy?: ID | AptlyUserSchema<ID, DATE>;
|
|
230
229
|
newOwner: boolean;
|
|
230
|
+
allowAsGuest?: boolean;
|
|
231
231
|
sendCount?: number;
|
|
232
232
|
claim: {
|
|
233
233
|
email: string;
|
|
234
|
+
fullName?: string;
|
|
234
235
|
claimed: boolean;
|
|
235
236
|
claimedBy: ID;
|
|
236
237
|
claimTime: DATE;
|
|
237
238
|
};
|
|
238
239
|
}
|
|
239
|
-
export interface AptlyUnitCompany {
|
|
240
|
-
name?: string;
|
|
241
|
-
vat?: string;
|
|
242
|
-
}
|
|
243
240
|
export {};
|
package/models/user.d.ts
CHANGED