@aptly-as/types 1.8.0 → 1.9.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.
Files changed (91) hide show
  1. package/core/api.js +1 -2
  2. package/core/app.d.ts +2 -2
  3. package/core/app.js +2 -5
  4. package/core/cloudinary.d.ts +1 -1
  5. package/core/cloudinary.js +1 -2
  6. package/core/error.d.ts +1 -1
  7. package/core/error.js +1 -2
  8. package/core/fields.d.ts +1 -1
  9. package/core/fields.js +1 -2
  10. package/core/index.d.ts +10 -10
  11. package/core/index.js +9 -21
  12. package/core/permission.d.ts +8 -22
  13. package/core/permission.js +9 -11
  14. package/core/scope.d.ts +3 -3
  15. package/core/scope.js +2 -5
  16. package/core/signage.d.ts +3 -3
  17. package/core/signage.js +1 -2
  18. package/core/webhook-event-data.d.ts +1 -1
  19. package/core/webhook-event-data.js +1 -2
  20. package/enums/document.js +4 -7
  21. package/enums/fields.js +2 -5
  22. package/enums/index.d.ts +4 -4
  23. package/enums/index.js +36 -49
  24. package/enums/unit-template.js +4 -7
  25. package/enums/webhook.js +6 -9
  26. package/index.d.ts +3 -3
  27. package/index.js +3 -15
  28. package/models/algorithm.d.ts +2 -2
  29. package/models/algorithm.js +4 -7
  30. package/models/app.d.ts +8 -8
  31. package/models/app.js +6 -9
  32. package/models/availability.js +1 -2
  33. package/models/booking.d.ts +7 -6
  34. package/models/booking.js +1 -2
  35. package/models/client.d.ts +3 -6
  36. package/models/client.js +1 -2
  37. package/models/department.d.ts +11 -11
  38. package/models/department.js +1 -2
  39. package/models/document.d.ts +4 -10
  40. package/models/document.js +1 -2
  41. package/models/extends.d.ts +4 -10
  42. package/models/extends.js +1 -2
  43. package/models/index.d.ts +30 -29
  44. package/models/index.js +30 -41
  45. package/models/inquiry.d.ts +9 -12
  46. package/models/inquiry.js +1 -2
  47. package/models/media.d.ts +5 -14
  48. package/models/media.js +1 -2
  49. package/models/note.d.ts +18 -0
  50. package/models/note.js +1 -0
  51. package/models/notification-trigger.d.ts +1 -1
  52. package/models/notification-trigger.js +1 -2
  53. package/models/option-label.d.ts +2 -5
  54. package/models/option-label.js +1 -2
  55. package/models/order.d.ts +8 -11
  56. package/models/order.js +1 -2
  57. package/models/organization.d.ts +13 -16
  58. package/models/organization.js +1 -2
  59. package/models/page.d.ts +4 -13
  60. package/models/page.js +1 -2
  61. package/models/producer.d.ts +3 -9
  62. package/models/producer.js +1 -2
  63. package/models/product-stats.d.ts +2 -2
  64. package/models/product-stats.js +1 -2
  65. package/models/product.d.ts +7 -13
  66. package/models/product.js +1 -2
  67. package/models/project.d.ts +14 -31
  68. package/models/project.js +1 -2
  69. package/models/queue-download.d.ts +5 -5
  70. package/models/queue-download.js +1 -2
  71. package/models/recommendation.d.ts +3 -3
  72. package/models/recommendation.js +1 -2
  73. package/models/supplier.d.ts +3 -6
  74. package/models/supplier.js +1 -2
  75. package/models/tag.d.ts +2 -5
  76. package/models/tag.js +1 -2
  77. package/models/unit-email.d.ts +7 -10
  78. package/models/unit-email.js +2 -5
  79. package/models/unit-template.d.ts +17 -26
  80. package/models/unit-template.js +1 -2
  81. package/models/unit.d.ts +20 -34
  82. package/models/unit.js +1 -2
  83. package/models/upsell-template.d.ts +2 -8
  84. package/models/upsell-template.js +1 -2
  85. package/models/user.d.ts +2 -5
  86. package/models/user.js +1 -2
  87. package/models/webhook-event.d.ts +5 -8
  88. package/models/webhook-event.js +1 -2
  89. package/models/webhook.d.ts +3 -6
  90. package/models/webhook.js +1 -2
  91. package/package.json +7 -8
