@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
package/core/api.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/core/app.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { AptlyScope } from './scope';
2
- import { AptlyApp, AptlyOrganization, AptlyOrganizationAppConfig } from '../models';
1
+ import { AptlyScope } from './scope.js';
2
+ import { AptlyApp, AptlyOrganization, AptlyOrganizationAppConfig } from '../models/index.js';
3
3
  export declare enum AptlyAppSandbox {
4
4
  AllowForms = "allow-forms",
5
5
  AllowPopups = "allow-popups",
package/core/app.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AptlyAppSandbox = void 0;
4
- var AptlyAppSandbox;
1
+ export var AptlyAppSandbox;
5
2
  (function (AptlyAppSandbox) {
6
3
  AptlyAppSandbox["AllowForms"] = "allow-forms";
7
4
  AptlyAppSandbox["AllowPopups"] = "allow-popups";
@@ -9,4 +6,4 @@ var AptlyAppSandbox;
9
6
  AptlyAppSandbox["AllowSameOrigin"] = "allow-same-origin";
10
7
  AptlyAppSandbox["AllowPointerLock"] = "allow-pointer-lock";
11
8
  AptlyAppSandbox["AllowTopNavigation"] = "allow-top-navigation";
12
- })(AptlyAppSandbox = exports.AptlyAppSandbox || (exports.AptlyAppSandbox = {}));
9
+ })(AptlyAppSandbox || (AptlyAppSandbox = {}));
@@ -1,2 +1,2 @@
1
1
  import * as cloudinary from 'cloudinary';
