@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.
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 +12 -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
package/models/app.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AptlyAppInjectionType = exports.AptlyProjectInjection = exports.AptlyOrganizationInjection = void 0;
4
- var AptlyOrganizationInjection;
1
+ export var AptlyOrganizationInjection;
5
2
  (function (AptlyOrganizationInjection) {
6
3
  AptlyOrganizationInjection["Base"] = "";
7
4
  AptlyOrganizationInjection["Project"] = "project";
@@ -9,8 +6,8 @@ var AptlyOrganizationInjection;
9
6
  AptlyOrganizationInjection["Products"] = "products";
10
7
  AptlyOrganizationInjection["Content"] = "content";
11
8
  AptlyOrganizationInjection["Admin"] = "admin";
12
- })(AptlyOrganizationInjection = exports.AptlyOrganizationInjection || (exports.AptlyOrganizationInjection = {}));
13
- var AptlyProjectInjection;
9
+ })(AptlyOrganizationInjection || (AptlyOrganizationInjection = {}));
10
+ export var AptlyProjectInjection;
14
11
  (function (AptlyProjectInjection) {
15
12
  AptlyProjectInjection["Base"] = "";
16
13
  AptlyProjectInjection["Options"] = "options";
@@ -19,8 +16,8 @@ var AptlyProjectInjection;
19
16
  AptlyProjectInjection["Project"] = "project";
20
17
  AptlyProjectInjection["Support"] = "support";
21
18
  AptlyProjectInjection["Admin"] = "admin";
22
- })(AptlyProjectInjection = exports.AptlyProjectInjection || (exports.AptlyProjectInjection = {}));
23
- var AptlyAppInjectionType;
19
+ })(AptlyProjectInjection || (AptlyProjectInjection = {}));
20
+ export var AptlyAppInjectionType;
24
21
  (function (AptlyAppInjectionType) {
25
22
  AptlyAppInjectionType["Iframe"] = "iframe";
26
- })(AptlyAppInjectionType = exports.AptlyAppInjectionType || (exports.AptlyAppInjectionType = {}));
23
+ })(AptlyAppInjectionType || (AptlyAppInjectionType = {}));
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -4,11 +4,12 @@ import { AptlyUnitSchema } from './unit.js';
4
4
  export type AptlyBooking = AptlyBookingSchema<string, string>;
5
5
  export interface AptlyBookingSchema<ID, DATE> {
6
6
  _id: ID;
7
+ organization: ID | AptlyOrganizationSchema<ID, DATE>;
7
8
  project: ID | AptlyProjectSchema<ID, DATE>;
8
9
  unit: ID | AptlyUnitSchema<ID, DATE>;
9
10
  user: ID;
10
- availability: ID;
11
- calendar: ID;
11
+ availability: ID | AptlyAvailabilitySchema<ID, DATE>;
12
+ calendar: ID | AptlyAvailabilityCalendarSchema<ID, DATE>;
12
13
  availableTime: ID;
13
14
  from: DATE;
14
15
  to: DATE;
package/models/booking.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,14 +1,11 @@
1
- import { AptlyBaseSchema } from './extends';
2
- import { AptlyPermissionSchema } from '../core';
1
+ import { AptlyBaseSchema } from './extends.js';
2
+ import { AptlyPermissionSchema } from '../core/index.js';
3
3
  export interface AptlyUserClientSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
4
4
  user: ID;
5
5
  subject: string;
6
6
  clientId: string;
7
7
  clientSecret?: string;
8
8
  permissions: AptlyPermissionSchema;
9
- /**
10
- * @deprecated use createdAt
11
- */
12
9
  created: DATE;
13
10
  }
14
11
  export type AptlyUserClient = AptlyUserClientSchema<string, string>;
package/models/client.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,9 +1,9 @@
1
- import { AptlyPermissionOrganizationModels } from '../core';
2
- import { AptlyOrganizationSchema } from './organization';
3
- import { AptlyProjectSchema } from './project';
4
- import { AptlyUserSchema } from './user';
5
- import { AptlyBaseSchema } from './extends';
6
- import { AptlyUnitSchema } from './unit';
1
+ import { AptlyPermissionOrganizationModels } from '../core/index.js';
2
+ import { AptlyOrganizationSchema } from './organization.js';
3
+ import { AptlyProjectSchema } from './project.js';
4
+ import { AptlyUserSchema } from './user.js';
5
+ import { AptlyBaseSchema } from './extends.js';
6
+ import { AptlyUnitSchema } from './unit.js';
7
7
  export type AptlyDepartment = AptlyDepartmentGeneric<string, string>;