@@ -1,12 +1,12 @@
1
- import { AptlyPermissionModulesModels, AptlyPermissionOrganizationModels, AptlyScope, AptlySignageSchema } from '../core';
2
- import { AptlyUserSchema } from './user';
3
- import { AptlyMediaSrc } from './media';
4
- import { AptlyBaseSchema, AptlyHistorySchema } from './extends';
5
- import { AptlyDepartmentGeneric } from './department';
6
- import { AptlyProducerSchema } from './producer';
7
- import { AptlyAppSchema } from './app';
8
- import { AptlyAlgorithmSchema } from './algorithm';
9
- export declare type AptlyOrganization = AptlyOrganizationSchema<string, string>;
1
+ import { AptlyPermissionModulesModels, AptlyPermissionOrganizationModels, AptlyScope, AptlySignageSchema } from '../core/index.js';
2
+ import { AptlyUserSchema } from './user.js';
3
+ import { AptlyMediaSrc } from './media.js';
4
+ import { AptlyBaseSchema, AptlyHistorySchema } from './extends.js';
5
+ import { AptlyDepartmentGeneric } from './department.js';
6
+ import { AptlyProducerSchema } from './producer.js';
7
+ import { AptlyAppSchema } from './app.js';
8
+ import { AptlyAlgorithmSchema } from './algorithm.js';
9
+ export type AptlyOrganization = AptlyOrganizationSchema<string, string>;
10
10
  export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>, AptlyHistorySchema<ID, DATE> {
11
11
  slug: string;
12
12
  logo?: string | null;
@@ -32,19 +32,16 @@ export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, D
32
32
  integrations: AptlyOrganizationIntegrationsSchema<ID>[];
33
33
  invites: AptlyOrganizationInviteSchema<ID, DATE>[];
34
34
  apps: AptlyOrganizationAppConfigSchema<ID, DATE>[];
35
- /**
36
- * @deprecated use createdAt
37
- */
38
35
  created: DATE;
39
36
  }
40
- export declare type AptlyOrganizationIntegrations = AptlyOrganizationIntegrationsSchema<string>;
37
+ export type AptlyOrganizationIntegrations = AptlyOrganizationIntegrationsSchema<string>;
41
38
  export interface AptlyOrganizationIntegrationsSchema<ID> {
42
39
  _id: ID;
43
40
  integration: string;
44
41
  apiKey: string;
45
42
  organization: string;
46
43
  }
