@aptly-as/types 1.3.1 → 1.4.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.
- package/core/permission.d.ts +2 -2
- package/core/permission.ts +2 -1
- package/enums/document.d.ts +12 -1
- package/enums/document.js +12 -0
- package/enums/document.js.map +1 -1
- package/enums/document.ts +13 -2
- package/enums/index.d.ts +8 -0
- package/enums/index.js +9 -0
- package/enums/index.js.map +1 -1
- package/enums/index.ts +9 -0
- package/models/client.d.ts +5 -3
- package/models/client.ts +6 -3
- package/models/document.d.ts +6 -4
- package/models/document.ts +6 -4
- package/models/extends.d.ts +19 -1
- package/models/extends.ts +20 -1
- package/models/media.d.ts +10 -6
- package/models/media.ts +11 -6
- package/models/option-label.d.ts +6 -5
- package/models/option-label.ts +7 -5
- package/models/order.d.ts +6 -3
- package/models/order.ts +7 -3
- package/models/organization.d.ts +6 -5
- package/models/organization.ts +7 -5
- package/models/page.d.ts +14 -7
- package/models/page.ts +15 -7
- package/models/producer.d.ts +6 -6
- package/models/producer.ts +7 -6
- package/models/product-stats.d.ts +2 -3
- package/models/product-stats.ts +2 -3
- package/models/product.d.ts +17 -12
- package/models/product.ts +18 -12
- package/models/project.d.ts +6 -6
- package/models/project.ts +7 -6
- package/models/queue-download.d.ts +2 -4
- package/models/queue-download.ts +2 -5
- package/models/recommendation.d.ts +4 -6
- package/models/recommendation.ts +4 -6
- package/models/supplier.d.ts +6 -5
- package/models/supplier.ts +7 -5
- package/models/tag.d.ts +5 -3
- package/models/tag.ts +5 -3
- package/models/unit-email.d.ts +5 -2
- package/models/unit-email.js.map +1 -1
- package/models/unit-email.ts +5 -2
- package/models/unit-template.d.ts +11 -7
- package/models/unit-template.ts +11 -7
- package/models/unit.d.ts +5 -5
- package/models/unit.ts +6 -6
- package/models/upsell-template.d.ts +9 -9
- package/models/upsell-template.ts +10 -9
- package/models/user.d.ts +5 -2
- package/models/user.ts +6 -2
- package/models/webhook-event.d.ts +5 -2
- package/models/webhook-event.ts +6 -2
- package/models/webhook.d.ts +6 -4
- package/models/webhook.ts +7 -4
- package/package.json +1 -1
package/core/permission.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare type AptlyPermissionGlobalModels = 'superAdmin' | 'admin' | 'default';
|
|
1
|
+
export declare type AptlyPermissionGlobalModels = 'superAdmin' | 'admin' | 'beta' | 'default';
|
|
2
2
|
export declare type AptlyPermissionModules = 'projectBooking' | 'projectSupport' | 'projectRecommendations';
|
|
3
3
|
export declare type AptlyPermissionModulesModels = 'default' | 'core' | 'algorithms' | 'booking' | 'unitExtraOptions' | 'unitExtraFields' | 'pages' | 'recommendations' | 'subcontractor' | 'optionLabels' | 'support' | 'testing';
|
|
4
4
|
export declare type AptlyPermissionOrganizationModels = 'testingAdmin' | 'admin' | 'content' | 'reports' | 'support' | 'thirdParty' | 'default';
|
|
5
|
-
export declare type AptlyPermissionModels = 'admin' | 'adminBilling' | 'adminProducers' | 'adminProducts' | 'adminReport' | 'adminStats' | 'adminSuppliers' | 'adminTags' | 'adminTesting' | 'adminUsers' | 'adminOrganizations' | 'organization' | 'organizationBooking' | 'organizationClients' | 'organizationMembers' | 'organizationOptionLabels' | 'organizationProducts' | 'organizationReport' | 'organizationStats' | 'organizationLogo' | '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';
|
|
5
|
+
export declare type AptlyPermissionModels = 'admin' | 'adminBilling' | 'adminProducers' | 'adminProducts' | 'adminReport' | 'adminStats' | 'adminSuppliers' | 'adminTags' | 'adminTesting' | 'adminUsers' | 'adminOrganizations' | 'beta' | 'organization' | 'organizationBooking' | 'organizationClients' | 'organizationMembers' | 'organizationOptionLabels' | 'organizationProducts' | 'organizationReport' | 'organizationStats' | 'organizationLogo' | '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';
|
package/core/permission.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
export type AptlyPermissionGlobalModels = 'superAdmin' | 'admin' | 'default';
|
|
2
|
+
export type AptlyPermissionGlobalModels = 'superAdmin' | 'admin' | 'beta' | 'default';
|
|
3
3
|
|
|
4
4
|
export type AptlyPermissionModules = 'projectBooking' | 'projectSupport' | 'projectRecommendations';
|
|
5
5
|
|
|
@@ -38,6 +38,7 @@ export type AptlyPermissionModels =
|
|
|
38
38
|
| 'adminTesting'
|
|
39
39
|
| 'adminUsers'
|
|
40
40
|
| 'adminOrganizations'
|
|
41
|
+
| 'beta'
|
|
41
42
|
| 'organization'
|
|
42
43
|
| 'organizationBooking'
|
|
43
44
|
| 'organizationClients'
|
package/enums/document.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export declare enum AptlyDocumentType {
|
|
|
2
2
|
Document = "document",
|
|
3
3
|
UnitPlan = "unitPlan",
|
|
4
4
|
ElDrawing = "elDrawing",
|
|
5
|
+
VVSDrawing = "vvsDrawing",
|
|
6
|
+
BathroomDrawing = "bathroomDrawing",
|
|
5
7
|
FDV = "fdv",
|
|
6
8
|
Manual = "manual",
|
|
7
9
|
KitchenDrawing = "kitchenDrawing",
|
|
@@ -13,5 +15,14 @@ export declare enum AptlyDocumentType {
|
|
|
13
15
|
Public = "public",
|
|
14
16
|
Prospect = "prospect",
|
|
15
17
|
EndReport = "endReport",
|
|
16
|
-
Contract = "contract"
|
|
18
|
+
Contract = "contract",
|
|
19
|
+
Chunk = "chunk"
|
|
20
|
+
}
|
|
21
|
+
export declare enum AptlyHistoryType {
|
|
22
|
+
Added = "added",
|
|
23
|
+
Updated = "updated",
|
|
24
|
+
Deleted = "deleted",
|
|
25
|
+
Moved = "moved",
|
|
26
|
+
Copied = "copied",
|
|
27
|
+
Imported = "imported"
|
|
17
28
|
}
|
package/enums/document.js
CHANGED
|
@@ -5,6 +5,8 @@ var AptlyDocumentType;
|
|
|
5
5
|
AptlyDocumentType["Document"] = "document";
|
|
6
6
|
AptlyDocumentType["UnitPlan"] = "unitPlan";
|
|
7
7
|
AptlyDocumentType["ElDrawing"] = "elDrawing";
|
|
8
|
+
AptlyDocumentType["VVSDrawing"] = "vvsDrawing";
|
|
9
|
+
AptlyDocumentType["BathroomDrawing"] = "bathroomDrawing";
|
|
8
10
|
AptlyDocumentType["FDV"] = "fdv";
|
|
9
11
|
AptlyDocumentType["Manual"] = "manual";
|
|
10
12
|
AptlyDocumentType["KitchenDrawing"] = "kitchenDrawing";
|
|
@@ -17,5 +19,15 @@ var AptlyDocumentType;
|
|
|
17
19
|
AptlyDocumentType["Prospect"] = "prospect";
|
|
18
20
|
AptlyDocumentType["EndReport"] = "endReport";
|
|
19
21
|
AptlyDocumentType["Contract"] = "contract";
|
|
22
|
+
AptlyDocumentType["Chunk"] = "chunk";
|
|
20
23
|
})(AptlyDocumentType = exports.AptlyDocumentType || (exports.AptlyDocumentType = {}));
|
|
24
|
+
var AptlyHistoryType;
|
|
25
|
+
(function (AptlyHistoryType) {
|
|
26
|
+
AptlyHistoryType["Added"] = "added";
|
|
27
|
+
AptlyHistoryType["Updated"] = "updated";
|
|
28
|
+
AptlyHistoryType["Deleted"] = "deleted";
|
|
29
|
+
AptlyHistoryType["Moved"] = "moved";
|
|
30
|
+
AptlyHistoryType["Copied"] = "copied";
|
|
31
|
+
AptlyHistoryType["Imported"] = "imported";
|
|
32
|
+
})(AptlyHistoryType = exports.AptlyHistoryType || (exports.AptlyHistoryType = {}));
|
|
21
33
|
//# sourceMappingURL=document.js.map
|
package/enums/document.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.js","sourceRoot":"","sources":["document.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"document.js","sourceRoot":"","sources":["document.ts"],"names":[],"mappings":";;AACA,IAAY,iBAmBX;AAnBD,WAAY,iBAAiB;IAC3B,0CAAqB,CAAA;IACrB,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;IACvB,8CAAyB,CAAA;IACzB,wDAAmC,CAAA;IACnC,gCAAW,CAAA;IACX,sCAAiB,CAAA;IACjB,sDAAiC,CAAA;IACjC,wCAAmB,CAAA;IACnB,4DAAuC,CAAA;IACvC,oDAA+B,CAAA;IAC/B,wDAAmC,CAAA;IACnC,0DAAqC,CAAA;IACrC,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;IACvB,0CAAqB,CAAA;IACrB,oCAAe,CAAA;AACjB,CAAC,EAnBW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAmB5B;AAED,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;AACvB,CAAC,EAPW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAO3B"}
|
package/enums/document.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
2
|
export enum AptlyDocumentType {
|
|
4
3
|
Document = 'document',
|
|
5
4
|
UnitPlan = 'unitPlan',
|
|
6
5
|
ElDrawing = 'elDrawing',
|
|
6
|
+
VVSDrawing = 'vvsDrawing',
|
|
7
|
+
BathroomDrawing = 'bathroomDrawing',
|
|
7
8
|
FDV = 'fdv',
|
|
8
9
|
Manual = 'manual',
|
|
9
10
|
KitchenDrawing = 'kitchenDrawing',
|
|
@@ -15,5 +16,15 @@ export enum AptlyDocumentType {
|
|
|
15
16
|
Public = 'public',
|
|
16
17
|
Prospect = 'prospect',
|
|
17
18
|
EndReport = 'endReport',
|
|
18
|
-
Contract = 'contract'
|
|
19
|
+
Contract = 'contract',
|
|
20
|
+
Chunk = 'chunk',
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export enum AptlyHistoryType {
|
|
24
|
+
Added = 'added',
|
|
25
|
+
Updated = 'updated',
|
|
26
|
+
Deleted = 'deleted',
|
|
27
|
+
Moved = 'moved',
|
|
28
|
+
Copied = 'copied',
|
|
29
|
+
Imported = 'imported',
|
|
19
30
|
}
|
package/enums/index.d.ts
CHANGED
|
@@ -92,3 +92,11 @@ export declare enum AptlyQueueDownloadStatus {
|
|
|
92
92
|
Downloaded = "downloaded",
|
|
93
93
|
Error = "error"
|
|
94
94
|
}
|
|
95
|
+
export declare enum AptlyIcon {
|
|
96
|
+
Welcome = "welcome",
|
|
97
|
+
Contact = "contact",
|
|
98
|
+
Help = "help",
|
|
99
|
+
Important = "important",
|
|
100
|
+
Info = "info",
|
|
101
|
+
Map = "map"
|
|
102
|
+
}
|
package/enums/index.js
CHANGED
|
@@ -112,4 +112,13 @@ var AptlyQueueDownloadStatus;
|
|
|
112
112
|
AptlyQueueDownloadStatus["Downloaded"] = "downloaded";
|
|
113
113
|
AptlyQueueDownloadStatus["Error"] = "error";
|
|
114
114
|
})(AptlyQueueDownloadStatus = exports.AptlyQueueDownloadStatus || (exports.AptlyQueueDownloadStatus = {}));
|
|
115
|
+
var AptlyIcon;
|
|
116
|
+
(function (AptlyIcon) {
|
|
117
|
+
AptlyIcon["Welcome"] = "welcome";
|
|
118
|
+
AptlyIcon["Contact"] = "contact";
|
|
119
|
+
AptlyIcon["Help"] = "help";
|
|
120
|
+
AptlyIcon["Important"] = "important";
|
|
121
|
+
AptlyIcon["Info"] = "info";
|
|
122
|
+
AptlyIcon["Map"] = "map";
|
|
123
|
+
})(AptlyIcon = exports.AptlyIcon || (exports.AptlyIcon = {}));
|
|
115
124
|
//# sourceMappingURL=index.js.map
|
package/enums/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;AACA,gCAA2B;AAC3B,qCAAgC;AAChC,+BAA0B;AAE1B,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,2CAAuB,CAAA;IACvB,+CAA2B,CAAA;IAC3B,yDAAqC,CAAA;IACrC,iEAA6C,CAAA;IAC7C,qCAAiB,CAAA;IACjB,iDAA6B,CAAA;IAC7B,yDAAqC,CAAA;IACrC,uCAAmB,CAAA;AACrB,CAAC,EATW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAS3B;AAED,IAAY,oBAQX;AARD,WAAY,oBAAoB;IAC9B,yDAAiC,CAAA;IACjC,uCAAe,CAAA;IACf,2CAAmB,CAAA;IACnB,qCAAa,CAAA;IACb,qCAAa,CAAA;IACb,uCAAe,CAAA;IACf,yCAAiB,CAAA;AACnB,CAAC,EARW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAQ/B;AAED,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACrC,8CAAe,CAAA;IACf,8CAAe,CAAA;IACf,0CAAW,CAAA;IACX,4CAAa,CAAA;AACf,CAAC,EALW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QA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,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;IACnB,0BAAa,CAAA;IACb,oCAAuB,CAAA;IACvB,0BAAa,CAAA;IACb,wBAAW,CAAA;AACb,CAAC,EAPW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAOpB"}
|
package/enums/index.ts
CHANGED
|
@@ -107,4 +107,13 @@ export enum AptlyQueueDownloadStatus {
|
|
|
107
107
|
Downloading = 'downloading',
|
|
108
108
|
Downloaded = 'downloaded',
|
|
109
109
|
Error = 'error',
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export enum AptlyIcon {
|
|
113
|
+
Welcome = 'welcome',
|
|
114
|
+
Contact = 'contact',
|
|
115
|
+
Help = 'help',
|
|
116
|
+
Important = 'important',
|
|
117
|
+
Info = 'info',
|
|
118
|
+
Map = 'map'
|
|
110
119
|
}
|
package/models/client.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { AptlyBaseSchema } from './extends';
|
|
2
|
+
export interface AptlyUserClientSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
|
|
3
3
|
user: ID;
|
|
4
4
|
subject: string;
|
|
5
5
|
clientId: string;
|
|
6
6
|
clientSecret?: string;
|
|
7
7
|
permissions: any;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated use createdAt
|
|
10
|
+
*/
|
|
8
11
|
created: DATE;
|
|
9
|
-
name: string;
|
|
10
12
|
}
|
|
11
13
|
export declare type AptlyUserClient = AptlyUserClientSchema<string, string>;
|
package/models/client.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { AptlyBaseSchema } from './extends';
|
|
2
|
+
|
|
3
|
+
export interface AptlyUserClientSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
|
|
3
4
|
user: ID;
|
|
4
5
|
subject: string;
|
|
5
6
|
clientId: string;
|
|
6
7
|
clientSecret?: string;
|
|
7
8
|
permissions: any;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated use createdAt
|
|
11
|
+
*/
|
|
8
12
|
created: DATE;
|
|
9
|
-
name: string;
|
|
10
13
|
}
|
|
11
14
|
export type AptlyUserClient = AptlyUserClientSchema<string, string>;
|
package/models/document.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { AptlyDocumentType } from '../enums';
|
|
2
|
+
import { AptlyBaseSchema } from './extends';
|
|
2
3
|
export declare type AptlyDocument = AptlyDocumentSchema<string, string>;
|
|
3
|
-
export interface AptlyDocumentSchema<ID, DATE> {
|
|
4
|
-
_id: ID;
|
|
4
|
+
export interface AptlyDocumentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
|
|
5
5
|
mime: string;
|
|
6
6
|
_type: AptlyDocumentType;
|
|
7
|
-
name: string;
|
|
8
7
|
data: string;
|
|
9
8
|
organization?: string;
|
|
10
9
|
project?: string;
|
|
@@ -12,7 +11,6 @@ export interface AptlyDocumentSchema<ID, DATE> {
|
|
|
12
11
|
product?: string;
|
|
13
12
|
text?: string;
|
|
14
13
|
size: number;
|
|
15
|
-
created: DATE;
|
|
16
14
|
thirdPartyUploader: string | null;
|
|
17
15
|
thirdPartyId: string | null;
|
|
18
16
|
external_url?: string;
|
|
@@ -20,6 +18,10 @@ export interface AptlyDocumentSchema<ID, DATE> {
|
|
|
20
18
|
boligmappaStatus?: AptlyDocumentSchemaBoligmappaStatusSchema<ID, DATE>[];
|
|
21
19
|
chunks?: ID[];
|
|
22
20
|
isPasswordProtected?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated use createdAt
|
|
23
|
+
*/
|
|
24
|
+
created: DATE;
|
|
23
25
|
}
|
|
24
26
|
export declare type AptlyDocumentSchemaBoligmappaStatus = AptlyDocumentSchemaBoligmappaStatusSchema<string, string>;
|
|
25
27
|
export interface AptlyDocumentSchemaBoligmappaStatusSchema<ID, DATE> {
|
package/models/document.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { AptlyDocumentType } from '../enums';
|
|
2
|
+
import { AptlyBaseSchema } from './extends';
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
export type AptlyDocument = AptlyDocumentSchema<string, string>;
|
|
5
|
-
export interface AptlyDocumentSchema<ID, DATE> {
|
|
6
|
-
_id: ID;
|
|
6
|
+
export interface AptlyDocumentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
|
|
7
7
|
mime: string;
|
|
8
8
|
_type: AptlyDocumentType;
|
|
9
|
-
name: string;
|
|
10
9
|
data: string;
|
|
11
10
|
organization?: string;
|
|
12
11
|
project?: string;
|
|
@@ -14,7 +13,6 @@ export interface AptlyDocumentSchema<ID, DATE> {
|
|
|
14
13
|
product?: string;
|
|
15
14
|
text?: string;
|
|
16
15
|
size: number;
|
|
17
|
-
created: DATE;
|
|
18
16
|
thirdPartyUploader: string | null;
|
|
19
17
|
thirdPartyId: string | null;
|
|
20
18
|
external_url?: string;
|
|
@@ -22,6 +20,10 @@ export interface AptlyDocumentSchema<ID, DATE> {
|
|
|
22
20
|
boligmappaStatus?: AptlyDocumentSchemaBoligmappaStatusSchema<ID, DATE>[];
|
|
23
21
|
chunks?: ID[];
|
|
24
22
|
isPasswordProtected?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated use createdAt
|
|
25
|
+
*/
|
|
26
|
+
created: DATE;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
export type AptlyDocumentSchemaBoligmappaStatus = AptlyDocumentSchemaBoligmappaStatusSchema<string, string>;
|
package/models/extends.d.ts
CHANGED
|
@@ -1,15 +1,33 @@
|
|
|
1
|
+
import { AptlyUserSchema } from './user';
|
|
2
|
+
import { AptlyHistoryType } from '../enums';
|
|
3
|
+
export interface AptlyBaseSchema<ID, DATE> {
|
|
4
|
+
_id: ID;
|
|
5
|
+
name: string;
|
|
6
|
+
archived: boolean;
|
|
7
|
+
createdAt: DATE;
|
|
8
|
+
updatedAt: DATE;
|
|
9
|
+
}
|
|
1
10
|
export declare type AptlyHistory = AptlyHistorySchema<string, string>;
|
|
2
11
|
export interface AptlyHistorySchema<ID, DATE> {
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated not used in v2
|
|
14
|
+
*/
|
|
3
15
|
locked: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated use updatedAt
|
|
18
|
+
*/
|
|
4
19
|
lastChange: DATE;
|
|
5
20
|
history: AptlyHistoryHistorySchema<ID, DATE>[];
|
|
6
21
|
}
|
|
7
22
|
export declare type AptlyHistoryHistory = AptlyHistoryHistorySchema<string, string>;
|
|
8
23
|
export interface AptlyHistoryHistorySchema<ID, DATE> {
|
|
24
|
+
_id: ID;
|
|
25
|
+
type: AptlyHistoryType;
|
|
9
26
|
referenceDate: DATE;
|
|
10
27
|
diffDate: DATE;
|
|
11
28
|
diff: object;
|
|
12
|
-
user: ID
|
|
29
|
+
user: ID | Pick<AptlyUserSchema<ID, DATE>, '_id' | 'fullName'>;
|
|
30
|
+
meta?: object;
|
|
13
31
|
}
|
|
14
32
|
export interface AptlyDBCrawlerCleaner {
|
|
15
33
|
dontClean?: boolean;
|
package/models/extends.ts
CHANGED
|
@@ -1,17 +1,36 @@
|
|
|
1
|
+
import { AptlyUserSchema } from './user';
|
|
2
|
+
import { AptlyHistoryType } from '../enums';
|
|
3
|
+
|
|
4
|
+
export interface AptlyBaseSchema<ID, DATE> {
|
|
5
|
+
_id: ID;
|
|
6
|
+
name: string;
|
|
7
|
+
archived: boolean;
|
|
8
|
+
createdAt: DATE;
|
|
9
|
+
updatedAt: DATE;
|
|
10
|
+
}
|
|
1
11
|
|
|
2
12
|
export type AptlyHistory = AptlyHistorySchema<string, string>;
|
|
3
13
|
export interface AptlyHistorySchema<ID, DATE> {
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated not used in v2
|
|
16
|
+
*/
|
|
4
17
|
locked: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated use updatedAt
|
|
20
|
+
*/
|
|
5
21
|
lastChange: DATE;
|
|
6
22
|
history: AptlyHistoryHistorySchema<ID, DATE>[];
|
|
7
23
|
}
|
|
8
24
|
|
|
9
25
|
export type AptlyHistoryHistory = AptlyHistoryHistorySchema<string, string>;
|
|
10
26
|
export interface AptlyHistoryHistorySchema<ID, DATE> {
|
|
27
|
+
_id: ID;
|
|
28
|
+
type: AptlyHistoryType;
|
|
11
29
|
referenceDate: DATE;
|
|
12
30
|
diffDate: DATE;
|
|
13
31
|
diff: object;
|
|
14
|
-
user: ID
|
|
32
|
+
user: ID | Pick<AptlyUserSchema<ID, DATE>, '_id' | 'fullName'>;
|
|
33
|
+
meta?: object;
|
|
15
34
|
}
|
|
16
35
|
|
|
17
36
|
export interface AptlyDBCrawlerCleaner {
|
package/models/media.d.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { AptlyOrganizationSchema } from './organization';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
archived: boolean;
|
|
5
|
-
created: DATE;
|
|
6
|
-
updated: DATE;
|
|
2
|
+
import { AptlyBaseSchema } from './extends';
|
|
3
|
+
export interface AptlyMediaSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
7
4
|
organization: ID | AptlyOrganizationSchema<ID, DATE>;
|
|
8
5
|
src: string;
|
|
9
|
-
name: string;
|
|
10
6
|
alt: string;
|
|
11
7
|
caption?: string;
|
|
12
8
|
title?: string;
|
|
@@ -29,6 +25,14 @@ export interface AptlyMediaSchema<ID, DATE> {
|
|
|
29
25
|
placeholder: boolean;
|
|
30
26
|
url: string;
|
|
31
27
|
original_filename: string;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated use createdAt
|
|
30
|
+
*/
|
|
31
|
+
created: DATE;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated use updatedAt
|
|
34
|
+
*/
|
|
35
|
+
updated: DATE;
|
|
32
36
|
srcUrl?: string;
|
|
33
37
|
uploadSignature?: string;
|
|
34
38
|
}
|
package/models/media.ts
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { AptlyOrganizationSchema } from './organization';
|
|
2
|
+
import { AptlyBaseSchema } from './extends';
|
|
2
3
|
|
|
3
|
-
export interface AptlyMediaSchema<ID, DATE> {
|
|
4
|
+
export interface AptlyMediaSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
4
5
|
// Aptly data
|
|
5
|
-
_id: ID;
|
|
6
|
-
archived: boolean;
|
|
7
|
-
created: DATE;
|
|
8
|
-
updated: DATE;
|
|
9
6
|
organization: ID | AptlyOrganizationSchema<ID, DATE>;
|
|
10
7
|
src: string;
|
|
11
|
-
name: string;
|
|
12
8
|
alt: string;
|
|
13
9
|
caption?: string;
|
|
14
10
|
title?: string;
|
|
@@ -34,6 +30,15 @@ export interface AptlyMediaSchema<ID, DATE> {
|
|
|
34
30
|
url: string;
|
|
35
31
|
original_filename: string;
|
|
36
32
|
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated use createdAt
|
|
35
|
+
*/
|
|
36
|
+
created: DATE;
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated use updatedAt
|
|
39
|
+
*/
|
|
40
|
+
updated: DATE;
|
|
41
|
+
|
|
37
42
|
// Aptly recognize help values
|
|
38
43
|
srcUrl?: string; // Recognize image if uploaded with url.
|
|
39
44
|
uploadSignature?: string; // Recognize images with buffer content
|
package/models/option-label.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { AptlyBaseSchema } from './extends';
|
|
1
2
|
export declare type AptlyOptionLabel = AptlyOptionLabelSchema<string, string>;
|
|
2
|
-
export interface AptlyOptionLabelSchema<ID, DATE> {
|
|
3
|
-
_id: ID;
|
|
4
|
-
name: string;
|
|
5
|
-
created: DATE;
|
|
3
|
+
export interface AptlyOptionLabelSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
6
4
|
organization?: string;
|
|
7
5
|
project?: string;
|
|
8
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated use createdAt
|
|
8
|
+
*/
|
|
9
|
+
created: DATE;
|
|
9
10
|
}
|
package/models/option-label.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { AptlyBaseSchema } from './extends';
|
|
1
2
|
|
|
2
3
|
export type AptlyOptionLabel = AptlyOptionLabelSchema<string, string>;
|
|
3
|
-
export interface AptlyOptionLabelSchema<ID, DATE> {
|
|
4
|
-
_id: ID;
|
|
5
|
-
name: string;
|
|
6
|
-
created: DATE;
|
|
4
|
+
export interface AptlyOptionLabelSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
7
5
|
organization?: string;
|
|
8
6
|
project?: string;
|
|
9
|
-
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated use createdAt
|
|
10
|
+
*/
|
|
11
|
+
created: DATE;
|
|
10
12
|
}
|
package/models/order.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { AptlyOrderStatus } from '../enums';
|
|
2
2
|
import { AptlyUnitItemParamSchema } from './unit';
|
|
3
|
+
import { AptlyBaseSchema } from './extends';
|
|
3
4
|
export declare type AptlyOrder = AptlyOrderSchema<string, string>;
|
|
4
|
-
export interface AptlyOrderSchema<ID, DATE> {
|
|
5
|
-
_id: ID;
|
|
5
|
+
export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
|
|
6
6
|
orderNumber: string;
|
|
7
|
-
created: DATE;
|
|
8
7
|
organization: ID;
|
|
9
8
|
project: ID;
|
|
10
9
|
period: ID;
|
|
@@ -17,6 +16,10 @@ export interface AptlyOrderSchema<ID, DATE> {
|
|
|
17
16
|
items: AptlyOrderItemSchema<ID, DATE>[];
|
|
18
17
|
totalCost: number;
|
|
19
18
|
pricePipeline: AptlyOrderPricePipelineItemSchema<ID>[];
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated use createdAt
|
|
21
|
+
*/
|
|
22
|
+
created: DATE;
|
|
20
23
|
}
|
|
21
24
|
export declare type AptlyOrderPricePipelineItem = AptlyOrderPricePipelineItemSchema<string>;
|
|
22
25
|
export interface AptlyOrderPricePipelineItemSchema<ID> {
|
package/models/order.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { AptlyOrderStatus } from '../enums';
|
|
2
2
|
import { AptlyUnitItemParamSchema } from './unit';
|
|
3
|
+
import { AptlyBaseSchema } from './extends';
|
|
3
4
|
|
|
4
5
|
export type AptlyOrder = AptlyOrderSchema<string, string>;
|
|
5
|
-
export interface AptlyOrderSchema<ID, DATE> {
|
|
6
|
-
_id: ID;
|
|
6
|
+
export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
|
|
7
7
|
orderNumber: string;
|
|
8
|
-
created: DATE;
|
|
9
8
|
organization: ID;
|
|
10
9
|
project: ID;
|
|
11
10
|
period: ID;
|
|
@@ -18,6 +17,11 @@ export interface AptlyOrderSchema<ID, DATE> {
|
|
|
18
17
|
items: AptlyOrderItemSchema<ID, DATE>[];
|
|
19
18
|
totalCost: number;
|
|
20
19
|
pricePipeline: AptlyOrderPricePipelineItemSchema<ID>[];
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated use createdAt
|
|
23
|
+
*/
|
|
24
|
+
created: DATE;
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
export type AptlyOrderPricePipelineItem = AptlyOrderPricePipelineItemSchema<string>;
|
package/models/organization.d.ts
CHANGED
|
@@ -2,10 +2,9 @@ import { AptlyPermissionModulesModels, AptlyPermissionOrganizationModels } from
|
|
|
2
2
|
import { AptlySignageSchema } from '../core/signage';
|
|
3
3
|
import { AptlyUserSchema } from './user';
|
|
4
4
|
import { AptlyMediaSrc } from './media';
|
|
5
|
+
import { AptlyBaseSchema } from './extends';
|
|
5
6
|
export declare type AptlyOrganization = AptlyOrganizationSchema<string, string>;
|
|
6
|
-
export interface AptlyOrganizationSchema<ID, DATE> {
|
|
7
|
-
_id: ID;
|
|
8
|
-
name: string;
|
|
7
|
+
export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
9
8
|
slug: string;
|
|
10
9
|
logo?: string | null;
|
|
11
10
|
logoMedia?: AptlyMediaSrc | null;
|
|
@@ -23,12 +22,14 @@ export interface AptlyOrganizationSchema<ID, DATE> {
|
|
|
23
22
|
};
|
|
24
23
|
phone: string;
|
|
25
24
|
email: string;
|
|
26
|
-
created: DATE;
|
|
27
|
-
archived: boolean;
|
|
28
25
|
members: AptlyOrganizationMemberSchema<ID, DATE>[];
|
|
29
26
|
modules: AptlyPermissionModulesModels[];
|
|
30
27
|
contractSign?: AptlySignageSchema<ID, DATE>;
|
|
31
28
|
integrations: AptlyOrganizationIntegrationsSchema<ID>[];
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated use createdAt
|
|
31
|
+
*/
|
|
32
|
+
created: DATE;
|
|
32
33
|
}
|
|
33
34
|
export declare type AptlyOrganizationIntegrations = AptlyOrganizationIntegrationsSchema<string>;
|
|
34
35
|
export interface AptlyOrganizationIntegrationsSchema<ID> {
|
package/models/organization.ts
CHANGED
|
@@ -2,11 +2,10 @@ import { AptlyPermissionModulesModels, AptlyPermissionOrganizationModels } from
|
|
|
2
2
|
import { AptlySignageSchema } from '../core/signage';
|
|
3
3
|
import { AptlyUserSchema } from './user';
|
|
4
4
|
import { AptlyMediaSrc } from './media';
|
|
5
|
+
import { AptlyBaseSchema } from './extends';
|
|
5
6
|
|
|
6
7
|
export type AptlyOrganization = AptlyOrganizationSchema<string, string>;
|
|
7
|
-
export interface AptlyOrganizationSchema<ID, DATE> {
|
|
8
|
-
_id: ID;
|
|
9
|
-
name: string;
|
|
8
|
+
export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
10
9
|
slug: string;
|
|
11
10
|
logo?: string | null;
|
|
12
11
|
logoMedia?: AptlyMediaSrc | null;
|
|
@@ -24,12 +23,15 @@ export interface AptlyOrganizationSchema<ID, DATE> {
|
|
|
24
23
|
};
|
|
25
24
|
phone: string;
|
|
26
25
|
email: string;
|
|
27
|
-
created: DATE;
|
|
28
|
-
archived: boolean;
|
|
29
26
|
members: AptlyOrganizationMemberSchema<ID, DATE>[];
|
|
30
27
|
modules: AptlyPermissionModulesModels[];
|
|
31
28
|
contractSign?: AptlySignageSchema<ID, DATE>;
|
|
32
29
|
integrations: AptlyOrganizationIntegrationsSchema<ID>[];
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated use createdAt
|
|
33
|
+
*/
|
|
34
|
+
created: DATE;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
export type AptlyOrganizationIntegrations = AptlyOrganizationIntegrationsSchema<string>;
|
package/models/page.d.ts
CHANGED
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import { AptlyPageSectionType } from '../enums';
|
|
2
|
+
import { AptlyBaseSchema } from './extends';
|
|
2
3
|
export declare type AptlyPage = AptlyPageSchema<string, string>;
|
|
3
|
-
export interface AptlyPageSchema<ID, DATE> {
|
|
4
|
-
_id: ID;
|
|
4
|
+
export interface AptlyPageSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
5
5
|
slug: string;
|
|
6
|
-
name: string;
|
|
7
6
|
project: ID;
|
|
8
7
|
organization: ID;
|
|
9
|
-
showInMenu: boolean;
|
|
10
8
|
summary: string;
|
|
11
9
|
icon?: string;
|
|
12
|
-
legacy?: string;
|
|
13
|
-
image?: string;
|
|
14
10
|
upsellTemplate?: ID | null;
|
|
15
11
|
sections: AptlyPageSectionSchema<ID, DATE>[];
|
|
16
|
-
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated use upsellTemplate
|
|
14
|
+
*/
|
|
15
|
+
legacy?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated use upsellTemplate
|
|
18
|
+
*/
|
|
19
|
+
image?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated connected with project pages
|
|
22
|
+
*/
|
|
23
|
+
showInMenu: boolean;
|
|
17
24
|
}
|
|
18
25
|
export declare type AptlyPageSection = AptlyPageSectionSchema<string, string>;
|
|
19
26
|
export interface AptlyPageSectionSchema<ID, DATE, VALUE = any> {
|
package/models/page.ts
CHANGED
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
import { AptlyPageSectionType } from '../enums';
|
|
2
|
+
import { AptlyBaseSchema } from './extends';
|
|
2
3
|
|
|
3
4
|
export type AptlyPage = AptlyPageSchema<string, string>;
|
|
4
|
-
export interface AptlyPageSchema<ID, DATE> {
|
|
5
|
-
_id: ID;
|
|
5
|
+
export interface AptlyPageSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
6
6
|
slug: string;
|
|
7
|
-
name: string;
|
|
8
7
|
project: ID;
|
|
9
8
|
organization: ID;
|
|
10
|
-
showInMenu: boolean;
|
|
11
9
|
summary: string;
|
|
12
10
|
icon?: string;
|
|
13
|
-
legacy?: string; // Deprecated
|
|
14
|
-
image?: string; // Deprecated
|
|
15
11
|
upsellTemplate?: ID | null;
|
|
16
12
|
sections: AptlyPageSectionSchema<ID, DATE>[];
|
|
17
|
-
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated use upsellTemplate
|
|
16
|
+
*/
|
|
17
|
+
legacy?: string; // Deprecated
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated use upsellTemplate
|
|
20
|
+
*/
|
|
21
|
+
image?: string; // Deprecated
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated connected with project pages
|
|
24
|
+
*/
|
|
25
|
+
showInMenu: boolean;
|
|
18
26
|
}
|
|
19
27
|
|
|
20
28
|
export type AptlyPageSection = AptlyPageSectionSchema<string, string>;
|
package/models/producer.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AptlyBaseSchema } from './extends';
|
|
2
2
|
import { AptlyMediaSrc } from './media';
|
|
3
3
|
export declare type AptlyProducer = AptlyProducerSchema<string, string>;
|
|
4
|
-
export interface AptlyProducerSchema<ID, DATE> extends
|
|
5
|
-
_id: ID;
|
|
6
|
-
name: string;
|
|
4
|
+
export interface AptlyProducerSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
7
5
|
email: string;
|
|
8
6
|
logo: string | null;
|
|
9
7
|
logoMedia?: AptlyMediaSrc | null;
|
|
10
8
|
url?: string;
|
|
11
|
-
created: DATE;
|
|
12
9
|
organization?: ID;
|
|
13
|
-
archived: boolean;
|
|
14
10
|
createdBy: ID;
|
|
15
11
|
tags: ID[];
|
|
16
12
|
/**
|
|
17
13
|
* @deprecated not used
|
|
18
14
|
*/
|
|
19
15
|
extends: ID;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated use createdAt
|
|
18
|
+
*/
|
|
19
|
+
created: DATE;
|
|
20
20
|
}
|