@aptly-as/types 2.3.0 → 2.3.2
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 +13 -0
- package/enums/index.js +15 -0
- package/models/algorithm.d.ts +3 -1
- package/models/algorithm.js +1 -0
- package/models/app.d.ts +1 -0
- package/models/module.d.ts +1 -0
- package/models/order.d.ts +2 -1
- package/models/organization.d.ts +4 -0
- package/models/unit-email.d.ts +3 -3
- package/package.json +1 -1
package/enums/index.d.ts
CHANGED
|
@@ -111,3 +111,16 @@ export declare enum AptlyProjectStatus {
|
|
|
111
111
|
Started = "started",
|
|
112
112
|
Completed = "completed"
|
|
113
113
|
}
|
|
114
|
+
export declare enum AptlyOrganizationType {
|
|
115
|
+
Carpenter = "carpenter",
|
|
116
|
+
Contractor = "contractor",
|
|
117
|
+
Electrician = "electrician",
|
|
118
|
+
Plumber = "plumber"
|
|
119
|
+
}
|
|
120
|
+
export declare enum AptlyOrganizationStatus {
|
|
121
|
+
NewBusiness = 0,
|
|
122
|
+
Active = 1,
|
|
123
|
+
Inactive = 2,
|
|
124
|
+
Paused = 3,
|
|
125
|
+
Closed = 4
|
|
126
|
+
}
|
package/enums/index.js
CHANGED
|
@@ -128,3 +128,18 @@ export var AptlyProjectStatus;
|
|
|
128
128
|
AptlyProjectStatus["Started"] = "started";
|
|
129
129
|
AptlyProjectStatus["Completed"] = "completed";
|
|
130
130
|
})(AptlyProjectStatus || (AptlyProjectStatus = {}));
|
|
131
|
+
export var AptlyOrganizationType;
|
|
132
|
+
(function (AptlyOrganizationType) {
|
|
133
|
+
AptlyOrganizationType["Carpenter"] = "carpenter";
|
|
134
|
+
AptlyOrganizationType["Contractor"] = "contractor";
|
|
135
|
+
AptlyOrganizationType["Electrician"] = "electrician";
|
|
136
|
+
AptlyOrganizationType["Plumber"] = "plumber";
|
|
137
|
+
})(AptlyOrganizationType || (AptlyOrganizationType = {}));
|
|
138
|
+
export var AptlyOrganizationStatus;
|
|
139
|
+
(function (AptlyOrganizationStatus) {
|
|
140
|
+
AptlyOrganizationStatus[AptlyOrganizationStatus["NewBusiness"] = 0] = "NewBusiness";
|
|
141
|
+
AptlyOrganizationStatus[AptlyOrganizationStatus["Active"] = 1] = "Active";
|
|
142
|
+
AptlyOrganizationStatus[AptlyOrganizationStatus["Inactive"] = 2] = "Inactive";
|
|
143
|
+
AptlyOrganizationStatus[AptlyOrganizationStatus["Paused"] = 3] = "Paused";
|
|
144
|
+
AptlyOrganizationStatus[AptlyOrganizationStatus["Closed"] = 4] = "Closed";
|
|
145
|
+
})(AptlyOrganizationStatus || (AptlyOrganizationStatus = {}));
|
package/models/algorithm.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ export declare enum AptlyAlgorithmPipelineOperation {
|
|
|
3
3
|
Add = "add",
|
|
4
4
|
Subtract = "subtract",
|
|
5
5
|
Multiply = "multiply",
|
|
6
|
-
Vat = "vat"
|
|
6
|
+
Vat = "vat",
|
|
7
|
+
Fee = "fee"
|
|
7
8
|
}
|
|
8
9
|
export declare enum AptlyAlgorithmPipelineApplyTo {
|
|
9
10
|
Base = "base",
|
|
@@ -17,6 +18,7 @@ export interface AptlyAlgorithmSchema<ID> {
|
|
|
17
18
|
pipeline: AptlyAlgorithmPipelineSchema<ID>[];
|
|
18
19
|
reversed?: boolean;
|
|
19
20
|
vat?: number;
|
|
21
|
+
fee?: number;
|
|
20
22
|
organization?: ID;
|
|
21
23
|
project?: ID;
|
|
22
24
|
}
|
package/models/algorithm.js
CHANGED
|
@@ -5,6 +5,7 @@ export var AptlyAlgorithmPipelineOperation;
|
|
|
5
5
|
AptlyAlgorithmPipelineOperation["Subtract"] = "subtract";
|
|
6
6
|
AptlyAlgorithmPipelineOperation["Multiply"] = "multiply";
|
|
7
7
|
AptlyAlgorithmPipelineOperation["Vat"] = "vat";
|
|
8
|
+
AptlyAlgorithmPipelineOperation["Fee"] = "fee";
|
|
8
9
|
})(AptlyAlgorithmPipelineOperation || (AptlyAlgorithmPipelineOperation = {}));
|
|
9
10
|
export var AptlyAlgorithmPipelineApplyTo;
|
|
10
11
|
(function (AptlyAlgorithmPipelineApplyTo) {
|
package/models/app.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface AptlyAppSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>
|
|
|
15
15
|
settings: AptlyAppSettingSchema<ID>[];
|
|
16
16
|
webhooks: AptlyAppWebhookSchema<ID>[];
|
|
17
17
|
menus: AptlyAppMenuSchema<ID, DATE>[];
|
|
18
|
+
cost?: number;
|
|
18
19
|
implements: AptlyAppImplementation[];
|
|
19
20
|
sign?: {
|
|
20
21
|
orderUrl: string;
|
package/models/module.d.ts
CHANGED
package/models/order.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare enum AptlyOrderPaymentStatus {
|
|
|
13
13
|
Captured = "CAPTURED"
|
|
14
14
|
}
|
|
15
15
|
export type AptlyOrder = AptlyOrderSchema<string, string>;
|
|
16
|
-
export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name'
|
|
16
|
+
export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name'> {
|
|
17
17
|
orderNumber: string;
|
|
18
18
|
organization: ID | AptlyOrganizationSchema<ID, DATE>;
|
|
19
19
|
project: ID | AptlyProjectSchema<ID, DATE>;
|
|
@@ -30,6 +30,7 @@ export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DAT
|
|
|
30
30
|
totalVat?: number;
|
|
31
31
|
pricePipeline: AptlyOrderPricePipelineItemSchema<ID>[];
|
|
32
32
|
signees?: AptlyOrderSigneeSchema<ID, DATE>[];
|
|
33
|
+
signedAt?: DATE | null;
|
|
33
34
|
emailText?: string;
|
|
34
35
|
approved?: {
|
|
35
36
|
action?: AptlyOrderAction;
|
package/models/organization.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AptlyModules } from '../core/index.js';
|
|
2
2
|
import { AptlyOrganizationRoles, AptlyAppScope, AptlySignageSchema } from '../core/index.js';
|
|
3
|
+
import { AptlyOrganizationStatus, AptlyOrganizationType } from "../enums/index.js";
|
|
3
4
|
import { AptlyModuleItemSchema } from './module.js';
|
|
4
5
|
import { AptlyUserSchema } from './user.js';
|
|
5
6
|
import { AptlyMediaSrc } from './media.js';
|
|
@@ -32,6 +33,8 @@ export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, D
|
|
|
32
33
|
storageId?: string;
|
|
33
34
|
producer?: ID | AptlyProducerSchema<ID, DATE> | null;
|
|
34
35
|
installedModules: AptlyModuleItemSchema<ID, DATE>[];
|
|
36
|
+
status?: AptlyOrganizationStatus;
|
|
37
|
+
type?: AptlyOrganizationType[];
|
|
35
38
|
created: DATE;
|
|
36
39
|
fixedVariants?: boolean;
|
|
37
40
|
}
|
|
@@ -65,6 +68,7 @@ export interface AptlyOrganizationInviteSchema<ID, DATE> {
|
|
|
65
68
|
permissions?: AptlyOrganizationRoles[];
|
|
66
69
|
projects?: ID[] | null;
|
|
67
70
|
departments?: ID[] | null;
|
|
71
|
+
position?: AptlyOrganizationMemberPosition;
|
|
68
72
|
claim: {
|
|
69
73
|
email?: string;
|
|
70
74
|
claimed: boolean;
|
package/models/unit-email.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { AptlyBookingSchema } from './booking.js';
|
|
2
|
+
import { AptlyBaseSchema } from './extends.js';
|
|
3
|
+
import { AptlyInquirySchema } from './inquiry.js';
|
|
1
4
|
import { AptlyOrganizationSchema } from './organization.js';
|
|
2
5
|
import { AptlyProjectSchema } from './project.js';
|
|
3
6
|
import { AptlyUnitSchema } from './unit.js';
|
|
4
|
-
import { AptlyInquirySchema } from './inquiry.js';
|
|
5
|
-
import { AptlyBookingSchema } from './booking.js';
|
|
6
|
-
import { AptlyBaseSchema } from './extends.js';
|
|
7
7
|
export type AptlyUnitEmail = AptlyUnitEmailSchema<string, string>;
|
|
8
8
|
export interface AptlyUnitEmailSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
|
|
9
9
|
type: AptlyUnitEmailType;
|