47
- export declare type AptlyOrganizationMember = AptlyOrganizationMemberSchema<string, string>;
44
+ export type AptlyOrganizationMember = AptlyOrganizationMemberSchema<string, string>;
48
45
  export interface AptlyOrganizationMemberSchema<ID, DATE> {
49
46
  _id: ID;
50
47
  user: AptlyUserSchema<ID, DATE> | ID;
@@ -52,7 +49,7 @@ export interface AptlyOrganizationMemberSchema<ID, DATE> {
52
49
  projects?: (ID | AptlyProducerSchema<ID, DATE>)[] | null;
53
50
  departments?: (ID | AptlyDepartmentGeneric<ID, DATE>)[];
54
51
  }
55
- export declare type AptlyOrganizationInvite = AptlyOrganizationInviteSchema<string, string>;
52
+ export type AptlyOrganizationInvite = AptlyOrganizationInviteSchema<string, string>;
56
53
  export interface AptlyOrganizationInviteSchema<ID, DATE> {
57
54
  _id: ID;
58
55
  code: string;
@@ -67,7 +64,7 @@ export interface AptlyOrganizationInviteSchema<ID, DATE> {
67
64
  claimTime?: DATE;
68
65
  };
69
66
  }
70
- export declare type AptlyOrganizationAppConfig<S extends object = object> = AptlyOrganizationAppConfigSchema<string, string, S>;
67
+ export type AptlyOrganizationAppConfig<S extends object = object> = AptlyOrganizationAppConfigSchema<string, string, S>;
71
68
  export interface AptlyOrganizationAppConfigSchema<ID, DATE, S extends object = object> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
72
69
  app: ID | AptlyAppSchema<ID, DATE>;
73
70
  scope: AptlyScope[];
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/models/page.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { AptlyPageSectionType } from '../enums';
2
- import { AptlyBaseSchema } from './extends';
3
- export declare type AptlyPage = AptlyPageSchema<string, string>;
1
+ import { AptlyPageSectionType } from '../enums/index.js';
2
+ import { AptlyBaseSchema } from './extends.js';
3
+ export type AptlyPage = AptlyPageSchema<string, string>;
4
4
  export interface AptlyPageSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
5
5
  slug: string;
6
6
  project: ID;
@@ -9,20 +9,11 @@ export interface AptlyPageSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
9
9
  icon?: string;
10
10
  upsellTemplate?: ID | null;
11
11
  sections: AptlyPageSectionSchema<ID, DATE>[];
12
- /**
13
- * @deprecated use upsellTemplate
14
- */
15
12
  legacy?: string;
16
- /**
17
- * @deprecated use upsellTemplate
18
- */
19
13
  image?: string;
20
- /**
21
- * @deprecated connected with project pages
22
- */
23
14
  showInMenu: boolean;
24
15
  }