2
- export declare type AptlyCloudinaryFile = cloudinary.UploadApiResponse;
2
+ export type AptlyCloudinaryFile = cloudinary.UploadApiResponse;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/core/error.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AptlyErrorCode } from '../enums/index';
1
+ import { AptlyErrorCode } from '../enums/index.js';
2
2
  export interface AptlyError {
3
3
  id: string;
4
4
  links?: {
package/core/error.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/core/fields.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AptlyFieldType } from '../enums';
1
+ import { AptlyFieldType } from '../enums/index.js';
2
2
  export interface AptlyField {
3
3
  type: AptlyFieldType;
4
4
  label: string;
package/core/fields.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/core/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { AptlyCloudinaryFile } from './cloudinary';
2
- export * from './api';
3
- export * from './app';
4
- export * from './cloudinary';
5
- export * from './permission';
6
- export * from './error';
7
- export * from './fields';
8
- export * from './scope';
9
- export * from './signage';
10
- export * from './webhook-event-data';
1
+ import { AptlyCloudinaryFile } from './cloudinary.js';
2
+ export * from './api.js';
3
+ export * from './app.js';
4
+ export * from './cloudinary.js';
5
+ export * from './permission.js';
6
+ export * from './error.js';
7
+ export * from './fields.js';
8
+ export * from './scope.js';
9
+ export * from './signage.js';
10
+ export * from './webhook-event-data.js';
11
11
  export interface AptlySchemaFile extends Pick<AptlyCloudinaryFile, 'public_id' | 'url' | 'format' | 'resource_type' | 'bytes'> {
12
12
  filename: string;
13
13
  }
package/core/index.js CHANGED
@@ -1,21 +1,9 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./api"), exports);
14
- __exportStar(require("./app"), exports);
15
- __exportStar(require("./cloudinary"), exports);
16
- __exportStar(require("./permission"), exports);
17
- __exportStar(require("./error"), exports);
18
- __exportStar(require("./fields"), exports);
19
- __exportStar(require("./scope"), exports);
20
- __exportStar(require("./signage"), exports);
21
- __exportStar(require("./webhook-event-data"), exports);
1
+ export * from './api.js';
2
+ export * from './app.js';
3
+ export * from './cloudinary.js';
4
+ export * from './permission.js';
5
+ export * from './error.js';
6
+ export * from './fields.js';
7
+ export * from './scope.js';
8
+ export * from './signage.js';
9
+ export * from './webhook-event-data.js';
@@ -1,21 +1,12 @@
1
- /**
2
- * @deprecated use AptlyPermissionGlobalModel enum
3
- */
4
- export declare type AptlyPermissionGlobalModels = 'superAdmin' | 'admin' | 'beta' | 'default';
1
+ export type AptlyPermissionGlobalModels = 'superAdmin' | 'admin' | 'beta' | 'default';
5
2
  export declare enum AptlyPermissionGlobalModel {
6
3
  Admin = "admin",
7
4
  Beta = "beta",
8
5
  Default = "default",
9
6
  SuperAdmin = "superAdmin"
10
7
  }
11
- /**
12
- * @deprecated Dont think this is used?
13
- */
14
- export declare type AptlyPermissionModules = 'projectBooking' | 'projectSupport' | 'projectRecommendations';
15
- /**
16
- * @deprecated use AptlyPermissionOrganizationModel enum
17
- */
18
- export declare type AptlyPermissionModulesModels = 'default' | 'core' | 'algorithms' | 'departments' | 'booking' | 'unitExtraOptions' | 'unitExtraFields' | 'pages' | 'recommendations' | 'subcontractor' | 'optionLabels' | 'support' | 'productsExtended' | 'testing';
8
+ export type AptlyPermissionModules = 'projectBooking' | 'projectSupport' | 'projectRecommendations';
9
+ export type AptlyPermissionModulesModels = 'default' | 'core' | 'algorithms' | 'departments' | 'booking' | 'unitExtraOptions' | 'unitExtraFields' | 'pages' | 'recommendations' | 'subcontractor' | 'optionLabels' | 'support' | 'productsExtended' | 'testing';
19
10
  export declare enum AptlyPermissionModulesModel {
20
11
  Algorithms = "algorithms",
21
12
  Booking = "booking",
@@ -32,10 +23,7 @@ export declare enum AptlyPermissionModulesModel {
32
23
  UnitExtraOptions = "unitExtraOptions",
33
24
  UnitExtraFields = "unitExtraFields"
34
25
  }
35
- /**
36
- * @deprecated use AptlyPermissionOrganizationModel enum
37
- */
38
- export declare type AptlyPermissionOrganizationModels = 'testingAdmin' | 'admin' | 'projectAdmin' | 'content' | 'organizationContent' | 'reports' | 'support' | 'thirdParty' | 'default';
26
+ export type AptlyPermissionOrganizationModels = 'testingAdmin' | 'admin' | 'projectAdmin' | 'content' | 'organizationContent' | 'reports' | 'support' | 'thirdParty' | 'default';
39
27
  export declare enum AptlyPermissionOrganizationModel {
40
28
  Admin = "admin",
41
29
  Content = "content",
@@ -47,10 +35,7 @@ export declare enum AptlyPermissionOrganizationModel {
47
35
  Support = "support",
48
36
  ThirdParty = "thirdParty"
49
37
  }
50
- /**
51
- * @deprecated use AptlyPermissionModel enum
52
- */
53
- export declare type AptlyPermissionModels = 'admin' | 'adminBilling' | 'adminProducers' | 'adminProducts' | 'adminReport' | 'adminStats' | 'adminSuppliers' | 'adminTags' | 'adminTesting' | 'adminUsers' | 'adminOrganizations' | 'beta' | 'organization' | 'organizationAlgorithms' | 'organizationBooking' | 'organizationClients' | 'organizationDepartments' | 'organizationLogo' | 'organizationMembers' | 'organizationOptionLabels' | 'organizationOrders' | 'organizationPages' | 'organizationProducts' | 'organizationProductsExtended' | 'organizationRecommendations' | 'organizationReport' | 'organizationStats' | 'organizationUnitTemplates' | 'organizationUpsellTemplates' | 'organizationWebhooks' | 'project' | 'projectAlgorithms' | 'projectBooking' | 'projectDocuments' | 'projectInquiry' | 'projectOrders' | 'projectPages' | 'projectPeriods' | 'projectProducts' | 'projectRecommendations' | 'projectReport' | 'projectReportPrice' | 'projectTheme' | 'projectSigning' | 'projectSubcontractor' | 'projectUnits' | 'projectUnitInvites' | 'projectUnitExtraFields' | 'projectUnitExtraOptions' | 'projectUnitTemplates' | 'projectUnitTemplatesAlgorithms' | 'projectUnitTemplatesPrices' | 'projectUpsellTemplates' | 'unit' | 'unitBooking' | 'unitInquiry' | 'unitOrders' | 'unitPages' | 'unitProducts' | 'unitReport';
38
+ export type AptlyPermissionModels = 'admin' | 'adminBilling' | 'adminProducers' | 'adminProducts' | 'adminReport' | 'adminStats' | 'adminSuppliers' | 'adminTags' | 'adminTesting' | 'adminUsers' | 'adminOrganizations' | 'beta' | 'organization' | 'organizationAlgorithms' | 'organizationBooking' | 'organizationClients' | 'organizationDepartments' | 'organizationLogo' | 'organizationMembers' | 'organizationOptionLabels' | 'organizationOrders' | 'organizationPages' | 'organizationProducts' | 'organizationProductsExtended' | 'organizationRecommendations' | 'organizationReport' | 'organizationStats' | 'organizationUnitTemplates' | 'organizationUpsellTemplates' | 'organizationWebhooks' | 'project' | 'projectAlgorithms' | 'projectBooking' | 'projectDocuments' | 'projectInquiry' | 'projectOrders' | 'projectPages' | 'projectPeriods' | 'projectProducts' | 'projectRecommendations' | 'projectReport' | 'projectReportPrice' | 'projectTheme' | 'projectSigning' | 'projectSubcontractor' | 'projectUnits' | 'projectUnitInvites' | 'projectUnitExtraFields' | 'projectUnitExtraOptions' | 'projectUnitTemplates' | 'projectUnitTemplatesAlgorithms' | 'projectUnitTemplatesPrices' | 'projectUpsellTemplates' | 'unit' | 'unitBooking' | 'unitInquiry' | 'unitNotes' | 'unitOrders' | 'unitPages' | 'unitProducts' | 'unitReport';
54
39
  export declare enum AptlyPermissionModel {
55
40
  Admin = "admin",
56
41
  AdminBilling = "adminBilling",
@@ -108,12 +93,13 @@ export declare enum AptlyPermissionModel {
108
93
  Unit = "unit",
109
94
  UnitBooking = "unitBooking",
110
95
  UnitInquiry = "unitInquiry",
96
+ UnitNotes = "unitNotes",
111
97
  UnitOrders = "unitOrders",
112
98
  UnitPages = "unitPages",
113
99
  UnitProducts = "unitProducts",
114
100
  UnitReport = "unitReport"
115
101
  }
116
- export declare type AptlyPermissionCrud = 'C' | 'R' | 'U' | 'D';
117
- export declare type AptlyPermissionSchema = {
102
+ export type AptlyPermissionCrud = 'C' | 'R' | 'U' | 'D';
103
+ export type AptlyPermissionSchema = {
118
104
  [key in AptlyPermissionModels]: 'R' | 'CR' | 'CRU' | 'RU' | 'CRUD';
119
105
  };
@@ -1,14 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AptlyPermissionModel = exports.AptlyPermissionOrganizationModel = exports.AptlyPermissionModulesModel = exports.AptlyPermissionGlobalModel = void 0;
4
- var AptlyPermissionGlobalModel;
1
+ export var AptlyPermissionGlobalModel;
5
2
  (function (AptlyPermissionGlobalModel) {
6
3
  AptlyPermissionGlobalModel["Admin"] = "admin";
7
4
  AptlyPermissionGlobalModel["Beta"] = "beta";
8
5
  AptlyPermissionGlobalModel["Default"] = "default";
9
6
  AptlyPermissionGlobalModel["SuperAdmin"] = "superAdmin";
10
- })(AptlyPermissionGlobalModel = exports.AptlyPermissionGlobalModel || (exports.AptlyPermissionGlobalModel = {}));
11
- var AptlyPermissionModulesModel;
7
+ })(AptlyPermissionGlobalModel || (AptlyPermissionGlobalModel = {}));
8
+ export var AptlyPermissionModulesModel;
12
9
  (function (AptlyPermissionModulesModel) {
13
10
  AptlyPermissionModulesModel["Algorithms"] = "algorithms";
14
11
  AptlyPermissionModulesModel["Booking"] = "booking";
@@ -24,8 +21,8 @@ var AptlyPermissionModulesModel;
24
21
  AptlyPermissionModulesModel["Testing"] = "testing";
25
22
  AptlyPermissionModulesModel["UnitExtraOptions"] = "unitExtraOptions";
26
23
  AptlyPermissionModulesModel["UnitExtraFields"] = "unitExtraFields";
27
- })(AptlyPermissionModulesModel = exports.AptlyPermissionModulesModel || (exports.AptlyPermissionModulesModel = {}));
28
- var AptlyPermissionOrganizationModel;
24
+ })(AptlyPermissionModulesModel || (AptlyPermissionModulesModel = {}));
25
+ export var AptlyPermissionOrganizationModel;
29
26
  (function (AptlyPermissionOrganizationModel) {
30
27
  AptlyPermissionOrganizationModel["Admin"] = "admin";
31
28
  AptlyPermissionOrganizationModel["Content"] = "content";
@@ -36,8 +33,8 @@ var AptlyPermissionOrganizationModel;
36
33
  AptlyPermissionOrganizationModel["Reports"] = "reports";
37
34
  AptlyPermissionOrganizationModel["Support"] = "support";
38
35
  AptlyPermissionOrganizationModel["ThirdParty"] = "thirdParty";
39
- })(AptlyPermissionOrganizationModel = exports.AptlyPermissionOrganizationModel || (exports.AptlyPermissionOrganizationModel = {}));
40
- var AptlyPermissionModel;
36
+ })(AptlyPermissionOrganizationModel || (AptlyPermissionOrganizationModel = {}));
37
+ export var AptlyPermissionModel;
41
38
  (function (AptlyPermissionModel) {
42
39
  AptlyPermissionModel["Admin"] = "admin";
43
40
  AptlyPermissionModel["AdminBilling"] = "adminBilling";
@@ -95,8 +92,9 @@ var AptlyPermissionModel;
95
92
  AptlyPermissionModel["Unit"] = "unit";
96
93
  AptlyPermissionModel["UnitBooking"] = "unitBooking";
97
94
  AptlyPermissionModel["UnitInquiry"] = "unitInquiry";
95
+ AptlyPermissionModel["UnitNotes"] = "unitNotes";
98
96
  AptlyPermissionModel["UnitOrders"] = "unitOrders";
99
97
  AptlyPermissionModel["UnitPages"] = "unitPages";
100
98
  AptlyPermissionModel["UnitProducts"] = "unitProducts";
101
99
  AptlyPermissionModel["UnitReport"] = "unitReport";
102
- })(AptlyPermissionModel = exports.AptlyPermissionModel || (exports.AptlyPermissionModel = {}));
100
+ })(AptlyPermissionModel || (AptlyPermissionModel = {}));
package/core/scope.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { AptlyPermissionModel } from './permission';
1
+ import { AptlyPermissionModel } from './permission.js';
2
2
  export declare enum AptlyScopeAction {
3
3
  Read = "read",
4
4
  Write = "write"
5
5
  }
