@aptly-as/types 1.8.0 → 1.8.1
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.
- package/core/cloudinary.d.ts +1 -1
- package/core/index.js +5 -1
- package/core/permission.d.ts +7 -7
- package/core/scope.d.ts +2 -2
- package/core/signage.d.ts +2 -2
- package/enums/index.js +5 -1
- package/index.js +5 -1
- package/models/algorithm.d.ts +2 -2
- package/models/app.d.ts +4 -4
- package/models/booking.d.ts +4 -4
- package/models/client.d.ts +1 -1
- package/models/department.d.ts +3 -3
- package/models/document.d.ts +2 -2
- package/models/extends.d.ts +2 -2
- package/models/index.js +5 -1
- package/models/inquiry.d.ts +3 -3
- package/models/media.d.ts +3 -3
- package/models/notification-trigger.d.ts +1 -1
- package/models/option-label.d.ts +1 -1
- package/models/order.d.ts +5 -5
- package/models/organization.d.ts +5 -5
- package/models/page.d.ts +2 -2
- package/models/producer.d.ts +1 -1
- package/models/product-stats.d.ts +1 -1
- package/models/product.d.ts +4 -4
- package/models/project.d.ts +6 -6
- package/models/queue-download.d.ts +1 -1
- package/models/recommendation.d.ts +1 -1
- package/models/supplier.d.ts +1 -1
- package/models/tag.d.ts +1 -1
- package/models/unit-email.d.ts +1 -1
- package/models/unit-template.d.ts +10 -10
- package/models/unit.d.ts +15 -15
- package/models/upsell-template.d.ts +1 -1
- package/models/user.d.ts +1 -1
- package/models/webhook-event.d.ts +3 -3
- package/models/webhook.d.ts +1 -1
- package/package.json +6 -6
package/core/cloudinary.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import * as cloudinary from 'cloudinary';
|
|
2
|
-
export
|
|
2
|
+
export type AptlyCloudinaryFile = cloudinary.UploadApiResponse;
|
package/core/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/core/permission.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @deprecated use AptlyPermissionGlobalModel enum
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type AptlyPermissionGlobalModels = 'superAdmin' | 'admin' | 'beta' | 'default';
|
|
5
5
|
export declare enum AptlyPermissionGlobalModel {
|
|
6
6
|
Admin = "admin",
|
|
7
7
|
Beta = "beta",
|
|
@@ -11,11 +11,11 @@ export declare enum AptlyPermissionGlobalModel {
|
|
|
11
11
|
/**
|
|
12
12
|
* @deprecated Dont think this is used?
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export type AptlyPermissionModules = 'projectBooking' | 'projectSupport' | 'projectRecommendations';
|
|
15
15
|
/**
|
|
16
16
|
* @deprecated use AptlyPermissionOrganizationModel enum
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export type AptlyPermissionModulesModels = 'default' | 'core' | 'algorithms' | 'departments' | 'booking' | 'unitExtraOptions' | 'unitExtraFields' | 'pages' | 'recommendations' | 'subcontractor' | 'optionLabels' | 'support' | 'productsExtended' | 'testing';
|
|
19
19
|
export declare enum AptlyPermissionModulesModel {
|
|
20
20
|
Algorithms = "algorithms",
|
|
21
21
|
Booking = "booking",
|
|
@@ -35,7 +35,7 @@ export declare enum AptlyPermissionModulesModel {
|
|
|
35
35
|
/**
|
|
36
36
|
* @deprecated use AptlyPermissionOrganizationModel enum
|
|
37
37
|
*/
|
|
38
|
-
export
|
|
38
|
+
export type AptlyPermissionOrganizationModels = 'testingAdmin' | 'admin' | 'projectAdmin' | 'content' | 'organizationContent' | 'reports' | 'support' | 'thirdParty' | 'default';
|
|
39
39
|
export declare enum AptlyPermissionOrganizationModel {
|
|
40
40
|
Admin = "admin",
|
|
41
41
|
Content = "content",
|
|
@@ -50,7 +50,7 @@ export declare enum AptlyPermissionOrganizationModel {
|
|
|
50
50
|
/**
|
|
51
51
|
* @deprecated use AptlyPermissionModel enum
|
|
52
52
|
*/
|
|
53
|
-
export
|
|
53
|
+
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' | 'unitOrders' | 'unitPages' | 'unitProducts' | 'unitReport';
|
|
54
54
|
export declare enum AptlyPermissionModel {
|
|
55
55
|
Admin = "admin",
|
|
56
56
|
AdminBilling = "adminBilling",
|
|
@@ -113,7 +113,7 @@ export declare enum AptlyPermissionModel {
|
|
|
113
113
|
UnitProducts = "unitProducts",
|
|
114
114
|
UnitReport = "unitReport"
|
|
115
115
|
}
|
|
116
|
-
export
|
|
117
|
-
export
|
|
116
|
+
export type AptlyPermissionCrud = 'C' | 'R' | 'U' | 'D';
|
|
117
|
+
export type AptlyPermissionSchema = {
|
|
118
118
|
[key in AptlyPermissionModels]: 'R' | 'CR' | 'CRU' | 'RU' | 'CRUD';
|
|
119
119
|
};
|
package/core/scope.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export declare enum AptlyScopeAction {
|
|
|
3
3
|
Read = "read",
|
|
4
4
|
Write = "write"
|
|
5
5
|
}
|
|
6
|
-
export
|
|
7
|
-
export
|
|
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/signage.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AptlySignageSignerRef } from '../enums';
|
|
2
|
-
export
|
|
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
|
|
13
|
+
export type AptlySignageSigner = AptlySignageSignerSchema<string, string>;
|
|
14
14
|
export interface AptlySignageSignerSchema<ID, DATE> {
|
|
15
15
|
_id: ID;
|
|
16
16
|
ref: AptlySignageSignerRef;
|
package/enums/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/models/algorithm.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare enum AptlyAlgorithmPipelineApplyTo {
|
|
|
9
9
|
Root = "root",
|
|
10
10
|
PreviousStep = "previousStep"
|
|
11
11
|
}
|
|
12
|
-
export
|
|
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
|
|
20
|
+
export type AptlyAlgorithmPipeline = AptlyAlgorithmPipelineSchema<string>;
|
|
21
21
|
export interface AptlyAlgorithmPipelineSchema<ID> {
|
|
22
22
|
_id: ID;
|
|
23
23
|
label: string;
|
package/models/app.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { AptlyBaseSchema } from './extends';
|
|
|
2
2
|
import { AptlyWebhookType } from '../enums';
|
|
3
3
|
import { AptlyAppSandbox, AptlyField, AptlyPermissionModel } from '../core';
|
|
4
4
|
import { AptlyMediaSrcSchema } from './media';
|
|
5
|
-
export
|
|
5
|
+
export type AptlyApp = AptlyAppSchema<string, string>;
|
|
6
6
|
export interface AptlyAppSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
|
|
7
7
|
slug: string;
|
|
8
8
|
description: string;
|
|
@@ -16,7 +16,7 @@ export interface AptlyAppSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>
|
|
|
16
16
|
proxies: AptlyAppProxySchema<ID>[];
|
|
17
17
|
menus: AptlyAppMenuSchema<ID, DATE>[];
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type AptlyAppSetting = AptlyAppSettingSchema<string>;
|
|
20
20
|
export interface AptlyAppSettingSchema<ID> extends AptlyField {
|
|
21
21
|
_id: ID;
|
|
22
22
|
key: string;
|
|
@@ -44,11 +44,11 @@ export declare enum AptlyProjectInjection {
|
|
|
44
44
|
Support = "support",
|
|
45
45
|
Admin = "admin"
|
|
46
46
|
}
|
|
47
|
-
export
|
|
47
|
+
export type AptlyAppInjectionMenu = `organization-${AptlyOrganizationInjection}` | `project-${AptlyProjectInjection}`;
|
|
48
48
|
export declare enum AptlyAppInjectionType {
|
|
49
49
|
Iframe = "iframe"
|
|
50
50
|
}
|
|
51
|
-
export
|
|
51
|
+
export type AptlyAppMenu = AptlyAppMenuSchema<string, string>;
|
|
52
52
|
export interface AptlyAppMenuSchema<ID, DATE> {
|
|
53
53
|
_id: ID;
|
|
54
54
|
type: AptlyAppInjectionType;
|
package/models/booking.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AptlyOrganizationSchema } from './organization.js';
|
|
2
2
|
import { AptlyProjectSchema } from './project.js';
|
|
3
3
|
import { AptlyUnitSchema } from './unit.js';
|
|
4
|
-
export
|
|
4
|
+
export type AptlyBooking = AptlyBookingSchema<string, string>;
|
|
5
5
|
export interface AptlyBookingSchema<ID, DATE> {
|
|
6
6
|
_id: ID;
|
|
7
7
|
project: ID | AptlyProjectSchema<ID, DATE>;
|
|
@@ -13,7 +13,7 @@ export interface AptlyBookingSchema<ID, DATE> {
|
|
|
13
13
|
from: DATE;
|
|
14
14
|
to: DATE;
|
|
15
15
|
}
|
|
16
|
-
export
|
|
16
|
+
export type AptlyAvailability = AptlyAvailabilitySchema<string, string>;
|
|
17
17
|
export interface AptlyAvailabilitySchema<ID, DATE> {
|
|
18
18
|
_id: ID;
|
|
19
19
|
organization?: ID | AptlyOrganizationSchema<ID, DATE>;
|
|
@@ -21,7 +21,7 @@ export interface AptlyAvailabilitySchema<ID, DATE> {
|
|
|
21
21
|
archived?: boolean;
|
|
22
22
|
calendars: AptlyAvailabilityCalendarSchema<ID, DATE>[];
|
|
23
23
|
}
|
|
24
|
-
export
|
|
24
|
+
export type AptlyAvailabilityCalendar = AptlyAvailabilityCalendarSchema<string, string>;
|
|
25
25
|
export interface AptlyAvailabilityCalendarSchema<ID, DATE> {
|
|
26
26
|
_id: ID;
|
|
27
27
|
name: string;
|
|
@@ -42,7 +42,7 @@ export interface AptlyAvailabilityCalendarSchema<ID, DATE> {
|
|
|
42
42
|
endAvailabilityAt?: DATE;
|
|
43
43
|
userAvailability?: ID[];
|
|
44
44
|
}
|
|
45
|
-
export
|
|
45
|
+
export type AptlyAvailabilityCalendarAvailableTimes = AptlyAvailabilityCalendarAvailableTimesSchema<string, string>;
|
|
46
46
|
export interface AptlyAvailabilityCalendarAvailableTimesSchema<ID, DATE> {
|
|
47
47
|
_id: ID;
|
|
48
48
|
from: DATE;
|
package/models/client.d.ts
CHANGED
package/models/department.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ import { AptlyProjectSchema } from './project';
|
|
|
4
4
|
import { AptlyUserSchema } from './user';
|
|
5
5
|
import { AptlyBaseSchema } from './extends';
|
|
6
6
|
import { AptlyUnitSchema } from './unit';
|
|
7
|
-
export
|
|
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>;
|
|
10
10
|
projects: AptlyDepartmentProjectGeneric<ID, DATE>[];
|
|
11
11
|
users: AptlyDepartmentUserGeneric<ID, DATE>[];
|
|
12
12
|
}
|
|
13
|
-
export
|
|
13
|
+
export type AptlyDepartmentProject = AptlyDepartmentProjectGeneric<string, string>;
|
|
14
14
|
export interface AptlyDepartmentProjectGeneric<ID, DATE> {
|
|
15
15
|
_id: ID;
|
|
16
16
|
project: (ID | AptlyProjectSchema<ID, DATE>);
|
|
@@ -18,7 +18,7 @@ export interface AptlyDepartmentProjectGeneric<ID, DATE> {
|
|
|
18
18
|
createdAt: DATE;
|
|
19
19
|
updatedAt: DATE;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
21
|
+
export type AptlyDepartmentUser = AptlyDepartmentUserGeneric<string, string>;
|
|
22
22
|
export interface AptlyDepartmentUserGeneric<ID, DATE> {
|
|
23
23
|
_id: ID;
|
|
24
24
|
user: (ID | AptlyUserSchema<ID, DATE>);
|
package/models/document.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AptlyDocumentType } from '../enums';
|
|
2
2
|
import { AptlyBaseSchema } from './extends';
|
|
3
|
-
export
|
|
3
|
+
export type AptlyDocument = AptlyDocumentSchema<string, string>;
|
|
4
4
|
export interface AptlyDocumentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
|
|
5
5
|
mime: string;
|
|
6
6
|
_type: AptlyDocumentType;
|
|
@@ -27,7 +27,7 @@ export interface AptlyDocumentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID,
|
|
|
27
27
|
*/
|
|
28
28
|
created: DATE;
|
|
29
29
|
}
|
|
30
|
-
export
|
|
30
|
+
export type AptlyDocumentSchemaBoligmappaStatus = AptlyDocumentSchemaBoligmappaStatusSchema<string>;
|
|
31
31
|
export interface AptlyDocumentSchemaBoligmappaStatusSchema<ID> {
|
|
32
32
|
_id: ID;
|
|
33
33
|
unit: ID;
|
package/models/extends.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface AptlyBaseSchema<ID, DATE> {
|
|
|
7
7
|
createdAt: DATE;
|
|
8
8
|
updatedAt: DATE;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type AptlyHistory = AptlyHistorySchema<string, string>;
|
|
11
11
|
export interface AptlyHistorySchema<ID, DATE> {
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated not used in v2
|
|
@@ -19,7 +19,7 @@ export interface AptlyHistorySchema<ID, DATE> {
|
|
|
19
19
|
lastChange: DATE;
|
|
20
20
|
history: AptlyHistoryHistorySchema<ID, DATE>[];
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type AptlyHistoryHistory = AptlyHistoryHistorySchema<string, string>;
|
|
23
23
|
export interface AptlyHistoryHistorySchema<ID, DATE> {
|
|
24
24
|
_id: ID;
|
|
25
25
|
type: AptlyHistoryType;
|
package/models/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/models/inquiry.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { AptlyUnitSchema } from './unit';
|
|
|
4
4
|
import { AptlyOrganizationSchema } from './organization';
|
|
5
5
|
import { AptlyProjectSchema } from './project';
|
|
6
6
|
import { AptlyUserSchema } from './user';
|
|
7
|
-
export
|
|
7
|
+
export type AptlyInquiry = AptlyInquirySchema<string, string>;
|
|
8
8
|
export interface AptlyInquirySchema<ID, DATE> {
|
|
9
9
|
_id: ID;
|
|
10
10
|
_type: AptlyInquiryType;
|
|
@@ -26,7 +26,7 @@ export interface AptlyInquirySchema<ID, DATE> {
|
|
|
26
26
|
messages: AptlyInquiryMessageSchema<ID, DATE>[];
|
|
27
27
|
references?: string;
|
|
28
28
|
}
|
|
29
|
-
export
|
|
29
|
+
export type AptlyInquiryParticipant = AptlyInquiryParticipantSchema<string, string>;
|
|
30
30
|
export interface AptlyInquiryParticipantSchema<ID, DATE> {
|
|
31
31
|
_id: ID;
|
|
32
32
|
user?: ID | AptlyUserSchema<ID, DATE>;
|
|
@@ -34,7 +34,7 @@ export interface AptlyInquiryParticipantSchema<ID, DATE> {
|
|
|
34
34
|
role: AptlyInquiryParticipantRole;
|
|
35
35
|
readAll: boolean;
|
|
36
36
|
}
|
|
37
|
-
export
|
|
37
|
+
export type AptlyInquiryMessage = AptlyInquiryMessageSchema<string, string>;
|
|
38
38
|
export interface AptlyInquiryMessageSchema<ID, DATE> {
|
|
39
39
|
_id: ID;
|
|
40
40
|
message: string;
|
package/models/media.d.ts
CHANGED
|
@@ -54,6 +54,6 @@ export interface AptlyMediaSrcSchema<ID, DATE> extends Pick<AptlyMediaSchema<ID,
|
|
|
54
54
|
*/
|
|
55
55
|
image?: string;
|
|
56
56
|
}
|
|
57
|
-
export
|
|
58
|
-
export
|
|
59
|
-
export
|
|
57
|
+
export type AptlyMediaSrcKeys = '_id' | 'name' | 'src' | 'url' | 'alt' | 'title' | 'caption' | 'mime' | 'width' | 'height';
|
|
58
|
+
export type AptlyMediaSrc = AptlyMediaSrcSchema<string, string>;
|
|
59
|
+
export type AptlyMedia = AptlyMediaSchema<string, string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type AptlyNotificationTrigger = AptlyNotificationTriggerSchema<string, string>;
|
|
2
2
|
export interface AptlyNotificationTriggerSchema<ID, DATE> {
|
|
3
3
|
_id: ID;
|
|
4
4
|
_type: string;
|
package/models/option-label.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AptlyBaseSchema } from './extends';
|
|
2
|
-
export
|
|
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;
|
package/models/order.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { AptlyProjectPeriodSchema, AptlyProjectSchema } from './project.js';
|
|
|
4
4
|
import { AptlyUnitItemParamSchema, AptlyUnitSchema } from './unit';
|
|
5
5
|
import { AptlyBaseSchema } from './extends';
|
|
6
6
|
import { AptlyUserSchema } from './user.js';
|
|
7
|
-
export
|
|
7
|
+
export type AptlyOrder = AptlyOrderSchema<string, string>;
|
|
8
8
|
export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
|
|
9
9
|
orderNumber: string;
|
|
10
10
|
organization: ID | AptlyOrganizationSchema<ID, DATE>;
|
|
@@ -24,13 +24,13 @@ export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DAT
|
|
|
24
24
|
*/
|
|
25
25
|
created: DATE;
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export type AptlyOrderPricePipelineItem = AptlyOrderPricePipelineItemSchema<string>;
|
|
28
28
|
export interface AptlyOrderPricePipelineItemSchema<ID> {
|
|
29
29
|
_id: ID;
|
|
30
30
|
label: string;
|
|
31
31
|
value: number;
|
|
32
32
|
}
|
|
33
|
-
export
|
|
33
|
+
export type AptlyOrderSignage = AptlyOrderSignageSchema<string, string>;
|
|
34
34
|
export interface AptlyOrderSignageSchema<ID, DATE> {
|
|
35
35
|
hasReceivedFile: boolean;
|
|
36
36
|
signed: boolean;
|
|
@@ -43,7 +43,7 @@ export interface AptlyOrderSignageSchema<ID, DATE> {
|
|
|
43
43
|
organizationSignedAt?: DATE;
|
|
44
44
|
customerSignedAt?: DATE;
|
|
45
45
|
}
|
|
46
|
-
export
|
|
46
|
+
export type AptlyOrderItem = AptlyOrderItemSchema<string, string>;
|
|
47
47
|
export interface AptlyOrderItemSchema<ID, DATE> {
|
|
48
48
|
_id: ID;
|
|
49
49
|
text?: string;
|
|
@@ -55,7 +55,7 @@ export interface AptlyOrderItemSchema<ID, DATE> {
|
|
|
55
55
|
unitCost: number;
|
|
56
56
|
pricePipeline: AptlyOrderItemPricePipelineSchema<ID>[];
|
|
57
57
|
}
|
|
58
|
-
export
|
|
58
|
+
export type AptlyOrderItemPricePipeline = AptlyOrderItemPricePipelineSchema<string>;
|
|
59
59
|
export interface AptlyOrderItemPricePipelineSchema<ID> {
|
|
60
60
|
_id: ID;
|
|
61
61
|
label: string;
|
package/models/organization.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { AptlyDepartmentGeneric } from './department';
|
|
|
6
6
|
import { AptlyProducerSchema } from './producer';
|
|
7
7
|
import { AptlyAppSchema } from './app';
|
|
8
8
|
import { AptlyAlgorithmSchema } from './algorithm';
|
|
9
|
-
export
|
|
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;
|
|
@@ -37,14 +37,14 @@ export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, D
|
|
|
37
37
|
*/
|
|
38
38
|
created: DATE;
|
|
39
39
|
}
|
|
40
|
-
export
|
|
40
|
+
export type AptlyOrganizationIntegrations = AptlyOrganizationIntegrationsSchema<string>;
|
|
41
41
|
export interface AptlyOrganizationIntegrationsSchema<ID> {
|
|
42
42
|
_id: ID;
|
|
43
43
|
integration: string;
|
|
44
44
|
apiKey: string;
|
|
45
45
|
organization: string;
|
|
46
46
|
}
|
|
47
|
-
export
|
|
47
|
+
export type AptlyOrganizationMember = AptlyOrganizationMemberSchema<string, string>;
|
|
48
48
|
export interface AptlyOrganizationMemberSchema<ID, DATE> {
|
|
49
49
|
_id: ID;
|
|
50
50
|
user: AptlyUserSchema<ID, DATE> | ID;
|
|
@@ -52,7 +52,7 @@ export interface AptlyOrganizationMemberSchema<ID, DATE> {
|
|
|
52
52
|
projects?: (ID | AptlyProducerSchema<ID, DATE>)[] | null;
|
|
53
53
|
departments?: (ID | AptlyDepartmentGeneric<ID, DATE>)[];
|
|
54
54
|
}
|
|
55
|
-
export
|
|
55
|
+
export type AptlyOrganizationInvite = AptlyOrganizationInviteSchema<string, string>;
|
|
56
56
|
export interface AptlyOrganizationInviteSchema<ID, DATE> {
|
|
57
57
|
_id: ID;
|
|
58
58
|
code: string;
|
|
@@ -67,7 +67,7 @@ export interface AptlyOrganizationInviteSchema<ID, DATE> {
|
|
|
67
67
|
claimTime?: DATE;
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
export
|
|
70
|
+
export type AptlyOrganizationAppConfig<S extends object = object> = AptlyOrganizationAppConfigSchema<string, string, S>;
|
|
71
71
|
export interface AptlyOrganizationAppConfigSchema<ID, DATE, S extends object = object> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
|
|
72
72
|
app: ID | AptlyAppSchema<ID, DATE>;
|
|
73
73
|
scope: AptlyScope[];
|
package/models/page.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AptlyPageSectionType } from '../enums';
|
|
2
2
|
import { AptlyBaseSchema } from './extends';
|
|
3
|
-
export
|
|
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;
|
|
@@ -22,7 +22,7 @@ export interface AptlyPageSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
|
22
22
|
*/
|
|
23
23
|
showInMenu: boolean;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type AptlyPageSection = AptlyPageSectionSchema<string, string>;
|
|
26
26
|
export interface AptlyPageSectionSchema<ID, VALUE = any> {
|
|
27
27
|
_id: ID;
|
|
28
28
|
name: string;
|
package/models/producer.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AptlyBaseSchema, AptlyHistorySchema } from './extends';
|
|
2
2
|
import { AptlyMediaSrc } from './media';
|
|
3
|
-
export
|
|
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AptlyBaseSchema } from './extends';
|
|
2
|
-
export
|
|
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;
|
package/models/product.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AptlyBaseSchema, AptlyDBCrawlerCleaner, AptlyHistorySchema } from './extends';
|
|
2
2
|
import { AptlyMediaSrcSchema } from './media';
|
|
3
3
|
import { AptlyProducerSchema } from './producer';
|
|
4
|
-
export
|
|
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;
|
|
@@ -43,13 +43,13 @@ export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, Apt
|
|
|
43
43
|
*/
|
|
44
44
|
created: DATE;
|
|
45
45
|
}
|
|
46
|
-
export
|
|
46
|
+
export type AptlyProductImage = AptlyProductImageSchema<string, string>;
|
|
47
47
|
export interface AptlyProductImageSchema<ID, DATE> extends AptlyMediaSrcSchema<ID, DATE> {
|
|
48
48
|
image: string;
|
|
49
49
|
description?: string;
|
|
50
50
|
featured?: boolean;
|
|
51
51
|
}
|
|
52
|
-
export
|
|
52
|
+
export type AptlyProductVariant = AptlyProductVariantSchema<string, string>;
|
|
53
53
|
export interface AptlyProductVariantSchema<ID, DATE> {
|
|
54
54
|
_id: ID;
|
|
55
55
|
title?: string;
|
|
@@ -67,7 +67,7 @@ export interface AptlyProductVariantSchema<ID, DATE> {
|
|
|
67
67
|
height?: string;
|
|
68
68
|
length?: string;
|
|
69
69
|
}
|
|
70
|
-
export
|
|
70
|
+
export type AptlyProductImport = AptlyProductImportSchema<string, string>;
|
|
71
71
|
export interface AptlyProductImportSchema<ID, DATE> extends Partial<Omit<AptlyProductSchema<ID, DATE>, 'images' | 'documents'>> {
|
|
72
72
|
images: string[];
|
|
73
73
|
documents: string[];
|
package/models/project.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { AptlyBaseSchema, AptlyHistorySchema } from './extends';
|
|
|
5
5
|
import { AptlyDocumentSchema } from './document';
|
|
6
6
|
import { AptlyUnitOptionExtraItemSchema } from './unit';
|
|
7
7
|
import { AptlyMediaSrc } from './media';
|
|
8
|
-
export
|
|
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;
|
|
@@ -29,7 +29,7 @@ export interface AptlyProjectSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>,
|
|
|
29
29
|
*/
|
|
30
30
|
created: DATE;
|
|
31
31
|
}
|
|
32
|
-
export
|
|
32
|
+
export type AptlyProjectPeriod = AptlyProjectPeriodSchema<string, string>;
|
|
33
33
|
export interface AptlyProjectPeriodSchema<ID, DATE> {
|
|
34
34
|
_id: ID;
|
|
35
35
|
name: string;
|
|
@@ -40,7 +40,7 @@ export interface AptlyProjectPeriodSchema<ID, DATE> {
|
|
|
40
40
|
/**
|
|
41
41
|
* @deprecated use AptlyAlgorithm instead
|
|
42
42
|
*/
|
|
43
|
-
export
|
|
43
|
+
export type AptlyProjectAlgorithm = AptlyProjectAlgorithmSchema<string>;
|
|
44
44
|
/**
|
|
45
45
|
* @deprecated use AptlyAlgorithm instead
|
|
46
46
|
*/
|
|
@@ -54,7 +54,7 @@ export interface AptlyProjectAlgorithmSchema<ID> {
|
|
|
54
54
|
/**
|
|
55
55
|
* @deprecated use AptlyAlgorithmPipeline instead
|
|
56
56
|
*/
|
|
57
|
-
export
|
|
57
|
+
export type AptlyProjectAlgorithmPipeline = AptlyProjectAlgorithmPipelineSchema<string>;
|
|
58
58
|
/**
|
|
59
59
|
* @deprecated use AptlyAlgorithmPipeline instead
|
|
60
60
|
*/
|
|
@@ -109,13 +109,13 @@ export interface AptlyProjectThemePalette {
|
|
|
109
109
|
disabled?: string;
|
|
110
110
|
lightContrast?: string;
|
|
111
111
|
}
|
|
112
|
-
export
|
|
112
|
+
export type AptlyProjectIntegration = AptlyProjectIntegrationSchema<string>;
|
|
113
113
|
export interface AptlyProjectIntegrationSchema<ID> {
|
|
114
114
|
integration: ID;
|
|
115
115
|
integrationName: string;
|
|
116
116
|
project: string;
|
|
117
117
|
}
|
|
118
|
-
export
|
|
118
|
+
export type AptlyProjectNotify = AptlyProjectNotifySchema<string, string>;
|
|
119
119
|
interface AptlyProjectNotifySchema<ID, DATE> {
|
|
120
120
|
_id: ID;
|
|
121
121
|
user: AptlyUserSchema<ID, DATE> | ID;
|
|
@@ -2,7 +2,7 @@ import { AptlyQueueDownloadStatus, AptlyQueueDownloadType } from '../enums/index
|
|
|
2
2
|
import { AptlyDocumentSchema } from './document';
|
|
3
3
|
import { AptlyMediaSchema } from './media';
|
|
4
4
|
import { AptlyBaseSchema } from './extends';
|
|
5
|
-
export
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { AptlyMediaSrcSchema } from './media';
|
|
2
2
|
import { AptlyBaseSchema } from './extends';
|
|
3
|
-
export
|
|
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;
|
package/models/supplier.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AptlyMediaSrc } from './media';
|
|
2
2
|
import { AptlyBaseSchema } from './extends';
|
|
3
|
-
export
|
|
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;
|
package/models/tag.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AptlyBaseSchema } from './extends';
|
|
2
|
-
export
|
|
2
|
+
export type AptlyTag = AptlyTagSchema<string, string>;
|
|
3
3
|
export interface AptlyTagSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated use createdAt
|
package/models/unit-email.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { AptlyUnitSchema } from './unit';
|
|
|
4
4
|
import { AptlyInquirySchema } from './inquiry';
|
|
5
5
|
import { AptlyBookingSchema } from './booking';
|
|
6
6
|
import { AptlyBaseSchema } from './extends';
|
|
7
|
-
export
|
|
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[];
|
|
@@ -5,12 +5,12 @@ import { AptlyProducerSchema } from './producer';
|
|
|
5
5
|
import { AptlyMediaSrcSchema } from './media';
|
|
6
6
|
import { AptlyUpsellTemplateSchema } from './upsell-template';
|
|
7
7
|
import { AptlyProjectAlgorithmSchema, AptlyProjectPeriodSchema } from './project';
|
|
8
|
-
export
|
|
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
|
|
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;
|
|
@@ -22,13 +22,13 @@ export interface AptlyUnitTemplateSchema<ID, DATE> extends AptlyUnitTemplateBase
|
|
|
22
22
|
*/
|
|
23
23
|
blueprints: AptlyUnitTemplateBlueprintSchema<ID>[];
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type AptlyUnitTemplateBlueprint = AptlyUnitTemplateBlueprintSchema<string>;
|
|
26
26
|
export interface AptlyUnitTemplateBlueprintSchema<ID> {
|
|
27
27
|
_id: ID;
|
|
28
28
|
image: string;
|
|
29
29
|
featured: boolean;
|
|
30
30
|
}
|
|
31
|
-
export
|
|
31
|
+
export type AptlyUnitTemplateCategory = AptlyUnitTemplateCategorySchema<string, string>;
|
|
32
32
|
export interface AptlyUnitTemplateCategorySchema<ID, DATE> {
|
|
33
33
|
_id: ID;
|
|
34
34
|
_orderID: ID;
|
|
@@ -44,7 +44,7 @@ export interface AptlyUnitTemplateCategorySchema<ID, DATE> {
|
|
|
44
44
|
*/
|
|
45
45
|
sameAs?: ID;
|
|
46
46
|
}
|
|
47
|
-
export
|
|
47
|
+
export type AptlyUnitTemplateCategorySection = AptlyUnitTemplateCategorySectionSchema<string, string>;
|
|
48
48
|
export interface AptlyUnitTemplateCategorySectionSchema<ID, DATE> {
|
|
49
49
|
_id: ID;
|
|
50
50
|
_orderID: ID;
|
|
@@ -59,7 +59,7 @@ export interface AptlyUnitTemplateCategorySectionSchema<ID, DATE> {
|
|
|
59
59
|
products: AptlyUnitTemplateCategorySectionProductSchema<ID, DATE>[];
|
|
60
60
|
period: AptlyProjectPeriodSchema<ID, DATE> | ID;
|
|
61
61
|
}
|
|
62
|
-
export
|
|
62
|
+
export type AptlyUnitTemplateCategorySectionPackage = AptlyUnitTemplateCategorySectionPackageSchema<string, string>;
|
|
63
63
|
export interface AptlyUnitTemplateCategorySectionPackageSchema<ID, DATE> {
|
|
64
64
|
_id: ID;
|
|
65
65
|
name: string;
|
|
@@ -70,13 +70,13 @@ export interface AptlyUnitTemplateCategorySectionPackageSchema<ID, DATE> {
|
|
|
70
70
|
_product_order?: ID[];
|
|
71
71
|
products?: AptlyUnitTemplateCategorySectionProductSchema<ID, DATE>[];
|
|
72
72
|
}
|
|
73
|
-
export
|
|
73
|
+
export type AptlyUnitTemplateCategorySectionAssortment = AptlyUnitTemplateCategorySectionAssortmentSchema<string, string>;
|
|
74
74
|
export interface AptlyUnitTemplateCategorySectionAssortmentSchema<ID, DATE> {
|
|
75
75
|
_id: ID;
|
|
76
76
|
createdAt: DATE;
|
|
77
77
|
color: string;
|
|
78
78
|
}
|
|
79
|
-
export
|
|
79
|
+
export type AptlyUnitTemplateCategorySectionProduct = AptlyUnitTemplateCategorySectionProductSchema<string, string>;
|
|
80
80
|
export interface AptlyUnitTemplateCategorySectionProductSchema<ID, DATE> {
|
|
81
81
|
_id: ID;
|
|
82
82
|
_orderID: ID;
|
|
@@ -109,7 +109,7 @@ export interface AptlyUnitTemplateCategorySectionProductSchema<ID, DATE> {
|
|
|
109
109
|
*/
|
|
110
110
|
measureUnitType: AptlyUnitTemplateCategorySectionProductMeasureUnitType;
|
|
111
111
|
}
|
|
112
|
-
export
|
|
112
|
+
export type AptlyUnitTemplateCategorySectionProductParam<VALUE> = AptlyUnitTemplateCategorySectionProductParamSchema<string, VALUE>;
|
|
113
113
|
export interface AptlyUnitTemplateCategorySectionProductParamSchema<ID, VALUE = any> {
|
|
114
114
|
_id: ID;
|
|
115
115
|
key: AptlyUnitTemplateCategorySectionProductParamKey;
|
|
@@ -118,7 +118,7 @@ export interface AptlyUnitTemplateCategorySectionProductParamSchema<ID, VALUE =
|
|
|
118
118
|
sectionNames?: string[];
|
|
119
119
|
sectionName?: string;
|
|
120
120
|
}
|
|
121
|
-
export
|
|
121
|
+
export type AptlyUnitTemplateCategorySectionProductVariantPrice = AptlyUnitTemplateCategorySectionProductVariantPriceSchema<string>;
|
|
122
122
|
export interface AptlyUnitTemplateCategorySectionProductVariantPriceSchema<ID> {
|
|
123
123
|
variant: ID;
|
|
124
124
|
price: number;
|
package/models/unit.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { AptlyUnitTemplateBaseSchema, AptlyUnitTemplateCategorySchema, AptlyUnit
|
|
|
6
6
|
import { AptlyIntegration, AptlyUnitItemParamKey, AptlyUnitStatus } from '../enums';
|
|
7
7
|
import { AptlyUserSchema } from './user';
|
|
8
8
|
import { AptlyOrganizationSchema } from './organization';
|
|
9
|
-
export
|
|
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;
|
|
12
12
|
rooms: AptlyUnitRoomSchema<ID>[];
|
|
@@ -45,13 +45,13 @@ export interface AptlyUnitSchema<ID, DATE> extends AptlyUnitTemplateBaseSchema<I
|
|
|
45
45
|
*/
|
|
46
46
|
created: DATE;
|
|
47
47
|
}
|
|
48
|
-
export
|
|
48
|
+
export type AptlyUnitOverridePeriod = AptlyUnitOverridePeriodSchema<string, string>;
|
|
49
49
|
export interface AptlyUnitOverridePeriodSchema<ID, DATE> {
|
|
50
50
|
_id: ID;
|
|
51
51
|
period: ID;
|
|
52
52
|
close: DATE;
|
|
53
53
|
}
|
|
54
|
-
export
|
|
54
|
+
export type AptlyUnitItemBase = AptlyUnitItemBaseSchema<string, string>;
|
|
55
55
|
export interface AptlyUnitItemBaseSchema<ID, DATE> {
|
|
56
56
|
_id: ID;
|
|
57
57
|
product: ID | AptlyProductSchema<ID, DATE>;
|
|
@@ -69,7 +69,7 @@ export interface AptlyUnitItemBaseSchema<ID, DATE> {
|
|
|
69
69
|
params: AptlyUnitItemParamSchema<ID>[];
|
|
70
70
|
baseCost?: number;
|
|
71
71
|
}
|
|
72
|
-
export
|
|
72
|
+
export type AptlyUnitOption = AptlyUnitSelectedOptionSchema<string, string>;
|
|
73
73
|
export interface AptlyUnitSelectedOptionSchema<ID, DATE> {
|
|
74
74
|
_id: ID;
|
|
75
75
|
category: ID | AptlyUnitTemplateCategorySchema<ID, DATE>;
|
|
@@ -86,15 +86,15 @@ export interface AptlyUnitSelectedOptionSchema<ID, DATE> {
|
|
|
86
86
|
package?: ID;
|
|
87
87
|
standard?: boolean;
|
|
88
88
|
text?: string;
|
|
89
|
-
producer?: ID
|
|
89
|
+
producer?: ID | AptlyProducerSchema<ID, DATE>;
|
|
90
90
|
baseCost?: number;
|
|
91
91
|
}
|
|
92
|
-
export
|
|
92
|
+
export type AptlyUnitOptionItem = AptlyUnitOptionItemSchema<string, string>;
|
|
93
93
|
export interface AptlyUnitOptionItemSchema<ID, DATE> extends AptlyUnitSelectedOptionSchema<ID, DATE> {
|
|
94
94
|
unitCost: number;
|
|
95
95
|
pickRef?: ID;
|
|
96
96
|
}
|
|
97
|
-
export
|
|
97
|
+
export type AptlyUnitOptionExtraItem = AptlyUnitOptionExtraItemSchema<string, string>;
|
|
98
98
|
export interface AptlyUnitOptionExtraItemSchema<ID, DATE> extends AptlyUnitOptionItemSchema<ID, DATE> {
|
|
99
99
|
_id: ID;
|
|
100
100
|
unitCost: number;
|
|
@@ -118,26 +118,26 @@ export interface AptlyUnitOptionExtraItemSchema<ID, DATE> extends AptlyUnitOptio
|
|
|
118
118
|
/** @deprecated. Cant se this is used anymore */
|
|
119
119
|
customTitle?: string;
|
|
120
120
|
}
|
|
121
|
-
export
|
|
121
|
+
export type AptlyUnitItemParam<VALUE> = AptlyUnitItemParamSchema<string, VALUE>;
|
|
122
122
|
export interface AptlyUnitItemParamSchema<ID, VALUE = any> {
|
|
123
123
|
_id: ID;
|
|
124
124
|
key: AptlyUnitItemParamKey;
|
|
125
125
|
value: VALUE;
|
|
126
126
|
downloadToken?: string;
|
|
127
127
|
}
|
|
128
|
-
export
|
|
128
|
+
export type AptlyUnitRoom = AptlyUnitRoomSchema<string>;
|
|
129
129
|
export interface AptlyUnitRoomSchema<ID> {
|
|
130
130
|
_id: ID;
|
|
131
131
|
name: string;
|
|
132
132
|
sizeParams: AptlyUnitRoomSchemaSizeParamSchema<ID>[];
|
|
133
133
|
}
|
|
134
|
-
export
|
|
134
|
+
export type AptlyUnitRoomSchemaSizeParam = AptlyUnitRoomSchemaSizeParamSchema<string>;
|
|
135
135
|
export interface AptlyUnitRoomSchemaSizeParamSchema<ID> {
|
|
136
136
|
_id: ID;
|
|
137
137
|
key: string;
|
|
138
138
|
value: number;
|
|
139
139
|
}
|
|
140
|
-
export
|
|
140
|
+
export type AptlyUnitCategoryOverride = AptlyUnitCategoryOverrideSchema<string>;
|
|
141
141
|
export interface AptlyUnitCategoryOverrideSchema<ID> {
|
|
142
142
|
category: ID;
|
|
143
143
|
/**
|
|
@@ -146,7 +146,7 @@ export interface AptlyUnitCategoryOverrideSchema<ID> {
|
|
|
146
146
|
size: number;
|
|
147
147
|
hide: boolean;
|
|
148
148
|
}
|
|
149
|
-
export
|
|
149
|
+
export type AptlyUnitProductOverride = AptlyUnitProductOverrideSchema<string>;
|
|
150
150
|
export interface AptlyUnitProductOverrideSchema<ID> {
|
|
151
151
|
sectionProductRef: ID;
|
|
152
152
|
section: ID;
|
|
@@ -156,7 +156,7 @@ export interface AptlyUnitProductOverrideSchema<ID> {
|
|
|
156
156
|
variantPrices?: AptlyUnitProductOverrideVariantPriceSchema<ID>[];
|
|
157
157
|
hide?: boolean;
|
|
158
158
|
}
|
|
159
|
-
export
|
|
159
|
+
export type AptlyUnitProductOverrideVariantPrice = AptlyUnitProductOverrideVariantPriceSchema<string>;
|
|
160
160
|
export interface AptlyUnitProductOverrideVariantPriceSchema<ID> {
|
|
161
161
|
_id: ID;
|
|
162
162
|
variant: ID;
|
|
@@ -174,13 +174,13 @@ export interface AptlyUnitSpec {
|
|
|
174
174
|
}[];
|
|
175
175
|
}[];
|
|
176
176
|
}
|
|
177
|
-
export
|
|
177
|
+
export type AptlyUnitConfirmedPeriod = AptlyUnitConfirmedPeriodSchema<string>;
|
|
178
178
|
export interface AptlyUnitConfirmedPeriodSchema<ID> {
|
|
179
179
|
_id: ID;
|
|
180
180
|
period: ID;
|
|
181
181
|
order: ID;
|
|
182
182
|
}
|
|
183
|
-
export
|
|
183
|
+
export type AptlyUnitIntegration = AptlyUnitIntegrationSchema<string>;
|
|
184
184
|
export interface AptlyUnitIntegrationSchema<ID> {
|
|
185
185
|
_id: ID;
|
|
186
186
|
integration: AptlyIntegration;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AptlyBaseSchema, AptlyHistorySchema } from './extends';
|
|
2
|
-
export
|
|
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;
|
|
5
5
|
imageMedia?: string | null;
|
package/models/user.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AptlyBaseSchema } from './extends';
|
|
2
|
-
export
|
|
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;
|
|
5
5
|
fullName: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AptlyWebhookEventStatus, AptlyWebhookType } from '../enums';
|
|
2
2
|
import { AptlyBaseSchema } from './extends';
|
|
3
|
-
|
|
4
|
-
export
|
|
3
|
+
type ServerKeys = 'run' | 'organization' | 'project' | 'status' | 'url' | 'headers' | 'responses';
|
|
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'> {
|
|
6
6
|
specversion: string;
|
|
7
7
|
type: AptlyWebhookType;
|
|
@@ -27,7 +27,7 @@ export interface AptlyWebhookEventSchema<ID, DATE, DATA = unknown> extends Omit<
|
|
|
27
27
|
*/
|
|
28
28
|
created: DATE;
|
|
29
29
|
}
|
|
30
|
-
export
|
|
30
|
+
export type AptlyWebhookEventResponse<DATA = any> = AptlyWebhookEventResponseSchema<string, string, DATA>;
|
|
31
31
|
export interface AptlyWebhookEventResponseSchema<ID, DATE, DATA = any> {
|
|
32
32
|
_id: ID;
|
|
33
33
|
time: DATE;
|
package/models/webhook.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aptly-as/types",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "Aptly types and enums",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
7
7
|
"module": "./index.js",
|
|
8
8
|
"author": "Emil A. Olsen <emil@aptly.as>",
|
|
9
9
|
"engines": {
|
|
10
|
-
"node": "
|
|
10
|
+
"node": "16.18"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
13
|
"start": "yarn build:watch",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"dependencies": {},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"cloudinary": "^1.32.0",
|
|
22
|
-
"husky": "^
|
|
23
|
-
"lint-staged": "^
|
|
24
|
-
"prettier": "^2.
|
|
25
|
-
"typescript": "^4.
|
|
22
|
+
"husky": "^8.0.2",
|
|
23
|
+
"lint-staged": "^13.0.4",
|
|
24
|
+
"prettier": "^2.8.0",
|
|
25
|
+
"typescript": "^4.9.3"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|