8
8
  export interface AptlyDepartmentGeneric<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
9
9
  organization: ID | AptlyOrganizationSchema<ID, DATE>;
@@ -13,7 +13,7 @@ export interface AptlyDepartmentGeneric<ID, DATE> extends Omit<AptlyBaseSchema<I
13
13
  export type AptlyDepartmentProject = AptlyDepartmentProjectGeneric<string, string>;
14
14
  export interface AptlyDepartmentProjectGeneric<ID, DATE> {
15
15
  _id: ID;
16
- project: (ID | AptlyProjectSchema<ID, DATE>);
16
+ project: ID | AptlyProjectSchema<ID, DATE>;
17
17
  units: (ID | AptlyUnitSchema<ID, DATE>)[] | null;
18
18
  createdAt: DATE;
19
19
  updatedAt: DATE;
@@ -21,7 +21,7 @@ export interface AptlyDepartmentProjectGeneric<ID, DATE> {
21
21
  export type AptlyDepartmentUser = AptlyDepartmentUserGeneric<string, string>;
22
22
  export interface AptlyDepartmentUserGeneric<ID, DATE> {
23
23
  _id: ID;
24
- user: (ID | AptlyUserSchema<ID, DATE>);
24
+ user: ID | AptlyUserSchema<ID, DATE>;
25
25
  permissions: AptlyPermissionOrganizationModels[];
26
26
  createdAt: DATE;
27
27
  updatedAt: DATE;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,5 +1,5 @@
1
- import { AptlyDocumentType } from '../enums';
2
- import { AptlyBaseSchema } from './extends';
1
+ import { AptlyDocumentType } from '../enums/index.js';
2
+ import { AptlyBaseSchema } from './extends.js';
3
3
  export type AptlyDocument = AptlyDocumentSchema<string, string>;
4
4
  export interface AptlyDocumentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
5
5
  mime: string;
@@ -18,13 +18,7 @@ export interface AptlyDocumentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID,
18
18
  boligmappaStatus?: AptlyDocumentSchemaBoligmappaStatusSchema<ID>[];
19
19
  chunks?: (AptlyDocumentSchema<ID, DATE> | ID)[];
20
20
  isPasswordProtected?: boolean;
21
- /**
22
- * Used in frontend.
23
- */
24
21
  downloadToken?: string;
25
- /**
26
- * @deprecated use createdAt
27
- */
28
22
  created: DATE;
29
23
  }
30
24
  export type AptlyDocumentSchemaBoligmappaStatus = AptlyDocumentSchemaBoligmappaStatusSchema<string>;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,5 +1,5 @@
1
- import { AptlyUserSchema } from './user';
2
- import { AptlyHistoryType } from '../enums';
1
+ import { AptlyUserSchema } from './user.js';
2
+ import { AptlyHistoryType } from '../enums/index.js';
3
3
  export interface AptlyBaseSchema<ID, DATE> {
4
4
  _id: ID;
5
5
  name: string;
@@ -9,13 +9,7 @@ export interface AptlyBaseSchema<ID, DATE> {
9
9
  }
10
10
  export type AptlyHistory = AptlyHistorySchema<string, string>;
11
11
  export interface AptlyHistorySchema<ID, DATE> {
12
- /**
13
- * @deprecated not used in v2
14
- */
15
12
  locked: boolean;
16
- /**
17
- * @deprecated use updatedAt
18
- */
19
13
  lastChange: DATE;
20
14
  history: AptlyHistoryHistorySchema<ID, DATE>[];
21
15
  }
package/models/extends.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/models/index.d.ts CHANGED
@@ -1,29 +1,30 @@
1
- export * from './algorithm';
2
- export * from './app';
3
- export * from './booking';
4
- export * from './client';
5
- export * from './department';
6
- export * from './document';
7
- export * from './extends';
8
- export * from './inquiry';
9
- export * from './media';
10
- export * from './notification-trigger';
11
- export * from './option-label';
12
- export * from './order';
13
- export * from './organization';
14
- export * from './page';
15
- export * from './producer';
16
- export * from './product';
17
- export * from './product-stats';
18
- export * from './project';
19
- export * from './queue-download';
20
- export * from './recommendation';
21
- export * from './supplier';
22
- export * from './tag';
23
- export * from './unit';
24
- export * from './unit-template';
25
- export * from './unit-email';
26
- export * from './upsell-template';
27
- export * from './user';
28
- export * from './webhook';
29
- export * from './webhook-event';
1
+ export * from './algorithm.js';
2
+ export * from './app.js';
3
+ export * from './booking.js';
4
+ export * from './client.js';
5
+ export * from './department.js';
6
+ export * from './document.js';
7
+ export * from './extends.js';
8
+ export * from './inquiry.js';
9
+ export * from './media.js';
10
+ export * from './note.js';
11
+ export * from './notification-trigger.js';
12
+ export * from './option-label.js';
13
+ export * from './order.js';
14
+ export * from './organization.js';
15
+ export * from './page.js';
16
+ export * from './producer.js';
17
+ export * from './product.js';
18
+ export * from './product-stats.js';
19
+ export * from './project.js';
20
+ export * from './queue-download.js';
21
+ export * from './recommendation.js';
22
+ export * from './supplier.js';
23
+ export * from './tag.js';
24
+ export * from './unit.js';
25
+ export * from './unit-template.js';
26
+ export * from './unit-email.js';
27
+ export * from './upsell-template.js';
28
+ export * from './user.js';
29
+ export * from './webhook.js';
30
+ export * from './webhook-event.js';
package/models/index.js CHANGED
@@ -1,45 +1,30 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./algorithm"), exports);
18
- __exportStar(require("./app"), exports);
19
- __exportStar(require("./booking"), exports);
20
- __exportStar(require("./client"), exports);
21
- __exportStar(require("./department"), exports);
22
- __exportStar(require("./document"), exports);
23
- __exportStar(require("./extends"), exports);
24
- __exportStar(require("./inquiry"), exports);
25
- __exportStar(require("./media"), exports);
26
- __exportStar(require("./notification-trigger"), exports);
27
- __exportStar(require("./option-label"), exports);
28
- __exportStar(require("./order"), exports);
29
- __exportStar(require("./organization"), exports);
30
- __exportStar(require("./page"), exports);
31
- __exportStar(require("./producer"), exports);
32
- __exportStar(require("./product"), exports);
33
- __exportStar(require("./product-stats"), exports);
34
- __exportStar(require("./project"), exports);
35
- __exportStar(require("./queue-download"), exports);
36
- __exportStar(require("./recommendation"), exports);
37
- __exportStar(require("./supplier"), exports);
38
- __exportStar(require("./tag"), exports);
39
- __exportStar(require("./unit"), exports);
40
- __exportStar(require("./unit-template"), exports);
41
- __exportStar(require("./unit-email"), exports);
42
- __exportStar(require("./upsell-template"), exports);
43
- __exportStar(require("./user"), exports);
44
- __exportStar(require("./webhook"), exports);
45
- __exportStar(require("./webhook-event"), exports);
1
+ export * from './algorithm.js';
2
+ export * from './app.js';
3
+ export * from './booking.js';
4
+ export * from './client.js';
5
+ export * from './department.js';
6
+ export * from './document.js';
7
+ export * from './extends.js';
8
+ export * from './inquiry.js';
9
+ export * from './media.js';
10
+ export * from './note.js';
11
+ export * from './notification-trigger.js';
12
+ export * from './option-label.js';
13
+ export * from './order.js';
14
+ export * from './organization.js';
15
+ export * from './page.js';
16
+ export * from './producer.js';
17
+ export * from './product.js';
18
+ export * from './product-stats.js';
19
+ export * from './project.js';
20
+ export * from './queue-download.js';
21
+ export * from './recommendation.js';
22
+ export * from './supplier.js';
23
+ export * from './tag.js';
24
+ export * from './unit.js';
25
+ export * from './unit-template.js';
26
+ export * from './unit-email.js';
27
+ export * from './upsell-template.js';
28
+ export * from './user.js';
29
+ export * from './webhook.js';
30
+ export * from './webhook-event.js';
@@ -1,9 +1,9 @@
1
- import { AptlyInquiryParticipantRole, AptlyInquiryStatus, AptlyInquiryType } from '../enums';
2
- import { AptlySchemaFile } from '../core';
3
- import { AptlyUnitSchema } from './unit';
4
- import { AptlyOrganizationSchema } from './organization';
5
- import { AptlyProjectSchema } from './project';
6
- import { AptlyUserSchema } from './user';
1
+ import { AptlyInquiryParticipantRole, AptlyInquiryStatus, AptlyInquiryType } from '../enums/index.js';
2
+ import { AptlySchemaFile } from '../core/index.js';
3
+ import { AptlyUnitSchema } from './unit.js';
4
+ import { AptlyOrganizationSchema } from './organization.js';
5
+ import { AptlyProjectSchema } from './project.js';
6
+ import { AptlyUserSchema } from './user.js';
7
7
  export type AptlyInquiry = AptlyInquirySchema<string, string>;
8
8
  export interface AptlyInquirySchema<ID, DATE> {
9
9
  _id: ID;
@@ -38,9 +38,6 @@ export type AptlyInquiryMessage = AptlyInquiryMessageSchema<string, string>;
38
38
  export interface AptlyInquiryMessageSchema<ID, DATE> {
39
39
  _id: ID;
40
40
  message: string;
41
- /**
42
- * @deprecated Use files instead
43
- */
44
41
  images?: string[];
45
42
  files: AptlySchemaFile[];
46
43
  author?: ID;
package/models/inquiry.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/models/media.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { AptlyOrganizationSchema } from './organization';
2
- import { AptlyBaseSchema } from './extends';
1
+ import { AptlyOrganizationSchema } from './organization.js';
2
+ import { AptlyBaseSchema } from './extends.js';
3
3
  export interface AptlyMediaSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
4
4
  organization: ID | AptlyOrganizationSchema<ID, DATE>;
5
5
  src: string;
@@ -25,13 +25,7 @@ export interface AptlyMediaSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
25
25
  placeholder: boolean;
26
26
  url: string;
27
27
  original_filename: string;
28
- /**
29
- * @deprecated use createdAt
30
- */
31
28
  created: DATE;
32
- /**
33
- * @deprecated use updatedAt
34
- */
35
29
  updated: DATE;
36
30
  srcUrl?: string;
37
31
  uploadSignature?: string;
@@ -49,9 +43,6 @@ export interface AptlyMediaSrcLocation {
49
43
  export interface AptlyMediaSrcSchema<ID, DATE> extends Pick<AptlyMediaSchema<ID, DATE>, AptlyMediaSrcKeys> {
50
44
  area?: AptlyMediaSrcArea;
51
45
  location?: AptlyMediaSrcLocation;
52
- /**
53
- * @deprecated used my product images. Is slowly replaced with src/url
54
- */
55
46
  image?: string;
56
47
  }
57
48
  export type AptlyMediaSrcKeys = '_id' | 'name' | 'src' | 'url' | 'alt' | 'title' | 'caption' | 'mime' | 'width' | 'height';
package/models/media.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -0,0 +1,18 @@
1
+ import { AptlyBaseSchema } from './extends.js';
2
+ import { AptlyOrganizationSchema } from './organization.js';
3
+ import { AptlyProjectSchema } from './project.js';
4
+ import { AptlyUnitSchema } from './unit.js';
5
+ import { AptlyUserSchema } from './user.js';
6
+ export type AptlyNote = AptlyNoteSchema<string, string>;
7
+ export interface AptlyNoteSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
8
+ content: string;
9
+ organization: ID | AptlyOrganizationSchema<ID, DATE>;
10
+ project: ID | AptlyProjectSchema<ID, DATE>;
11
+ unit: ID | AptlyUnitSchema<ID, DATE>;
12
+ users: (ID | AptlyUserSchema<ID, DATE>)[];
13
+ addToReceipt: boolean;
14
+ unitTemplateCategory: ID | null;
15
+ unitTemplateProduct?: ID | null;
16
+ deadlineAt?: DATE | null;
17
+ hasDeadline?: boolean;
18
+ }
package/models/note.js ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,10 +1,7 @@
1
- import { AptlyBaseSchema } from './extends';
1
+ import { AptlyBaseSchema } from './extends.js';
2
2
  export type AptlyOptionLabel = AptlyOptionLabelSchema<string, string>;
3
3
  export interface AptlyOptionLabelSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
4
4
  organization?: ID;
5
5
  project?: ID;
6
- /**
7
- * @deprecated use createdAt
8
- */
9
6
  created: DATE;
10
7
  }
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/models/order.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { AptlyOrderStatus } from '../enums';
1
+ import { AptlyOrderStatus } from '../enums/index.js';
2
2
  import { AptlyOrganizationSchema } from './organization.js';
3
3
  import { AptlyProjectPeriodSchema, AptlyProjectSchema } from './project.js';
4
- import { AptlyUnitItemParamSchema, AptlyUnitSchema } from './unit';
5
- import { AptlyBaseSchema } from './extends';
4
+ import { AptlyUnitItemParamSchema, AptlyUnitSchema } from './unit.js';
5
+ import { AptlyBaseSchema } from './extends.js';
6
6
  import { AptlyUserSchema } from './user.js';
7
7
  export type AptlyOrder = AptlyOrderSchema<string, string>;
8
8
  export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
@@ -19,9 +19,6 @@ export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DAT
19
19
  items: AptlyOrderItemSchema<ID, DATE>[];
20
20
  totalCost: number;
21
21
  pricePipeline: AptlyOrderPricePipelineItemSchema<ID>[];
22
- /**
23
- * @deprecated use createdAt
24
- */
25
22
  created: DATE;
26
23
  }
27
24
  export type AptlyOrderPricePipelineItem = AptlyOrderPricePipelineItemSchema<string>;
package/models/order.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,11 +1,11 @@
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';
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
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;
@@ -32,9 +32,6 @@ 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
37
  export type AptlyOrganizationIntegrations = AptlyOrganizationIntegrationsSchema<string>;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/models/page.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { AptlyPageSectionType } from '../enums';
2
- import { AptlyBaseSchema } from './extends';
1
+ import { AptlyPageSectionType } from '../enums/index.js';
2
+ import { AptlyBaseSchema } from './extends.js';
3
3
  export type AptlyPage = AptlyPageSchema<string, string>;
4
4
  export interface AptlyPageSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
5
5
  slug: string;
@@ -9,17 +9,8 @@ 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
16
  export type AptlyPageSection = AptlyPageSectionSchema<string, string>;
package/models/page.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,5 +1,5 @@
1
- import { AptlyBaseSchema, AptlyHistorySchema } from './extends';
2
- import { AptlyMediaSrc } from './media';
1
+ import { AptlyBaseSchema, AptlyHistorySchema } from './extends.js';
2
+ import { AptlyMediaSrc } from './media.js';
3
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;
@@ -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,4 +1,4 @@
1
- import { AptlyBaseSchema } from './extends';
1
+ import { AptlyBaseSchema } from './extends.js';
2
2
  export type AptlyProductStats = AptlyProductStatsSchema<string, string>;
3
3
  export interface AptlyProductStatsSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name'> {
4
4
  product: ID;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,6 +1,6 @@
1
- import { AptlyBaseSchema, AptlyDBCrawlerCleaner, AptlyHistorySchema } from './extends';
2
- import { AptlyMediaSrcSchema } from './media';
3
- import { AptlyProducerSchema } from './producer';
1
+ import { AptlyBaseSchema, AptlyDBCrawlerCleaner, AptlyHistorySchema } from './extends.js';
2
+ import { AptlyMediaSrcSchema } from './media.js';
3
+ import { AptlyProducerSchema } from './producer.js';
4
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;
@@ -31,16 +31,10 @@ 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
40
  export type AptlyProductImage = AptlyProductImageSchema<string, string>;
package/models/product.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};