@aptly-as/types 1.8.1 → 1.10.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/api.js +1 -2
- package/core/app.d.ts +2 -2
- package/core/app.js +2 -5
- package/core/cloudinary.js +1 -2
- package/core/error.d.ts +1 -1
- package/core/error.js +1 -2
- package/core/fields.d.ts +1 -1
- package/core/fields.js +1 -2
- package/core/index.d.ts +10 -10
- package/core/index.js +9 -25
- package/core/permission.d.ts +2 -16
- package/core/permission.js +9 -11
- package/core/scope.d.ts +1 -1
- package/core/scope.js +2 -5
- package/core/signage.d.ts +1 -1
- package/core/signage.js +1 -2
- package/core/webhook-event-data.d.ts +1 -1
- package/core/webhook-event-data.js +1 -2
- package/enums/document.js +4 -7
- package/enums/fields.js +2 -5
- package/enums/index.d.ts +4 -4
- package/enums/index.js +36 -53
- package/enums/unit-template.js +4 -7
- package/enums/webhook.js +6 -9
- package/index.d.ts +3 -3
- package/index.js +3 -19
- package/models/algorithm.js +4 -7
- package/models/app.d.ts +4 -4
- package/models/app.js +6 -9
- package/models/availability.js +1 -2
- package/models/booking.d.ts +3 -2
- package/models/booking.js +1 -2
- package/models/client.d.ts +2 -5
- package/models/client.js +1 -2
- package/models/department.d.ts +8 -8
- package/models/department.js +1 -2
- package/models/document.d.ts +2 -8
- package/models/document.js +1 -2
- package/models/extends.d.ts +2 -8
- package/models/extends.js +1 -2
- package/models/index.d.ts +30 -29
- package/models/index.js +30 -45
- package/models/inquiry.d.ts +6 -9
- package/models/inquiry.js +1 -2
- package/models/media.d.ts +2 -11
- package/models/media.js +1 -2
- package/models/note.d.ts +18 -0
- package/models/note.js +1 -0
- package/models/notification-trigger.js +1 -2
- package/models/option-label.d.ts +1 -4
- package/models/option-label.js +1 -2
- package/models/order.d.ts +3 -6
- package/models/order.js +1 -2
- package/models/organization.d.ts +8 -11
- package/models/organization.js +1 -2
- package/models/page.d.ts +2 -11
- package/models/page.js +1 -2
- package/models/producer.d.ts +2 -8
- package/models/producer.js +1 -2
- package/models/product-stats.d.ts +1 -1
- package/models/product-stats.js +1 -2
- package/models/product.d.ts +3 -9
- package/models/product.js +1 -2
- package/models/project.d.ts +8 -25
- package/models/project.js +1 -2
- package/models/queue-download.d.ts +4 -4
- package/models/queue-download.js +1 -2
- package/models/recommendation.d.ts +2 -2
- package/models/recommendation.js +1 -2
- package/models/supplier.d.ts +2 -5
- package/models/supplier.js +1 -2
- package/models/tag.d.ts +1 -4
- package/models/tag.js +1 -2
- package/models/unit-email.d.ts +6 -9
- package/models/unit-email.js +2 -5
- package/models/unit-template.d.ts +7 -16
- package/models/unit-template.js +1 -2
- package/models/unit.d.ts +12 -19
- package/models/unit.js +1 -2
- package/models/upsell-template.d.ts +1 -7
- package/models/upsell-template.js +1 -2
- package/models/user.d.ts +1 -4
- package/models/user.js +1 -2
- package/models/webhook-event.d.ts +2 -5
- package/models/webhook-event.js +1 -2
- package/models/webhook.d.ts +2 -5
- package/models/webhook.js +1 -2
- package/package.json +3 -4
package/models/project.d.ts
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import { AptlyOrganizationSchema } from './organization';
|
|
2
|
-
import { AptlyPermissionModulesModels } from '../core';
|
|
3
|
-
import { AptlyUserSchema } from './user';
|
|
4
|
-
import { AptlyBaseSchema, AptlyHistorySchema } from './extends';
|
|
5
|
-
import { AptlyDocumentSchema } from './document';
|
|
6
|
-
import { AptlyUnitOptionExtraItemSchema } from './unit';
|
|
7
|
-
import { AptlyMediaSrc } from './media';
|
|
1
|
+
import { AptlyOrganizationSchema } from './organization.js';
|
|
2
|
+
import { AptlyPermissionModulesModels } from '../core/index.js';
|
|
3
|
+
import { AptlyUserSchema } from './user.js';
|
|
4
|
+
import { AptlyBaseSchema, AptlyHistorySchema } from './extends.js';
|
|
5
|
+
import { AptlyDocumentSchema } from './document.js';
|
|
6
|
+
import { AptlyUnitOptionExtraItemSchema } from './unit.js';
|
|
7
|
+
import { AptlyMediaSrc } from './media.js';
|
|
8
8
|
export type AptlyProject = AptlyProjectSchema<string, string>;
|
|
9
9
|
export interface AptlyProjectSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>, AptlyHistorySchema<ID, DATE> {
|
|
10
10
|
organization: AptlyOrganizationSchema<ID, DATE> | ID;
|
|
11
11
|
template?: ID | null;
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated dont think this is used anymore
|
|
14
|
-
*/
|
|
15
12
|
customers: ID[];
|
|
16
13
|
periods: AptlyProjectPeriodSchema<ID, DATE>[];
|
|
17
14
|
algorithms: AptlyProjectAlgorithmSchema<ID>[];
|
|
@@ -24,9 +21,6 @@ export interface AptlyProjectSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>,
|
|
|
24
21
|
integrations: AptlyProjectIntegrationSchema<ID>[];
|
|
25
22
|
disabledModules?: AptlyPermissionModulesModels[];
|
|
26
23
|
extraOptions?: AptlyUnitOptionExtraItemSchema<ID, DATE>[];
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated use createdAt
|
|
29
|
-
*/
|
|
30
24
|
created: DATE;
|
|
31
25
|
}
|
|
32
26
|
export type AptlyProjectPeriod = AptlyProjectPeriodSchema<string, string>;
|
|
@@ -37,13 +31,7 @@ export interface AptlyProjectPeriodSchema<ID, DATE> {
|
|
|
37
31
|
close: DATE;
|
|
38
32
|
override?: boolean;
|
|
39
33
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated use AptlyAlgorithm instead
|
|
42
|
-
*/
|
|
43
34
|
export type AptlyProjectAlgorithm = AptlyProjectAlgorithmSchema<string>;
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated use AptlyAlgorithm instead
|
|
46
|
-
*/
|
|
47
35
|
export interface AptlyProjectAlgorithmSchema<ID> {
|
|
48
36
|
_id: ID;
|
|
49
37
|
name: string;
|
|
@@ -51,13 +39,7 @@ export interface AptlyProjectAlgorithmSchema<ID> {
|
|
|
51
39
|
organization?: ID;
|
|
52
40
|
project?: ID;
|
|
53
41
|
}
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated use AptlyAlgorithmPipeline instead
|
|
56
|
-
*/
|
|
57
42
|
export type AptlyProjectAlgorithmPipeline = AptlyProjectAlgorithmPipelineSchema<string>;
|
|
58
|
-
/**
|
|
59
|
-
* @deprecated use AptlyAlgorithmPipeline instead
|
|
60
|
-
*/
|
|
61
43
|
export interface AptlyProjectAlgorithmPipelineSchema<ID> {
|
|
62
44
|
_id: ID;
|
|
63
45
|
label: string;
|
|
@@ -126,5 +108,6 @@ interface AptlyProjectNotifySchema<ID, DATE> {
|
|
|
126
108
|
'order-created'?: boolean;
|
|
127
109
|
'order-signed'?: boolean;
|
|
128
110
|
'order-fileReceived'?: boolean;
|
|
111
|
+
'unit-note-deadline'?: boolean;
|
|
129
112
|
}
|
|
130
113
|
export {};
|
package/models/project.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AptlyQueueDownloadStatus, AptlyQueueDownloadType } from '../enums/index';
|
|
2
|
-
import { AptlyDocumentSchema } from './document';
|
|
3
|
-
import { AptlyMediaSchema } from './media';
|
|
4
|
-
import { AptlyBaseSchema } from './extends';
|
|
1
|
+
import { AptlyQueueDownloadStatus, AptlyQueueDownloadType } from '../enums/index.js';
|
|
2
|
+
import { AptlyDocumentSchema } from './document.js';
|
|
3
|
+
import { AptlyMediaSchema } from './media.js';
|
|
4
|
+
import { AptlyBaseSchema } from './extends.js';
|
|
5
5
|
export type AptlyQueueDownload = AptlyQueueDownloadSchema<string, string>;
|
|
6
6
|
export interface AptlyQueueDownloadSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
|
|
7
7
|
url: string;
|
package/models/queue-download.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AptlyMediaSrcSchema } from './media';
|
|
2
|
-
import { AptlyBaseSchema } from './extends';
|
|
1
|
+
import { AptlyMediaSrcSchema } from './media.js';
|
|
2
|
+
import { AptlyBaseSchema } from './extends.js';
|
|
3
3
|
export type AptlyRecommendation = AptlyRecommendationSchema<string, string>;
|
|
4
4
|
export interface AptlyRecommendationSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
5
5
|
organization?: ID;
|
package/models/recommendation.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/models/supplier.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AptlyMediaSrc } from './media';
|
|
2
|
-
import { AptlyBaseSchema } from './extends';
|
|
1
|
+
import { AptlyMediaSrc } from './media.js';
|
|
2
|
+
import { AptlyBaseSchema } from './extends.js';
|
|
3
3
|
export type AptlySupplier = AptlySupplierSchema<string, string>;
|
|
4
4
|
export interface AptlySupplierSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
5
5
|
email?: string;
|
|
@@ -8,8 +8,5 @@ export interface AptlySupplierSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>
|
|
|
8
8
|
createdBy: ID;
|
|
9
9
|
organization?: ID;
|
|
10
10
|
extends?: ID;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated use createdAt
|
|
13
|
-
*/
|
|
14
11
|
created: DATE;
|
|
15
12
|
}
|
package/models/supplier.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/models/tag.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { AptlyBaseSchema } from './extends';
|
|
1
|
+
import { AptlyBaseSchema } from './extends.js';
|
|
2
2
|
export type AptlyTag = AptlyTagSchema<string, string>;
|
|
3
3
|
export interface AptlyTagSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated use createdAt
|
|
6
|
-
*/
|
|
7
4
|
created: DATE;
|
|
8
5
|
}
|
package/models/tag.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/models/unit-email.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AptlyOrganizationSchema } from './organization';
|
|
2
|
-
import { AptlyProjectSchema } from './project';
|
|
3
|
-
import { AptlyUnitSchema } from './unit';
|
|
4
|
-
import { AptlyInquirySchema } from './inquiry';
|
|
5
|
-
import { AptlyBookingSchema } from './booking';
|
|
6
|
-
import { AptlyBaseSchema } from './extends';
|
|
1
|
+
import { AptlyOrganizationSchema } from './organization.js';
|
|
2
|
+
import { AptlyProjectSchema } from './project.js';
|
|
3
|
+
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;
|
|
@@ -16,9 +16,6 @@ export interface AptlyUnitEmailSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID,
|
|
|
16
16
|
unit: ID | AptlyUnitSchema<ID, DATE>;
|
|
17
17
|
inquiry?: ID | AptlyInquirySchema<ID, DATE>;
|
|
18
18
|
booking?: ID | AptlyBookingSchema<ID, DATE>;
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated use createdAt
|
|
21
|
-
*/
|
|
22
19
|
created: DATE;
|
|
23
20
|
}
|
|
24
21
|
export declare enum AptlyUnitEmailType {
|
package/models/unit-email.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AptlyUnitEmailType = void 0;
|
|
4
|
-
var AptlyUnitEmailType;
|
|
1
|
+
export var AptlyUnitEmailType;
|
|
5
2
|
(function (AptlyUnitEmailType) {
|
|
6
3
|
AptlyUnitEmailType["Inquiry"] = "inquiry";
|
|
7
4
|
AptlyUnitEmailType["Invite"] = "invite";
|
|
@@ -12,4 +9,4 @@ var AptlyUnitEmailType;
|
|
|
12
9
|
AptlyUnitEmailType["BookingCancel"] = "booking-cancel";
|
|
13
10
|
AptlyUnitEmailType["OrderCreated"] = "order-created";
|
|
14
11
|
AptlyUnitEmailType["OrderSigned"] = "order-signed";
|
|
15
|
-
})(AptlyUnitEmailType
|
|
12
|
+
})(AptlyUnitEmailType || (AptlyUnitEmailType = {}));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AptlyBaseSchema, AptlyHistorySchema } from './extends';
|
|
2
|
-
import { AptlyCategorySectionDisplayType, AptlyUnitTemplateCategorySectionProductMeasureUnitType, AptlyUnitTemplateCategorySectionProductParamKey } from '../enums';
|
|
3
|
-
import { AptlyProductSchema } from './product';
|
|
4
|
-
import { AptlyProducerSchema } from './producer';
|
|
5
|
-
import { AptlyMediaSrcSchema } from './media';
|
|
6
|
-
import { AptlyUpsellTemplateSchema } from './upsell-template';
|
|
7
|
-
import { AptlyProjectAlgorithmSchema, AptlyProjectPeriodSchema } from './project';
|
|
1
|
+
import { AptlyBaseSchema, AptlyHistorySchema } from './extends.js';
|
|
2
|
+
import { AptlyCategorySectionDisplayType, AptlyUnitTemplateCategorySectionProductMeasureUnitType, AptlyUnitTemplateCategorySectionProductParamKey } from '../enums/index.js';
|
|
3
|
+
import { AptlyProductSchema } from './product.js';
|
|
4
|
+
import { AptlyProducerSchema } from './producer.js';
|
|
5
|
+
import { AptlyMediaSrcSchema } from './media.js';
|
|
6
|
+
import { AptlyUpsellTemplateSchema } from './upsell-template.js';
|
|
7
|
+
import { AptlyProjectAlgorithmSchema, AptlyProjectPeriodSchema } from './project.js';
|
|
8
8
|
export type AptlyUnitTemplateBase = AptlyUnitTemplateBaseSchema<string, string>;
|
|
9
9
|
export interface AptlyUnitTemplateBaseSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
10
10
|
_order_categories: ID[];
|
|
@@ -17,9 +17,6 @@ export interface AptlyUnitTemplateSchema<ID, DATE> extends AptlyUnitTemplateBase
|
|
|
17
17
|
organization?: ID;
|
|
18
18
|
project?: ID;
|
|
19
19
|
archived: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated not used
|
|
22
|
-
*/
|
|
23
20
|
blueprints: AptlyUnitTemplateBlueprintSchema<ID>[];
|
|
24
21
|
}
|
|
25
22
|
export type AptlyUnitTemplateBlueprint = AptlyUnitTemplateBlueprintSchema<string>;
|
|
@@ -39,9 +36,6 @@ export interface AptlyUnitTemplateCategorySchema<ID, DATE> {
|
|
|
39
36
|
upsellTemplate?: AptlyUpsellTemplateSchema<ID, DATE> | ID | null;
|
|
40
37
|
_order_sections: ID[];
|
|
41
38
|
sections: AptlyUnitTemplateCategorySectionSchema<ID, DATE>[];
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated dont think this is used
|
|
44
|
-
*/
|
|
45
39
|
sameAs?: ID;
|
|
46
40
|
}
|
|
47
41
|
export type AptlyUnitTemplateCategorySection = AptlyUnitTemplateCategorySectionSchema<string, string>;
|
|
@@ -104,9 +98,6 @@ export interface AptlyUnitTemplateCategorySectionProductSchema<ID, DATE> {
|
|
|
104
98
|
recommendation?: ID | null;
|
|
105
99
|
labels?: ID[];
|
|
106
100
|
params: AptlyUnitTemplateCategorySectionProductParamSchema<ID>[];
|
|
107
|
-
/**
|
|
108
|
-
* @deprecated dont think this is used...
|
|
109
|
-
*/
|
|
110
101
|
measureUnitType: AptlyUnitTemplateCategorySectionProductMeasureUnitType;
|
|
111
102
|
}
|
|
112
103
|
export type AptlyUnitTemplateCategorySectionProductParam<VALUE> = AptlyUnitTemplateCategorySectionProductParamSchema<string, VALUE>;
|
package/models/unit-template.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/models/unit.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AptlyProducerSchema } from './producer.js';
|
|
2
2
|
import { AptlyProductSchema } from './product.js';
|
|
3
|
-
import { AptlyProjectSchema } from './project';
|
|
4
|
-
import { AptlyHistorySchema } from './extends';
|
|
3
|
+
import { AptlyProjectSchema } from './project.js';
|
|
4
|
+
import { AptlyHistorySchema } from './extends.js';
|
|
5
5
|
import { AptlyUnitTemplateBaseSchema, AptlyUnitTemplateCategorySchema, AptlyUnitTemplateCategorySectionSchema, AptlyUnitTemplateSchema } from './unit-template';
|
|
6
|
-
import { AptlyIntegration, AptlyUnitItemParamKey, AptlyUnitStatus } from '../enums';
|
|
7
|
-
import { AptlyUserSchema } from './user';
|
|
8
|
-
import { AptlyOrganizationSchema } from './organization';
|
|
6
|
+
import { AptlyIntegration, AptlyUnitItemParamKey, AptlyUnitStatus } from '../enums/index.js';
|
|
7
|
+
import { AptlyUserSchema } from './user.js';
|
|
8
|
+
import { AptlyOrganizationSchema } from './organization.js';
|
|
9
9
|
export type AptlyUnit = AptlyUnitSchema<string, string>;
|
|
10
10
|
export interface AptlyUnitSchema<ID, DATE> extends AptlyUnitTemplateBaseSchema<ID, DATE>, AptlyUnitEditData<DATE>, AptlyHistorySchema<ID, DATE> {
|
|
11
11
|
status: AptlyUnitStatus;
|
|
@@ -33,18 +33,19 @@ export interface AptlyUnitSchema<ID, DATE> extends AptlyUnitTemplateBaseSchema<I
|
|
|
33
33
|
confirmedPeriods: AptlyUnitConfirmedPeriodSchema<ID>[];
|
|
34
34
|
queueInvites: string[];
|
|
35
35
|
invites: AptlyUnitInviteSchema<ID, DATE>[];
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated use overridePeriods
|
|
38
|
-
*/
|
|
39
36
|
overridePeriod?: ID;
|
|
40
37
|
overridePeriods?: AptlyUnitOverridePeriodSchema<ID, DATE>[];
|
|
41
38
|
integrations: AptlyUnitIntegrationSchema<ID>[];
|
|
39
|
+
gdpr?: AptlyUnitGDPRSchema<DATE, ID>;
|
|
42
40
|
tree: any[];
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated use createdAt
|
|
45
|
-
*/
|
|
46
41
|
created: DATE;
|
|
47
42
|
}
|
|
43
|
+
interface AptlyUnitGDPRSchema<DATE, ID> {
|
|
44
|
+
approved: boolean;
|
|
45
|
+
approvedAt: DATE | null;
|
|
46
|
+
documents: ID[];
|
|
47
|
+
users: ID[];
|
|
48
|
+
}
|
|
48
49
|
export type AptlyUnitOverridePeriod = AptlyUnitOverridePeriodSchema<string, string>;
|
|
49
50
|
export interface AptlyUnitOverridePeriodSchema<ID, DATE> {
|
|
50
51
|
_id: ID;
|
|
@@ -105,17 +106,12 @@ export interface AptlyUnitOptionExtraItemSchema<ID, DATE> extends AptlyUnitOptio
|
|
|
105
106
|
projectItemRef?: ID;
|
|
106
107
|
revertedOption?: boolean;
|
|
107
108
|
revertItemRef?: ID;
|
|
108
|
-
/** @deprecated. Not sure this is used */
|
|
109
109
|
document?: ID;
|
|
110
|
-
/** @deprecated. Not sure this is used */
|
|
111
110
|
prerequisites?: {
|
|
112
111
|
totalCost?: number;
|
|
113
112
|
};
|
|
114
|
-
/** @deprecated. Not sure this is used */
|
|
115
113
|
thirdPartyUploader?: string;
|
|
116
|
-
/** @deprecated. Not sure this is used */
|
|
117
114
|
cost: number;
|
|
118
|
-
/** @deprecated. Cant se this is used anymore */
|
|
119
115
|
customTitle?: string;
|
|
120
116
|
}
|
|
121
117
|
export type AptlyUnitItemParam<VALUE> = AptlyUnitItemParamSchema<string, VALUE>;
|
|
@@ -140,9 +136,6 @@ export interface AptlyUnitRoomSchemaSizeParamSchema<ID> {
|
|
|
140
136
|
export type AptlyUnitCategoryOverride = AptlyUnitCategoryOverrideSchema<string>;
|
|
141
137
|
export interface AptlyUnitCategoryOverrideSchema<ID> {
|
|
142
138
|
category: ID;
|
|
143
|
-
/**
|
|
144
|
-
* @deprecated Not used i think
|
|
145
|
-
*/
|
|
146
139
|
size: number;
|
|
147
140
|
hide: boolean;
|
|
148
141
|
}
|
package/models/unit.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AptlyBaseSchema, AptlyHistorySchema } from './extends';
|
|
1
|
+
import { AptlyBaseSchema, AptlyHistorySchema } from './extends.js';
|
|
2
2
|
export type AptlyUpsellTemplate = AptlyUpsellTemplateSchema<string, string>;
|
|
3
3
|
export interface AptlyUpsellTemplateSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>, AptlyHistorySchema<ID, DATE> {
|
|
4
4
|
image?: string | null;
|
|
@@ -8,12 +8,6 @@ export interface AptlyUpsellTemplateSchema<ID, DATE> extends AptlyBaseSchema<ID,
|
|
|
8
8
|
links: ID[];
|
|
9
9
|
organization?: ID;
|
|
10
10
|
project?: ID;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated use createdAt
|
|
13
|
-
*/
|
|
14
11
|
created: DATE;
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated not used.. Only for frontend
|
|
17
|
-
*/
|
|
18
12
|
description: string;
|
|
19
13
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/models/user.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AptlyBaseSchema } from './extends';
|
|
1
|
+
import { AptlyBaseSchema } from './extends.js';
|
|
2
2
|
export type AptlyUser = AptlyUserSchema<string, string>;
|
|
3
3
|
export interface AptlyUserSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived' | 'name'> {
|
|
4
4
|
email: string;
|
|
@@ -10,8 +10,5 @@ export interface AptlyUserSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE
|
|
|
10
10
|
gdpr: boolean;
|
|
11
11
|
phone: string;
|
|
12
12
|
synced: DATE;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated use createdAt
|
|
15
|
-
*/
|
|
16
13
|
created: DATE;
|
|
17
14
|
}
|
package/models/user.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AptlyWebhookEventStatus, AptlyWebhookType } from '../enums';
|
|
2
|
-
import { AptlyBaseSchema } from './extends';
|
|
1
|
+
import { AptlyWebhookEventStatus, AptlyWebhookType } from '../enums/index.js';
|
|
2
|
+
import { AptlyBaseSchema } from './extends.js';
|
|
3
3
|
type ServerKeys = 'run' | 'organization' | 'project' | 'status' | 'url' | 'headers' | 'responses';
|
|
4
4
|
export type AptlyWebhookEvent<T = unknown> = Omit<AptlyWebhookEventSchema<string, string, T>, ServerKeys>;
|
|
5
5
|
export interface AptlyWebhookEventSchema<ID, DATE, DATA = unknown> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
|
|
@@ -22,9 +22,6 @@ export interface AptlyWebhookEventSchema<ID, DATE, DATA = unknown> extends Omit<
|
|
|
22
22
|
url: string;
|
|
23
23
|
headers: AptlyWebhookEventHeaders;
|
|
24
24
|
responses: AptlyWebhookEventResponseSchema<ID, DATE>[];
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated use createdAt
|
|
27
|
-
*/
|
|
28
25
|
created: DATE;
|
|
29
26
|
}
|
|
30
27
|
export type AptlyWebhookEventResponse<DATA = any> = AptlyWebhookEventResponseSchema<string, string, DATA>;
|
package/models/webhook-event.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/models/webhook.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AptlyWebhookStatus, AptlyWebhookType } from '../enums';
|
|
2
|
-
import { AptlyBaseSchema } from './extends';
|
|
1
|
+
import { AptlyWebhookStatus, AptlyWebhookType } from '../enums/index.js';
|
|
2
|
+
import { AptlyBaseSchema } from './extends.js';
|
|
3
3
|
export interface AptlyWebhookSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
4
4
|
organization: ID;
|
|
5
5
|
user?: ID;
|
|
@@ -10,9 +10,6 @@ export interface AptlyWebhookSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>
|
|
|
10
10
|
types: AptlyWebhookType[];
|
|
11
11
|
secret?: string;
|
|
12
12
|
state?: string;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated use createdAt
|
|
15
|
-
*/
|
|
16
13
|
created: DATE;
|
|
17
14
|
}
|
|
18
15
|
export type AptlyWebhook = AptlyWebhookSchema<string, string>;
|
package/models/webhook.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aptly-as/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Aptly types and enums",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "./index.js",
|
|
6
7
|
"types": "./index.d.ts",
|
|
7
8
|
"module": "./index.js",
|
|
8
9
|
"author": "Emil A. Olsen <emil@aptly.as>",
|
|
9
|
-
"engines": {
|
|
10
|
-
"node": "16.18"
|
|
11
|
-
},
|
|
12
10
|
"scripts": {
|
|
11
|
+
"dev": "yarn start",
|
|
13
12
|
"start": "yarn build:watch",
|
|
14
13
|
"build": "tsc",
|
|
15
14
|
"build:watch": "tsc --watch --incremental",
|