@aptly-as/types 2.5.3 → 2.5.5
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.d.ts +13 -13
- package/core/api.js +1 -1
- package/core/app.d.ts +37 -37
- package/core/app.js +9 -9
- package/core/cloudinary.d.ts +2 -2
- package/core/cloudinary.js +1 -1
- package/core/fields.d.ts +19 -19
- package/core/fields.js +1 -1
- package/core/index.d.ts +16 -16
- package/core/index.js +9 -9
- package/core/job.d.ts +21 -21
- package/core/job.js +11 -11
- package/core/redirect.d.ts +17 -17
- package/core/redirect.js +12 -12
- package/core/scope.d.ts +124 -124
- package/core/scope.js +117 -117
- package/core/signage.d.ts +19 -19
- package/core/signage.js +1 -1
- package/core/webhook-event-data.d.ts +16 -16
- package/core/webhook-event-data.js +1 -1
- package/enums/document.d.ts +38 -38
- package/enums/document.js +41 -41
- package/enums/fields.d.ts +30 -30
- package/enums/fields.js +31 -31
- package/enums/index.d.ts +151 -150
- package/enums/index.js +171 -170
- package/enums/unit-template.d.ts +10 -10
- package/enums/unit-template.js +12 -12
- package/enums/webhook.d.ts +23 -23
- package/enums/webhook.js +26 -26
- package/error/error.d.ts +28 -28
- package/error/error.js +50 -50
- package/error/index.d.ts +1 -1
- package/error/index.js +1 -1
- package/index.d.ts +4 -4
- package/index.js +4 -4
- package/models/algorithm.d.ts +32 -32
- package/models/algorithm.js +15 -15
- package/models/app.d.ts +102 -101
- package/models/app.js +53 -52
- package/models/availability.d.ts +35 -35
- package/models/availability.js +1 -1
- package/models/booking.d.ts +57 -57
- package/models/booking.js +1 -1
- package/models/client.d.ts +10 -10
- package/models/client.js +1 -1
- package/models/department.d.ts +28 -28
- package/models/department.js +1 -1
- package/models/document.d.ts +37 -37
- package/models/document.js +1 -1
- package/models/email.d.ts +16 -16
- package/models/email.js +1 -1
- package/models/extends.d.ts +37 -37
- package/models/extends.js +1 -1
- package/models/index.d.ts +34 -34
- package/models/index.js +34 -34
- package/models/inquiry.d.ts +57 -57
- package/models/inquiry.js +1 -1
- package/models/media.d.ts +50 -50
- package/models/media.js +1 -1
- package/models/module.d.ts +19 -19
- package/models/module.js +1 -1
- package/models/note.d.ts +19 -19
- package/models/note.js +1 -1
- package/models/notification-trigger.d.ts +9 -9
- package/models/notification-trigger.js +1 -1
- package/models/option-label.d.ts +7 -7
- package/models/option-label.js +1 -1
- package/models/order.d.ts +164 -163
- package/models/order.js +20 -20
- package/models/organization.d.ts +86 -86
- package/models/organization.js +7 -7
- package/models/page.d.ts +22 -22
- package/models/page.js +1 -1
- package/models/payment.d.ts +94 -94
- package/models/payment.js +1 -1
- package/models/period.d.ts +8 -8
- package/models/period.js +1 -1
- package/models/producer.d.ts +24 -24
- package/models/producer.js +1 -1
- package/models/product-stats.d.ts +18 -18
- package/models/product-stats.js +1 -1
- package/models/product.d.ts +78 -78
- package/models/product.js +1 -1
- package/models/project.d.ts +124 -124
- package/models/project.js +1 -1
- package/models/queue-download.d.ts +19 -19
- package/models/queue-download.js +1 -1
- package/models/recommendation.d.ts +12 -12
- package/models/recommendation.js +1 -1
- package/models/supplier.d.ts +12 -12
- package/models/supplier.js +1 -1
- package/models/tag.d.ts +5 -5
- package/models/tag.js +1 -1
- package/models/unit-email.d.ts +21 -21
- package/models/unit-email.js +1 -1
- package/models/unit-template.d.ts +124 -124
- package/models/unit-template.js +1 -1
- package/models/unit.d.ts +243 -243
- package/models/unit.js +1 -1
- package/models/upsell-template.d.ts +13 -13
- package/models/upsell-template.js +1 -1
- package/models/user.d.ts +33 -33
- package/models/user.js +16 -16
- package/models/webhook-event.d.ts +43 -43
- package/models/webhook-event.js +1 -1
- package/models/webhook.d.ts +15 -15
- package/models/webhook.js +1 -1
- package/package.json +5 -5
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
import { AptlyAlgorithmSchema } from './algorithm.js';
|
|
2
|
-
import { AptlyBaseSchema, AptlyHistorySchema } from './extends.js';
|
|
3
|
-
import { AptlyCategorySectionDisplayType, AptlyUnitTemplateCategorySectionProductMeasureUnitType, AptlyUnitTemplateCategorySectionProductParamKey } from '../enums/index.js';
|
|
4
|
-
import { AptlyPeriodSchema } from './period.js';
|
|
5
|
-
import { AptlyProductSchema } from './product.js';
|
|
6
|
-
import { AptlyProducerSchema } from './producer.js';
|
|
7
|
-
import { AptlyMediaSrcSchema } from './media.js';
|
|
8
|
-
import { AptlyUpsellTemplateSchema } from './upsell-template.js';
|
|
9
|
-
export type AptlyUnitTemplateBase = AptlyUnitTemplateBaseSchema<string, string>;
|
|
10
|
-
export interface AptlyUnitTemplateBaseSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
11
|
-
_order_categories: ID[];
|
|
12
|
-
categories: AptlyUnitTemplateCategorySchema<ID, DATE>[];
|
|
13
|
-
}
|
|
14
|
-
export type AptlyUnitTemplate = AptlyUnitTemplateSchema<string, string>;
|
|
15
|
-
export interface AptlyUnitTemplateSchema<ID, DATE> extends AptlyUnitTemplateBaseSchema<ID, DATE>, AptlyHistorySchema<ID, DATE> {
|
|
16
|
-
name: string;
|
|
17
|
-
description?: string;
|
|
18
|
-
organization?: ID;
|
|
19
|
-
project?: ID;
|
|
20
|
-
archived: boolean;
|
|
21
|
-
blueprints: AptlyUnitTemplateBlueprintSchema<ID>[];
|
|
22
|
-
}
|
|
23
|
-
export type AptlyUnitTemplateBlueprint = AptlyUnitTemplateBlueprintSchema<string>;
|
|
24
|
-
export interface AptlyUnitTemplateBlueprintSchema<ID> {
|
|
25
|
-
_id: ID;
|
|
26
|
-
image: string;
|
|
27
|
-
featured: boolean;
|
|
28
|
-
}
|
|
29
|
-
export type AptlyUnitTemplateCategory = AptlyUnitTemplateCategorySchema<string, string>;
|
|
30
|
-
export interface AptlyUnitTemplateCategorySchema<ID, DATE> {
|
|
31
|
-
_id: ID;
|
|
32
|
-
_orderID: ID;
|
|
33
|
-
name: string;
|
|
34
|
-
text?: string;
|
|
35
|
-
isRoom: boolean;
|
|
36
|
-
size?: number;
|
|
37
|
-
upsellTemplate?: AptlyUpsellTemplateSchema<ID, DATE> | ID | null;
|
|
38
|
-
_order_sections: ID[];
|
|
39
|
-
sections: AptlyUnitTemplateCategorySectionSchema<ID, DATE>[];
|
|
40
|
-
sameAs?: ID;
|
|
41
|
-
}
|
|
42
|
-
export type AptlyUnitTemplateCategorySection = AptlyUnitTemplateCategorySectionSchema<string, string>;
|
|
43
|
-
export interface AptlyUnitTemplateCategorySectionSchema<ID, DATE> {
|
|
44
|
-
_id: ID;
|
|
45
|
-
_orderID: ID;
|
|
46
|
-
name: string;
|
|
47
|
-
text?: string;
|
|
48
|
-
description?: string;
|
|
49
|
-
standard?: boolean;
|
|
50
|
-
multiSelect: boolean;
|
|
51
|
-
displayType: AptlyCategorySectionDisplayType;
|
|
52
|
-
packages: AptlyUnitTemplateCategorySectionPackageSchema<ID, DATE>[];
|
|
53
|
-
assortments?: AptlyUnitTemplateCategorySectionAssortmentSchema<ID, DATE>[];
|
|
54
|
-
_order_products: ID[];
|
|
55
|
-
products: AptlyUnitTemplateCategorySectionProductSchema<ID, DATE>[];
|
|
56
|
-
period: AptlyPeriodSchema<ID, DATE> | ID;
|
|
57
|
-
}
|
|
58
|
-
export type AptlyUnitTemplateCategorySectionPackage = AptlyUnitTemplateCategorySectionPackageSchema<string, string>;
|
|
59
|
-
export interface AptlyUnitTemplateCategorySectionPackageSchema<ID, DATE> {
|
|
60
|
-
_id: ID;
|
|
61
|
-
name: string;
|
|
62
|
-
standard: boolean;
|
|
63
|
-
image?: string | null;
|
|
64
|
-
imageMedia?: AptlyMediaSrcSchema<ID, DATE> | null;
|
|
65
|
-
description?: string;
|
|
66
|
-
_product_order?: ID[];
|
|
67
|
-
products?: AptlyUnitTemplateCategorySectionProductSchema<ID, DATE>[];
|
|
68
|
-
assortments?: AptlyUnitTemplateCategorySectionAssortmentSchema<ID, DATE>[];
|
|
69
|
-
}
|
|
70
|
-
export type AptlyUnitTemplateCategorySectionAssortment = AptlyUnitTemplateCategorySectionAssortmentSchema<string, string>;
|
|
71
|
-
export interface AptlyUnitTemplateCategorySectionAssortmentSchema<ID, DATE> extends Pick<AptlyBaseSchema<ID, DATE>, '_id' | 'createdAt' | 'updatedAt'> {
|
|
72
|
-
color: string;
|
|
73
|
-
package?: ID | null;
|
|
74
|
-
}
|
|
75
|
-
export type AptlyUnitTemplateCategorySectionProduct = AptlyUnitTemplateCategorySectionProductSchema<string, string>;
|
|
76
|
-
export interface AptlyUnitTemplateCategorySectionProductSchema<ID, DATE> {
|
|
77
|
-
_id: ID;
|
|
78
|
-
_orderID: ID;
|
|
79
|
-
product?: AptlyProductSchema<ID, DATE>;
|
|
80
|
-
producer?: AptlyProducerSchema<ID, DATE>;
|
|
81
|
-
availableProducts: ID[];
|
|
82
|
-
variantPrices: AptlyUnitTemplateCategorySectionProductVariantPriceSchema<ID>[];
|
|
83
|
-
text?: string;
|
|
84
|
-
unitSizeRoom?: string;
|
|
85
|
-
unitSizeParam?: string;
|
|
86
|
-
unitCostRoom?: string;
|
|
87
|
-
unitCostParam?: string;
|
|
88
|
-
consequenceRoom?: string;
|
|
89
|
-
consequenceParam?: string;
|
|
90
|
-
amount: number;
|
|
91
|
-
unitCost?: number;
|
|
92
|
-
unitVat?: number;
|
|
93
|
-
algorithm: ID | AptlyAlgorithmSchema<ID>;
|
|
94
|
-
standard: boolean;
|
|
95
|
-
standardVariant?: ID;
|
|
96
|
-
partOfPackage?: ID;
|
|
97
|
-
partOfAssortment?: ID;
|
|
98
|
-
supplier?: ID | null;
|
|
99
|
-
customTitle?: string;
|
|
100
|
-
customDescription?: string;
|
|
101
|
-
notifyWhenPicked?: boolean;
|
|
102
|
-
onlyShowInSelection?: boolean;
|
|
103
|
-
recommendation?: ID | null;
|
|
104
|
-
labels?: ID[];
|
|
105
|
-
params: AptlyUnitTemplateCategorySectionProductParamSchema<ID>[];
|
|
106
|
-
measureUnitType: AptlyUnitTemplateCategorySectionProductMeasureUnitType;
|
|
107
|
-
pick?: any;
|
|
108
|
-
}
|
|
109
|
-
export type AptlyUnitTemplateCategorySectionProductParam<VALUE> = AptlyUnitTemplateCategorySectionProductParamSchema<string, VALUE>;
|
|
110
|
-
export interface AptlyUnitTemplateCategorySectionProductParamSchema<ID, VALUE = any> {
|
|
111
|
-
_id: ID;
|
|
112
|
-
key: AptlyUnitTemplateCategorySectionProductParamKey;
|
|
113
|
-
value: VALUE;
|
|
114
|
-
categoryName?: string;
|
|
115
|
-
sectionNames?: string[];
|
|
116
|
-
sectionName?: string;
|
|
117
|
-
}
|
|
118
|
-
export type AptlyUnitTemplateCategorySectionProductVariantPrice = AptlyUnitTemplateCategorySectionProductVariantPriceSchema<string>;
|
|
119
|
-
export interface AptlyUnitTemplateCategorySectionProductVariantPriceSchema<ID> {
|
|
120
|
-
variant: ID;
|
|
121
|
-
price: number;
|
|
122
|
-
baseCost?: number;
|
|
123
|
-
labels?: ID[];
|
|
124
|
-
}
|
|
1
|
+
import { AptlyAlgorithmSchema } from './algorithm.js';
|
|
2
|
+
import { AptlyBaseSchema, AptlyHistorySchema } from './extends.js';
|
|
3
|
+
import { AptlyCategorySectionDisplayType, AptlyUnitTemplateCategorySectionProductMeasureUnitType, AptlyUnitTemplateCategorySectionProductParamKey } from '../enums/index.js';
|
|
4
|
+
import { AptlyPeriodSchema } from './period.js';
|
|
5
|
+
import { AptlyProductSchema } from './product.js';
|
|
6
|
+
import { AptlyProducerSchema } from './producer.js';
|
|
7
|
+
import { AptlyMediaSrcSchema } from './media.js';
|
|
8
|
+
import { AptlyUpsellTemplateSchema } from './upsell-template.js';
|
|
9
|
+
export type AptlyUnitTemplateBase = AptlyUnitTemplateBaseSchema<string, string>;
|
|
10
|
+
export interface AptlyUnitTemplateBaseSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
11
|
+
_order_categories: ID[];
|
|
12
|
+
categories: AptlyUnitTemplateCategorySchema<ID, DATE>[];
|
|
13
|
+
}
|
|
14
|
+
export type AptlyUnitTemplate = AptlyUnitTemplateSchema<string, string>;
|
|
15
|
+
export interface AptlyUnitTemplateSchema<ID, DATE> extends AptlyUnitTemplateBaseSchema<ID, DATE>, AptlyHistorySchema<ID, DATE> {
|
|
16
|
+
name: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
organization?: ID;
|
|
19
|
+
project?: ID;
|
|
20
|
+
archived: boolean;
|
|
21
|
+
blueprints: AptlyUnitTemplateBlueprintSchema<ID>[];
|
|
22
|
+
}
|
|
23
|
+
export type AptlyUnitTemplateBlueprint = AptlyUnitTemplateBlueprintSchema<string>;
|
|
24
|
+
export interface AptlyUnitTemplateBlueprintSchema<ID> {
|
|
25
|
+
_id: ID;
|
|
26
|
+
image: string;
|
|
27
|
+
featured: boolean;
|
|
28
|
+
}
|
|
29
|
+
export type AptlyUnitTemplateCategory = AptlyUnitTemplateCategorySchema<string, string>;
|
|
30
|
+
export interface AptlyUnitTemplateCategorySchema<ID, DATE> {
|
|
31
|
+
_id: ID;
|
|
32
|
+
_orderID: ID;
|
|
33
|
+
name: string;
|
|
34
|
+
text?: string;
|
|
35
|
+
isRoom: boolean;
|
|
36
|
+
size?: number;
|
|
37
|
+
upsellTemplate?: AptlyUpsellTemplateSchema<ID, DATE> | ID | null;
|
|
38
|
+
_order_sections: ID[];
|
|
39
|
+
sections: AptlyUnitTemplateCategorySectionSchema<ID, DATE>[];
|
|
40
|
+
sameAs?: ID;
|
|
41
|
+
}
|
|
42
|
+
export type AptlyUnitTemplateCategorySection = AptlyUnitTemplateCategorySectionSchema<string, string>;
|
|
43
|
+
export interface AptlyUnitTemplateCategorySectionSchema<ID, DATE> {
|
|
44
|
+
_id: ID;
|
|
45
|
+
_orderID: ID;
|
|
46
|
+
name: string;
|
|
47
|
+
text?: string;
|
|
48
|
+
description?: string;
|
|
49
|
+
standard?: boolean;
|
|
50
|
+
multiSelect: boolean;
|
|
51
|
+
displayType: AptlyCategorySectionDisplayType;
|
|
52
|
+
packages: AptlyUnitTemplateCategorySectionPackageSchema<ID, DATE>[];
|
|
53
|
+
assortments?: AptlyUnitTemplateCategorySectionAssortmentSchema<ID, DATE>[];
|
|
54
|
+
_order_products: ID[];
|
|
55
|
+
products: AptlyUnitTemplateCategorySectionProductSchema<ID, DATE>[];
|
|
56
|
+
period: AptlyPeriodSchema<ID, DATE> | ID;
|
|
57
|
+
}
|
|
58
|
+
export type AptlyUnitTemplateCategorySectionPackage = AptlyUnitTemplateCategorySectionPackageSchema<string, string>;
|
|
59
|
+
export interface AptlyUnitTemplateCategorySectionPackageSchema<ID, DATE> {
|
|
60
|
+
_id: ID;
|
|
61
|
+
name: string;
|
|
62
|
+
standard: boolean;
|
|
63
|
+
image?: string | null;
|
|
64
|
+
imageMedia?: AptlyMediaSrcSchema<ID, DATE> | null;
|
|
65
|
+
description?: string;
|
|
66
|
+
_product_order?: ID[];
|
|
67
|
+
products?: AptlyUnitTemplateCategorySectionProductSchema<ID, DATE>[];
|
|
68
|
+
assortments?: AptlyUnitTemplateCategorySectionAssortmentSchema<ID, DATE>[];
|
|
69
|
+
}
|
|
70
|
+
export type AptlyUnitTemplateCategorySectionAssortment = AptlyUnitTemplateCategorySectionAssortmentSchema<string, string>;
|
|
71
|
+
export interface AptlyUnitTemplateCategorySectionAssortmentSchema<ID, DATE> extends Pick<AptlyBaseSchema<ID, DATE>, '_id' | 'createdAt' | 'updatedAt'> {
|
|
72
|
+
color: string;
|
|
73
|
+
package?: ID | null;
|
|
74
|
+
}
|
|
75
|
+
export type AptlyUnitTemplateCategorySectionProduct = AptlyUnitTemplateCategorySectionProductSchema<string, string>;
|
|
76
|
+
export interface AptlyUnitTemplateCategorySectionProductSchema<ID, DATE> {
|
|
77
|
+
_id: ID;
|
|
78
|
+
_orderID: ID;
|
|
79
|
+
product?: AptlyProductSchema<ID, DATE>;
|
|
80
|
+
producer?: AptlyProducerSchema<ID, DATE>;
|
|
81
|
+
availableProducts: ID[];
|
|
82
|
+
variantPrices: AptlyUnitTemplateCategorySectionProductVariantPriceSchema<ID>[];
|
|
83
|
+
text?: string;
|
|
84
|
+
unitSizeRoom?: string;
|
|
85
|
+
unitSizeParam?: string;
|
|
86
|
+
unitCostRoom?: string;
|
|
87
|
+
unitCostParam?: string;
|
|
88
|
+
consequenceRoom?: string;
|
|
89
|
+
consequenceParam?: string;
|
|
90
|
+
amount: number;
|
|
91
|
+
unitCost?: number;
|
|
92
|
+
unitVat?: number;
|
|
93
|
+
algorithm: ID | AptlyAlgorithmSchema<ID>;
|
|
94
|
+
standard: boolean;
|
|
95
|
+
standardVariant?: ID;
|
|
96
|
+
partOfPackage?: ID;
|
|
97
|
+
partOfAssortment?: ID;
|
|
98
|
+
supplier?: ID | null;
|
|
99
|
+
customTitle?: string;
|
|
100
|
+
customDescription?: string;
|
|
101
|
+
notifyWhenPicked?: boolean;
|
|
102
|
+
onlyShowInSelection?: boolean;
|
|
103
|
+
recommendation?: ID | null;
|
|
104
|
+
labels?: ID[];
|
|
105
|
+
params: AptlyUnitTemplateCategorySectionProductParamSchema<ID>[];
|
|
106
|
+
measureUnitType: AptlyUnitTemplateCategorySectionProductMeasureUnitType;
|
|
107
|
+
pick?: any;
|
|
108
|
+
}
|
|
109
|
+
export type AptlyUnitTemplateCategorySectionProductParam<VALUE> = AptlyUnitTemplateCategorySectionProductParamSchema<string, VALUE>;
|
|
110
|
+
export interface AptlyUnitTemplateCategorySectionProductParamSchema<ID, VALUE = any> {
|
|
111
|
+
_id: ID;
|
|
112
|
+
key: AptlyUnitTemplateCategorySectionProductParamKey;
|
|
113
|
+
value: VALUE;
|
|
114
|
+
categoryName?: string;
|
|
115
|
+
sectionNames?: string[];
|
|
116
|
+
sectionName?: string;
|
|
117
|
+
}
|
|
118
|
+
export type AptlyUnitTemplateCategorySectionProductVariantPrice = AptlyUnitTemplateCategorySectionProductVariantPriceSchema<string>;
|
|
119
|
+
export interface AptlyUnitTemplateCategorySectionProductVariantPriceSchema<ID> {
|
|
120
|
+
variant: ID;
|
|
121
|
+
price: number;
|
|
122
|
+
baseCost?: number;
|
|
123
|
+
labels?: ID[];
|
|
124
|
+
}
|
package/models/unit-template.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|