@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.
Files changed (109) hide show
  1. package/core/api.d.ts +13 -13
  2. package/core/api.js +1 -1
  3. package/core/app.d.ts +37 -37
  4. package/core/app.js +9 -9
  5. package/core/cloudinary.d.ts +2 -2
  6. package/core/cloudinary.js +1 -1
  7. package/core/fields.d.ts +19 -19
  8. package/core/fields.js +1 -1
  9. package/core/index.d.ts +16 -16
  10. package/core/index.js +9 -9
  11. package/core/job.d.ts +21 -21
  12. package/core/job.js +11 -11
  13. package/core/redirect.d.ts +17 -17
  14. package/core/redirect.js +12 -12
  15. package/core/scope.d.ts +124 -124
  16. package/core/scope.js +117 -117
  17. package/core/signage.d.ts +19 -19
  18. package/core/signage.js +1 -1
  19. package/core/webhook-event-data.d.ts +16 -16
  20. package/core/webhook-event-data.js +1 -1
  21. package/enums/document.d.ts +38 -38
  22. package/enums/document.js +41 -41
  23. package/enums/fields.d.ts +30 -30
  24. package/enums/fields.js +31 -31
  25. package/enums/index.d.ts +151 -150
  26. package/enums/index.js +171 -170
  27. package/enums/unit-template.d.ts +10 -10
  28. package/enums/unit-template.js +12 -12
  29. package/enums/webhook.d.ts +23 -23
  30. package/enums/webhook.js +26 -26
  31. package/error/error.d.ts +28 -28
  32. package/error/error.js +50 -50
  33. package/error/index.d.ts +1 -1
  34. package/error/index.js +1 -1
  35. package/index.d.ts +4 -4
  36. package/index.js +4 -4
  37. package/models/algorithm.d.ts +32 -32
  38. package/models/algorithm.js +15 -15
  39. package/models/app.d.ts +102 -101
  40. package/models/app.js +53 -52
  41. package/models/availability.d.ts +35 -35
  42. package/models/availability.js +1 -1
  43. package/models/booking.d.ts +57 -57
  44. package/models/booking.js +1 -1
  45. package/models/client.d.ts +10 -10
  46. package/models/client.js +1 -1
  47. package/models/department.d.ts +28 -28
  48. package/models/department.js +1 -1
  49. package/models/document.d.ts +37 -37
  50. package/models/document.js +1 -1
  51. package/models/email.d.ts +16 -16
  52. package/models/email.js +1 -1
  53. package/models/extends.d.ts +37 -37
  54. package/models/extends.js +1 -1
  55. package/models/index.d.ts +34 -34
  56. package/models/index.js +34 -34
  57. package/models/inquiry.d.ts +57 -57
  58. package/models/inquiry.js +1 -1
  59. package/models/media.d.ts +50 -50
  60. package/models/media.js +1 -1
  61. package/models/module.d.ts +19 -19
  62. package/models/module.js +1 -1
  63. package/models/note.d.ts +19 -19
  64. package/models/note.js +1 -1
  65. package/models/notification-trigger.d.ts +9 -9
  66. package/models/notification-trigger.js +1 -1
  67. package/models/option-label.d.ts +7 -7
  68. package/models/option-label.js +1 -1
  69. package/models/order.d.ts +164 -163
  70. package/models/order.js +20 -20
  71. package/models/organization.d.ts +86 -86
  72. package/models/organization.js +7 -7
  73. package/models/page.d.ts +22 -22
  74. package/models/page.js +1 -1
  75. package/models/payment.d.ts +94 -94
  76. package/models/payment.js +1 -1
  77. package/models/period.d.ts +8 -8
  78. package/models/period.js +1 -1
  79. package/models/producer.d.ts +24 -24
  80. package/models/producer.js +1 -1
  81. package/models/product-stats.d.ts +18 -18
  82. package/models/product-stats.js +1 -1
  83. package/models/product.d.ts +78 -78
  84. package/models/product.js +1 -1
  85. package/models/project.d.ts +124 -124
  86. package/models/project.js +1 -1
  87. package/models/queue-download.d.ts +19 -19
  88. package/models/queue-download.js +1 -1
  89. package/models/recommendation.d.ts +12 -12
  90. package/models/recommendation.js +1 -1
  91. package/models/supplier.d.ts +12 -12
  92. package/models/supplier.js +1 -1
  93. package/models/tag.d.ts +5 -5
  94. package/models/tag.js +1 -1
  95. package/models/unit-email.d.ts +21 -21
  96. package/models/unit-email.js +1 -1
  97. package/models/unit-template.d.ts +124 -124
  98. package/models/unit-template.js +1 -1
  99. package/models/unit.d.ts +243 -243
  100. package/models/unit.js +1 -1
  101. package/models/upsell-template.d.ts +13 -13
  102. package/models/upsell-template.js +1 -1
  103. package/models/user.d.ts +33 -33
  104. package/models/user.js +16 -16
  105. package/models/webhook-event.d.ts +43 -43
  106. package/models/webhook-event.js +1 -1
  107. package/models/webhook.d.ts +15 -15
  108. package/models/webhook.js +1 -1
  109. 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
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};