@aptly-as/types 3.4.5 → 3.5.0
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/core/mongoose.d.ts +2 -2
- package/core/scope.d.ts +1 -0
- package/core/scope.js +1 -0
- package/enums/index.d.ts +3 -0
- package/enums/index.js +3 -0
- package/models/document.d.ts +2 -0
- package/models/note.d.ts +4 -0
- package/models/offer.d.ts +1 -1
- package/models/order.d.ts +8 -1
- package/models/order.js +1 -0
- package/models/payment.d.ts +2 -0
- package/package.json +1 -1
package/core/mongoose.d.ts
CHANGED
package/core/scope.d.ts
CHANGED
package/core/scope.js
CHANGED
|
@@ -5,6 +5,7 @@ export var AptlyModules;
|
|
|
5
5
|
AptlyModules["Core"] = "core";
|
|
6
6
|
AptlyModules["Default"] = "default";
|
|
7
7
|
AptlyModules["Departments"] = "departments";
|
|
8
|
+
AptlyModules["Documents"] = "documents";
|
|
8
9
|
AptlyModules["Emails"] = "emails";
|
|
9
10
|
AptlyModules["Members"] = "members";
|
|
10
11
|
AptlyModules["Offers"] = "offers";
|
package/enums/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare enum AptlyOrderStatus {
|
|
|
11
11
|
SignedByOrganization = "signedByOrganization",
|
|
12
12
|
Signed = "signed",
|
|
13
13
|
Payment = "payment",
|
|
14
|
+
Delivery = "delivery",
|
|
14
15
|
FileReceived = "fileReceived",
|
|
15
16
|
Completed = "completed",
|
|
16
17
|
AllPeriodsSigned = "allPeriodsSigned",
|
|
@@ -141,6 +142,8 @@ export declare enum AptlyEmailType {
|
|
|
141
142
|
Offer = "offer",
|
|
142
143
|
OfferAccepted = "offer-accepted",
|
|
143
144
|
OrderCreated = "order-created",
|
|
145
|
+
OrderDelivery = "order-delivery",
|
|
146
|
+
OrderDeliver = "order-deliver",
|
|
144
147
|
OrderSign = "order-sign",
|
|
145
148
|
OrderSignNotify = "order-sign-notify",
|
|
146
149
|
OrderSignExpired = "order-sign-expired",
|
package/enums/index.js
CHANGED
|
@@ -12,6 +12,7 @@ export var AptlyOrderStatus;
|
|
|
12
12
|
AptlyOrderStatus["SignedByOrganization"] = "signedByOrganization";
|
|
13
13
|
AptlyOrderStatus["Signed"] = "signed";
|
|
14
14
|
AptlyOrderStatus["Payment"] = "payment";
|
|
15
|
+
AptlyOrderStatus["Delivery"] = "delivery";
|
|
15
16
|
AptlyOrderStatus["FileReceived"] = "fileReceived";
|
|
16
17
|
AptlyOrderStatus["Completed"] = "completed";
|
|
17
18
|
AptlyOrderStatus["AllPeriodsSigned"] = "allPeriodsSigned";
|
|
@@ -160,6 +161,8 @@ export var AptlyEmailType;
|
|
|
160
161
|
AptlyEmailType["Offer"] = "offer";
|
|
161
162
|
AptlyEmailType["OfferAccepted"] = "offer-accepted";
|
|
162
163
|
AptlyEmailType["OrderCreated"] = "order-created";
|
|
164
|
+
AptlyEmailType["OrderDelivery"] = "order-delivery";
|
|
165
|
+
AptlyEmailType["OrderDeliver"] = "order-deliver";
|
|
163
166
|
AptlyEmailType["OrderSign"] = "order-sign";
|
|
164
167
|
AptlyEmailType["OrderSignNotify"] = "order-sign-notify";
|
|
165
168
|
AptlyEmailType["OrderSignExpired"] = "order-sign-expired";
|
package/models/document.d.ts
CHANGED
package/models/note.d.ts
CHANGED
|
@@ -4,12 +4,15 @@ import { AptlyOrganizationSchema } from './organization.js';
|
|
|
4
4
|
import { AptlyProjectSchema } from './project.js';
|
|
5
5
|
import { AptlyUnitSchema } from './unit.js';
|
|
6
6
|
import { AptlyUserSchema } from './user.js';
|
|
7
|
+
import { AptlyDocumentSchema } from './document';
|
|
8
|
+
import { AptlyOfferSchema } from './offer';
|
|
7
9
|
export type AptlyNote = AptlyNoteSchema<string, string>;
|
|
8
10
|
export interface AptlyNoteSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
9
11
|
content: string;
|
|
10
12
|
organization: ID | AptlyOrganizationSchema<ID, DATE>;
|
|
11
13
|
project: ID | AptlyProjectSchema<ID, DATE>;
|
|
12
14
|
unit: ID | AptlyUnitSchema<ID, DATE>;
|
|
15
|
+
offer: ID | AptlyOfferSchema<ID, DATE>;
|
|
13
16
|
category: ID | AptlyCategorySchema<ID, DATE> | null;
|
|
14
17
|
users: (ID | AptlyUserSchema<ID, DATE>)[];
|
|
15
18
|
addToReceipt: boolean;
|
|
@@ -18,4 +21,5 @@ export interface AptlyNoteSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
|
18
21
|
reminderDate?: DATE | null;
|
|
19
22
|
hasReminder?: boolean;
|
|
20
23
|
author?: ID | AptlyUserSchema<ID, DATE>;
|
|
24
|
+
documents?: (ID | AptlyDocumentSchema<ID, DATE>)[];
|
|
21
25
|
}
|
package/models/offer.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export interface AptlyOfferSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>, O
|
|
|
18
18
|
unit: ID | AptlyUnitSchema<ID, DATE> | null;
|
|
19
19
|
order: ID | AptlyOrderSchema<ID, DATE> | null;
|
|
20
20
|
document: ID | AptlyDocumentSchema<ID, DATE> | null;
|
|
21
|
-
createdBy:
|
|
21
|
+
createdBy: Populated<AptlyUserSchema<ID, DATE>> | null;
|
|
22
22
|
expiresAt: DATE | null;
|
|
23
23
|
sentAt: DATE | null;
|
|
24
24
|
number?: number;
|
package/models/order.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { AptlyProject, AptlyProjectPeriodSchema, AptlyProjectSchema } from './pr
|
|
|
14
14
|
import { AptlyUnit, AptlyUnitItemParamSchema, AptlyUnitSchema } from './unit.js';
|
|
15
15
|
import { AptlyBaseSchema } from './extends.js';
|
|
16
16
|
import { AptlyUser, AptlyUserSchema } from './user.js';
|
|
17
|
+
import { Populated } from '../core';
|
|
17
18
|
export declare enum AptlyOrderPaymentStatus {
|
|
18
19
|
Pending = "PENDING",
|
|
19
20
|
Authorized = "AUTHORIZED",
|
|
@@ -57,7 +58,10 @@ export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DAT
|
|
|
57
58
|
};
|
|
58
59
|
paymentSession?: AptlyOrderPaymentSessionSchema<ID, DATE> | null;
|
|
59
60
|
payment?: ID | AptlyPaymentSchema<ID, DATE>;
|
|
60
|
-
|
|
61
|
+
shippingDate?: DATE;
|
|
62
|
+
shippingDescription?: string;
|
|
63
|
+
completedAt?: DATE | null;
|
|
64
|
+
createdBy?: Populated<AptlyUserSchema<ID, DATE>> | null;
|
|
61
65
|
createdByAdmin?: boolean;
|
|
62
66
|
created: DATE;
|
|
63
67
|
}
|
|
@@ -134,6 +138,7 @@ export interface AptlyOrderItemPricePipelineSchema<ID> {
|
|
|
134
138
|
}
|
|
135
139
|
export declare enum AptlyOrderAction {
|
|
136
140
|
Complete = "complete",
|
|
141
|
+
Delivery = "delivery",
|
|
137
142
|
Payment = "payment",
|
|
138
143
|
SignManually = "sign-manually",
|
|
139
144
|
Sign = "sign"
|
|
@@ -147,6 +152,8 @@ export interface AptlyOrderActionPostBody {
|
|
|
147
152
|
emailMarkdown: string;
|
|
148
153
|
users: AptlyOrderActionPostBodyUser[];
|
|
149
154
|
deadlineInDays?: number;
|
|
155
|
+
shippingDate?: string | null;
|
|
156
|
+
shippingDescription?: string | null;
|
|
150
157
|
}
|
|
151
158
|
export interface AptlyOrderActionPostBodyUser {
|
|
152
159
|
user: string;
|
package/models/order.js
CHANGED
|
@@ -15,6 +15,7 @@ export var AptlyOrderSigneeType;
|
|
|
15
15
|
export var AptlyOrderAction;
|
|
16
16
|
(function (AptlyOrderAction) {
|
|
17
17
|
AptlyOrderAction["Complete"] = "complete";
|
|
18
|
+
AptlyOrderAction["Delivery"] = "delivery";
|
|
18
19
|
AptlyOrderAction["Payment"] = "payment";
|
|
19
20
|
AptlyOrderAction["SignManually"] = "sign-manually";
|
|
20
21
|
AptlyOrderAction["Sign"] = "sign";
|
package/models/payment.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { AptlyProjectContent, AptlyProjectSchema } from './project.js';
|
|
|
11
11
|
import { AptlyUnitContent, AptlyUnitSchema } from './unit.js';
|
|
12
12
|
import { AptlyUserSchema } from './user.js';
|
|
13
13
|
import { AptlyOfferSchema } from './offer';
|
|
14
|
+
import { Populated } from '../core';
|
|
14
15
|
export type AptlyPayment = AptlyPaymentSchema<string, string>;
|
|
15
16
|
export interface AptlyPaymentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
|
|
16
17
|
organization: ID | AptlyOrganizationSchema<ID, DATE>;
|
|
@@ -51,6 +52,7 @@ export interface AptlyPaymentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, D
|
|
|
51
52
|
amount: number;
|
|
52
53
|
at: DATE;
|
|
53
54
|
};
|
|
55
|
+
createdBy: Populated<AptlyUserSchema<ID, DATE>> | null;
|
|
54
56
|
}
|
|
55
57
|
export declare enum AptlyPaymentStatus {
|
|
56
58
|
Authorized = "AUTHORIZED",
|