25
- export declare type AptlyPageSection = AptlyPageSectionSchema<string, string>;
16
+ export type AptlyPageSection = AptlyPageSectionSchema<string, string>;
26
17
  export interface AptlyPageSectionSchema<ID, VALUE = any> {
27
18
  _id: ID;
28
19
  name: string;
package/models/page.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,6 +1,6 @@
1
- import { AptlyBaseSchema, AptlyHistorySchema } from './extends';
2
- import { AptlyMediaSrc } from './media';
3
- export declare type AptlyProducer = AptlyProducerSchema<string, string>;
1
+ import { AptlyBaseSchema, AptlyHistorySchema } from './extends.js';
2
+ import { AptlyMediaSrc } from './media.js';
3
+ export type AptlyProducer = AptlyProducerSchema<string, string>;
4
4
  export interface AptlyProducerSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>, AptlyHistorySchema<ID, DATE> {
5
5
  email: string;
6
6
  logo: string | null;
@@ -10,12 +10,6 @@ export interface AptlyProducerSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>
10
10
  createdBy: ID;
11
11
  tags: ID[];
12
12
  featured: boolean;
13
- /**
14
- * @deprecated not used
15
- */
16
13
  extends: ID;
17
- /**
18
- * @deprecated use createdAt
19
- */
20
14
  created: DATE;
21
15
  }
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,5 +1,5 @@
1
- import { AptlyBaseSchema } from './extends';
2
- export declare type AptlyProductStats = AptlyProductStatsSchema<string, string>;
1
+ import { AptlyBaseSchema } from './extends.js';
2
+ export type AptlyProductStats = AptlyProductStatsSchema<string, string>;
3
3
  export interface AptlyProductStatsSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name'> {
4
4
  product: ID;
5
5
  project: ID;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,7 +1,7 @@
1
- import { AptlyBaseSchema, AptlyDBCrawlerCleaner, AptlyHistorySchema } from './extends';
2
- import { AptlyMediaSrcSchema } from './media';
3
- import { AptlyProducerSchema } from './producer';
4
- export declare type AptlyProduct = AptlyProductSchema<string, string>;
1
+ import { AptlyBaseSchema, AptlyDBCrawlerCleaner, AptlyHistorySchema } from './extends.js';
2
+ import { AptlyMediaSrcSchema } from './media.js';
3
+ import { AptlyProducerSchema } from './producer.js';
4
+ export type AptlyProduct = AptlyProductSchema<string, string>;
5
5
  export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, AptlyBaseSchema<ID, DATE>, AptlyHistorySchema<ID, DATE> {
6
6
  searchableName: string;
7
7
  organization?: ID;
@@ -31,25 +31,19 @@ export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, Apt
31
31
  importID?: ID;
32
32
  source?: string;
33
33
  title?: string;
34
- /**
35
- * @deprecated Not used
36
- */
37
34
  likes: {
38
35
  user: ID;
39
36
  date: DATE;
40
37
  }[];
41
- /**
42
- * @deprecated use createdAt
43
- */
44
38
  created: DATE;
45
39
  }
46
- export declare type AptlyProductImage = AptlyProductImageSchema<string, string>;
40
+ export type AptlyProductImage = AptlyProductImageSchema<string, string>;
47
41
  export interface AptlyProductImageSchema<ID, DATE> extends AptlyMediaSrcSchema<ID, DATE> {
48
42
  image: string;
49
43
  description?: string;
50
44
  featured?: boolean;
51
45
  }
52
- export declare type AptlyProductVariant = AptlyProductVariantSchema<string, string>;
46
+ export type AptlyProductVariant = AptlyProductVariantSchema<string, string>;
53
47
  export interface AptlyProductVariantSchema<ID, DATE> {
54
48
  _id: ID;
55
49
  title?: string;
@@ -67,7 +61,7 @@ export interface AptlyProductVariantSchema<ID, DATE> {
67
61
  height?: string;
68
62
  length?: string;
69
63
  }
70
- export declare type AptlyProductImport = AptlyProductImportSchema<string, string>;
64
+ export type AptlyProductImport = AptlyProductImportSchema<string, string>;
71
65
  export interface AptlyProductImportSchema<ID, DATE> extends Partial<Omit<AptlyProductSchema<ID, DATE>, 'images' | 'documents'>> {
72
66
  images: string[];
73
67
  documents: string[];
package/models/product.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -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';
8
- export declare type AptlyProject = AptlyProjectSchema<string, string>;
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
+ 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,12 +21,9 @@ 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
- export declare type AptlyProjectPeriod = AptlyProjectPeriodSchema<string, string>;
26
+ export type AptlyProjectPeriod = AptlyProjectPeriodSchema<string, string>;
33
27
  export interface AptlyProjectPeriodSchema<ID, DATE> {
34
28
  _id: ID;
35
29
  name: 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
- export declare type AptlyProjectAlgorithm = AptlyProjectAlgorithmSchema<string>;
44
- /**
45
- * @deprecated use AptlyAlgorithm instead
46
- */
34
+ export type AptlyProjectAlgorithm = AptlyProjectAlgorithmSchema<string>;
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
- export declare type AptlyProjectAlgorithmPipeline = AptlyProjectAlgorithmPipelineSchema<string>;
58
- /**
59
- * @deprecated use AptlyAlgorithmPipeline instead
60
- */
42
+ export type AptlyProjectAlgorithmPipeline = AptlyProjectAlgorithmPipelineSchema<string>;
61
43
  export interface AptlyProjectAlgorithmPipelineSchema<ID> {
62
44
  _id: ID;
63
45
  label: string;
@@ -109,13 +91,13 @@ export interface AptlyProjectThemePalette {
109
91
  disabled?: string;
110
92
  lightContrast?: string;
111
93
  }
112
- export declare type AptlyProjectIntegration = AptlyProjectIntegrationSchema<string>;
94
+ export type AptlyProjectIntegration = AptlyProjectIntegrationSchema<string>;
113
95
  export interface AptlyProjectIntegrationSchema<ID> {
114
96
  integration: ID;
115
97
  integrationName: string;
116
98
  project: string;
117
99
  }
118
- export declare type AptlyProjectNotify = AptlyProjectNotifySchema<string, string>;
100
+ export type AptlyProjectNotify = AptlyProjectNotifySchema<string, string>;
119
101
  interface AptlyProjectNotifySchema<ID, DATE> {
120
102
  _id: ID;
121
103
  user: AptlyUserSchema<ID, DATE> | ID;
@@ -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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,8 +1,8 @@
1
- import { AptlyQueueDownloadStatus, AptlyQueueDownloadType } from '../enums/index';
2
- import { AptlyDocumentSchema } from './document';
3
- import { AptlyMediaSchema } from './media';
4
- import { AptlyBaseSchema } from './extends';
5
- export declare type AptlyQueueDownload = AptlyQueueDownloadSchema<string, string>;
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
+ export type AptlyQueueDownload = AptlyQueueDownloadSchema<string, string>;
6
6
  export interface AptlyQueueDownloadSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
7
7
  url: string;
8
8
  type: AptlyQueueDownloadType;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,6 +1,6 @@
1
- import { AptlyMediaSrcSchema } from './media';
2
- import { AptlyBaseSchema } from './extends';
3
- export declare type AptlyRecommendation = AptlyRecommendationSchema<string, string>;
1
+ import { AptlyMediaSrcSchema } from './media.js';
2
+ import { AptlyBaseSchema } from './extends.js';
3
+ export type AptlyRecommendation = AptlyRecommendationSchema<string, string>;
4
4
  export interface AptlyRecommendationSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
5
5
  organization?: ID;
6
6
  project?: ID;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,6 +1,6 @@
1
- import { AptlyMediaSrc } from './media';
2
- import { AptlyBaseSchema } from './extends';
3
- export declare type AptlySupplier = AptlySupplierSchema<string, string>;
1
+ import { AptlyMediaSrc } from './media.js';
2
+ import { AptlyBaseSchema } from './extends.js';
3
+ export type AptlySupplier = AptlySupplierSchema<string, string>;
4
4
  export interface AptlySupplierSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
5
5
  email?: string;
6
6
  logo: string | null;
@@ -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
  }
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/models/tag.d.ts CHANGED
@@ -1,8 +1,5 @@
1
- import { AptlyBaseSchema } from './extends';
2
- export declare type AptlyTag = AptlyTagSchema<string, string>;
1
+ import { AptlyBaseSchema } from './extends.js';
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,10 +1,10 @@
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';
7
- export declare type AptlyUnitEmail = AptlyUnitEmailSchema<string, string>;
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
+ export type AptlyUnitEmail = AptlyUnitEmailSchema<string, string>;
8
8
  export interface AptlyUnitEmailSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
9
9
  type: AptlyUnitEmailType;
10
10
  to: string[];
@@ -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 {
@@ -1,7 +1,4 @@
1
- "use strict";
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 = exports.AptlyUnitEmailType || (exports.AptlyUnitEmailType = {}));
12
+ })(AptlyUnitEmailType || (AptlyUnitEmailType = {}));
@@ -1,34 +1,31 @@
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';
8
- export declare type AptlyUnitTemplateBase = AptlyUnitTemplateBaseSchema<string, string>;
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
+ export type AptlyUnitTemplateBase = AptlyUnitTemplateBaseSchema<string, string>;
9
9
  export interface AptlyUnitTemplateBaseSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
10
10
  _order_categories: ID[];
11
11
  categories: AptlyUnitTemplateCategorySchema<ID, DATE>[];
12
12
  }
13
- export declare type AptlyUnitTemplate = AptlyUnitTemplateSchema<string, string>;
13
+ export type AptlyUnitTemplate = AptlyUnitTemplateSchema<string, string>;
14
14
  export interface AptlyUnitTemplateSchema<ID, DATE> extends AptlyUnitTemplateBaseSchema<ID, DATE>, AptlyHistorySchema<ID, DATE> {
15
15
  name: string;
16
16
  description?: string;
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
- export declare type AptlyUnitTemplateBlueprint = AptlyUnitTemplateBlueprintSchema<string>;
22
+ export type AptlyUnitTemplateBlueprint = AptlyUnitTemplateBlueprintSchema<string>;
26
23
  export interface AptlyUnitTemplateBlueprintSchema<ID> {
27
24
  _id: ID;
28
25
  image: string;
29
26
  featured: boolean;
30
27
  }
31
- export declare type AptlyUnitTemplateCategory = AptlyUnitTemplateCategorySchema<string, string>;
28
+ export type AptlyUnitTemplateCategory = AptlyUnitTemplateCategorySchema<string, string>;
32
29
  export interface AptlyUnitTemplateCategorySchema<ID, DATE> {
33
30
  _id: ID;
34
31
  _orderID: ID;
@@ -39,12 +36,9 @@ 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
- export declare type AptlyUnitTemplateCategorySection = AptlyUnitTemplateCategorySectionSchema<string, string>;
41
+ export type AptlyUnitTemplateCategorySection = AptlyUnitTemplateCategorySectionSchema<string, string>;
48
42
  export interface AptlyUnitTemplateCategorySectionSchema<ID, DATE> {
49
43
  _id: ID;
50
44
  _orderID: ID;
@@ -59,7 +53,7 @@ export interface AptlyUnitTemplateCategorySectionSchema<ID, DATE> {
59
53
  products: AptlyUnitTemplateCategorySectionProductSchema<ID, DATE>[];
60
54
  period: AptlyProjectPeriodSchema<ID, DATE> | ID;
61
55
  }
62
- export declare type AptlyUnitTemplateCategorySectionPackage = AptlyUnitTemplateCategorySectionPackageSchema<string, string>;
56
+ export type AptlyUnitTemplateCategorySectionPackage = AptlyUnitTemplateCategorySectionPackageSchema<string, string>;
63
57
  export interface AptlyUnitTemplateCategorySectionPackageSchema<ID, DATE> {
64
58
  _id: ID;
65
59
  name: string;
@@ -70,13 +64,13 @@ export interface AptlyUnitTemplateCategorySectionPackageSchema<ID, DATE> {
70
64
  _product_order?: ID[];
71
65
  products?: AptlyUnitTemplateCategorySectionProductSchema<ID, DATE>[];
72
66
  }
73
- export declare type AptlyUnitTemplateCategorySectionAssortment = AptlyUnitTemplateCategorySectionAssortmentSchema<string, string>;
67
+ export type AptlyUnitTemplateCategorySectionAssortment = AptlyUnitTemplateCategorySectionAssortmentSchema<string, string>;
74
68
  export interface AptlyUnitTemplateCategorySectionAssortmentSchema<ID, DATE> {
75
69
  _id: ID;
76
70
  createdAt: DATE;
77
71
  color: string;
78
72
  }
79
- export declare type AptlyUnitTemplateCategorySectionProduct = AptlyUnitTemplateCategorySectionProductSchema<string, string>;
73
+ export type AptlyUnitTemplateCategorySectionProduct = AptlyUnitTemplateCategorySectionProductSchema<string, string>;
80
74
  export interface AptlyUnitTemplateCategorySectionProductSchema<ID, DATE> {
81
75
  _id: ID;
82
76
  _orderID: ID;
@@ -104,12 +98,9 @@ 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
- export declare type AptlyUnitTemplateCategorySectionProductParam<VALUE> = AptlyUnitTemplateCategorySectionProductParamSchema<string, VALUE>;
103
+ export type AptlyUnitTemplateCategorySectionProductParam<VALUE> = AptlyUnitTemplateCategorySectionProductParamSchema<string, VALUE>;
113
104
  export interface AptlyUnitTemplateCategorySectionProductParamSchema<ID, VALUE = any> {
114
105
  _id: ID;
115
106
  key: AptlyUnitTemplateCategorySectionProductParamKey;
@@ -118,7 +109,7 @@ export interface AptlyUnitTemplateCategorySectionProductParamSchema<ID, VALUE =
118
109
  sectionNames?: string[];
119
110
  sectionName?: string;
120
111
  }
121
- export declare type AptlyUnitTemplateCategorySectionProductVariantPrice = AptlyUnitTemplateCategorySectionProductVariantPriceSchema<string>;
112
+ export type AptlyUnitTemplateCategorySectionProductVariantPrice = AptlyUnitTemplateCategorySectionProductVariantPriceSchema<string>;
122
113
  export interface AptlyUnitTemplateCategorySectionProductVariantPriceSchema<ID> {
123
114
  variant: ID;
124
115
  price: number;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};