6
- export declare type AptlyScope = `aptly.${AptlyPermissionModel}` | `aptly.${AptlyPermissionModel}.${AptlyScopeAction}`;
7
- export declare type AptlyScopeTranslations = {
6
+ export type AptlyScope = `aptly.${AptlyPermissionModel}` | `aptly.${AptlyPermissionModel}.${AptlyScopeAction}`;
7
+ export type AptlyScopeTranslations = {
8
8
  [key in AptlyScope]: {
9
9
  label: string;
10
10
  description?: string;
package/core/scope.js CHANGED
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AptlyScopeAction = void 0;
4
- var AptlyScopeAction;
1
+ export var AptlyScopeAction;
5
2
  (function (AptlyScopeAction) {
6
3
  AptlyScopeAction["Read"] = "read";
7
4
  AptlyScopeAction["Write"] = "write";
8
- })(AptlyScopeAction = exports.AptlyScopeAction || (exports.AptlyScopeAction = {}));
5
+ })(AptlyScopeAction || (AptlyScopeAction = {}));
package/core/signage.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { AptlySignageSignerRef } from '../enums';
2
- export declare type AptlySignage = AptlySignageSchema<string, string>;
1
+ import { AptlySignageSignerRef } from '../enums/index.js';
2
+ export type AptlySignage = AptlySignageSchema<string, string>;
3
3
  export interface AptlySignageSchema<ID, DATE> {
4
4
  hasReceivedFile: boolean;
5
5
  documentId: string;
@@ -10,7 +10,7 @@ export interface AptlySignageSchema<ID, DATE> {
10
10
  expireDate: DATE;
11
11
  signers: AptlySignageSignerSchema<ID, DATE>[];
12
12
  }
13
- export declare type AptlySignageSigner = AptlySignageSignerSchema<string, string>;
13
+ export type AptlySignageSigner = AptlySignageSignerSchema<string, string>;
14
14
  export interface AptlySignageSignerSchema<ID, DATE> {
15
15
  _id: ID;
16
16
  ref: AptlySignageSignerRef;
package/core/signage.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,4 +1,4 @@
1
- import { AptlyDocumentSchema, AptlyOrderSchema, AptlyUnitSchema } from '../models';
1
+ import { AptlyDocumentSchema, AptlyOrderSchema, AptlyUnitSchema } from '../models/index.js';
2
2
  export declare namespace AptlyWebhookEventData {
3
3
  type NewUnitOrderSigned = NewUnitOrderSignedSchema<string, string>;
4
4
  interface NewUnitOrderSignedSchema<ID, DATE> {
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/enums/document.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AptlyHistoryType = exports.AptlyDocumentType = void 0;
4
- var AptlyDocumentType;
1
+ export var AptlyDocumentType;
5
2
  (function (AptlyDocumentType) {
6
3
  AptlyDocumentType["Document"] = "document";
7
4
  AptlyDocumentType["DeliveryDescription"] = "deliveryDescription";
@@ -23,8 +20,8 @@ var AptlyDocumentType;
23
20
  AptlyDocumentType["Contract"] = "contract";
24
21
  AptlyDocumentType["Chunk"] = "chunk";
25
22
  AptlyDocumentType["Gdpr"] = "gdpr";
26
- })(AptlyDocumentType = exports.AptlyDocumentType || (exports.AptlyDocumentType = {}));
27
- var AptlyHistoryType;
23
+ })(AptlyDocumentType || (AptlyDocumentType = {}));
24
+ export var AptlyHistoryType;
28
25
  (function (AptlyHistoryType) {
29
26
  AptlyHistoryType["Added"] = "added";
30
27
  AptlyHistoryType["Updated"] = "updated";
@@ -32,4 +29,4 @@ var AptlyHistoryType;
32
29
  AptlyHistoryType["Moved"] = "moved";
33
30
  AptlyHistoryType["Copied"] = "copied";
34
31
  AptlyHistoryType["Imported"] = "imported";
35
- })(AptlyHistoryType = exports.AptlyHistoryType || (exports.AptlyHistoryType = {}));
32
+ })(AptlyHistoryType || (AptlyHistoryType = {}));
package/enums/fields.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AptlyFieldType = void 0;
4
- var AptlyFieldType;
1
+ export var AptlyFieldType;
5
2
  (function (AptlyFieldType) {
6
3
  AptlyFieldType["Object"] = "object";
7
4
  AptlyFieldType["Images"] = "images";
@@ -26,4 +23,4 @@ var AptlyFieldType;
26
23
  AptlyFieldType["Sort"] = "sort";
27
24
  AptlyFieldType["Switch"] = "switch";
28
25
  AptlyFieldType["Checkbox"] = "checkbox";
29
- })(AptlyFieldType = exports.AptlyFieldType || (exports.AptlyFieldType = {}));
26
+ })(AptlyFieldType || (AptlyFieldType = {}));
package/enums/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export * from './document';
2
- export * from './fields';
3
- export * from './unit-template';
4
- export * from './webhook';
1
+ export * from './document.js';
2
+ export * from './fields.js';
3
+ export * from './unit-template.js';
4
+ export * from './webhook.js';
5
5
  export declare enum AptlyOrderStatus {
6
6
  NotSigned = "notSigned",
7
7
  ReadyToSign = "readyToSign",
package/enums/index.js CHANGED
@@ -1,21 +1,8 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.AptlyIcon = exports.AptlyQueueDownloadStatus = exports.AptlyQueueDownloadType = exports.AptlyErrorCode = exports.AptlySignageSignerRef = exports.AptlyUnitItemParamKey = exports.AptlyInquiryParticipantRole = exports.AptlyInquiryStatus = exports.AptlyInquiryType = exports.AptlyCategorySectionDisplayType = exports.AptlyIntegrationLevel = exports.AptlyIntegration = exports.AptlyUnitStatus = exports.AptlyCloudinaryResourceType = exports.AptlyPageSectionType = exports.AptlyOrderStatus = void 0;
14
- __exportStar(require("./document"), exports);
15
- __exportStar(require("./fields"), exports);
16
- __exportStar(require("./unit-template"), exports);
17
- __exportStar(require("./webhook"), exports);
18
- var AptlyOrderStatus;
1
+ export * from './document.js';
2
+ export * from './fields.js';
3
+ export * from './unit-template.js';
4
+ export * from './webhook.js';
5
+ export var AptlyOrderStatus;
19
6
  (function (AptlyOrderStatus) {
20
7
  AptlyOrderStatus["NotSigned"] = "notSigned";
21
8
  AptlyOrderStatus["ReadyToSign"] = "readyToSign";
@@ -25,8 +12,8 @@ var AptlyOrderStatus;
25
12
  AptlyOrderStatus["FileReceived"] = "fileReceived";
26
13
  AptlyOrderStatus["AllPeriodsSigned"] = "allPeriodsSigned";
27
14
  AptlyOrderStatus["Invalid"] = "invalid";
28
- })(AptlyOrderStatus = exports.AptlyOrderStatus || (exports.AptlyOrderStatus = {}));
29
- var AptlyPageSectionType;
15
+ })(AptlyOrderStatus || (AptlyOrderStatus = {}));
16
+ export var AptlyPageSectionType;
30
17
  (function (AptlyPageSectionType) {
31
18
  AptlyPageSectionType["Recommendation"] = "recommendation";
32
19
  AptlyPageSectionType["Image"] = "image";
@@ -35,15 +22,15 @@ var AptlyPageSectionType;
35
22
  AptlyPageSectionType["Card"] = "card";
36
23
  AptlyPageSectionType["Links"] = "links";
37
24
  AptlyPageSectionType["Spacer"] = "spacer";
38
- })(AptlyPageSectionType = exports.AptlyPageSectionType || (exports.AptlyPageSectionType = {}));
39
- var AptlyCloudinaryResourceType;
25
+ })(AptlyPageSectionType || (AptlyPageSectionType = {}));
26
+ export var AptlyCloudinaryResourceType;
40
27
  (function (AptlyCloudinaryResourceType) {
41
28
  AptlyCloudinaryResourceType["Video"] = "video";
42
29
  AptlyCloudinaryResourceType["Image"] = "image";
43
30
  AptlyCloudinaryResourceType["Raw"] = "raw";
44
31
  AptlyCloudinaryResourceType["Auto"] = "auto";
45
- })(AptlyCloudinaryResourceType = exports.AptlyCloudinaryResourceType || (exports.AptlyCloudinaryResourceType = {}));
46
- var AptlyUnitStatus;
32
+ })(AptlyCloudinaryResourceType || (AptlyCloudinaryResourceType = {}));
33
+ export var AptlyUnitStatus;
47
34
  (function (AptlyUnitStatus) {
48
35
  AptlyUnitStatus["NotStarted"] = "notStarted";
49
36
  AptlyUnitStatus["Started"] = "started";
@@ -51,77 +38,77 @@ var AptlyUnitStatus;
51
38
  AptlyUnitStatus["AllPeriodsSigned"] = "allPeriodsSigned";
52
39
  AptlyUnitStatus["Confirmed"] = "confirmed";
53
40
  AptlyUnitStatus["Completed"] = "completed";
54
- })(AptlyUnitStatus = exports.AptlyUnitStatus || (exports.AptlyUnitStatus = {}));
55
- var AptlyIntegration;
41
+ })(AptlyUnitStatus || (AptlyUnitStatus = {}));
42
+ export var AptlyIntegration;
56
43
  (function (AptlyIntegration) {
57
44
  AptlyIntegration["CheckD"] = "checkd";
58
45
  AptlyIntegration["Boligmappa"] = "boligmappa";
59
- })(AptlyIntegration = exports.AptlyIntegration || (exports.AptlyIntegration = {}));
60
- var AptlyIntegrationLevel;
46
+ })(AptlyIntegration || (AptlyIntegration = {}));
47
+ export var AptlyIntegrationLevel;
61
48
  (function (AptlyIntegrationLevel) {
62
49
  AptlyIntegrationLevel["Base"] = "base";
63
50
  AptlyIntegrationLevel["Organization"] = "organization";
64
51
  AptlyIntegrationLevel["Project"] = "project";
65
52
  AptlyIntegrationLevel["Unit"] = "unit";
66
- })(AptlyIntegrationLevel = exports.AptlyIntegrationLevel || (exports.AptlyIntegrationLevel = {}));
67
- var AptlyCategorySectionDisplayType;
53
+ })(AptlyIntegrationLevel || (AptlyIntegrationLevel = {}));
54
+ export var AptlyCategorySectionDisplayType;
68
55
  (function (AptlyCategorySectionDisplayType) {
69
56
  AptlyCategorySectionDisplayType["Default"] = "default";
70
57
  AptlyCategorySectionDisplayType["Compact"] = "compact";
71
58
  AptlyCategorySectionDisplayType["Choice"] = "choice";
72
- })(AptlyCategorySectionDisplayType = exports.AptlyCategorySectionDisplayType || (exports.AptlyCategorySectionDisplayType = {}));
73
- var AptlyInquiryType;
59
+ })(AptlyCategorySectionDisplayType || (AptlyCategorySectionDisplayType = {}));
60
+ export var AptlyInquiryType;
74
61
  (function (AptlyInquiryType) {
75
62
  AptlyInquiryType["Basic"] = "basic";
76
63
  AptlyInquiryType["Question"] = "question";
77
64
  AptlyInquiryType["Complaint"] = "complaint";
78
65
  AptlyInquiryType["System"] = "system";
79
- })(AptlyInquiryType = exports.AptlyInquiryType || (exports.AptlyInquiryType = {}));
80
- var AptlyInquiryStatus;
66
+ })(AptlyInquiryType || (AptlyInquiryType = {}));
67
+ export var AptlyInquiryStatus;
81
68
  (function (AptlyInquiryStatus) {
82
69
  AptlyInquiryStatus["Open"] = "open";
83
70
  AptlyInquiryStatus["Pending"] = "pending";
84
71
  AptlyInquiryStatus["Resolved"] = "resolved";
85
72
  AptlyInquiryStatus["Closed"] = "closed";
86
- })(AptlyInquiryStatus = exports.AptlyInquiryStatus || (exports.AptlyInquiryStatus = {}));
87
- var AptlyInquiryParticipantRole;
73
+ })(AptlyInquiryStatus || (AptlyInquiryStatus = {}));
74
+ export var AptlyInquiryParticipantRole;
88
75
  (function (AptlyInquiryParticipantRole) {
89
76
  AptlyInquiryParticipantRole["Inquirer"] = "inquirer";
90
77
  AptlyInquiryParticipantRole["FirstParty"] = "firstParty";
91
78
  AptlyInquiryParticipantRole["ThirdParty"] = "thirdParty";
92
79
  AptlyInquiryParticipantRole["SilentParty"] = "silentParty";
93
- })(AptlyInquiryParticipantRole = exports.AptlyInquiryParticipantRole || (exports.AptlyInquiryParticipantRole = {}));
94
- var AptlyUnitItemParamKey;
80
+ })(AptlyInquiryParticipantRole || (AptlyInquiryParticipantRole = {}));
81
+ export var AptlyUnitItemParamKey;
95
82
  (function (AptlyUnitItemParamKey) {
96
83
  AptlyUnitItemParamKey["Comment"] = "comment";
97
84
  AptlyUnitItemParamKey["NCS"] = "ncs";
98
85
  AptlyUnitItemParamKey["Image"] = "Image";
99
86
  AptlyUnitItemParamKey["Document"] = "document";
100
- })(AptlyUnitItemParamKey = exports.AptlyUnitItemParamKey || (exports.AptlyUnitItemParamKey = {}));
101
- var AptlySignageSignerRef;
87
+ })(AptlyUnitItemParamKey || (AptlyUnitItemParamKey = {}));
88
+ export var AptlySignageSignerRef;
102
89
  (function (AptlySignageSignerRef) {
103
90
  AptlySignageSignerRef["Organization"] = "organization";
104
91
  AptlySignageSignerRef["Customer"] = "customer";
105
92
  AptlySignageSignerRef["Admin"] = "admin";
106
- })(AptlySignageSignerRef = exports.AptlySignageSignerRef || (exports.AptlySignageSignerRef = {}));
107
- var AptlyErrorCode;
93
+ })(AptlySignageSignerRef || (AptlySignageSignerRef = {}));
94
+ export var AptlyErrorCode;
108
95
  (function (AptlyErrorCode) {
109
96
  AptlyErrorCode["InvalidFields"] = "invalid-fields";
110
97
  AptlyErrorCode["SessionExpired"] = "session-expired";
111
- })(AptlyErrorCode = exports.AptlyErrorCode || (exports.AptlyErrorCode = {}));
112
- var AptlyQueueDownloadType;
98
+ })(AptlyErrorCode || (AptlyErrorCode = {}));
99
+ export var AptlyQueueDownloadType;
113
100
  (function (AptlyQueueDownloadType) {
114
101
  AptlyQueueDownloadType["Document"] = "document";
115
102
  AptlyQueueDownloadType["Image"] = "image";
116
- })(AptlyQueueDownloadType = exports.AptlyQueueDownloadType || (exports.AptlyQueueDownloadType = {}));
117
- var AptlyQueueDownloadStatus;
103
+ })(AptlyQueueDownloadType || (AptlyQueueDownloadType = {}));
104
+ export var AptlyQueueDownloadStatus;
118
105
  (function (AptlyQueueDownloadStatus) {
119
106
  AptlyQueueDownloadStatus["Queued"] = "queued";
120
107
  AptlyQueueDownloadStatus["Downloading"] = "downloading";
121
108
  AptlyQueueDownloadStatus["Downloaded"] = "downloaded";
122
109
  AptlyQueueDownloadStatus["Error"] = "error";
123
- })(AptlyQueueDownloadStatus = exports.AptlyQueueDownloadStatus || (exports.AptlyQueueDownloadStatus = {}));
124
- var AptlyIcon;
110
+ })(AptlyQueueDownloadStatus || (AptlyQueueDownloadStatus = {}));
111
+ export var AptlyIcon;
125
112
  (function (AptlyIcon) {
126
113
  AptlyIcon["Welcome"] = "welcome";
127
114
  AptlyIcon["Contact"] = "contact";
@@ -129,4 +116,4 @@ var AptlyIcon;
129
116
  AptlyIcon["Important"] = "important";
130
117
  AptlyIcon["Info"] = "info";
131
118
  AptlyIcon["Map"] = "map";
132
- })(AptlyIcon = exports.AptlyIcon || (exports.AptlyIcon = {}));
119
+ })(AptlyIcon || (AptlyIcon = {}));
@@ -1,15 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AptlyUnitTemplateCategorySectionProductMeasureUnitType = exports.AptlyUnitTemplateCategorySectionProductParamKey = void 0;
4
- var AptlyUnitTemplateCategorySectionProductParamKey;
1
+ export var AptlyUnitTemplateCategorySectionProductParamKey;
5
2
  (function (AptlyUnitTemplateCategorySectionProductParamKey) {
6
3
  AptlyUnitTemplateCategorySectionProductParamKey["TextContent"] = "textContent";
7
4
  AptlyUnitTemplateCategorySectionProductParamKey["PickTool"] = "pickTool";
8
5
  AptlyUnitTemplateCategorySectionProductParamKey["Logic"] = "logic";
9
- })(AptlyUnitTemplateCategorySectionProductParamKey = exports.AptlyUnitTemplateCategorySectionProductParamKey || (exports.AptlyUnitTemplateCategorySectionProductParamKey = {}));
10
- var AptlyUnitTemplateCategorySectionProductMeasureUnitType;
6
+ })(AptlyUnitTemplateCategorySectionProductParamKey || (AptlyUnitTemplateCategorySectionProductParamKey = {}));
7
+ export var AptlyUnitTemplateCategorySectionProductMeasureUnitType;
11
8
  (function (AptlyUnitTemplateCategorySectionProductMeasureUnitType) {
12
9
  AptlyUnitTemplateCategorySectionProductMeasureUnitType["Unit"] = "unit";
13
10
  AptlyUnitTemplateCategorySectionProductMeasureUnitType["KVM"] = "kvm";
14
11
  AptlyUnitTemplateCategorySectionProductMeasureUnitType["LM"] = "lm";
15
- })(AptlyUnitTemplateCategorySectionProductMeasureUnitType = exports.AptlyUnitTemplateCategorySectionProductMeasureUnitType || (exports.AptlyUnitTemplateCategorySectionProductMeasureUnitType = {}));
12
+ })(AptlyUnitTemplateCategorySectionProductMeasureUnitType || (AptlyUnitTemplateCategorySectionProductMeasureUnitType = {}));
package/enums/webhook.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AptlyWebhookEventStatus = exports.AptlyWebhookStatus = exports.AptlyWebhookType = void 0;
4
- var AptlyWebhookType;
1
+ export var AptlyWebhookType;
5
2
  (function (AptlyWebhookType) {
6
3
  AptlyWebhookType["ProjectCreated"] = "aptly.project.created";
7
4
  AptlyWebhookType["ProjectUpdated"] = "aptly.project.updated";
@@ -12,16 +9,16 @@ var AptlyWebhookType;
12
9
  AptlyWebhookType["UnitOrderSigned"] = "aptly.unit.order.signed";
13
10
  AptlyWebhookType["OrganizationAppUpdated"] = "aptly.organization.app.updated";
14
11
  AptlyWebhookType["OrganizationAppDeleted"] = "aptly.organization.app.deleted";
15
- })(AptlyWebhookType = exports.AptlyWebhookType || (exports.AptlyWebhookType = {}));
16
- var AptlyWebhookStatus;
12
+ })(AptlyWebhookType || (AptlyWebhookType = {}));
13
+ export var AptlyWebhookStatus;
17
14
  (function (AptlyWebhookStatus) {
18
15
  AptlyWebhookStatus["Active"] = "active";
19
16
  AptlyWebhookStatus["Gone"] = "gone-401";
20
- })(AptlyWebhookStatus = exports.AptlyWebhookStatus || (exports.AptlyWebhookStatus = {}));
21
- var AptlyWebhookEventStatus;
17
+ })(AptlyWebhookStatus || (AptlyWebhookStatus = {}));
18
+ export var AptlyWebhookEventStatus;
22
19
  (function (AptlyWebhookEventStatus) {
23
20
  AptlyWebhookEventStatus["New"] = "new";
24
21
  AptlyWebhookEventStatus["Completed"] = "completed";
25
22
  AptlyWebhookEventStatus["Retry"] = "retry";
26
23
  AptlyWebhookEventStatus["Failed"] = "failed";
27
- })(AptlyWebhookEventStatus = exports.AptlyWebhookEventStatus || (exports.AptlyWebhookEventStatus = {}));
24
+ })(AptlyWebhookEventStatus || (AptlyWebhookEventStatus = {}));
package/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './core';
2
- export * from './enums';
3
- export * from './models';
1
+ export * from './core/index.js';
2
+ export * from './enums/index.js';
3
+ export * from './models/index.js';
package/index.js CHANGED
@@ -1,15 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./core"), exports);
14
- __exportStar(require("./enums"), exports);
15
- __exportStar(require("./models"), exports);
1
+ export * from './core/index.js';
2
+ export * from './enums/index.js';
3
+ export * from './models/index.js';
@@ -9,7 +9,7 @@ export declare enum AptlyAlgorithmPipelineApplyTo {
9
9
  Root = "root",
10
10
  PreviousStep = "previousStep"
11
11
  }
12
- export declare type AptlyAlgorithm = AptlyAlgorithmSchema<string>;
12
+ export type AptlyAlgorithm = AptlyAlgorithmSchema<string>;
13
13
  export interface AptlyAlgorithmSchema<ID> {
14
14
  _id: ID;
15
15
  name: string;
@@ -17,7 +17,7 @@ export interface AptlyAlgorithmSchema<ID> {
17
17
  organization?: ID;
18
18
  project?: ID;
19
19
  }
20
- export declare type AptlyAlgorithmPipeline = AptlyAlgorithmPipelineSchema<string>;
20
+ export type AptlyAlgorithmPipeline = AptlyAlgorithmPipelineSchema<string>;
21
21
  export interface AptlyAlgorithmPipelineSchema<ID> {
22
22
  _id: ID;
23
23
  label: string;