@aptly-as/types 1.8.1 → 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 (88) 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.js +1 -2
  5. package/core/error.d.ts +1 -1
  6. package/core/error.js +1 -2
  7. package/core/fields.d.ts +1 -1
  8. package/core/fields.js +1 -2
  9. package/core/index.d.ts +10 -10
  10. package/core/index.js +9 -25
  11. package/core/permission.d.ts +2 -16
  12. package/core/permission.js +9 -11
  13. package/core/scope.d.ts +1 -1
  14. package/core/scope.js +2 -5
  15. package/core/signage.d.ts +1 -1
  16. package/core/signage.js +1 -2
  17. package/core/webhook-event-data.d.ts +1 -1
  18. package/core/webhook-event-data.js +1 -2
  19. package/enums/document.js +4 -7
  20. package/enums/fields.js +2 -5
  21. package/enums/index.d.ts +4 -4
  22. package/enums/index.js +36 -53
  23. package/enums/unit-template.js +4 -7
  24. package/enums/webhook.js +6 -9
  25. package/index.d.ts +3 -3
  26. package/index.js +3 -19
  27. package/models/algorithm.js +4 -7
  28. package/models/app.d.ts +4 -4
  29. package/models/app.js +6 -9
  30. package/models/availability.js +1 -2
  31. package/models/booking.d.ts +3 -2
  32. package/models/booking.js +1 -2
  33. package/models/client.d.ts +2 -5
  34. package/models/client.js +1 -2
  35. package/models/department.d.ts +8 -8
  36. package/models/department.js +1 -2
  37. package/models/document.d.ts +2 -8
  38. package/models/document.js +1 -2
  39. package/models/extends.d.ts +2 -8
  40. package/models/extends.js +1 -2
  41. package/models/index.d.ts +30 -29
  42. package/models/index.js +30 -45
  43. package/models/inquiry.d.ts +6 -9
  44. package/models/inquiry.js +1 -2
  45. package/models/media.d.ts +2 -11
  46. package/models/media.js +1 -2
  47. package/models/note.d.ts +18 -0
  48. package/models/note.js +1 -0
  49. package/models/notification-trigger.js +1 -2
  50. package/models/option-label.d.ts +1 -4
  51. package/models/option-label.js +1 -2
  52. package/models/order.d.ts +3 -6
  53. package/models/order.js +1 -2
  54. package/models/organization.d.ts +8 -11
  55. package/models/organization.js +1 -2
  56. package/models/page.d.ts +2 -11
  57. package/models/page.js +1 -2
  58. package/models/producer.d.ts +2 -8
  59. package/models/producer.js +1 -2
  60. package/models/product-stats.d.ts +1 -1
  61. package/models/product-stats.js +1 -2
  62. package/models/product.d.ts +3 -9
  63. package/models/product.js +1 -2
  64. package/models/project.d.ts +8 -25
  65. package/models/project.js +1 -2
  66. package/models/queue-download.d.ts +4 -4
  67. package/models/queue-download.js +1 -2
  68. package/models/recommendation.d.ts +2 -2
  69. package/models/recommendation.js +1 -2
  70. package/models/supplier.d.ts +2 -5
  71. package/models/supplier.js +1 -2
  72. package/models/tag.d.ts +1 -4
  73. package/models/tag.js +1 -2
  74. package/models/unit-email.d.ts +6 -9
  75. package/models/unit-email.js +2 -5
  76. package/models/unit-template.d.ts +7 -16
  77. package/models/unit-template.js +1 -2
  78. package/models/unit.d.ts +5 -19
  79. package/models/unit.js +1 -2
  80. package/models/upsell-template.d.ts +1 -7
  81. package/models/upsell-template.js +1 -2
  82. package/models/user.d.ts +1 -4
  83. package/models/user.js +1 -2
  84. package/models/webhook-event.d.ts +2 -5
  85. package/models/webhook-event.js +1 -2
  86. package/models/webhook.d.ts +2 -5
  87. package/models/webhook.js +1 -2
  88. package/package.json +3 -4
@@ -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
- "use strict";
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;
@@ -1,2 +1 @@
1
- "use strict";
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;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -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
  }
@@ -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';
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -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 {
@@ -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,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>;
@@ -1,2 +1 @@
1
- "use strict";
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,16 +33,10 @@ 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>[];
42
39
  tree: any[];
43
- /**
44
- * @deprecated use createdAt
45
- */
46
40
  created: DATE;
47
41
  }
48
42
  export type AptlyUnitOverridePeriod = AptlyUnitOverridePeriodSchema<string, string>;
@@ -105,17 +99,12 @@ export interface AptlyUnitOptionExtraItemSchema<ID, DATE> extends AptlyUnitOptio
105
99
  projectItemRef?: ID;
106
100
  revertedOption?: boolean;
107
101
  revertItemRef?: ID;
108
- /** @deprecated. Not sure this is used */
109
102
  document?: ID;
110
- /** @deprecated. Not sure this is used */
111
103
  prerequisites?: {
112
104
  totalCost?: number;
113
105
  };
114
- /** @deprecated. Not sure this is used */
115
106
  thirdPartyUploader?: string;
116
- /** @deprecated. Not sure this is used */
117
107
  cost: number;
118
- /** @deprecated. Cant se this is used anymore */
119
108
  customTitle?: string;
120
109
  }
121
110
  export type AptlyUnitItemParam<VALUE> = AptlyUnitItemParamSchema<string, VALUE>;
@@ -140,9 +129,6 @@ export interface AptlyUnitRoomSchemaSizeParamSchema<ID> {
140
129
  export type AptlyUnitCategoryOverride = AptlyUnitCategoryOverrideSchema<string>;
141
130
  export interface AptlyUnitCategoryOverrideSchema<ID> {
142
131
  category: ID;
143
- /**
144
- * @deprecated Not used i think
145
- */
146
132
  size: number;
147
133
  hide: boolean;
148
134
  }
package/models/unit.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
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
- "use strict";
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
- "use strict";
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>;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -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
- "use strict";
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.8.1",
3
+ "version": "1.9.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",